Might be best to have the scanner part running on a separate machine to the mail server. Reduces issues with performance queries but also means internal email (between your own users) doesnt get scanned which keeps performance up<div>
<br></div><div>Also means if the mailscanner bit fails uou can still transit internal email<span></span> <br><br>On Saturday, 30 November 2013, Armando Montiel  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Hi,</p>
<p dir="ltr">Thank you Martin.</p>
<p dir="ltr">You have pointed me to the right direction, but I would like to share why I never think in this value before:</p>
<p dir="ltr">My &quot;Delivery Method&quot; was in &quot;queue&quot;, so I was mind blocked about not change this parameter. I was convinced that this value have no relationship with my &quot;batch&quot; behavior. <br>
Another value hat was necessary to change was not in MailScanner but <a href="http://master.cf" target="_blank">master.cf</a> in Postfix:</p>
<p dir="ltr">cleanup, flush, pickup and qmgr values was setup to &quot;unix&quot;, but the new delivery method was unable to handle. I need to change qmgr value to &quot;fifo&quot; in order to get this working.</p>
<p dir="ltr">Now I have delays with less than 20 seconds, which is pretty good, but I dont know already if this will handle my users the next monday.</p>
<p dir="ltr">I will investigate which &quot;fifo|unix&quot; values have better performance under Postfix and a heavy imap usage under Cyrus-imapd.</p>
<p dir="ltr">Thank you again.<br>
</p>
<div class="gmail_quote">El nov 29, 2013 3:53 PM, &quot;Martin Hepworth&quot; &lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;maxsec@gmail.com&#39;);" target="_blank">maxsec@gmail.com</a>&gt; escribió:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Batch is the clue word there specifically the setting is <a href="http://www.mailscanner.info/MailScanner.conf.index.html#Delivery%20Method" target="_blank">http://www.mailscanner.info/MailScanner.conf.index.html#Delivery%20Method</a><div>


<br><div>This is how is should work in batches but a 5 min interval isnt right</div><div><br></div><div>I&#39;d check the setting to call the second mta (sendmail2) setting is correct</div><div><br></div><div>Martin<span></span><br>


<br>On Friday, 29 November 2013, Armando Montiel  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"><br>
Hi,</p>
<p dir="ltr">I am using a mail server solution where MailScanner is used with postfix + cyrus-imapd.</p>
<p dir="ltr">Any clue about why this combination of software spends 300 seconds (5 minutes) to process and deliver email?</p>
<p dir="ltr">This is like my server take a look in the queue and process this in a batch way, not individually.</p>
<p dir="ltr">The best time I get in this scenario is when a email is received in the queue 15 or 20 seconds before the last processing cycle of 5 minutes has been performed.</p>
<p dir="ltr">Sometime in the past this didn&#39;t happened but I am lost looking for a possible reason.</p>
<p dir="ltr"> Which MailScanner variables could make this effect?</p>
<p dir="ltr">Thank you.</p>
</blockquote></div></div><br><br>-- <br>-- <br>Martin Hepworth, CISSP<br>Oxford, UK<br>
<br>--<br>
MailScanner mailing list<br>
<a href="javascript:_e({}, &#39;cvml&#39;, &#39;mailscanner@lists.mailscanner.info&#39;);" target="_blank">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></blockquote></div>
</blockquote></div><br><br>-- <br>-- <br>Martin Hepworth, CISSP<br>Oxford, UK<br>