On 2014-08-18 6:19 pm, Timothy Murphy wrote:
> Mike Burger wrote:
> 
>>>> > What is the trick to get Postfix's local command to pipe mail through
>>>> > procmail?
> 
>>>> It's this simple:
>>>> 
>>>> Instead of putting a call to procmail in your .forward, first, set 
>>>> up
>>>> /etc/postfix/main.cf with the following line:
>>>> 
>>>> mailbox_command = /usr/bin/procmail
>>>> 
>>>> and reload postfix. Now, postfix will default to using procmail as 
>>>> its
>>>> local delivery agent.
>>>> 
>>>> Now, set up /etc/procmailrc like so:
>>>> 
>>>> USER=`whoami`
>>>> 
>>>> :0 fw
>>>> | spamc
>>>> 
>>>> :0 e
>>>> {
>>>>          EXITCODE=$?
>>>> }
> 
> 
>> My bad...no, you can skip the /etc/procmail recipe portion that calls
>> spamc...you don't need that.
> 
> So how would you pass the email through SpamAssassin, if you wanted to?

Run spamd, and include the spamc call that I listed, previously.
-- 
Mike Burger
http://www.bubbanfriends.org

"It's always suicide-mission this, save-the-planet that. No one ever 
just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to