Random Project

Bug if amavisd-new server is unreachable

There is a bug if the server is unreachable.
The plugin will print CRITICAL but the exit code is still 0 so Nagios will think the status is ok.
You should use exit 2;

if (!$smtp) {
print “CRITICAL – amavisd-new server unreachable
“;
exit 2;
}

Besides that the plugin works great.