SpamTitan Email Relay Configuration on cPanel Server

Update Domain DNS Record

DNS Setup MX Records for DNS
	Update DNS
		domain.com. - 14400 - IN - MX - 0 - cloud1.spamtitan.com.
		domain.com. - 14400 - IN - MX - 10 - cloud2.spamtitan.com.
	Set MAIL option to "Local Mail Exchanger"

Testing
	https://www.wormly.com/test_smtp_server

For Single Domain on Server using SpamTitan (Option A)

http://www.sant-media.co.uk/2010/03/how-to-configure-exim-to-receive-email-for-domain-only-from-specific-ip-addresses/

Create Client Rule Files
	/etc/exim/{account}/domains
		account-website.com
	/etc/exim/{account}/hostlist
		*.spamtitan.com
		*.holodyn.net
		localhost

Add Rules in Exim Advanced Editor
	hostlist [LISTNAME]
		hostlist spamtitan_hostlist
		lsearch;/etc/exim/spamtitan_hostlist : lsearch;/etc/exim/spamtitan_hostlist
	domainlist [LISTNAME]
		domainlist spamtitan_domainlist
		lsearch;/etc/exim/spamtitan_domainlist
	Section: custom_end_recipient
		deny
 		!hosts = +spamtitan_hostlist : +relay_hosts
 		domains = +spamtitan_domainlist
 	  log_message = "Denied SpamTitan Relay"
		message = Please use the proper domain MX record

For All Domains on Server using SpamTitan (Option A)

http://clients.hostingireland.ie/knowledgebase/2213/Mailserver-changes-to-only-accept-from-the-filter-systems.html

Exim (Use WHM Advanced Editor)
	To configure Exim to only allow email from the filter servers for certain domains, you have to set in the RCPT ACL:
	custom_begin_rcpt_hard_limit
		deny
	    !hosts = *.spamtitan.com : *.holodyn.net : localhost
	    message = Please deliver mail to the address specified in the MX records for this domain.
	You can setup the spamfilter_domains list earlier, reading it from a file, or database, or even hard-coding it.