How do I create a procmail recipe that will filter mail from user 1 to user 2 and send them to /dev/null, then send whatever remains to user 3?

Updated -

It sounds like this request wants to grab all messages that fit the from user 1 to user 2 criteria and send them to /dev/null, then send whatever remains to user 3. The below script should do that, as procmail generally stops at the first matching criteria, so it should grab user 1 to user 2 emails and kill them, failing that it will forward all mail to user 3.

:0

 *^From.user1...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.