[Split] SMTP Email Error, Errno 2

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
crywolfy
Registered User
Posts: 17
Joined: Sat Feb 14, 2015 4:34 pm
Location: Botosani
Name: Florin B

[Split] SMTP Email Error, Errno 2

Post by crywolfy »

lgis wrote: Thu Nov 23, 2023 7:16 am Solve!
I will soon write down what happened with the firewall server config and Dkim parameters, that can affect the SMTP-
Yes verry nice, thanks for posting back what happend. now after updating to 3.3.14 im getting same error with

Code: Select all

	Email error
» EMAIL/SMTP
/forum/adm/index.php?i=acp_board&sid=9c66314e099a446107238cc19d8f8b6f&mode=email

Could not connect to smtp host : 110 : Connection timed out

Errno 2: stream_socket_client(): Unable to connect to smtp-relay.brevo.com:587 (Connection timed out) at [ROOT]/includes/functions_messenger.php line 1193
the firewall is stopped for test, machine is my own VPS so no one can block anything for me, what is the problem ?

i have pinged the smtp server from the same machine as phpbb install and

Code: Select all

PING smtp-relay.brevo.com (1.179.115.1) 56(84) bytes of data.
64 bytes from 1.179.115.1: icmp_seq=1 ttl=101 time=50.4 ms
64 bytes from 1.179.115.1: icmp_seq=2 ttl=101 time=50.4 ms
64 bytes from 1.179.115.1: icmp_seq=3 ttl=101 time=50.4 ms
64 bytes from 1.179.115.1: icmp_seq=4 ttl=101 time=50.3 ms
64 bytes from 1.179.115.1: icmp_seq=5 ttl=101 time=50.3 ms
64 bytes from 1.179.115.1: icmp_seq=6 ttl=101 time=50.6 ms
64 bytes from 1.179.115.1: icmp_seq=7 ttl=101 time=50.3 ms
^C
--- smtp-relay.brevo.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6005ms
rtt min/avg/max/mdev = 50.264/50.397/50.601/0.098 ms

Code: Select all

Starting Nmap 7.93 ( https://nmap.org ) at 2024-11-28 07:13 UTC
Nmap scan report for smtp-relay.brevo.com (1.179.115.1)
Host is up (0.051s latency).

PORT    STATE    SERVICE
587/tcp filtered submission

Nmap done: 1 IP address (1 host up) scanned in 1.60 seconds
PHPBB must breake something with every update. :?
Im using that smtp for years, never had a problem.

MACHINE
OS: DEBIAN 12 X64
PHP: 8.3.14 (disabled_functIons: phpinfo)
MAIL: SMTP BREBO
WEB: NGINX 1.27.2
FW: UFW ports 25/587 allowed (off at the moment)
Last edited by Mick on Thu Nov 28, 2024 9:58 am, edited 1 time in total.
User avatar
halil16
Registered User
Posts: 1491
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [Split] SMTP Email Error, Errno 2

Post by halil16 »

I am also getting a similar error to this one. Test emails are sent without any problems. However, I am getting feedback that emails for forum subscriptions are not being delivered. It gives a similar error. I think this is a bug in version 3.3.14.
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
Hire me for your phpBB board. 🚩
Buy me a coffee ☕

"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
halil16
Registered User
Posts: 1491
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [Split] SMTP Email Error, Errno 2

Post by halil16 »

Are we the only ones having this problem? I encounter this error a lot after the update (3.3.14).
You do not have the required permissions to view the files attached to this post.
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
Hire me for your phpBB board. 🚩
Buy me a coffee ☕

"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53609
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [Split] SMTP Email Error, Errno 2

Post by Brf »

halil16 wrote: Mon Dec 02, 2024 7:41 pm Are we the only ones having this problem?
Your error is completely different.
Yours says it is being blocked for a security reason. The OPs is timing out on connection.
User avatar
halil16
Registered User
Posts: 1491
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [Split] SMTP Email Error, Errno 2

Post by halil16 »

So is it a problem with the host? Let me contact them then.
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
Hire me for your phpBB board. 🚩
Buy me a coffee ☕

"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
crywolfy
Registered User
Posts: 17
Joined: Sat Feb 14, 2015 4:34 pm
Location: Botosani
Name: Florin B

Re: [Split] SMTP Email Error, Errno 2

Post by crywolfy »

Still waiting for someone to have an ideea for this bug, im looking at last update viewtopic.php?p=16040113#p16040113 and i see no modifications to E-Mail's
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2563
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: [Split] SMTP Email Error, Errno 2

Post by P_I »

A more comprehensive list is available from Issues fixed in 3.3.14.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28950
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: [Split] SMTP Email Error, Errno 2

Post by Paul »

A connection timeout is more likely to be caused by or the receiving SMTP server, or something local on your server like a firewall. I can't really see how it can be caused by a update of phpBB.
User avatar
durangod
Registered User
Posts: 817
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: [Split] SMTP Email Error, Errno 2

Post by durangod »

I am having the same issue, which started after update as well. However, i also believe this is server related. I have my cpanel reseller looking into this as well. If we find a resolve i will post my resolve here.

Just FYI this is line 1193 in the error message

Code: Select all

$smtp->socket = @stream_socket_client($remote_socket, $errno, $errstr, 20, STREAM_CLIENT_CONNECT, $socket_context);
Username is short for durango dave
rxu
Extensions Development Team
Posts: 4018
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [Split] SMTP Email Error, Errno 2

Post by rxu »

The only change to the messenger for phpBB 3.3.14 is here https://github.com/phpbb/phpbb/pull/6705/files
One could upload includes/functions_messenger.php from 3.3.13 package to revert it and justify if the fix is the culprit.
User avatar
durangod
Registered User
Posts: 817
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: [Split] SMTP Email Error, Errno 2

Post by durangod »

Disregard.... sorry
Last edited by durangod on Fri Dec 06, 2024 1:26 am, edited 1 time in total.
Username is short for durango dave
User avatar
durangod
Registered User
Posts: 817
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: [Split] SMTP Email Error, Errno 2

Post by durangod »

disregard, sorry
Last edited by durangod on Fri Dec 06, 2024 1:27 am, edited 1 time in total.
Username is short for durango dave
rxu
Extensions Development Team
Posts: 4018
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [Split] SMTP Email Error, Errno 2

Post by rxu »

Thus, 3.3.14 update is not to blame, so it's up to the server configuration still. Thanks for the info.
User avatar
crywolfy
Registered User
Posts: 17
Joined: Sat Feb 14, 2015 4:34 pm
Location: Botosani
Name: Florin B

Re: [Split] SMTP Email Error, Errno 2

Post by crywolfy »

Like i said on first post, i can get to smtp relay using PING and NMAP on the same machine, no firewall, ive tested emails daily till i did update worked fine, i did not mess with VPS for months.

Yes, it's not phpbb fault, ive tested pterodactyl and same error, don't know how to debug further since is my own VPS and no firewall no nothing...

my VPS provider has blocked 587 :oops: :oops: i switched to 2525 and works ok

Thanks
User avatar
durangod
Registered User
Posts: 817
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: [Split] SMTP Email Error, Errno 2

Post by durangod »

@crywolfy Why would they block 587, thats crazy stuff. Well you got it working thats most important :)
Last edited by durangod on Fri Dec 06, 2024 1:20 am, edited 1 time in total.
Username is short for durango dave

Return to “[3.3.x] Support Forum”