# SMTP Email Settings not working

**URL:** <https://vaultwarden.discourse.group/t/smtp-email-settings-not-working/2552>\
**Category:** Help\
**Created:** [April 3, 2023, 10:30pm UTC](https://vaultwarden.discourse.group/t/smtp-email-settings-not-working/2552 "2023-04-03T22:30:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scala](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Scala](https://vaultwarden.discourse.group/u/Scala)\
**Post date:** [April 3, 2023, 10:30pm UTC](https://vaultwarden.discourse.group/t/smtp-email-settings-not-working/2552/1 "2023-04-03T22:30:50Z")

</div>

Hi everyone, I see a lot of topics like this one but I can’t get my email working with all the examples that I was reading here in the forum.

 ![Captura de ecrã 2023-04-04, às 00.27.54](https://global.discourse-cdn.com/free1/uploads/vaultwarden/original/2X/b/bac150f09a786923d6ca61dbbc7cb55171303f73.png)

> Secure SSL/TLS Settings (Recommended)
> 
> | Username: | vaultwarden@andrescala.pt |
> | --- | --- |
> | Password: | Use the email account’s password. |
> | Incoming Server: | mail.andrescala.pt |
> 
> - IMAP Port: 993
> 
> - POP3 Port: 995|  
> |Outgoing Server:|mail.andrescala.pt
> 
> - SMTP Port: 465|  
> |IMAP, POP3, and SMTP require authentication.|

I tried so many combinations ☹  
I saw in one post to check the box for " `Force TLS`" but don’t see how.

Best regards, Scala  
🍻

---

<div class="post-metadata">

**Author:** ![stefan0xC](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/stefan0xc/32/1765_2.png) [@stefan0xC](https://vaultwarden.discourse.group/u/stefan0xC)\
**Post date:** [April 4, 2023, 2:52am UTC](https://vaultwarden.discourse.group/t/smtp-email-settings-not-working/2552/2 "2023-04-04T02:52:05Z")

</div>

What authentication mechanism would `Mechanism` be? 🤨 Try leaving that field empty or use a supported one.  
According to the wiki page the combination `465` and `force_tls` should most likely work:

> **[SMTP Configuration](https://github.com/dani-garcia/vaultwarden/wiki/SMTP-Configuration)**
>
> Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden\_rs - dani-garcia/vaultwarden

---

<div class="post-metadata">

**Author:** ![Scala](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Scala](https://vaultwarden.discourse.group/u/Scala)\
**Post date:** [April 4, 2023, 6:06am UTC](https://vaultwarden.discourse.group/t/smtp-email-settings-not-working/2552/3 "2023-04-04T06:06:31Z")

</div>

Hi, thanks for answer.

 ![Captura de ecrã 2023-04-04, às 08.04.01](https://global.discourse-cdn.com/free1/uploads/vaultwarden/original/2X/2/2aa498e4e7d2203356b4baab6b8b38ae9e608fa3.png)

I’m still get the error:

> Error sending SMTP test email  
> SMTP error: Connection error: Cannot assign requested address (os error 99)

The ‘mechanism’ I thought that was a textholder so I’ve rebuild the container without that and is empty now.

I’ve read the wiki and still don’t understand what I’m doing wrong ☹

PS: should I have an IP for the ROCKET\_ADDRESS?

---

<div class="post-metadata">

**Author:** ![stefan0xC](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/stefan0xc/32/1765_2.png) [@stefan0xC](https://vaultwarden.discourse.group/u/stefan0xC)\
**Post date:** [April 4, 2023, 6:21am UTC](https://vaultwarden.discourse.group/t/smtp-email-settings-not-working/2552/4 "2023-04-04T06:21:46Z")

</div>

From the Troubleshooting section:

> Most of the time it’s […] the ISP/Hosting blocking the ports or IP’s.

Can you check if you have a firewall on your smtp host?

---

<div class="post-metadata">

**Author:** ![Scala](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Scala](https://vaultwarden.discourse.group/u/Scala)\
**Post date:** [April 4, 2023, 6:45am UTC](https://vaultwarden.discourse.group/t/smtp-email-settings-not-working/2552/5 "2023-04-04T06:45:57Z")

</div>

I’ll ask them but I never had nothing blocked from them, will see.  
Back later with more info.  
Thanks for the support

EDIT:  
Wait: you mean in my server?

> sudo ufw status  
> Status: inactive

EDIT2:  
With Gmail works normal 😕 😕 😕
