The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Using a different outgoing SMTP via mailgun

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

  1. madnoob2

    madnoob2 Member

    Joined:
    Apr 18, 2017
    Messages:
    8
    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:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. madnoob2

    madnoob2 Member

    Joined:
    Apr 18, 2017
    Messages:
    8
    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:
    37,064
    Likes Received:
    1,288
    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.
     
  5. madnoob2

    madnoob2 Member

    Joined:
    Apr 18, 2017
    Messages:
    8
    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:
    37,064
    Likes Received:
    1,288
    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.
     
Loading...

Share This Page