1. Login to WHM with a root access & browse to
WHM → Service Configuration → Exim Configuration Manager → Basic Editor
2. In “Mail → Smarthost support”, add the following
1
|
*: smtp.mandrillapp.com |
3. Browse to
WHM → Service Configuration → Exim Configuration Manager → Advanced Editor
4. Search for – “Section: AUTH” & add the following code. Change youremail@yourdomain : api-key with your email & Mandrill API Key
1
2
3
4
|
auth_login: driver = plaintext public_name = LOGIN <span class="IL_AD" id="IL_AD2">hide</span> client_send = : youremail@yourdomain : api-key |
5. Search for – “Section: PREROUTERS” & add the following code.
1
2
3
4
5
6
7
|
smart_route: driver = manualroute domains = ! +local_domains ignore_target_hosts = 127.0.0.0/8 transport = auth_relay route_list = * smtp.mandrillapp.com no_more |
6. Search for – “Section: TRANSPORTSTART” & add the following code.
1
2
3
4
5
|
auth_relay: driver = smtp port = 587 hosts_require_auth = $host_address hosts_require_tls = $host_address |
7. Save the new configuration.
8. Send a test email & you should see the email header should have something with *mandrill.com