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 server Before proceeding, make a backup copy of your current exim.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.
ROUTER
section, add this block of text:The above should be the first router listed in this section!
TRANSPORT
section, add this block of text: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
If using cPanel's Exim Configuration Manager (Advanced Editor), the above block of text goes in the section called AUTH
.
Be sure to restart Exim to apply the changes.
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
If using cPanel's Exim Configuration Manager (Advanced Editor), this block of text goes in the section called TRANSPORTSTART
.