I'm new to procmail so be gentile :^). I'm trying to cook a receipe that only
accepts email from my authorized list of addresses.
In my receipe I have:
INCLUDERC=$PMDIR/authorized_addrs
REJFILE=$PMDIR/rejected_addrs
...
:0
* ^(From:|Sender:|Reply-To:)${AUTHLIST}
...
authorized_addrs file contains:
AUTHLIST=('Don(_dot_)Caprio(_at_)bankofamerica(_dot_)com|caprio|bankamerica.com|bankofamerica.com|dcms.com|uxpro.com|Caprio|Don')
The procmail log:
procmail: Assigning "INCLUDERC=/home/dcaprio/.procmail/auth-emails-only.rc"
procmail: Assigning "INCLUDERC=/home/dcaprio/.procmail/authorized_addrs"
procmail: Assigning
"AUTHLIST=(*(_at_)bankofamerica\(_dot_)com|caprio|*dcms\.com|*uxpro\.co
m|Caprio|Don)"
procmail: Assigning "REJFILE=/home/dcaprio/.procmail/rejected_addrs"
procmail: Assigning "PASSWD_=MeNotSPAM"
procmail: Executing "date,+%Y%m%d"
procmail: Assigning "DATE=20011024"
procmail: Executing "formail,-zxSubject:"
procmail: Assigning "SUBJ=Proc mail auth test"
procmail: Executing "formail,-rtzxTo:"
procmail: Assigning "FROM=caprio"
procmail: Assigning "FROMLOG=/home/dcaprio/.procmail/from.log"
procmail: Assigning "USER=caprio"
procmail: No match on "^Subject:.*MeNotSPAM"
procmail: No match on "^(From:|Sender:|Reply-To:)${AUTHLIST}"
procmail: Match on ! "^(From:|Sender:|Reply-To:)${AUTHLIST}"
procmail: Assigning "LASTFOLDER=/home/dcaprio/.procmail/junk"
procmail: Opening "/home/dcaprio/.procmail/junk"
...
Looking a the log it looks like the AUTHLIST variable doesn't get
expanded (No match on "^(From:|Sender:|Reply-To:)${AUTHLIST}").
Two Questions:
1) Is this a reasonable way to do an authorized only type of list,
or is there an existing package/receipe out there somewhere?
2) Why isn't the AUTHLIST variable getting expanded? Or is it and
just isn't reflected in the log file? If the AUTHLIST variable
if OK then why won't I get a match?
Thanks for your help.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail