<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><font size="2" class=""><span style="color: rgb(71, 75, 81); background-color: rgb(255, 255, 255);" class="">Following the steps in the Perfect Server series, I created an Ubuntu system running </span><span style="color: rgb(71, 75, 81); background-color: rgb(255, 255, 255);" class="">amavisd-new (</span><font color="#474b51" class="">spamassassin installed), postfix, and dovecot. </font><span style="color: rgb(71, 75, 81); background-color: rgb(255, 255, 255);" class="">amavisd-new brings a cron job (/etc/cron.d/amavisd-new), which runs /usr/sbin/amavisd-new-cronjob every 3 hours as user 'amavis'. Changing the sa-sync and sa-clean actions to invoke sa-learn with --spam and --ham options (e.g., "--spam /var/vmail/*/*/Maildir/.Junk/*/*", "--ham /var/vmail/*/*/Maildir/cur/*") is simple. However, /var/vmail is vmail:vmail 700.</span></font></div><div class=""><font size="2" class=""><br class=""></font></div><font size="2" class=""><br style="color: rgb(71, 75, 81);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><font color="#474b51" class="">Should amavisd be operated against /var/vmail? Are the spam and ham options needed for the sa-learn? Assuming the answer to these to questions is yes, what is the best way to integrate:</font></span><br style="color: rgb(71, 75, 81);" class=""></font><ol style="margin: 1em 0px 1em 3em; padding: 0px; color: rgb(71, 75, 81);" class=""><li style="margin: 0px; padding: 0px; list-style: decimal outside;" class=""><font size="2" class="">run amavisd-new-cronjob as vmail instead of amavis?</font></li><li style="margin: 0px; padding: 0px; list-style: decimal outside;" class=""><font size="2" class="">run amavisd-new-cronjob as root instead of amavis?</font></li><li style="margin: 0px; padding: 0px; list-style: decimal outside;" class=""><font size="2" class="">figure out how the make /var/vmail vmail:amavis 750 for all adds/changes done via ISPConfig?</font></li></ol><div class=""><font size="2" class=""><br class=""></font></div><div class=""><font size="2" class="">Question also posted at <a href="https://www.howtoforge.com/community/threads/sa-learn-how-to-resolve-permission-issue.73056/" class="">https://www.howtoforge.com/community/threads/sa-learn-how-to-resolve-permission-issue.73056/</a></font></div><div class=""><br class=""></div></body></html>