# SMTP sending issues with vitxi

**URL:** <https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319>\
**Category:** VitXi WebRTC\
**Created:** [August 22, 2021, 2:32pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319 "2021-08-22T14:32:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mads\_Mortensen](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@Mads\_Mortensen](https://forums.vitalpbx.org/u/Mads_Mortensen)\
**Post date:** [August 22, 2021, 2:32pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/1 "2021-08-22T14:32:05Z")

</div>

Gentlemen,  
I have issue making SMTP from vixit working.

We get the following error message

The mail could not be sent  
Connection could not be established with host XXXXXX.XXXX :stream\_socket\_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3\_get\_server\_certificate:certificate verify failed

Which makes no sense to me, as the cert I fully valid

---

<div class="post-metadata">

**Author:** ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)\
**Post date:** [August 22, 2021, 2:35pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/2 "2021-08-22T14:35:40Z")

</div>

Where and when do you get this error?

---

<div class="post-metadata">

**Author:** ![maynor](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@maynor](https://forums.vitalpbx.org/u/maynor)\
**Post date:** [August 23, 2021, 3:25pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/3 "2021-08-23T15:25:51Z")

</div>

Hello Sir,

Try changing the media encryption from TLS to SSL and set the port to 465.

---

<div class="post-metadata">

**Author:** ![Mads\_Mortensen](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@Mads\_Mortensen](https://forums.vitalpbx.org/u/Mads_Mortensen)\
**Post date:** [August 23, 2021, 3:41pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/4 "2021-08-23T15:41:37Z")

</div>

Good afternoon,  
I have tried both TLS and SSL  
Changed port etc

Tried on 3 different smtps  
Same results

---

<div class="post-metadata">

**Author:** ![maynor](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@maynor](https://forums.vitalpbx.org/u/maynor)\
**Post date:** [August 23, 2021, 8:33pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/5 "2021-08-23T20:33:57Z")

</div>

Do you have a self-signed certificate? or do you have a valid one?

---

<div class="post-metadata">

**Author:** ![Mads\_Mortensen](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@Mads\_Mortensen](https://forums.vitalpbx.org/u/Mads_Mortensen)\
**Post date:** [August 23, 2021, 8:36pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/6 "2021-08-23T20:36:00Z")

</div>

We have a valid one,

---

<div class="post-metadata">

**Author:** ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)\
**Post date:** [August 23, 2021, 8:54pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/7 "2021-08-23T20:54:20Z")

</div>

Correct me if I am wrong. It looks like the mail server’s cert is not valid.

Does the same configuration work within the PBX’s mail settings?

---

<div class="post-metadata">

**Author:** ![Mads\_Mortensen](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@Mads\_Mortensen](https://forums.vitalpbx.org/u/Mads_Mortensen)\
**Post date:** [August 23, 2021, 9:04pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/8 "2021-08-23T21:04:51Z")

</div>

same settings works perfect with the PBX,

---

<div class="post-metadata">

**Author:** ![dannylarsen](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/dannylarsen/32/1741_2.png) [@dannylarsen](https://forums.vitalpbx.org/u/dannylarsen)\
**Post date:** [December 22, 2021, 12:03am UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/9 "2021-12-22T00:03:49Z")

</div>

I am also seeing this issue on Vitxi Version 1.0.6-6  
The same smtp settings on the Vitalpbx gui work without an issue

---

<div class="post-metadata">

**Author:** ![maynor](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@maynor](https://forums.vitalpbx.org/u/maynor)\
**Post date:** [December 23, 2021, 4:57pm UTC](https://forums.vitalpbx.org/t/smtp-sending-issues-with-vitxi/319/10 "2021-12-23T16:57:40Z")

</div>

Hello Sir,

Can you share a screenshot of your email settings on VitalPBX?

Best Regards!
