To setup your Exim mail server to relay outbound emails through SpamHero, here are some steps to implement:
Before using the outbound system, you must first go to the Outbound > Outbound Settings page in SpamHero and do the following:
exim.conf
file on your mail serverexim.conf
file.
If you are using cPanel, use the Exim Configuration Manager for this part. Otherwise, locate the exim.conf
file and open it in your favorite editor.
Under the ROUTER
section, add this block of text:
spamhero_route:
driver = manualroute
domains = ! +local_domains
transport = spamhero_relay
route_list = * smtp.mxthunder.net
Under the TRANSPORT
section, add this block of text:
spamhero_relay:
driver = smtp
port = 25
hosts_require_auth = smtp.mxthunder.net
hosts_require_tls = smtp.mxthunder.net
AUTHENTICATION
section, add this block of text, but replace username
with your domain name and password
with the one you configured in the SpamHero control panel (see above):spamhero_login:
driver = plaintext
public_name = LOGIN
hide client_send = : username : password
AUTH
.
Be sure to restart Exim to apply the changes.
smtp.mxthunder.net
Also, routing through SpamHero works with cPanel even without changing this value, but there may be some benefit to enabling it.
For non-cPanel users, add the following at the bottom of the TRANSPORT
section (and adjust the dkim_private_key
path to the correct location on your server):
# DKIM Settings
dkim_domain = ${lc:$sender_address_domain}
dkim_selector = default
dkim_private_key = "/update-this-path/domain_keys/private/${dkim_domain}"
dkim_canon = relaxed
For cPanel users, use this (assumes default path for cPanel):
# DKIM Settings
dkim_domain = ${lc:$sender_address_domain}
dkim_selector = default
dkim_private_key = "/var/cpanel/domain_keys/private/${dkim_domain}"
dkim_canon = relaxed
TRANSPORTSTART
.