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 [EMAIL PROTECTED]:his .forward contains [EMAIL PROTECTED] and a mail coming in from [EMAIL PROTECTED] Exim forwards the mail from:[EMAIL PROTECTED] to [EMAIL PROTECTED] [EMAIL PROTECTED] 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 [EMAIL PROTECTED] . Daniel -----Ursprüngliche Nachricht----- Von: Tony Finch [mailto:[EMAIL PROTECTED] Im Auftrag von Tony Finch Gesendet: Dienstag, 18. Juli 2006 15:38 An: Daniel Müller Cc: [email protected] 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. -- <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> 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}} -- ## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
