Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

Exim - routing some domains differently to others
11 October 2004 @ 19:11 BST
by Paul

This is a problem I had with how one particular smart host routes a particular domain. So, I decided to route around it.

The solution is quite simple, but it is difficult to find this information in the exim documentation unless you know exim really well.

Anyway, this is my solution for routing mail to Yahoo's mail service differently from all other domains. In the routers section of the exim.conf file put something like the following:

lookuphost:
  driver = lookuphost
  domains = yahoo.co.uk
  transport = remote_smtp

# Send all mail to a smarthost
smarthost:
  driver = domainlist
  transport = remote_smtp
  route_list = "* a.smtp.server bydns_a"

end

Note that the order they come in is important. The block I've called 'lookuphost', simply routes domains in the 'domains' options directly. Everything else is sent to the

Tags: email exim



Comments disabled