Re: [exim] Failed delivery verbose logging

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Mike Brudenell
Datum:  
To: Exim Users
Betreff: Re: [exim] Failed delivery verbose logging
Hmmm… Rather than fiddling trying to adjust the log_selector up/down for
failed/working deliveries it might be better just to use the
*logwrite* directive
and output whatever information you want.

We use this technique along with a Perl script that runs continuously
monitoring the logfile looking for the trigger keywords we include in the
lines of interest. (Make sure you tie its regular expression down
sufficiently so that it doesn't trigger if one of those keywords/patterns
appears in, say, a delivered message's Subject text!)

We use Perl's *File::Tail* module to monitor the logfile as it handles the
logfile being rotated whilst the script is running, picking up the change
and continuing with the new logfile automatically. Then we use the
*Email::Send* module to generate and send the notification to our admins.

If you're going to be triggering report emails when a message fails to
deliver make sure you catch the case of one of the script's report emails
failing to be delivered to one of your admins! Otherwise you'll have a nice
loop of the script spotting the problem, triggering another report, which
then fails, is detected, triggers another report, which…

Cheers,
Mike B-)

On 18 March 2016 at 02:08, 3YSTech Services <3ystechservices@???>
wrote:

> Hi,
>
> I would like get alerted on failed delivered emails from EXIM .. The way I
> am thinking is to increase logging level only on failed mail delivery, then
> have script look for patterns of failed delivery and email it to Admin.
>
> Thanks
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/





--
Systems Administrator & Change Manager
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811

Web: www.york.ac.uk/it-services
Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm