On 20.02.2015 15:46, Zhiliang Hu wrote:
I have a recipe to sack all maildaemon mails to a file:
:0 H
*
^FROM_DAEMON|^FROM_MAILER|^From:.*(MAILER-DAEMON|spam_master|postmaster|ait-admin|Mail
Delivery|bounce@)|^To:.*-request
* ^Subject:.*(Error Condition|DELIVERY FAILURE|Delivery Status
Notification|Delivery delayed|Returned mail|Undeliverable|failure
notice|Warning: could not send message)
Mailerror
Looks like the ^To match should be on a separate line, not part of the
From match.
If that doesn't work I suggest you enable logging and check each match
separately to see which one fails.
--
Klaus Johannes Rusch
klausrusch(_at_)atmedia(_dot_)net
http://klausrusch.atmedia.net/
____________________________________________________________
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