How to add Inbound and Outbound Mail Filtering using MailChannels
MailChannels Cloud is an SMTP relay service to filter out spammers from the network thus preventing the server IP from being listed in RBLs. It can help you to maintain a better IP reputation and makes sure the emails reach the exact destination successfully.
To integrate MailChannels with cPanel and to enable Inbound and Outbound filtering, the below steps will help.
- Login to WHM server as the root user
- From the command line, run the below command to install the MailChannels plugin
wget https://s3.amazonaws.com/mailchannels-reseller/plugins/mailchannels-cpanel-v3-installer
&& bash mailchannels-cpanel-v3-installer - Open WHM > MailChannels Plugin > Update the API key
- From the Inbound drop-down, select the subscription and update
- After that, Outbound drop-down > update MailChannels id and password
- On MailChannels console > Inbound > Domains > Add New Domains
- Enter the domain name and click Add
- Click on settings icon near to added domain and update the API key created for the domain
- On WHM panel, open MailChannels plugin and activate the domain for protection
Setting up DNS records for MailChannels
There should be an MX record and an SRV record to be set for the MailChannels inbound filtering to work. For that,
Open the DNS management page of the domain and add the below MX records
domain.com MX TTL=300 Priority=10 mx1.mailchannels.net.
domain.com MX TTL=300 Priority=10 mx2.mailchannels.net.
Add an SRV record as below
_mx._tcp priority=0 weight=0 port=25 mail.domain.com
Once the DNS is propagated, you can test the connections from the domain’s console
Under ‘Configure Downstream Records’ click check.
Once the test becomes successful, you can start sending emails and check the header details to verify the filtering functionality. You should do this on a weekend of off-peak hours since it will affect the mailing.
If you are not familiar with doing this, you can get in touch with our support for setting up the same. Or you can signup for cPanel Server Management and we will manage these things in the plan.