procmail
[Top] [All Lists]

whitelists based on domain only

2003-11-19 01:25:02
I have been doing a lot of whitelist checking from procmailrc, prior to
handing the remainder of my mail to SpamAssassin, e.g.:

  :0 H
  * ^From:.*(tidbits.com|wordsmith.org|yahoogroups.com|nasa.gov)
  $DEFAULT

  :0 H
  * ^TO_notify(_at_)fridayfive(_dot_)org
  $DEFAULT


However, I would much prefer to maintain my whitelists as lists, in a file
separate from .procmailrc

I googled and found several references to using formail and grep as (for
example)

  :0
   * ? formail -x"From" -x"From:" -x"Sender:" \
       -x"Reply-To:" -x"Return-Path:" -x"To:" \
       | egrep -is -f ${FILTERDIR}/whitelist
   ${DEFAULT}

formail hands me the full address in the To: or From: or Whatever: field


Is there a recommended convention for grepping a whitelist of only domains,
not addresses (without continuing to resort to placing these into my
.procmailrc directory as I have been doing)?
-- 
- Vicki

Vicki Brown      ZZZ                Journeyman Sourceror:
P.O. Box 1269       zz  |\     _,,,---,,_      Scripts & Philtres
San Bruno, CA 94066  zz /,`.-'`'    -.  ;-;;,_     Perl, Unix, MacOS
http://www.cfcl.com    |,4-  ) )-,_. ,\ ( `'-' http://www.cfcl.com/vlb
____________________  '---''(_/--'  `-'\_)  ____________________________


_______________________________________________
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>