WHM cPanel SMTP Relay Smart Host Guide, That Works!
Step 1: Access WHM and Navigate to Exim Configuration
  1. Log in to WHM: Use your administrator credentials to log in to your WHM panel.
  2. Navigate to Exim Configuration Editor: Once logged in, search for “Exim Configuration Editor” in the search box or find it under the “Service Configuration” section.
Step 2: Access the Exim Advanced Editor

In the Exim Configuration Editor:

  1. Click on the “Advanced Editor” tab. This is where you can make detailed changes to your Exim configuration.
Step 3: Find the “Section: AUTH”

Using Browser’s Find Feature:

  1. Once in the Advanced Editor, you can quickly navigate through the dense configuration by using your browser’s find feature. Press Ctrl + F on Windows or Cmd + F on Mac and type “Section: AUTH” to jump directly to the relevant section.
Step 4: Configure Authentication

Configure AUTH Section:

  1. Under “Section: AUTH,” add the following details (ensure you replaced the “client_send” data with your own username and password or Secret Key/API info):
mySmartHost_login:
driver = plaintext
public_name = LOGIN
client_send = : aaaaaaaaaaaabbbbbcccccdddddddeeeeeee : aaaaaabbbbcccdddeeeffggg

Copy

Step 5: Define the Router

Using Browser’s Find Feature:

  1. Navigate to the “Section: ROUTERSTART” and add the following configuration (Make sure to replace “smtp.example.com” in the route_list with your host.):
send_via_mySmartHost:
driver = manualroute
domains = ! +local_domains
transport = mySmartHost_smtp
route_list = * smtp.example.com
host_find_failed = defer
no_more

Copy

Step 6: Configure the Transport

Configure AUTH Section:

  1. Proceed to “Section: TRANSPORTSTART” and input the detials below (ensure you replaced the “Port = , hosts = “ data with your own, leave port as is if you do not know).
mySmartHost_smtp:
driver = smtp
port = 587
hosts = smtp.example.com
hosts_require_auth = <; $host_address
message_linelength_limit = 99999999

Copy

Step 7: Save Changes

Configure AUTH Section:

  1. Scroll down to the bottom of the page.
  2. Click “Save” to apply the changes.
Step 8: Test Configuration

Testing Outbound Email:

  1. Go to main WHM page > List Accounts > Click cPanel Logo to bring up account cPanel > Email Accounts > Create Email Account > Check Webmail > Compose and send a email to an outside email address e.g. gmail.com.


Leave a Comment

Your email address will not be published. Required fields are marked *