Configuring Exim with cPanel and WHM for Mail Assure mail routing
The following instructions describe how to:
- Restrict incoming delivery to Mail Assure only
- Disable catchall behaviour
- Route outgoing mail through Mail Assure
Incoming
In WHM
As the root user:
- Navigate to Service configuration > Exim Configuration Manager
- Set Access lists to Only-verify-recipient
- Configure this to contain:
185.201.16.0/22
securemail.management
- In the Service configuration > Exim Configuration Manager > ACL options set:
- Ratelimit suspicious SMTP servers to False
- Ratelimit incoming connections with only failed recipients to False
- In Server configuration > Tweak settings > Mail set:
- Email delivery retry time to 5 minutes
- Initial default/catch-all forwarder destination to Fail
- Enable BoxTrapper spam trap to Off
- Enable Apache SpamAssassin™ spam filter to On
- In Email > Spamd startup configuration, set Allowed IPs to include:
185.201.16.0/22,130.117.251.9
This will restrict the server from receiving mail for all domains to only accepting mail from Mail Assure.
In cPanel
As the admin for the domain, or higher:
Select Email > Default Address > <domain> > Discard the email while your server processes it by SMTP time with an error message.
Outgoing
In WHM
- Navigate to Service configuration > Exim Configuration Manager
- Set Mail setting:
- Smarthost support to * smtpout.mtaroutes.com::587
This should be <asterisk><space><smarthost address><double colon><port number>.
Disclaimer: This documentation may contain references to third party software or websites. N-able has no control over third party software or content and is not responsible for the availability, security, or operation, of any third-party software. If you decide to utilize a release involving third-party software, you do so entirely at your own risk and subject to the applicable third party’s terms and conditions of the use of such software. No information obtained by you from N-able or this documentation shall create any warranty for such software.