I have a situation where I need to change the sender address on email that
is received for specific hostnames.
I have a list of host that this would take place on...
attfax.domain.com
atttelex.domain.com
vsifax.domain.com
skytel.domain.com
pagenet.domain.com
attinvf.domain.com
attinvt.domain.com
Any email that arrives for these hosts needs to have its outgoing email
address changed and then sent to a specific host.
Example:
9182222222@??? ->
9182222222@attfax@???
It would then be sent to serverA.domain.com.
I know how to pickout the hosts put before the dnslookup router....
wierdroute:
driver = accept
domains = "partial-lsearch;/usr/local/exim4/wierdroutes"
transport = weird_route
no_more
But if I read the manual correctly, the transport cannot rewrite the
envelope address. Even if it could, I don't know how to get
9182222222@??? to be 9182222222@attfax@???.
Never done rewritting before.
Only the hosts listed would be treated like this.