Remove recipient when message is from specific domain
Imagine that you want to block a message to one of your employees, but only if the email is from a specific domain. You cannot use the Block Message action because it would block the message to other recipients as well. A better solution is to use the Remove Envelope Recipient action which silently removes email addresses.
After quickly defining new rule, we go straight to the actions, choosing Remove Envelope Recipient action from menu.
Envelope recipient(s) can be deleted by wildcards, regular expression or plain email address. I’ll call my unlucky guy jeff at example.net.
Now a Message Sender condition is needed, because we want to remove the recipient only from messages which were sent from e.g. @gmail.com.
So, after those two simple steps from now Jeff will never receive any email from gmail.com.
Maybe you have some other ideas on how to make life more enjoyable for your employees? Try MSH Traffic Policy, it’s a powerful tool for Postfix.
To learn more visit MSH Traffic Policy website.