Configuring smarthost (relay) on cpanel exim

To configure a smart host, create /etc/exim.conf.local on the source server (server1 in this example) and add the following lines. Be sure to change to the hostname or IP of the smart host server.

driver = manualroute
domains = !+local_domains
transport = remote_smtp
route_list = *

Next run /scripts/buildeximconf and then /scripts/restartsrv_exim. If not, simply restart your Exim server using normal init scripts.

If your relay require auth

begin routes
debug_print = "R: smarthost for $local_part@$domain"
driver = manualroute
domains = ! +local_domains
transport = remote_smtp_smarthost
route_list = *
host_find_failed = defer

begin transport
debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
driver = smtp
hosts_require_auth =

begin auth
driver = plaintext
public_name = LOGIN
client_send = : user : password

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

make: *** [] Error 1 - PHP5/Apache issue

make: *** [] Error 1 - PHP5/Apache issue...

Internal Server Error

For those who get this error: Internal Server Error The server encountered an internal error or...

Increase Domains Email Limit Per Hour

It can be done from /var/cpanel/maxemails file.You just need to edit this file and add an entry...

How to install Cpanel

Login to your server over ssh, (use a ssh client like putty). Download cpanel installer from:...

Create Full Cpanel user backups from CLI

In order to create an full cpanel account backup you need to: Login to the server over ssh *...