# Email DSN - Relay server error

**URL:** <https://forum.mautic.org/t/email-dsn-relay-server-error/33379>\
**Category:** Product Support\
**Created:** [September 4, 2024, 7:11pm UTC](https://forum.mautic.org/t/email-dsn-relay-server-error/33379 "2024-09-04T19:11:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![handshake0955](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/handshake0955/32/12604_2.png) [@handshake0955](https://forum.mautic.org/u/handshake0955)\
**Post date:** [September 4, 2024, 7:11pm UTC](https://forum.mautic.org/t/email-dsn-relay-server-error/33379/1 "2024-09-04T19:11:14Z")

</div>

**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’,

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [September 8, 2024, 8:16am UTC](https://forum.mautic.org/t/email-dsn-relay-server-error/33379/2 "2024-09-08T08:16:53Z")

</div>

Does the mail server even allow to connect without encryption?

---

<div class="post-metadata">

**Author:** ![handshake0955](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/handshake0955/32/12604_2.png) [@handshake0955](https://forum.mautic.org/u/handshake0955)\
**Post date:** [September 8, 2024, 10:15am UTC](https://forum.mautic.org/t/email-dsn-relay-server-error/33379/3 "2024-09-08T10:15:19Z")

</div>

Hi,

Yes, connection is allowed on IP bases.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 9, 2024, 8:03am UTC](https://forum.mautic.org/t/email-dsn-relay-server-error/33379/4 "2024-09-09T08:03:35Z")

</div>

> [@handshake0955](#):
>
> smtp

Hello!

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

```auto
verify_peer=0

```
