Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: nfmovil on May 03, 2016, 12:04:24 AM

Title: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 03, 2016, 12:04:24 AM
Hi, i don´t know how to use it.
I create an account in mailgun and always I get error SMTP: 111 : Connection refused
In Hosting dns are modified.

(https://i.imgur.com/OA9jFwC.png)

(https://i.imgur.com/k4K4NWe.png)

(https://i.imgur.com/BvK568i.png)
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: br360 on May 03, 2016, 01:53:35 AM
That's a "cant connect to server" error. Where the SMTP username box is, shouldn't it be something different than [email protected]?
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: Jailer on May 05, 2016, 08:40:28 PM
Try port 587
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 05, 2016, 09:09:45 PM
Quote from: Jailer on May 05, 2016, 08:40:28 PM
Try port 587

No fue posible conectarse al servidor SMTP: 111 : Connection refused

foros/index.php?action=emailuser;sa=email
2: fsockopen(): unable to connect to smtp.mailgun.org:587 (Connection refused)
/public_html/foros/Sources/Subs-Post.php
Linea : 1365

1364: // Try to connect to the SMTP server... if it doesn't exist, only wait three seconds.
==>1365: if (!$socket = fsockopen($modSettings['smtp_host'], empty($modSettings['smtp_port']) ? 25 : $modSettings['smtp_port'], $errno, $errstr, 3))
1366:
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: Shambles on May 06, 2016, 03:26:43 AM
Try setting "SMTP Hostname" to

ssl://smtp.mailgun.org
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 06, 2016, 12:15:04 PM
Quote from: Shambles on May 06, 2016, 03:26:43 AM
Try setting "SMTP Hostname" to

ssl://smtp.mailgun.org

fsockopen(): unable to connect to ssl://smtp.mailgun.org:587 (Connection refused)
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: Shambles on May 06, 2016, 01:07:14 PM
Try that again with port 465
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 06, 2016, 01:11:21 PM
fsockopen(): unable to connect to ssl://smtp.mailgun.org:465 (Connection refused)

:-\
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: Shambles on May 06, 2016, 01:17:59 PM
Can you check if you have OpenSSL installed? Running a php_info should tell us.


http://wiki.simplemachines.org/smf/What_is_a_phpinfo()_file
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 06, 2016, 01:20:54 PM
(https://i.imgur.com/i8u0c0L.png)
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: Shambles on May 06, 2016, 01:24:38 PM
Ok, last suggestion from me for a while, remove the ssl:// and try port 2525

https://help.mailgun.com/hc/en-us/articles/203380100-Where-can-I-find-my-API-key-and-SMTP-credentials-
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 06, 2016, 01:45:21 PM
fsockopen(): unable to connect to smtp.mailgun.org:2525 (Connection refused)

http://www.simplemachines.org/community/index.php?topic=452364.0

I will change to banahosting , no more goddady
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: margarett on May 06, 2016, 05:42:09 PM
tls://smtp.mailgun.org
maybe?

Yeah we had several issues with Godaddy not allowing any SMTP connections. Maybe you ask them?
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 06, 2016, 08:58:41 PM
of course, like 15 times? 20 times? i'm tired of this guys... now I am moving all to new server. thank you all anyway.
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: Shambles on May 07, 2016, 04:17:34 AM
Sorry we couldn't get this sorted.

Have you considered using googlemail/gmail as your smtp provider? Works a treat.
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 07, 2016, 04:19:56 AM
yes, but i can´t find a guide how to install.  :(
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: Shambles on May 07, 2016, 04:58:13 AM
1- Create yourself a (free) gmail account

2- Make a minor code change as follows:

http://www.simplemachines.org/community/index.php?topic=544856.msg3870010#msg3870010


3- Configure your mail as follows:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FzJimC2U.png&hash=c0b7966b2cdc6188eff4afe98a5acfa34b61bcae)
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 07, 2016, 05:18:08 AM
: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Connection refused)

problem is godaddy
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: Shambles on May 07, 2016, 05:19:17 AM
Ahh, ok then. Was worth a try.

Good luck with your better new host :)
Title: Re: some tips or manual for mailgun? SMTP: 111 : Connection refused
Post by: nfmovil on May 07, 2016, 05:21:07 AM
yes, thank you pal