[Pkg-exim4-users] rewrite rules

Ross Boylan ross at biostat.ucsf.edu
Fri Oct 7 19:01:06 UTC 2005


I have
dc_eximconfig_configtype='smarthost'

# temporarily (?) allow use of unqualified iron
dc_other_hostnames='iron'
dc_readhost='biostat.ucsf.edu'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='biostat.ucsf.edu'

dc_local_interfaces='127.0.0.1.25:127.0.0.1.26'
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname='true'
dc_mailname_in_oh='true'

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.

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

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.
-- 
Ross Boylan                                      wk:  (415) 514-8146
185 Berry St #5700                               ross at biostat.ucsf.edu
Dept of Epidemiology and Biostatistics           fax: (415) 514-8150
University of California, San Francisco
San Francisco, CA 94107-1739                     hm:  (415) 550-1062




More information about the Pkg-exim4-users mailing list