Exim Smarthost
Configuration
Smarthost setup with Exim router, transport and AUTH settings. All emails sent from your Exim MTA servers (non-cPanel) are delivered through the MXGate smarthost with authentication.
Ensures all emails sent from your Exim MTA servers (non-cPanel) are delivered through the MXGate smarthost (with authentication).
- Root access
- Exim 4.94+ installed and running
- SMTP username and password created from MXGate panel
- TLS/SSL support (GnuTLS or OpenSSL)
Exim configuration file is edited directly. Incorrect configuration can stop all mail traffic. ALWAYS backup before proceeding!
Step-by-Step Exim Configuration
Backup Exim Configuration File
Take a backup of the Exim configuration file just in case:
Router Definition
Add the following router definition to the begin routers section in your Exim configuration file:
Transport Definition
Add the following transport definition to the begin transports section in your Exim configuration file:
AUTH (Authentication) Definition
Add the following authentication definition to the begin authenticators section in your Exim configuration file:
: username : password (starts with colon)Verify Configuration and Restart
Check the configuration file syntax before applying changes:
Testing and Verification
Test if the configuration is working:
Debian/Ubuntu Exim4 Specific
Debian/Ubuntu systems may use Exim4 "split configuration". In this case:
Common Errors
How do I fix the "535 Incorrect authentication data" error in Exim?
Username/password incorrect. Check client_send format in AUTH section: : username : password
Why does Exim throw the "router omitted: no_more flag set" error?
Router order is wrong. Ensure mxgate_smarthost router is placed BEFORE dnslookup.
How do I resolve the "TLS required but not available" error in Exim?
Exim may not be compiled with TLS support. Or tls_verify_certificates file may not be found.
Why does the Exim smarthost return a "Connection refused" error?
Firewall may be blocking port 587. Ensure your server IP is in MXGate whitelist.
How do I fix the "Unrecognized option" error in the Exim configuration?
There is a syntax error. Check spaces and tab characters. Exim is very sensitive to whitespace.