<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">&lt;<a href="mailto:glenn.steen@gmail.com" target="_blank">glenn.steen@gmail.com</a>&gt;</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 &quot;Lock Type&quot;).<br>
<br>
I would think it fairly safe&amp;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 &lt;<a href="mailto:deivishome@gmail.com">deivishome@gmail.com</a>&gt; wrote:<br>
&gt; Hi Martin,<br>
&gt; this is a copy/pste from my mail.log:<br>
&gt; May 29 11:02:21 server postfix/cleanup[27995]: 19D6CDFD3F:<br>
&gt; message-id=&lt;<a href="mailto:201305290411.3.5607.30342.2445274@cog.lumata.com">201305290411.3.5607.30342.2445274@cog.lumata.com</a>&gt;<br>
&gt; May 29 11:02:21 server postfix/smtpd[27991]: disconnect from<br>
&gt; unknown[213.92.42.10]<br>
&gt; May 29 11:02:22 server MailScanner[24390]: New Batch: Scanning 1 messages,<br>
&gt; 4532 bytes<br>
&gt; May 29 11:02:22 server MailScanner[24390]: Virus and Content Scanning:<br>
&gt; Starting<br>
&gt; May 29 11:02:36 server MailScanner[24390]: Requeue: 19D6CDFD3F.AEAD7 to<br>
&gt; C6CEEDFD46<br>
&gt; May 29 11:02:36 server MailScanner[24390]: Uninfected: Delivered 1 messages<br>
&gt; May 29 11:02:36 server postfix/qmgr[3507]: C6CEEDFD46: from=&lt;&gt;, size=3885,<br>
&gt; nrcpt=1 (queue active)<br>
&gt; May 29 11:02:36 server postfix/qmgr[3507]: warning: C6CEEDFD46: message<br>
&gt; rejected: missing end record<br>
&gt; May 29 11:02:36 server postfix/qmgr[3507]: warning: saving corrupt file<br>
&gt; &quot;C6CEEDFD46&quot; from queue &quot;active&quot; to queue &quot;corrupt&quot;<br>
&gt; May 29 11:02:36 server MailScanner[24390]: Deleted 1 messages from<br>
&gt; processing-database<br>
&gt;<br>
&gt; Not all mails go to corrupt, for example if a mail comes to 1 person i<br>
&gt; handles well the first time, the next time it sends to corrupt, i am loosing<br>
&gt; the 60-75% in the corrupt queue, yesterday i had to stop MailScanner and<br>
&gt; reconfig headers_checks to bypass the problem till i find a solution because<br>
&gt; everything was working great.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; David<br>
&gt; 2013/5/30 Martin Hepworth &lt;<a href="mailto:maxsec@gmail.com">maxsec@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; what do the logs say for the messages in question?<br>
&gt;&gt; check the postfix logs and the mailscanner logs.<br>
&gt;&gt; Also try running mailscanner in debug mode (see the wiki)<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Martin Hepworth, CISSP<br>
&gt;&gt; Oxford, UK<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 30 May 2013 09:10, David Valin Alonso &lt;<a href="mailto:deivishome@gmail.com">deivishome@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt; i got a server runing ubuntu 10.04 lts x64 + postfix 2.10 + cyrus 2.2 +<br>
&gt;&gt;&gt; Mailscanner 4.84 + Spamassasin and all was working really great til a couple<br>
&gt;&gt;&gt; of days that began to send mails to corrupt folder<br>
&gt;&gt;&gt; /var/spool/postfix/corrupt. It complains about a missing record and it<br>
&gt;&gt;&gt; rejects the mail moving from active to corrupt queue.<br>
&gt;&gt;&gt; I don&#39;t know what happend and the configurations of postfix and<br>
&gt;&gt;&gt; mailscanner didn&#39;t change as it was working really great.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What could happened?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; David<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; MailScanner mailing list<br>
&gt;&gt;&gt; <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
&gt;&gt;&gt; <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Support MailScanner development - buy the book off the website!<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; MailScanner mailing list<br>
&gt;&gt; <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
&gt;&gt; <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
&gt;&gt;<br>
&gt;&gt; Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
&gt;&gt;<br>
&gt;&gt; Support MailScanner development - buy the book off the website!<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; MailScanner mailing list<br>
&gt; <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
&gt; <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
&gt;<br>
&gt; Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
&gt;<br>
&gt; Support MailScanner development - buy the book off the website!<br>
&gt;<br>
<br>
<br>
<br>
--<br>
</div></div>-- Glenn<br>
email: glenn &lt; dot &gt; steen &lt; at &gt; gmail &lt; dot &gt; com<br>
work: glenn &lt; dot &gt; steen &lt; at &gt; ap1 &lt; dot &gt; 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>