Exim and MS 4.11-1

Desai, Jason jase at SENSIS.COM
Wed Jan 8 21:51:13 GMT 2003

> -----Original Message-----
> From: Nick Phillips [mailto:nwp at LEMON-COMPUTING.COM]
> Sent: Wednesday, January 08, 2003 4:15 PM
> Subject: Re: [MAILSCANNER] Exim and MS 4.11-1
> On Thursday, January 9, 2003, at 03:25  am, Desai, Jason wrote:
> > I did see directories in mailscanner's incoming queue while
> doing these
> > tests.  But I did clear it out and still saw the problem.  I also
> > cleared
> > out Exim's incoming queue, and dropped a test message in there, and
> > still
> > saw the problem.  Although a message did make it through once or
> > twice, most
> > of the time mailscanner crashed.
> >
> > Could this have anything to do with the fact that I am
> using fetchmail
> > to
> > retrieve mail, which delivers it to exim?
> >
> OK, something else which I wasn't expecting also causes nonrecipients
> to be set in
> the queue file; use of the system-wide message filter on the incoming
> Exim.
> I'm not yet sure of exactly when this happens (i.e. does it
> only happen
> when a delivery
> attempt is made?), but will be looking into it.
> The diff I posted before should fix the crashing problem, but there is
> another potential
> problem with the system message filter causing messages to bypass
> mailscanner.
> I *hope* that Exim does not run the message through the filter until a
> delivery attempt is
> made, in which case the solution is to avoid injecting messages with
> the "-odi" or equivalent options (note that some crons do this as, it
> appears, may netsaint/nagios).
> If this bothers you, you can simply remove the "message
> filter" setting
> from your "incoming" exim config.
> Cheers,
> Nick

My system filter is very simple.  It just logs the email for me into a
directory with the current date.  The filter is:

if not first_delivery then finish endif
unseen save /var/log/mail-save/${substr_0_10:${tod_log}}/

So is the save what is causing the nonrecipients?  The filter is not
delivering any other email, so I don't think this will be a problem.  This
was set up this way before MailScanner had the ability to archive email.
Maybe I'll have MailScanner do it now.

The Nagios test message I gave you was sent from another server to my pop
account.  Then I used fetchmail to retrieve it, which I think is supposed to
talk to the smtp server using tcp port 25 not calling sendmail or exim

With your fix, MailScanner has been running fine.  Thanks for your help!

Jason Desai

More information about the MailScanner mailing list