Helllo,
i did set upo an autoresponder with procmail like the common way:
example:
:0hc
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: infobot_reply
* ^Subject:.*
| (formail -rt -A"Precedence: junk (autoreply)"\
-A"X-Loop: infobot_reply" ; \
cat $HOME/error_notice.txt) | $SENDMAIL -t
#end error handling section
This is in most cases working but not if mail came from mail@ adresses. in
procmaillog i found that regexp that stand behind FROM_DAEMON and
FROM_MAILER returns true if mail came from adress starting with mail@
procmail: No match on ! "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To:
Multiple recipients of
|(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>
][^<)]*(\(.*\).*)?)?$([^>]|$)))"
procmail: No match on !
"(^(((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]*)?[%@>
][^<)]*(\(.*\).*)?)?$([^>]|$))"
procmail is installed in version procmail-3.22-56 (suse linux)
i would like to change this behaviour, i want to exclude junk and other crap
etc. but include normal mail from mail@ adresses.
question is, how to do this the best way? i could change the regexp (if i
would found them) but there must be a common as meant by the developers.
Thanks,
Andre
____________________________________________________________
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