SOLVED Using a different outgoing SMTP via mailgun

madnoob2

Active Member
Apr 18, 2017
39
0
6
Austria
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 ?
 

madnoob2

Active Member
Apr 18, 2017
39
0
6
Austria
cPanel Access Level
Root Administrator
Hello,

Here's a third-party URL where this is discussed:

Configure Mailgun on cPanel (Exim)

Thanks!
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: [email protected] Sent Time: Apr 26, 2017 4:50:16 PM Sender Host: mydomain.com Sender IP: myip Authentication: dovecot_plain Spam Score: Recipient: [email protected] 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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Result: Connection timed out
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

I'm happy to see it's now working well! Thank you for updating us with the outcome.