<div dir="ltr"><div><div><div><div><div><div>Hi Glenn,<br><br></div>i think i am using fifo lock if you mean the qmgr line:<br></div>qmgr fifo n - n 300 1 qmgr<br><br></div>So the correct lock type in mailscanner.conf for postfix 2.10 should be flock or posix??<br>
<br></div>Thanks for your reply.<br><br></div>Regards,<br><br></div>David<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/7 Glenn Steen <span dir="ltr"><<a href="mailto:glenn.steen@gmail.com" target="_blank">glenn.steen@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello David,<br>
<br>
This problem you have may be stemming from the change of locking<br>
scheme in Postfix 2.10. It was also a problem (in the past) when we<br>
did the two-postfix deferred queue thing to implement MailScanner<br>
(prior to the hold queue thing we usually do now).<br>
Check wether your postfix is using fifo or unix locks in <a href="http://master.cf" target="_blank">master.cf</a>,<br>
and consider going back to fifo in that (with appropriat restart of<br>
Postfix afterwards, of course)... OR change MailScanner.conf<br>
accordingly and restart MailScanner (setting is "Lock Type").<br>
<br>
I would think it fairly safe&easy to do the PF change.<br>
<br>
Cheers<br>
--<br>
-- Glenn<br>
<div><div class="h5"><br>
On 31 May 2013 09:18, David Valin Alonso <<a href="mailto:deivishome@gmail.com">deivishome@gmail.com</a>> wrote:<br>
> Hi Martin,<br>
> this is a copy/pste from my mail.log:<br>
> May 29 11:02:21 server postfix/cleanup[27995]: 19D6CDFD3F:<br>
> message-id=<<a href="mailto:201305290411.3.5607.30342.2445274@cog.lumata.com">201305290411.3.5607.30342.2445274@cog.lumata.com</a>><br>
> May 29 11:02:21 server postfix/smtpd[27991]: disconnect from<br>
> unknown[213.92.42.10]<br>
> May 29 11:02:22 server MailScanner[24390]: New Batch: Scanning 1 messages,<br>
> 4532 bytes<br>
> May 29 11:02:22 server MailScanner[24390]: Virus and Content Scanning:<br>
> Starting<br>
> May 29 11:02:36 server MailScanner[24390]: Requeue: 19D6CDFD3F.AEAD7 to<br>
> C6CEEDFD46<br>
> May 29 11:02:36 server MailScanner[24390]: Uninfected: Delivered 1 messages<br>
> May 29 11:02:36 server postfix/qmgr[3507]: C6CEEDFD46: from=<>, size=3885,<br>
> nrcpt=1 (queue active)<br>
> May 29 11:02:36 server postfix/qmgr[3507]: warning: C6CEEDFD46: message<br>
> rejected: missing end record<br>
> May 29 11:02:36 server postfix/qmgr[3507]: warning: saving corrupt file<br>
> "C6CEEDFD46" from queue "active" to queue "corrupt"<br>
> May 29 11:02:36 server MailScanner[24390]: Deleted 1 messages from<br>
> processing-database<br>
><br>
> Not all mails go to corrupt, for example if a mail comes to 1 person i<br>
> handles well the first time, the next time it sends to corrupt, i am loosing<br>
> the 60-75% in the corrupt queue, yesterday i had to stop MailScanner and<br>
> reconfig headers_checks to bypass the problem till i find a solution because<br>
> everything was working great.<br>
><br>
> Regards,<br>
><br>
> David<br>
> 2013/5/30 Martin Hepworth <<a href="mailto:maxsec@gmail.com">maxsec@gmail.com</a>><br>
>><br>
>> what do the logs say for the messages in question?<br>
>> check the postfix logs and the mailscanner logs.<br>
>> Also try running mailscanner in debug mode (see the wiki)<br>
>><br>
>> --<br>
>> Martin Hepworth, CISSP<br>
>> Oxford, UK<br>
>><br>
>><br>
>> On 30 May 2013 09:10, David Valin Alonso <<a href="mailto:deivishome@gmail.com">deivishome@gmail.com</a>> wrote:<br>
>>><br>
>>> Hello,<br>
>>> i got a server runing ubuntu 10.04 lts x64 + postfix 2.10 + cyrus 2.2 +<br>
>>> Mailscanner 4.84 + Spamassasin and all was working really great til a couple<br>
>>> of days that began to send mails to corrupt folder<br>
>>> /var/spool/postfix/corrupt. It complains about a missing record and it<br>
>>> rejects the mail moving from active to corrupt queue.<br>
>>> I don't know what happend and the configurations of postfix and<br>
>>> mailscanner didn't change as it was working really great.<br>
>>><br>
>>> What could happened?<br>
>>><br>
>>> Regards,<br>
>>><br>
>>> David<br>
>>><br>
>>> --<br>
>>> MailScanner mailing list<br>
>>> <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
>>> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
>>><br>
>>> Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
>>><br>
>>> Support MailScanner development - buy the book off the website!<br>
>>><br>
>><br>
>><br>
>> --<br>
>> MailScanner mailing list<br>
>> <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
>> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
>><br>
>> Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
>><br>
>> Support MailScanner development - buy the book off the website!<br>
>><br>
><br>
><br>
> --<br>
> MailScanner mailing list<br>
> <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
><br>
> Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
><br>
> Support MailScanner development - buy the book off the website!<br>
><br>
<br>
<br>
<br>
--<br>
</div></div>-- Glenn<br>
email: glenn < dot > steen < at > gmail < dot > com<br>
work: glenn < dot > steen < at > ap1 < dot > se<br>
<div class="HOEnZb"><div class="h5">--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
</div></div></blockquote></div><br></div>