MailScanner issue with postfix

Sylvain MEDEOT symedeot at YAHOO.FR
Fri Jul 4 08:31:21 IST 2003


Hi,

You don't mention which Postfix version you are using. From my experience,
versions of Postfix prior to postfix-1.1.11 won't work with MailScanner.

One thing that should be missing in your files is :

hash_queue_depth = 1
hash_queue_names = incoming deferred active bounce flush

in both /etc/postfix/main.cf and /etc/postfix.in/main.cf

Then you have to stop Postfix and run :

postfix -c /etc/postfix.in check
postfix -c /etc/postfix check

On my system, before running postfix, I drop these two directories then I
did a mkdir /var/spool/postfix /var/spool/postfix.in

By doing so, you made to have not flat directories (they are not
compatibles with MailScanner, recent versions of Postfix are OK).

After doing this on my server, MailScanner starts working fine for some
minutes then I had some mails lost (they were going into postfix/corrupted)
and finally the server crashes with the following logs :

Jun 30 15:32:20 intranet postfix/qmgr[4599]: warning: 1081F5B855: envelope
records out of order
Jun 30 15:32:20 intranet postfix/qmgr[4599]: warning: corrupt file queue
active id 1081F5B855
Jun 30 15:32:25 intranet postfix/qmgr[4599]: warning: 927DA5B859: envelope
records out of order
Jun 30 15:32:25 intranet postfix/qmgr[4599]: warning: corrupt file queue
active id 927DA5B859
Jun 30 15:33:20 intranet MailScanner[4636]: Corrupt queue output file
Jun 30 15:33:20 intranet postfix/qmgr[4599]: warning: BEF445B861: envelope
records out of order
Jun 30 15:33:20 intranet postfix/qmgr[4599]: warning: corrupt file queue
active id BEF445B861
Jun 30 15:35:34 intranet postfix/qmgr[4599]: warning: 2B65C5B871: envelope
records out of order
Jun 30 15:35:34 intranet postfix/qmgr[4599]: warning: corrupt file queue
active id 2B65C5B871

Following Julian's suggestion, I decide to upgrade my current postfix to
one of the versions he tested (postfix-1.1.11).

I got the sources and compile it. Very easy...
I then did a copy of my postfix cf files and run a make upgrade.

After doing this, I had to make some minor changes to main.cf since some
keywords changed between the two versions.

Before running postfix, I drop /var/spool/postfix /var/spool/postfix.in
and then I did a mkdir /var/spool/postfix /var/spool/postfix.in

Then I run postfix alone to see if everything was fine. It was. Finally, I
did again the whole process of copying /etc/postfix to /etc/postfix.in and
all process described in MainScanner installation guide.

And, now, everything is fine and reliable... Most problems can be solved by
having a look to /var/log/mail

Hope that can help somebody...



More information about the MailScanner mailing list