Jump to content


Photo

Configure Exim to send through Mandrill


  • Please log in to reply
No replies to this topic

#1 John

John

    Administrator

  • Administrators
  • 73 posts

Posted 05 June 2014 - 07:47 PM

The below instructions will walk you through configuring Exim to send mail through Maindrillapp.com. 

 

Find and edit your exim.conf file, for CentOS users it's most likely located here: /etc/exim.conf.

 

Find this line (without the quotes): "begin authenticators" and add this below it:

begin authenticators

mandrill_login:
   driver = plaintext
   public_name = LOGIN
   client_send = : your@mailaddress.com : YourAPIpassword

Change the mail address and password via the "SMTP & API Credentials" page in your Mandrill Dashboard. 

 

Now find this line (without quotes): "begin routers" and add the following lines below it:

begin routers

send_to_mandrill:
   driver = manualroute
   domains = ! +local_domains
   transport = mandrill_smtp
   route_list = * smtp.mandrillapp.com

lookuphost:
  driver = dnslookup
  domains = ! +local_domains
  ignore_target_hosts = 127.0.0.0/8
  condition = "${perl{check_limits}}"
  transport = remote_smtp
  no_more

Make sure that the mandrill lines are above the lookuphost lines. 

 

Now find this line (without quotes): "remote_smtp:" and add this below, so it looks like this:

# This transport is used for delivering messages over SMTP connections.

remote_smtp:
  driver = smtp

# Transport mail to Mandrillapp.com

mandrill_smtp:
   driver = smtp
   port = 587
   hosts_require_auth = $host_address
   hosts_require_tls = $host_address

That's it. Restart Exim and try sending a mail, check the logs in Mandrillapp.com. 

 

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users