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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content