Prerequisites
- Root or
sudoaccess to your DirectAdmin server - Your MailChannels SMTP username and password
Exim 4.5.7 and later
Create the router configuration
Create
/etc/exim.routers.pre.conf with the following content:/etc/exim.routers.pre.conf
Create the transport configuration
Create
/etc/exim.transports.pre.conf with the following content:/etc/exim.transports.pre.conf
The
X-AuthUser header identifies the authenticated sender. MailChannels uses it to track per-sender reputation. Messages without this header are treated as forwarded mail and subject to different policies.Create the authenticator configuration
Create
/etc/exim.authenticators.post.conf with the following content, replacing the placeholders with your actual MailChannels SMTP credentials:/etc/exim.authenticators.post.conf
Exim prior to 4.5.7
With older DirectAdmin installations, Exim configuration is stored in a single file at/etc/exim.conf. Make the following changes to that file.
Add the authenticator
In the
begin authenticators section, add the following block, replacing the placeholders with your actual MailChannels SMTP credentials:/etc/exim.conf
Add the router
At the top of the If you do not need to exclude any senders or domains from the relay, leave the
begin routers section, add the following block:/etc/exim.conf
senders = line blank or remove it entirely.Do not remove or comment out the
lookuphost: router. It handles delivery for any domains excluded from the MailChannels relay and routes them directly from the DirectAdmin server.
