procmail
[Top] [All Lists]

Re: procmailrc and spamassassin and aliases

2004-04-01 20:11:41
Aaron P. Lopez wrote:

 I am having my /etc/procmailrc filter all local email accounts for spam
and, it does a fine job. But, since procmail is a local delivery agent,
my aliases are processed by sendmail and not procmail and hence the
aliases are not filtered for spam. How can I have entries in
/etc/aliases, like, 'doe:jdoe(_at_)localhost,jdoe(_at_)yahoo(_dot_)com' and 
have both
filtered for spam? I want it to behave the same way when a .procmailrc
file is put in a user's home directory and the aliases are put in there.
I would prefer to keep all of the aliases in /etc/aliases. Can this be
done?

Never having administered a system, I haven't tried this and cannot test it, but you might be able to define the alias in /etc/aliases like this:

doe: "|/usr/local/bin/procmail -a doe -d nobody"

and in /etc/procmailrc (since "nobody" probably has an invalid home directory),

ARG1=$1

:0
* ARG1 ?? ^^doe^^
* LOGNAME ?? ^^nobody^^
{
 DROPPRIVS=yes

 :0
 ! jdoe jdoe(_at_)yahoo(_dot_)com
}

People with admin rights on their systems who can try it out or who have done it are encouraged to post the requisite corrections.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>