procmail
[Top] [All Lists]

Adjusting FROM_DAEMON

2009-04-17 14:31:50
I'm running mailing lists with Smartlist, and running into valid emails addresses that get caught by the FROM_DAEMON regexp.

For example, markdavid(_at_)hushmail(_dot_)com, or 
mark91010-mail(_at_)yahoo(_dot_)com(_dot_)

Looks like FROM_DAEMON expands to (^(((Resent-)?(From|Sender)|X- Envelope-From):|>?From )([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma(st(er)?|n)| office)|(send)?Mail(er)?|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)? smtp(error)?|s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a- z0-9][-_a-z0-9]*)?[%@> ][^<)]*(\(.*\).*)?)?$([^>]|$))|^(((Resent-)? (From|Sender)|X-Envelope-From):|>?From )([^>]*[^((_dot_)%(_at_)a-z0-9])? (LIST(SERV|proc)|NETSERV|bounce|autoanswer|echo|mirror)(([^).!:a-z0-9] [-_a-z0-9]*)?[%@> ][^<)]*(\(.*\).*)?)?$([^>]|$)

so my first thought is to tweak this regular expression, and then replace FROM_DAEMON with my new version in the Procmail recipe. That way I won't have to touch the Procmail source code.

If you have any wisdom your want to share on this endeavor, or have tweaked this yourself, I'm all ears.

Thanks

mark
____________________________________________________________
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>