DevHeads.net

Postings by Liebeskind Uri (luri)

Mail routing depending on subject or body

Hello,

we will install an mail encryption appliance (totemo) in our organization.

I have to configure Postfix (2.6.6) to route the emails to this appliance if certain conditions apply:

For outbound mail:
RULE 1. If the subject contains the string "#secure"
This indicates that the mail has to be encrypted and that it has to be passed to the ip-address of the encryption appliance.
The appliance will encrypt the mail, remove the string from the subject and pass it back to the mx-er.

For inbound mail:
RULE 2.