Postfix + mailscanner corrupts messages, mailscanner stopping

Richard Haakma richard at AK.PLANET.GEN.NZ
Thu Jul 28 05:41:53 IST 2005


Hi.

I have a mail server which is running on OpenBSD 3.7 on a
Pentium III computer.

It is running postfix-2.2.0-mysql from the OpenBSD
packages and currently MailScanner-4.42.9
with Spamassassin 3.0.4 installed with source packages.
Pyzor, DCC and Razor are not used.  Anti-virus is
by Clamav-0.86.

I am getting a few messages each day appearing in the
corrupt spool.  These are accompanied by the 
message in the maillog:

Jul 28 08:24:44 snowy MailScanner[28550]: Requeue: E2FBF50D368.2F7F7 to 3E53B50D344 
Jul 28 08:24:44 snowy postfix/qmgr[19243]: 3E53B50D344: from=<sentto-2089606-11980-1122495874-mattarch=kiwilink.co.nz at returns.groups.yahoo.com>, size=47189, nrcpt=2 (queue active)
Jul 28 08:24:44 snowy postfix/qmgr[19243]: warning: 3E53B50D344: rcpt count mismatch (1)
Jul 28 08:24:44 snowy postfix/local[6308]: warning: corrupted queue file: active/3E53B50D344
Jul 28 08:24:44 snowy postfix/qmgr[19243]: warning: saving corrupt file "3E53B50D344" from queue "active" to queue "corrupt"

This never seems to happen when there is a big backlog of messages
waiting.  Maybe there is a race when MailScanner is not overloaded.
Is MailScanner trying to open the queue files in the
hold queue before Postfix has finished putting them there, due
to bad or no locking?

I have searched the mailing list archive and found previous reports
of a similar nature.  I have also found a reference in the
CHANGELOG which may refer to this problem in the latest BETA
release.  Is the fixes for the BETA release likely to fix
this problem?


Also in the changelog is a reference to a fix for MailScanner going
to sleep in version 4.42.9.  Unfortunately this seems to be
happening to me.  The appropriate number of MailScanner
processes are in the process list, but it appears that they
have stopped doing anything.  I have had to use cron to
stop and restart MailScanner a few times each day to reduce
the inconvenience to users.  Is there news of a better fix for
this?


Regards,
RH.



-- 
Do NOT reply to SPAM.  Do NOT buy anything that is offered by SPAM.
Every time someone buys, the spammers can economically justify
sending out thousands more messages.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list