Skip to main content
When a domain’s MX records point to MailChannels, all mail for that domain should arrive via MailChannels ? not directly from the open internet. Without additional configuration, your mail servers will still accept direct SMTP connections from anyone, allowing senders to bypass inbound filtering entirely. To enforce this, configure an ACL (Access Control List) on your mail server that rejects direct connections for any domain whose MX records point to MailChannels. The ACL checks whether the connecting host is a MailChannels delivery server, and temporarily rejects the connection if it is not ? prompting the sender to use the correct MX path. The steps below cover WHM/cPanel and DirectAdmin servers running Exim.

Safelist MailChannels service IPs

Your mail server must accept connections from the MailChannels inbound filtering delivery servers. Add the following IP addresses to your mail server’s allowlist:
  • 35.161.220.134
  • 35.163.189.64
  • 34.214.167.131
  • 23.83.223.254
  • 23.83.220.5
  • 23.83.212.2
  • 23.83.208.2
These IP addresses are used exclusively for inbound email filtering. Refer to your mail server’s documentation for how to configure an IP-based allowlist.

Restrict connections via Exim ACL

WHM/cPanel servers

Step 1: Create protection scripts SSH into your server and create the following two files: /opt/mc-mx-protect:
/opt/mc-ptr-protect:
Add execute permissions to both files:
Step 2: Update Exim configuration
  1. Log in to the WHM panel.
  2. Open Exim Configuration Editor ? Advanced Editor.
  3. Search for custom_begin_recp_verify.
  4. Add the following snippet in the provided box:
  1. Save the configuration and restart Exim.

DirectAdmin servers (v1.63.0+)

Step 1: Create protection scripts SSH into your server and create the following two files: /usr/local/directadmin/scripts/custom/mc-mx-protect:
/usr/local/directadmin/scripts/custom/mc-ptr-protect:
Add execute permissions:
Step 2: Update Exim configuration
  1. Navigate to the custombuild directory:
  1. Ensure Exim is configured:
  1. Add the custom ACL to the Exim configuration:
  1. Insert the following ACL rule:
  1. Rebuild the Exim configuration and restart:

What these ACL rules do

Once applied, your mail server will:
  • Accept mail from hosts with a PTR record matching *.mailchannels.net or from localhost.
  • Temporarily reject direct delivery attempts that don’t originate from MailChannels, directing senders to use the MX path instead.
  • Allow direct delivery for domains whose MX records do not point to MailChannels, since those domains are not routed through inbound filtering.