How can I forward certain emails based on header information with Postfix?
Posted
by Jason Novinger
on Server Fault
See other posts from Server Fault
or by Jason Novinger
Published on 2010-04-08T15:29:19Z
Indexed on
2010/04/08
15:33 UTC
Read the original article
Hit count: 154
We receive service requests via a particular email. The request is then forwarded to other addresses, using an entry in virtual_alias_maps. Upon seeing the word "EMERGENCY" in the subject line of a request to this email, I would also like to forward this to another address (an alias of our administrator's SMS email addresses).
I think I can accomplish this with header checks and the REDIRECT command. However, REDIRECT only sends it to the redirected address, not the forwarded addresses. In the case of "EMERGENCY" I would like it to go to the redirect address and the original forwarded addresses.
I am fairly new to Postfix and I feel like I am missing something here. Any suggestions?
© Server Fault or respective owner