MailScanner issue with postfix

Sylvain MEDEOT symedeot at YAHOO.FR
Mon Jun 30 16:22:07 IST 2003


But, do you have /var/spool/postfix and /var/spool/postfix.in created ?
If so, once starting the Postfix processes, all sub-directories inside
these directories should be created on the fly...

Can you do a
ls -l /var/spool
ls -l /var/spool/postfix
ls -l /var/spool/postfix.in


On Mon, 30 Jun 2003 17:08:49 +0200, Angela Schwalm <aschwalm at WEB.DE> wrote:

>MailScanner mailing list <MAILSCANNER at JISCMAIL.AC.UK> schrieb am 30.06.03
16:30:51:
>>
>> Of course I will help you...
>>
>> Basically, I solved the initial problem but another comes in...
>>
>> From what I've read from your mails, it seems that MailScanner does
nothing
>> with your /var/spool/postfix.in...
>>
>> And that's very strange !
>>
>> I followed the installation guide which is quite good... Anyway, it
appears
>> that the version of Postfix I use was a little bit old and was not
creating
>> directories structure bases on the first characters from each mail names.
>>
>> Thanks to Julian's help, the solution was to add the following lines
>> in /etc/postfix/main.cf :
>>
>> queue_directory = /var/spool/postfix
>> hash_queue_depth = 1
>> hash_queue_names = incoming
>>
>> and in /etc/postfix.in/main.cf :
>>
>> queue_directory = /var/spool/postfix.in
>> hash_queue_depth = 1
>> hash_queue_names = deferred
>>
>> After doing this, you should stop your postfix processes and
>> remove /var/spool/postfix and /var/spool/postfix.in
>>
>> Then, mkdir /var/spool/postfix /var/spool/postfix.in
>>
>> and
>>
>> postfix -c /etc/postfix.in start
>> postfix -c /etc/postfix.in check
>> postfix -c /etc/postfix start
>> postfix -c /etc/postfix check
>>
>>
>> And finally, check_MailScanner
>>
>> Carefully read you logs to see if any problem...
>>
>> On mine :
>>
>> Jun 30 15:32:02 intranet postfix-script: starting the Postfix mail system
>> Jun 30 15:32:02 intranet postfix/master[4565]: daemon started
>> Jun 30 15:32:03 intranet postfix-script: starting the Postfix mail system
>> Jun 30 15:32:03 intranet postfix/master[4594]: daemon started
>> Jun 30 15:32:04 intranet MailScanner[4614]: MailScanner E-Mail Virus
>> Scanner version 4.21-9 starting...
>> Jun 30 15:32:04 intranet MailScanner[4614]: Using locktype = flock
>> Jun 30 15:32:14 intranet MailScanner[4619]: MailScanner E-Mail Virus
>> Scanner version 4.21-9 starting...
>> Jun 30 15:32:14 intranet MailScanner[4619]: Using locktype = flock
>> Jun 30 15:32:16 intranet postfix/smtpd[4620]: connect from
si01.inf.ville-
>> pontoise.fr[130.0.10.1]
>> Jun 30 15:32:17 intranet postfix/smtpd[4620]: F30B85B84F:
>> client=si01.inf.ville-pontoise.fr[130.0.10.1]
>> Jun 30 15:32:17 intranet postfix/cleanup[4621]: F30B85B84F: message-
>> id=<033d01c33f0c$f5785f90$010a0082 at PCSI01>
>> Jun 30 15:32:17 intranet postfix/smtpd[4620]: disconnect from
>> si01.inf.ville-pontoise.fr[130.0.10.1]
>> Jun 30 15:32:17 intranet postfix/qmgr[4570]: F30B85B84F:
>> from=<si01 at intranet.ville-pontoise.fr>, size=1402 (queue active)
>> Jun 30 15:32:17 intranet postfix/qmgr[4570]: F30B85B84F:
>> to=<si01 at intranet.ville-pontoise.fr>, relay=none, delay=0,
status=deferred
>> (deferred transport)
>> Jun 30 15:32:19 intranet MailScanner[4619]: Postfix queue structure is
>> depth 1
>> Jun 30 15:32:19 intranet MailScanner[4619]: New Batch: Scanning 1
messages,
>> 1553 bytes
>> Jun 30 15:32:19 intranet MailScanner[4614]: Postfix queue structure is
>> depth 1
>> Jun 30 15:32:19 intranet MailScanner[4619]: Virus and Content Scanning:
>> Starting
>> Jun 30 15:32:20 intranet MailScanner[4619]: Uninfected: Delivered 1
messages
>>
>> And yes, it works and my emails are now scanned... But some mails sent
were
>> never delivered...
>>
>> Then, after a few minutes, the system hangs up... The only strange things
>> found in the logs are :
>>
>> 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
>>
>> Well, I don't know where to look...
>>
>>
>> On Mon, 30 Jun 2003 13:46:47 +0100, Angela Schwalm <aschwalm at WEB.DE>
wrote:
>>
>> >Congartulations!
>> >
>> >Could you give me some help please?
>> >Did you insatll your MailScanner like described in "MailScanner
>> >Insatllation Guide - Postfix" which is on the MailScanner homepage?
>> >
>> >Angela
>
>Oh great, MailScanner did some log entries!
>
>Jun 30 16:59:47 xxxx MailScanner[15773]: Cannot cd to
dir /var/spool/postfix.in/deferred to read messages, No such file or
directory
>Jun 30 16:59:48 xxxx MailScanner[15777]: Cannot cd to
dir /var/spool/postfix.in/deferred to read messages, No such file or
directory
>Jun 30 16:59:49 xxxx MailScanner[15791]: Cannot cd to
dir /var/spool/postfix.in/deferred to read messages, No such file or
directory
>Jun 30 17:00:15 xxxx postfix/master[15673]: warning:
master_wakeup_timer_event: service public/qmgr: No such file or directory
>Jun 30 17:00:15 xxxx postfix/master[15673]: warning:
master_wakeup_timer_event: service private/tlsmgr: No such file or directory
>Jun 30 17:00:15 xxxx postfix/master[15673]: warning:
master_wakeup_timer_event: service public/pickup: No such file or directory
>Jun 30 17:00:27 xxxx postfix/master[15753]: warning:
master_wakeup_timer_event: service public/qmgr: No such file or directory
>Jun 30 17:00:27 xxxx postfix/master[15753]: warning:
master_wakeup_timer_event: service private/tlsmgr: No such file or directory
>Jun 30 17:00:27 xxxx postfix/master[15753]: warning:
master_wakeup_timer_event: service public/pickup: No such file or directory
>
>___________________________________________________________________________
_
>Nur bei WEB.DE Testsieger FreeMail testen und damit 1 qm Regenwald
>schuetzen. Jetzt anmelden und mithelfen! http://user.web.de/Regenwald



More information about the MailScanner mailing list