<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">These are the primary things I check for when dealing with this problem:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
1. Selinux. Put in permissive and then build custom policies. Return to enforcing.</div><div style="font-family:arial,sans-serif;font-size:13px">2. MailScanner Run As and directory ownership and permissions.</div><div style="font-family:arial,sans-serif;font-size:13px">
3. MailScanner store messages as user matches permissions.</div><div style="font-family:arial,sans-serif;font-size:13px">4. Making sure you add the -U option to MailScanner for the newer versions of perl. </div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>sed -i &#39;s:#!/usr/bin/perl -I:#!/usr/bin/perl -U -I:g&#39; /usr/sbin/MailScanner</div><div><br></div><div style>Also regarding permissions, I personally like to create an extra group and then add postfix and clamav to that group. I then use that group in all settings and use group writeable permissions. (0660)</div>
<div style><br></div><div style>YMMV</div><div style><br></div><div style><br></div><div>Jerry Benton</div><div><br></div><div><br></div><div style>PS..  run MailScanner --lint and post here if the above does not help.</div>
<div style><br></div><div style><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 27, 2013 at 8:16 PM, Alessandro Dentella <span dir="ltr">&lt;<a href="mailto:sandro@e-den.it" target="_blank">sandro@e-den.it</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">While trying to debug why MailScanner does not save messages in<br>
/var/spool/mailScanner/qurantine I compared 2 almost identical machines.<br>
One is working correctly (efa) and from that machine I copied MailScanner<br>
conf to the other (smtp):<br>
<br>
  smtp# cd /etc<br>
  smtp# mv MailScanner MailScanner.orig<br>
  smtp# rsync -a efa:/etc/MailScanner .<br>
<br>
then restarted MailScanner<br>
<br>
While &#39;efa&#39; saves correctly messages &#39;smtp&#39; does not.<br>
My uderstanding of how MailScanner works is probably wrong since otehrwise<br>
they should both work.<br>
<br>
The onlu difference between efa and smtp is in postfix configuration.<br>
<br>
My understanding is that postfix puts on HOLD via the header_checks =<br>
regexp:/etc/postfix/header_checks (/var/spool/postfix/hold/) and from there<br>
MailScanner read the message, clean and take any needed action.<br>
<br>
If this is correct no other agent apart from MailScanner are responsible for<br>
copying from postfix/hold to MAilScanner/quarantine.<br>
<br>
So, How could possibily behave different on 2 identical machines?<br>
<br>
sandro<br>
*:-)<br>
<span class="HOEnZb"><font color="#888888">--<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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div><br>--<br></div>Jerry Benton<br></div>Mailborder Systems<br><a href="http://www.mailborder.com" target="_blank">www.mailborder.com</a><br>
</div>
</div>