Do someone have an idea. How I write a router that rewrite the header
If the localpart has a .forward file in his home directory. The mail to
be forwarded from outside to an outside mail account (!localdomains,
!localpart).
In my case when this happens the forwarding picks the emailadress in the
forward-file and puts it into h_from.
So user test@ourdomain:his .forward contains xyt@??? and a mail
coming in from abc@???. Exim forwards the mail from:abc@??? to
xyt@???.
abc@??? is not a local address so dnslookup starts and the normal
remote_smtp taking a dynamic ip and connects to the mailserver.gmx.net
The mails is rejected.
Now header of the forwarded email should be rewritten in this way :
'From:' should be test@ourdomain .
Daniel
-----Ursprüngliche Nachricht-----
Von: Tony Finch [
mailto:fanf2@hermes.cam.ac.uk] Im Auftrag von Tony
Finch
Gesendet: Dienstag, 18. Juli 2006 15:38
An: Daniel Müller
Cc: exim-users@???
Betreff: Re: [exim] WG: WG: Vacation exim 4 dynamic ip problem
On Tue, 18 Jul 2006, Daniel Müller wrote:
>
> smart_route_domain1_de:
> driver = manualroute
> transport = remote_smtp_domain1
> route_list = !+local_domains mail.domain1.de
> senders = /etc/exim/domain1_senders
> errors_to= postmaster
Your problem is that the null sender of the vacation message isn't
matching the senders precondition on any of your smart_route routers, so
the dnslookup router is handling it.
Tony.
--
<fanf@???> <dot@???>
http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}