Re: Configuration for satellite systems?

Top Page
Delete this message
Reply to this message
Author: Tim Cutts
Date:  
To: Mark Baker
CC: exim-users
Subject: Re: Configuration for satellite systems?

Thanks for all your collective help. I have now come up with a
configuration file which I think may be of use to others with the
following requirements:

1)  All outgoing mail to be sent via an SMTP server
2)  Local mail, except that for root/postmaster etc is delivered
    to the same user on host B, assuming no alias or
    .forward processing has occurred.  root/postmaster mail is
    always delivered locally via an appropriate alias.
3)  Outgoing messages' from and reply-to headers containing the local 
    machine name(s) are rewritten as being from the same user on host B.


This is, for example, ideal for student machines within Cambridge
University. The root/postmaster aliases in /etc/aliases need to have
real- prefixes to force the local delivery.

The relevant bits of the configuration are given below, and I welcome
comments and improvements.

######################################################################
#                      DIRECTORS CONFIGURATION                       #
######################################################################


real_local:
prefix = real-,
driver = localuser,
transport = local_delivery;

system_aliases:
driver = aliasfile;
file = /etc/aliases,
search_type = lsearch

userforward:
no_verify,
driver = forwardfile;
file = .forward,

smart:
driver = smartuser;
new_address = ${local_part}@???

end

######################################################################
#                      ROUTERS CONFIGURATION                         #
######################################################################


smarthost:
driver = domainlist,
transport = smtp;
route_list = "* mole.bio.cam.ac.uk bydns_a"

end

######################################################################
#                      RETRY CONFIGURATION                           #
######################################################################


*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h


end

######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################


^(root|postmaster|mailer-daemon)@scalopus.bio.cam.ac.uk ${1}@??? Ffr
*@scalopus.bio.cam.ac.uk ${1}@??? Ffr
*@in.limbo ${1}@${primary_hostname} Ffr

--------------------------------------------------------------------------
Dept. of Biochemistry                                 Tel: +44 1223 333596
Tennis Court Rd.
Cambridge, CB2 1QW, UK