CpanelSpam Expert

Exclude domain on CPANEL for SpamExpert outgoing

Login to the server using SSH

Go to

 /etc/exim.conf.local

put on

 senders = !*@duniamada.com

under this line

@POSTMAILCOUNT@
spamexperts_dkim:
driver = manualroute
domains = !+local_domains
senders = !*@duniamada.com
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_spamexperts_dkim
route_list = $domain sf.sel01.mschosting.com::587

spamexperts_regular:
driver = manualroute
domains = !+local_domains
senders = !*@duniamada.com
# Exclude null sender messages from relaying via the smarthost
condition = ${if or {{!eq{$sender_address}{}} {!eq{$sender_host_address}{}}}}
transport = remote_smtp_spamexperts_regular
route_list = $domain sf.sel01.mschosting.com::587
/scripts/buildeximconf

after this, rebuild the Exim

/scripts/buildeximconf

Leave a Reply

Your email address will not be published. Required fields are marked *