Email Server setup - ssl / tls - issues

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
mcdaniels
Registered User
Posts: 1
Joined: Fri Feb 24, 2023 8:29 pm

Email Server setup - ssl / tls - issues

Post by mcdaniels »

Hi,
I am trying to set up my emailserver (at my hoster) in phpBB. I have tried every option, but Emails can not be sent (Using SMTP cause PHP-Mailer is not working).

The mailserver-smtp uses port 587 with TLS. So I set the server to:

tls://mailserver.provider.com
Port 587
Username: xxxx
Password: xxxx

I also tried:
ssl://mailserver.provider.com

and of course:
mailserver.provider.com

All other settings remain at the defaults.

There is not a single mail going out from phpBB cause of connection issues,

If I do not use tls:// or ssl:// there is no error logged, but emails are also not sent nor received at the receivers side.

Errors when using ssl:// tls://:

Code: Select all


Errno 2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number at [ROOT]/includes/functions_messenger.php line 1188<br />
Errno 2: stream_socket_client(): Failed to enable crypto at [ROOT]/includes/functions_messenger.php line 1188<br />
Errno 2: stream_socket_client(): Unable to connect to tls://smtp.world4you.com:587 (Unknown error) at [ROOT]/includes/functions_messenger.php line 1188

and

Errno 2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number at [ROOT]/includes/functions_messenger.php line 1188<br />
Errno 2: stream_socket_client(): Failed to enable crypto at [ROOT]/includes/functions_messenger.php line 1188<br />
Errno 2: stream_socket_client(): Unable to connect to ssl://smtp.world4you.com:587 (Unknown error) at [ROOT]/includes/functions_messenger.php line 1188
Is this problem situated at my provider, or is this an issue with phpBB?

Thanks a lot!
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26870
Joined: Fri Aug 29, 2008 9:49 am

Re: Email Server setup - ssl / tls - issues

Post by Mick »

I’d go for the host.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
MitjaStachowiak
Registered User
Posts: 39
Joined: Mon Dec 30, 2019 7:29 pm
Location: Reinheim, Germany

Re: Email Server setup - ssl / tls - issues

Post by MitjaStachowiak »

I have the same problem with Hetzner / KonsoleH for SMTP-Server mail.your-server.de:587.

Does maybe updating phpBB help?

[Edit:]
Using STARTTLS (no tls:// or ssl:// in server address) on Port 587 did it. I've tried al other combinations of protocol and port before :roll:

Return to “[3.3.x] Support Forum”