procmail
[Top] [All Lists]

Trouble with deleting a message with /dev/null

2007-10-17 02:29:31
Hi everybody, i'm quite new to procmail and i have some troubles in setting
up a simple recipe to delete a message if it matches some conditions.

It is Procmail v. 3.22 on Linux Fedora Core 5, working alongside Postfix
2.2.8. 

Recipe is as follows:

 

:0

* ^From:(_dot_)*f\(_dot_)abeni(_at_)givi\(_dot_)it

* !^TO_(_dot_)*(_at_)domain\(_dot_)it

* !^TO_(_dot_)*(_at_)domain2\(_dot_)com

* !^TO_(_dot_)*(_at_)domain3\(_dot_)it

/dev/null

 

The log shows that the conditions ARE matched and the action taken, but the
message gets delivered anyway.

Please note that i apply this recipe to the global configuration file
(/etc/procmailrc) which is used if you call Procmail using the Postfix
"mailbox_command" parameter. 

I think the problem lies in the fact that - being at system level and not
user level - I need to trash the message AND to tell Postfix to stop
processing it.

Anybody has any suggestions?

 

Thank you for your time.

 

--

Francesco Abeni

f(_dot_)abeni(_at_)givi(_dot_)it

 

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