# Smtp error when I try to connect using SSL

**URL:** <https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834>\
**Category:** Product Support\
**Created:** [May 20, 2016, 4:31pm UTC](https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834 "2016-05-20T16:31:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![thaneor](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@thaneor](https://forum.mautic.org/u/thaneor)\
**Post date:** [May 20, 2016, 4:31pm UTC](https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834/1 "2016-05-20T16:31:13Z")

</div>

Hi guys,  
  
  
  
I can’t configure my smtp server with SSL  
  
I have this error :  
  
Connection could not be established with host [mail.mydomain.com](http://mail.mydomain.com) [#0] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [mail.mydomain.com](http://mail.mydomain.com) [#0] (code: 0)  
  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [mail.mydomain.com](http://mail.mydomain.com) [#0] (code: 0)  
  
  
  
I checked if open SSL was enabled and it is the case.  
  
  
  
I need help, Thank you,

---

<div class="post-metadata">

**Author:** ![thaneor](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@thaneor](https://forum.mautic.org/u/thaneor)\
**Post date:** [May 20, 2016, 4:31pm UTC](https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834/2 "2016-05-20T16:31:13Z")

</div>

Hi guys,

I can’t configure my smtp server with SSL  
I have this error :  
Connection could not be established with host [mail.mydomain.com](http://mail.mydomain.com) [#0] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [mail.mydomain.com](http://mail.mydomain.com) [#0] (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [mail.mydomain.com](http://mail.mydomain.com) [#0] (code: 0)

I checked if open SSL was enabled and it is the case.

I need help, Thank you,

---

<div class="post-metadata">

**Author:** ![thaneor](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@thaneor](https://forum.mautic.org/u/thaneor)\
**Post date:** [May 20, 2016, 5:49pm UTC](https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834/3 "2016-05-20T17:49:17Z")

</div>

local smtp

---

<div class="post-metadata">

**Author:** ![thaneor](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@thaneor](https://forum.mautic.org/u/thaneor)\
**Post date:** [May 22, 2016, 10:32am UTC](https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834/4 "2016-05-22T10:32:31Z")

</div>

Thank you, yes it works

---

<div class="post-metadata">

**Author:** ![krunal](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@krunal](https://forum.mautic.org/u/krunal)\
**Post date:** [May 25, 2016, 12:28pm UTC](https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834/5 "2016-05-25T12:28:51Z")

</div>

Dear Team,  
I can’t configure my smtp server.

Unable to connect with TLS encryption Log data: ++ Starting Swift\_SmtpTransport \<\< 220 ESMTP SMTA 1 PEPIPOST Ready \>\> EHLO \<\< 250-smta1…com 250-PIPELINING 250-SIZE 20783082 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN \>\> STARTTLS \<\< 220 2.0.0 Ready to start TLS !! Unable to connect with TLS encryption (code: 0)  
++ Starting Swift\_SmtpTransport \<\< 220 ESMTP SMTA 1 PEPIPOST Ready \>\> \<\< 250-smta1…com 250-PIPELINING 250-SIZE 20783082 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN \>\> STARTTLS \<\< 220 2.0.0 Ready to start TLS !! Unable to connect with TLS encryption (code: 0)

---

<div class="post-metadata">

**Author:** ![Sachin](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sachin](https://forum.mautic.org/u/Sachin)\
**Post date:** [May 26, 2016, 3:47am UTC](https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834/6 "2016-05-26T03:47:31Z")

</div>

Hi Krunal,

I am Sachin from Pepipost. I just saw your post and tried debugging the problem you encountered.  
It seems the sender domain which you tried configuring on Pepipost is not yet approved for sending emails.

Our compliance team has sent you an email regarding the same. In case you have missed the mail, then just send a mail to [support@pepipost.com](mailto:support@pepipost.com) with a brief description about your business line, the type of emails you planning to send and the size of your subscriber list.

For any help you can also reach us on our 24/7 live chat support.

Thanks,  
Sachin

---

<div class="post-metadata">

**Author:** ![krunal](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@krunal](https://forum.mautic.org/u/krunal)\
**Post date:** [May 26, 2016, 3:49am UTC](https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834/7 "2016-05-26T03:49:36Z")

</div>

Dear Team,

Below link to display PHP info.  
[http://www.impactfactorjournals.com/phpinfo.php](http://www.impactfactorjournals.com/phpinfo.php)

---

<div class="post-metadata">

**Author:** ![herilala](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@herilala](https://forum.mautic.org/u/herilala)\
**Post date:** [May 3, 2023, 7:31am UTC](https://forum.mautic.org/t/smtp-error-when-i-try-to-connect-using-ssl/3834/8 "2023-05-03T07:31:20Z")

</div>

> [@Sachin](#):
>
> Sachin from Pepipost. I just saw your post and tried debugging the problem you encountered.  
> It seems the sender domain which you tried configuring on Pepipost is not yet approved for sending emails.
> 
> Our compliance team has sent you an email regarding the same. In case you have missed the mail, then just send a mail to [support@pepipost.com](mailto:support@pepipost.com) with a brief description about your business line, the type of emails you planning to send and the size of your subscriber list.
> 
> For any help you can also reach us on our 24/7 live chat support.
> 
> Thanks,  
> Sachin

when i test the connexion with SMTP server in Mautic,could you help me?..this is my error : Envoyer un email de test

Connection could not be established with host :stream\_socket\_client(): php\_network\_getaddresses: getaddrinfo failed: Name or service not known Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host :stream\_socket\_client(): php\_network\_getaddresses: getaddrinfo failed: Name or service not known (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host :stream\_socket\_client(): php\_network\_getaddresses: getaddrinfo failed: Name or service not known (code: 0)
