9.26. Configuration for the mailq check.

The mailq-check runs sendmail -bp to list all the queued emails in your system. You can configure a maximum count for different errors and/or a maximum total count.

MAILQ

Explanation

MAILQ is the enclosing tag for all mailq entries.

Parent

OSAGENT

allowed values

Count

0 or 1. If you don't define MAILQ, no mailq check will run.

Example
<MAILQ>
  <MAILQERROR>
    <!-- Total count for queue is 20 -->
    <REGEX>.*</REGEX>
    <COUNT>20</COUNT>
    <ERRORLEVEL>ERROR</ERRORLEVEL>
    <DESCRIPTION>Stupid emails - go out!</DESCRIPTION>
  </MAILQERROR>

  <MAILQERROR>
    <!-- DNS problems: max 5 -->
    <REGEX>lookup</REGEX>
    <COUNT>5</COUNT>
    <ERRORLEVEL>WARNING</ERRORLEVEL>
    <DESCRIPTION>Stupid emails - go out!</DESCRIPTION>
  </MAILQERROR>
</MAILQ>
        

MAILQERROR

Explanation

You can define MAILQERROR-entries for every mailq-error, you want to check.

Parent

MAILQ

allowed values

Count

As many as you like.

Example

Look at MAILQERROR

COUNT

Explanation

how many mails can be in the queue with that error ?

Parent

MAILQERROR

allowed values

integer value

Count

1

Example

Look at MAILQERROR