Need EXIM expert to write a Router OR a Transport or both
-
I need to change the from address and the two address of specific email being handled by my EXIM service.
My requirements are:
- Determine if the message is from one of three allowed domains
- If yes, then determine if the message is being sent to our fax software.
- if yes, then
change the from address to the address our fax software will respond to
change the to address to the format our fax software knows how to handle
add some headers for our own tracking.
I've been trying with Router, but I think I may need to do it at transport or I may need both.
This is what I have tried:
my_router:
driver = redirect
domains = companya.org
data = ${local_part}@companyb.com
headers_remove = From
headers_remove = to
headers_add = "From: [email protected]"
headers_add = "To: ${local_part}@companyb"It's not working how I want, it is showing up at [email protected] with a from address of the original sender and a to address of the original to:
Help?!