<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Marcelo,<br><br></div>Could you please check the following:<br><br></div>ps -ef |egrep "postfix|clamd"<br><br></div>depending on the result, check the user running postfix and clamd with something like:<br></div>id postfix<br></div>id clamav<br></div>change the users as needed/found in the ps listing.<br><br></div>This will show what your MailScanner.conf settings need be for both clamd and postfix to be able to access the incoming work directory. The theory is quite simple, just set the user to the one needed by the postfix processes, and the group to match the clamd one.<br></div>Now, stop Mailscanner the ususal way, and use chown to change the actual ownership on the actual files&directories. Something like<br></div>chown -R postfix.clamscan /var/spool/MailScanner/<wbr>incoming<br></div>(adjust as neede, of course)<br></div>Start Mailscanner the usual way, and try sending a messege through... Other things to check:<br></div>The permissions on the SpamAssassin directory (either you use the ~postfix/.spamassassin, or /var/spool/MailScanner/<wbr>spamassassin ... or both... it all depends...:))<br></div>Permissions on the quarantine directory<br></div>Permissions on the configuration files (remember that MailScanner has to run as the postfix user, so all tests, like debugging and linting need be done as that user! "su - postfix -s /bin/bash" is your friend... You might need do a "sudo -i " first;-)).<br><br></div>Cheers!<br>-- <br></div>-- Glenn<br><div><div><div><div><div><div><div><br><div><br></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-23 10:43 GMT+01:00 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"><div dir="auto">Actually, unless the OP has done something to the user/group setup, this is simply a case of malconfihuration...:-) <div dir="auto"><br></div><div dir="auto">Looking at my 16.04 install, postfix runs as user postfix with group postfix, and I wouldn't even hazard a guess at whst clamd is running as... These things should be checked, and the MS config made to comply (use ps to learn more:), and fix any errors with chown (with MS/postfix shut down)... After that, things should start working;-) </div><div dir="auto"><br></div><div dir="auto">Cheers</div><span class="HOEnZb"><font color="#888888"><div dir="auto">-- </div><div dir="auto">-- Glenn </div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">Den 22 jan. 2017 7:40 em skrev "Mark Sapiro" <<a href="mailto:mark@msapiro.net" target="_blank">mark@msapiro.net</a>>:<br type="attribution"><blockquote class="m_4275700383161476034quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_4275700383161476034quoted-text">On 01/22/2017 10:32 AM, Marcelo Machado wrote:<br>
><br>
> I work with some Ubuntu servers with MailScanner installed and I<br>
> noticed right now that this error does not occur in version 14.04, but<br>
> only in version 16.04.<br>
<br>
<br>
</div>Which makes it likely that the issue is with apparmor.<br>
<div class="m_4275700383161476034elided-text"><br>
--<br>
Mark Sapiro <<a href="mailto:mark@msapiro.net" target="_blank">mark@msapiro.net</a>> The highway is for gamblers,<br>
San Francisco Bay Area, California better use your sense - B. Dylan<br>
<br>
<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<wbr>info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/<wbr>mailman/listinfo/mailscanner</a><br>
<br>
</div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">-- Glenn<br>email: glenn < dot > steen < at > gmail < dot > com<br>work: glenn < dot > steen < at > ap1 < dot > se</div>
</div>