Monitoring SMTP error messages

Luca Corti cortez at tiscali.it
Mon Nov 15 18:06:21 CET 2004


On Mon, 2004-11-15 at 17:41 +0100, Luca Corti wrote:
> Not at all. There's no disk space problem, the error comes from the fact
> the message can't be stored on the disk due to the broken
> spamassasin/f-prot chain. I really need to monitor for the 451 error
> message, or better to monitor for the specific error message I get:

Maybe I've not provided enough detail about the problem.

The check_smtp nagios plugin checks that a 220 smtp banner is sent from
the server upon connection, it does not actually try to send a messasge
or to ensure that a message woud be accepted.

In my case the smtp banner is correctly displayed by the server. The
SMTP transaction goes as expected (MAIL FROM, RCPT TO, DATA) until the
message DATA is terminated with the "." and the mailserver tries to
queue up the message. At that point due to the breakage described above
it fails, returning the 451 error.

Unfortunately I've not figured out yet what triggers the the error in
the chain, so I need to detect it.

Here comes the plugin. It should be able to bring the SMTP conversation
with the server and return OK if the mail is queued for delivery,
CRITICALl if the mail is rejected with the above message.

Thinking about this more generally, it would be cool to have a plugin
which returns CRITICAL if the mail is rejected with ANY error message.
YOu could use this with a forged message you know yout MTA will accept
to detect particular SMTP problems other than TCP/IP level or simple
service availability ones.

thanks

Luca




CONFIDENTIALITY NOTICE
This message and its attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately, delete this message and do not disclose the contents to any other person, do not use it for any purpose or store or copy the information in any medium.


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list