On 6/18/2014 8:59 AM, Timothy Murphy wrote:
I'm running Postfix with dovecot, spamass-milter and SpamAssassin
on a CentOS-6.5 server.
At the moment I am sending spam to my spam folder ~/Maildir/.Spam/
with procmail, by appending
mailbox_command = /usr/bin/procmail -f- -a "$USER"
to /etc/postfix/main.cf .
This seems a little convoluted to me;
I'd prefer to send spam straight to the Spam folder
as soon as it is detected by SA.
Is this possible?
(I'm running postfix with amavis, dovecot and SA on another server,
and this doesn't seem to make any use of procmail.
However, I'm not keen on amavis and would prefer to avoid it if possible.)
In your current environment, SpamAssassin is just a true/false spam
detector. So using procmail as the delivery agent with a rule to filter
the mail is a fairly common Local Delivery Agent (or MDA). See
http://en.wikipedia.org/wiki/Mail_delivery_agent but essentially,
postfix is an Mail Transport Agent (MTA) and spamass-milter is a
mid-stream filter bolted onto the MTA. SA is an API called by the
milter. Dovecot really is more about how users check their mail and
likely isn't used for anything else in your environment.
So yes, in short, you need something to deliver the mail from postfix to
your local folders and procmail with it's filtering is a perfectly
viable solution. You can look into other LDAs but not sure what you
would gain.
regards,
KAM