To anyone out there who was watching the last
threads about address rewriting of outgoing
intranet mail...
I finally found the sollution!
It's realy simple... I just remove the From-field
at remote transport time and put back a new one
with the correct/valid outside mail address!
Of course you can do so for other fields like
Reply-To and so on... But for me it seems to be
ok like this...
remote_smtp:
driver = smtp,
remove_headers = "From",
add_headers = "From:
${lookup{$sender_address_local_part}lsearch{/etc/exim/smtp_rewrite}{$value}{$sender_address}}";
And you have a file /etc/exim/smtp_rewrite like:
userx: x@???
usery: y@???
...
That's it folks!
by(e)
Torsten
--
*** Exim information can be found at
http://www.exim.org/ ***