[Pkg-exim4-users] rewrite rules

Marc Haber mh+pkg-exim4-users at zugschlus.de
Sun Dec 18 18:16:02 UTC 2005


On Fri, Oct 07, 2005 at 12:01:06PM -0700, Ross Boylan wrote:
> This produced these rewrites on the smarthost transport:
>   headers_rewrite = *@+local_domains $1 at DCreadhost frs : *@iron.psg.net
> $1 at DCreadhost frs
>   return_path = ${if
> match_domain{$sender_address_domain}{+local_domains}{${sender_address_local_part}@DCreadhost}{${if match_domain{$sender_address_domain}{iron.psg.net}{${sender_address_local_part}@DCreadhost}fail}}}
> 
> Which is good, but I really want to get all the headers, including cc or
> bcc. > Otherwise, when someone hits reply all there may be trouble.  I'm
> not claiming this is universally desirable behavior, but it seems right
> for me.

I think that we shouldn't go too far with rewriting. What we _need_
to do is take care that the message goes out with a correct sender
(mostly to take care about bounces being sent to the correct
recipient), but I don't think that we should interfere with message
recipients as well.

The "trouble" would be a bounce, as if our local user had written a
differently broken address into Cc:.

Rewriting Bcc is not an option anyway since Bcc gets removed anyway
before the message is sent.

> Oh... maybe dc_mailname_in_oh true = mailname appears in other headers;
> if false they get rewritten too?

Please explain what you mean, I do not understand.

> What's the best way to achieve this effect?  I can't do it with standard
> rewrites, because before transport my addresses look like
> foo at iron.psg.net.  I'm not wed to that scheme, but it seemed safer than
> rewriting everything immediately to foo at biostat.ucsf.edu, which would
> essentially make it as if my machine were masquerading as a different
> one.
> 
> Also, I'm not sure why the rewrite rules with iron.psg.net are present;
> I would expect that to be one of the local_domains.

Please elaborate. I am missing much of your context here.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835



More information about the Pkg-exim4-users mailing list