We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.

How can I set up my EXIM mail server to do outbound relay to my Barracdua server/service?

  • Type: Knowledgebase
  • Date changed: 10 months ago
Solution #00007201  

All Email Security Gateways, and Email Security Service, all versions.


NOTE: The following data was found by searching the web. 
      There were dozens of solutions found and the following 
      is the consensus of what was discussed.

This is for reference only, Please double check your 
      EXIM configuration syntax before applying.

Modify your EXIM config as follows:

     driver = dnslookup
     domains = ! +local_domains
     ignore_target_hosts =
     condition = "${perl{check_limits}}"
     transport = remote_smtp
     driver = manualroute
     domains = ! +local_domains
     ignore_target_hosts =
     condition = "${perl{check_limits}}"
     transport = remote_smtp
     route_list = * smarthost

Where smarthost is the BESS outbound smarthost we provide on the domains page or the IP/hostname of your Email Security Gateway.

We also found several sites where the config for the route_list used:

     route_list = $domain smarthost::25

Restart Exim for the changes to take effect.

We also found this note in one of the web sites visited which may or may not work for setting up an individual domain on a shared EXIM service.

Routing all mails for a specific domain to a smarthost:

Note: The information below relates to a very specific customer requirement and is not recommended for most deployments. A configuration like this can cause problems which will be hard to troubleshoot. Unless you are sure you need to use this setup, please explore the other available options for routing mail.

     route_list = domain1 smarthost::25

For multiple domains you can use:

     route_list = domain1 smarthost::25 ;domain2 smarthost::25

Again: Restart Exim for the changes to take effect.

Link To This Page: