>> "Dieter" == Dieter Jdger <[EMAIL PROTECTED]> wrote:
Dieter> They use a perl script to rewrite outgoing mail. Now I looked Dieter> at the doc and found that <rewrite> option, which can be used Dieter> to make a director rewriting the address or not. My idea is to Dieter> allow rewriting for outgoing mail but to disable it for local Dieter> delivery. Does anybody know how to use rewrite to achieve Dieter> this? If you want to use a one to one mapping (that is a localuser won't be able to send mails with a different address than you yould use this (well, maybe he can, but I didn't research on this): remote_smtp: driver = smtp headers_remove = "sender:from" headers_add = "Sender: ${lookup{$sender_ident}lsearch*{/etc/exim/addresses}\ {$value}{$local_part}}\n\ From: ${lookup{$sender_ident}lsearch*{/etc/exim/addresses}\ {$value}{$local_part}}" With /etc/exim/addresses * "Martin Bialasinski Default" <[EMAIL PROTECTED]> martinb "Martin Bialasinski" <[EMAIL PROTECTED]> first column is the local username, "*" is the default entry. Second column is the address to insert. If your smarthost does syntax checks on the smtp dialog, you also want to set the SMTP envelope throuch the rewite section of exim.conf [EMAIL PROTECTED] [EMAIL PROTECTED] F Ciao, Martin