Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Using a different outgoing SMTP via mailgun

Discussion in 'E-mail Discussion' started by madnoob2, Apr 18, 2017.

  1. madnoob2

    madnoob2 Member

    Joined:
    Apr 18, 2017
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Croatia
    cPanel Access Level:
    Root Administrator
    Hello. Since our server's outgoing mail ports are blocked by the ISP , we would like to use a different SMTP server , mailgun.
    How would we go about doing such a thing? We would like to receive emails on our current local smtp server , but the outgoing mail needs to be sent via mailgun. Do I change the settings on exim or via DNS? How ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. madnoob2

    madnoob2 Member

    Joined:
    Apr 18, 2017
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Croatia
    cPanel Access Level:
    Root Administrator
    Even after following the tutorial in it's entirety , I still can't send the emails.
    The error I get (mail delivery) is :
    Code:
    Event: defer warning Sender User: mnoob Sender Domain: mydomain.com Sender: admin@mydomain.com Sent Time: Apr 26, 2017 4:50:16 PM Sender Host: mydomain.com Sender IP: myip Authentication: dovecot_plain Spam Score: Recipient: testmail@net.hr Delivered To: Delivery User: -system- Delivery Domain: Router: mailgun Transport: mailgun_transport Out Time: Apr 26, 2017 4:55:16 PM ID: 1d3OHM-0005nl-MB Delivery Host: Delivery IP: Size: 1.1 KB Result: Connection timed out 
    Even the support at mailgun can't help with the issue.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    If your provider blocks outgoing traffic over port 25, try using port 2525 when configuring your smart host entries. EX:

    Code:
    smtp.mailgun.org::2525
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. madnoob2

    madnoob2 Member

    Joined:
    Apr 18, 2017
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Croatia
    cPanel Access Level:
    Root Administrator
    Thank you Michael! It works now.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see it's now working well! Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice