LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   exim smart host for specific domains (https://www.linuxquestions.org/questions/linux-server-73/exim-smart-host-for-specific-domains-607390/)

helpmhost 12-17-2007 12:45 PM

exim smart host for specific domains
 
Hi,

Our exim mail server sends e-mail out without using any smart host. It uses the regular DNS/SMTP method.

However, we now need to send e-mails destined to a few specific domains to a specific mail server (something different than what the DNS resolves to).

So what I would like to do is setup exim so that any e-mail destined for that list of domains, gets sent directly to a specific mail server. Any idea on how to do this?

Thanks.

helpmhost 12-17-2007 04:29 PM

I figured it out.

For those of you who may later get the same issue, here is the config settings I put in the configure file:

Code:

domainlist smarthost_domains = domain1:domain2.com
In the routers section (the very first one):

Code:

smarthost:
  driver = manualroute
  domains = +smarthost_domains
  transport = remote_smtp
  route_list = +smarthost_domains IP_or_DNS_of_smarthost



All times are GMT -5. The time now is 07:38 AM.