Configure Mailgun on cPanel/WHM (Exim)

Configuration of Exim for Mailgun

Many users found it difficult to configure Mailgun on their cPanel/WHM for sending and receiving emails. I’ll explain it in a few steps and its very easy. Mailgun features are available through an API or SMTP. It helps avoiding your mails going to spam folders.

To configure Mailgun on cPanel/WHM follow these simple steps:

  1. Login to your WHM account
  2. Go to Service Configuration
  3. Go to Exim Configuration Manager
  4. Now open the Advanced Editor tab
  5. Search for Section: AUTH and add the following lines
    driver = plaintext
    public_name = LOGIN
    hide client_send = : : Password

    replace with your default SMTP login and password with your SMTP password.

  6. Search for Section: PREROUTERS and add the following lines
    driver = manualroute
    domains = ! +local_domains
    transport = mailgun_transport
    route_list = * byname
  7. Finally, search for Section: TRANSPORTSTART and add the following lines
    hosts_try_auth =

Save the configuration and then try sending a test email to confirm delivery into inbox. You can sign up for the free account of Mailgun here.

Comments 0

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

Configure Mailgun on cPanel/WHM (Exim)

Don't have an account?
sign up

reset password

Back to
log in

sign up

Back to
log in
Choose A Format
Personality quiz
Trivia quiz