Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sa-learn - how to resolve permission issue

23 views
Skip to first unread message

Bill Keenan

unread,
May 16, 2016, 9:11:31 PM5/16/16
to
Following the steps in the Perfect Server series, I created an Ubuntu system running amavisd-new (spamassassin installed), postfix, and dovecot. 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.


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:
  1. run amavisd-new-cronjob as vmail instead of amavis?
  2. run amavisd-new-cronjob as root instead of amavis?
  3. figure out how the make /var/vmail vmail:amavis 750 for all adds/changes done via ISPConfig?


0 new messages