[[https://my.spamexperts.com/kb/40/Using-outgoing-as-a-smarthost.html#heading_toc_j_9|cPanel Exim setup on SpamExperts]] Add this in Exim conf in Section: POSTMAILCOUNT smarthost_dkim: driver = manualroute domains = !+local_domains condition = ${if match_domain{$sender_address_domain}{lsearch;/etc/exim_spamexpert}} require_files = "+/var/cpanel/domain_keys/private/${sender_address_domain}" # Exclude null sender messages from relaying via the smarthost condition = ${if or {{!eq{$sender_address}{}} {!eq{$sender_host_address}{}}}} transport = remote_smtp_smart_dkim route_list = $domain 6623.smtp.antispamcloud.com::587 smarthost_regular: driver = manualroute domains = !+local_domains condition = ${if match_domain{$sender_address_domain}{lsearch;/etc/exim_spamexpert}} # Exclude null sender messages from relaying via the smarthost condition = ${if or {{!eq{$sender_address}{}} {!eq{$sender_host_address}{}}}} transport = remote_smtp_smart_regular route_list = $domain 6623.smtp.antispamcloud.com::587 Add this in Exim conf in Section: TRANSPORTSTART remote_smtp_smart_dkim: driver = smtp hosts_require_tls = * interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}} helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_hostname}} dkim_domain = $sender_address_domain dkim_selector = default dkim_private_key = "/var/cpanel/domain_keys/private/${dkim_domain}" dkim_canon = relaxed headers_add = X-AuthUser: ${if match {$authenticated_id}{.*@.*}\ {$authenticated_id} {${if match {$authenticated_id}{.+}\ {$authenticated_id@$primary_hostname}{$authenticated_id}}}} # Uncomment the line below in case you use a login for authentication #hosts_require_auth = * remote_smtp_smart_regular: driver = smtp hosts_require_tls = * interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}} helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_hostname}} headers_add = X-AuthUser: ${if match {$authenticated_id}{.*@.*}\ {$authenticated_id} {${if match {$authenticated_id}{.+}\ {$authenticated_id@$primary_hostname}{$authenticated_id}}}} # Uncomment the line below in case you use a login for authentication #hosts_require_auth = * In Exim Configuration Manager => Basic Editor => Access Lists --> "Only-Verify-Recipient" add 6623.submission.antispamcloud.com delivery.antispamcloud.com