Hi.
I am trying to rewrite the *from* and *sender* headers to remove the
hostname, leaving just the domain name, only on outbound mail.
Here are the related parts of my configuration.
begin routers
mail_relay:
driver = manualroute
domains = !+local_domains
transport = remote_smtp
route_list = * our.smtpserver.com
begin transports
remote_smtp:
driver = smtp
headers_rewrite = [EMAIL PROTECTED] [EMAIL PROTECTED] fs
So far as I can tell, this is exactly how the docs say to do it,
but the *headers_rewrite* rule is having no effect. If I put
[EMAIL PROTECTED] [EMAIL PROTECTED] fs
in the global "begin rewrite" section, the *exim -brw* test indicates
that my rewrite syntax is correct.
$ exim -brw [EMAIL PROTECTED]
sender: [EMAIL PROTECTED]
from: [EMAIL PROTECTED]
to: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
reply-to: [EMAIL PROTECTED]
env-from: [EMAIL PROTECTED]
env-to: [EMAIL PROTECTED]
Why would the headers_rewrite rule have no effect? It is not removing
the hostname.
Any help would be appreciated.
I am running exim-4.67 on BSD.
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/