To configure Exim to only allow email from the filter servers for certain domains, you can do the following:
- Create the file
- Add the domains that use Spam Experts to this file (one per line)
- Add the following line in the
domainlistpart of the config
domainlist spamexperts_domains = lsearch;/etc/virtual/spamexperts_incoming_domains
- Set the following in the RCPT ACL
defer domains = +spamexperts_domains !hosts = delivery.antispamcloud.com : localhost message = Please deliver mail to the address specified in the MX records for this domain.
- Restart Exim
For local cloud users, replace delivery.antispamcloud.com with your servers hostnames separated by ':'.
See here for information on the DirectAdmin Addon