procmail
[Top] [All Lists]

Re: if from mydomain.com pass on

2006-05-15 04:32:28
Paul Matthews schreef:

i'm looking for a rule in procmail that says, 'If from 
*(_at_)mydomain(_dot_)com
then don't pass it onto spamassassin, just send it to the users
inbox'. 

You should use "example.com" for examples. See `whois MYDOMAIN.COM`. 


this is my current /home/username/.procmailrc file

  LOGFILE=$HOME/procmail.log

  DROPPRIVS=yes

Remove that DROPPRIVS-line, it doesn't belong in a user's .procmailrc. 


  :0fw

I would insert a condition here, like 

  * ! ^From( )[^(_at_)]+@example\.com( )

but you should understand that even the envelope-from is easily faked. 

-- 
Groet, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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