Re: Fw: Exim4 Sender Address Rewriting
Dear Peter,
> However, if I send from a local account to another local account it is
> delivered internally, but the sender address is still rewritten
> instead of being left alone.
Unfortunately, I don't have further ideas, this doesn't happen for me.
Maybe you have an old email-addresses file in
rewrite/31_exim4-config_rewriting ?
Generally, the evil rewritting lives in the rewrite directory and takes
addresses from the email-addresses file, so it should not be difficult
to catch it. But really I can't help.
Good luck,
Alex
>> I did the following:
>>
>> 1. Created normal /etc/email-addresses
>>
>> 2. Commented out the relevant part of rewrite/31_exim4-config_rewriting :
>>
>> # # This rewriting rule is particularily useful for dialup users who
>> # # don't have their own domain, but could be useful for anyone.
>> # # It looks up the real address of all local users in a file
>> # *@+local_domains
> ${lookup{${local_part}}lsearch{/etc/email-addresses}\
>> # {$value}fail} Ffrs
>>
>> 3. Put the following to transport/30_exim4-config_remote_smtp :
>> ------------------
>> # This transport is used for delivering messages over SMTP connections.
>> remote_smtp:
>> debug_print = "T: remote_smtp for $local_part@$domain"
>> driver = smtp
>> headers_rewrite = *@+local_domains \
>> ${lookup{${local_part}}lsearch{/etc/email-addresses}{$value}fail}
>> return_path = ${if match{$return_path}{\N^([^@]+)@renard$\N}\
>> {${lookup{$1}lsearch{/etc/email-addresses}{$value}fail}}fail}
>> ------------------
>>
>> Rationale:
>> http://www.exim.org/exim-html-4.30/doc/html/FAQ_8.html#TOC260
>> (Answer 0803)
Reply to: