Email DSN - Relay server error

Your software
My Mautic version is:
5.1
My PHP version is:

PHP Version 8.1.28

My Database type and version is:
mysql:8.0

Your problem

I want to use our relay server for sending emails.
We use the port 25 and no connection security. No username or password.
I managed to add in Email DSN the following
smtp://smtprelay.myorg.com:25?encryption=none

These errors are showing in the log:
Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000086:SSL routines::certificate verify failed

Steps I have tried to fix the problem:

I have added in Email DSN Options:
encryption none, so I have ?encryption=none

I also tried to add to local.php:
‘mailer_encryption’ => ‘none’,
‘mailer_auth_mode’ => ‘none’,

Does the mail server even allow to connect without encryption?

Hi,

Yes, connection is allowed on IP bases.

Hello!

Can you try to turn off TLS, since it’s enabled by default in SMTP.
Use the verify peer setting in your DSN

verify_peer=0
1 Like