[Pkg-exim4-users] Where to edit config File in Etch for Multiple Smarthosts

Neil S. Briscoe neil.briscoe at adelix.com
Fri May 11 08:21:38 UTC 2007


Sascha Berkenkamp wrote:
> Hi,
> 
> I'm totally confused about exim4 in Debian etch. I told not to split up to 
> multiple config files.
> However, I wanted to configure my Exim for multiple smarthosts, described in 
> http://www.tgunkel.de/docs/exim_smarthosts.en.
> But should I paste the code anywhere in /etc/exim4/exim4.conf.template? I 
> mean, I think I'm not the only one who needs more than one smarthost (f.g. 
> because you like it, because gmx put everthing into spam which is relayed by 
> my gmx address over my local ISP smtp, because my university only allows 
> their smtp, etc). 
> 
> To the maintainer, why don't but a single sample exim file 
> to /usr/share/doc/exim4/examples which covers this smarthorst problem. How 
> simple is that. It's ridiculous, I administrated three debian servers for 
> more than two years, but I'm not able configure my exim4 (exim3 was easier to 
> configure, wasn't it) for a simple smarthost delay. 
> 

Now that I'm used to it, I find Exim4 easier to administer than I ever 
did Exim 3.

But to get to your problem, I use a single file as well.  Yes, you'll 
need to put your multiple smarthost router in your exim4.conf.template file.

Below you'll find a snippet of my file to give you some idea.  My 
smart_route: router is the one that handles multiple smart hosts, the 
other two are routers that are in the default distribution.  Oh, I 
should say, this is taken from a Sarge machine - but it should give you 
the idea.

Regards
Neil

.ifdef DCconfig_internet
# configtype=internet
#

# This is our smart router - intended to send all non-local mail relayed
# through the server via emailsystems servers for processing.  Mail sent 
from
# customers with domains that havn't signed up for the service will 
still be routed
# via a normal MX lookup using the dnslookup: router below

smart_route:
   driver = manualroute
   transport = remote_smtp
   domains = !+local_domains
   senders = *@+emailsystems_domains
   route_list = * post8a.emailfiltering.com:post8b.emailfiltering.com

# deliver mail to the recipient if recipient domain is a domain we
# relay for. We do not ignore any target hosts here since delivering to
# a site local or even a link local address might be wanted here, and if
# such an address has found its way into the MX record of such a domain,
# the local admin is probably in a place where that broken MX record
# could be fixed.

dnslookup_relay_to_domains:
   debug_print = "R: dnslookup_relay_to_domains for $local_part@$domain"
   driver = dnslookup
   domains = ! +local_domains : +relay_to_domains
   transport = remote_smtp
   same_domain_copy_routing = yes
   no_more

# deliver mail directly to the recipient. This router is only reached
# for domains that we do not relay for. Since we most probably can't
# have broken MX records pointing to site local or link local IP
# addresses fixed, we ignore target hosts pointing to these addresses.

dnslookup:
   debug_print = "R: dnslookup for $local_part@$domain"
   driver = dnslookup
   domains = ! +local_domains
   transport = remote_smtp




-- 

Neil Briscoe
Adelix Ltd
neil.briscoe at adelix.com web: www.adelix.com
tel: 0845 230 9592 / fax: 0845 230 9591 / main office: 0845 230 9590
snail: The Old Post Office, Bristol Rd, Hambrook, Bristol BS16 1RY. UK.
skype: stonefish001 MSN: nbriscoeuk at hotmail.co.uk

Adelix Ltd is a registered company in England & Wales No. 4232156
VAT registration number 779 4232 91
Adelix Ltd is BS EN ISO 9001:2000 Certified (No. GB 12763)

Any views expressed in this email communication are those
of the individual sender, except where the sender specifically states
them to be the views of a member of Adelix Ltd.  Adelix Ltd. does not
represent, warrant or guarantee that the integrity of this communication
has been maintained nor that the communication is free of errors or
interference.

------------------------------------------------------------------------------------
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