[Pkg-exim4-users] multiple mail identities

Neil Briscoe neil.briscoe at adelix.com
Fri Jan 19 22:10:00 CET 2007


What I'd do to achieve your aim is write multiple routers making use of 
the manual route router.  Each router would include a senders directive 
that determines which sender domain it is applicable for.

You configure your Exim as a full Internet server - do not configure it 
as one that uses a smarthost - and ensure you place your routers ahead 
of the provided router called dnsrouter:

Here is some working code for one such router - it achieves my aims - 
you'll need to modify it (several times) to achieve yours.

smart_route:
  driver = manualroute
  transport = remote_smtp
  domains = !+local_domains
  senders = *@+protected_domains
  route_list = * smarthost1.tld:smarthost2.tld

This code sends out via smarthost1.tld most of the time, and will try 
smarthost2.tld if smarthost1 is unavailable.  It only does this if the 
sender's email address is someone at protected_domains.

Protected_domains is a domain list (in my case its a subset of 
local_domains).

If you write several of those, with different values for the senders 
directive and a different smarthost listed in the route list, and stick 
them all ahead of dnsrouter: you should be fine.

Regards
Neil

------------------------------------------------------------------------------------
Scanned for viruses, spam and offensive content by CensorNet MailSafe

Professional Web & E-mail Filtering from www.censornet.com



More information about the Pkg-exim4-users mailing list