Andrew Beverley:
> On Mon, 2015-06-01 at 15:09 -0400, Wietse Venema wrote:
> > Postfix already logs the script's output (stdout and stderr) streams,
> > and it already logs and reports a non-zero exit status.
> 
> The problem is monitoring this though: it seems that when the above are
> logged they are logged at a level below severity "warning" So if I'm
> monitoring the logs for messages above that severity, then I don't see
> the problem. Is there a way to increase the level they are logged at? Or
> am I doing something wrong?

The syslog severity of individual logfile messages is not adjustable.

Options:

- Edit the Perl script to scream bloody murder to the syslog daemon.

- Invoke the Perl script from a shell script that screams bloody
  murder when the command exits with a non-zero status.

- Use a suitable regular expression that matches logfile lines
  from the pipe daemon with status=bounced or status=deferred.

Plenty of options, no need to mess up Postfix source.

        Wietse

Reply via email to