[Pkg-exim4-users] oddball network setup

Ross Boylan ross at biostat.ucsf.edu
Fri Sep 30 22:11:31 UTC 2005

I currently want to set up my machine, iron, as follows:
1. iron.psg.net is FQDN.  Reverse lookups on this name will fail.
2. mail that leaves the box from auser should appear to be
auser at biostat.ucsf.edu in all relevant headers and SMTP envelopes
(alternately, might limit this to specified users, i.e., myself.  But
that raises the issue of appropriate return edress for other users.  The
only users likely to generate outbound mail have appropriate biostat
addresses, I think.).
3. All mail to me must go to ross at biostat.ucsf.edu, on a different
machine.  I pull it from there via fetchmail.
4. System operations continue to generate local mail.

Here's my plan.  If anyone could tell me if it will work, and if it's
the best way to do things, I'd appreciate it.

My network environment will change in the future in many ways.  I note
in particular that things are not stable enough that using the
biostat.ucsf.edu machine as a smarthost (if I understand that term--I
mean having all outgoing mail go through it) seems wise.

Getting a FQDN was a challenge; I edited /etc/hosts and gave the name to
the external IP address, and that seemed to do the trick.  iron has no
local DNS running.


# currently just iron
# could this be blank?  or biostat.ucsf.edu?  iron.biostat.ucsf.edu?
# There is a machine named biostat.ucsf.edu, and it's not iron.

# not clear readhost works for configtype='internet'

# port 26 for use by fetchmail, to let me distinguish it from others
# omission of public interfaces deliberate
# hide_mailname irrelevant for 'internet'

# or do I need an explicit rewriting section?

*If* that works then it would be nice to make all mail sent to
ross at biostat.ucsf.edu delivered locally, rather than making a roundtrip
through that server.  Based on
the recommendation seems to be treat biostat.ucsf.edu as remote, and
pick off what I need.  (This may collapse if my FQDN laters becomes
iron.biostat.ucsf.edu, but one problem at a time.)  This needs to go
before the SMTP routing at router/200_exim4_config_primary.  It probably
should go before the other routers, though I don't think they're
relevant for me.  I deliver to cyrus

     debug_print = "R: farisnear for ross at biostat.ucsf.edu"
     driver = accept
     domains = biostat.ucsf.edu
     local_parts = ross
     transport = cyrus

The transport sets the user.  I'm puzzled the FAQ didn't suggest using
user in the router (farisnear above) itself.  Wouldn't that work?

I spent some time looking at how I could rewrite and bounce to an
appropriate router, but wasn't quite sure how to do so.

BTW the cyrus delivery causes both a local delivery to the IMAP server
and forwards the message to another system, so the same message will
reappear in exim as an outbound one.  The other system is safely remote.
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