Requirement: Forward most email except for:
1) a set of known email addresses, preferably listed in a file
external to procmail
2) * !^FROM_MAILER
3) * !^FROM_DAEMON
4) spam (to /dev/null)
everything that meets the conditions of the above recipe gets forwarded.
I think the MAILER, DAEMON, X-Loop and spam filters are readily
available/glommable from various sources, but I'm stumped on how to
easily maintain an external file that lists a number of non-forwardable
email addresses (these could potentially be unique). Ideal file format
would be one address per line.
I've gotten as far as:
echo `cat email.lst` | sed -e 's/ /\|/g'
where email.lst contains something like:
thinking that I would come up with a recipe condition (ultimately)
* !^FROM_ .*
any pointers, tips, hints are greatly appreciated.