# Unable to get SMTP function to work

**URL:** https://vaultwarden.discourse.group/t/unable-to-get-smtp-function-to-work/1882
**Category:** Help
**Created:** [September 17, 2022, 8:22am UTC](https://vaultwarden.discourse.group/t/unable-to-get-smtp-function-to-work/1882 "2022-09-17T08:22:02Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)
#### Post date: [September 17, 2022, 3:02pm UTC](https://vaultwarden.discourse.group/t/unable-to-get-smtp-function-to-work/1882/6 "2022-09-17T15:02:42Z")

</div>

Still, it looks like resolving the domain seems to have some issues.  
Could you run the following from the docker host and see if that works?

```bash
docker exec vaultwarden getent hosts smtp.office365.com
# And
docker exec vaultwarden getent ahosts smtp.office365.com

```

Where `vaultwarden` is the name of your container of course.

I just tested sendgrid my self, and it works just fine for me.

---

_[View the full topic](https://vaultwarden.discourse.group/t/unable-to-get-smtp-function-to-work/1882)._
