# Discourse mail issue

**URL:** https://meta.discourse.org/t/discourse-mail-issue/162487
**Category:** Self-hosting
**Created:** [August 30, 2020, 7:22pm UTC](https://meta.discourse.org/t/discourse-mail-issue/162487 "2020-08-30T19:22:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![engs](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@engs](https://meta.discourse.org/u/engs)
#### Post date: [August 30, 2020, 7:22pm UTC](https://meta.discourse.org/t/discourse-mail-issue/162487/1 "2020-08-30T19:22:30Z")

</div>

Hello, there is a problem with my mail domain `smtp.yandex.com`, when i’m trying to setup discourse at my debian server. Problem is readtimeout when i trying to use my credentials with port 465, port 587 is forbidden for use by yandex and port 25 just closed. Was found some information about this issue with yandex and advice is - for discourse use Mailgun. So, now i try to find another way. At the same server was installed postfix, who can easily auth with the same creds on smtp server and now i’m looking a way to force them work together. I mean how to make postfix communicate with discourse instead of default mail-application, using my postfix configuration? Is it possible? Glad for any ideas, thx. Discourse was installed with this instruction: [https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [August 30, 2020, 9:56pm UTC](https://meta.discourse.org/t/discourse-mail-issue/162487/2 "2020-08-30T21:56:14Z")

</div>

Welcome to meta, @engs! Glad you are here.

Email is complicated, which is why using a service like mailgun is highly recommended. Also email deliverability can be hit or miss, even if you get it going on your own server, because of IP address reputation.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 31, 2020, 1:42am UTC](https://meta.discourse.org/t/discourse-mail-issue/162487/3 "2020-08-31T01:42:32Z")

</div>

> [@engs](#):
>
> Problem is readtimeout when i trying to use my credentials with port 465, port 587 is forbidden for use by yandex and port 25 just closed.

Sounds like a networking issue. You’ll need to work it out with your firewall or hosting provider.

> [@engs](#):
>
> At the same server was installed postfix, who can easily auth with the same creds on smtp server and now i’m looking a way to force them work together. I

Then you’ll need to configure your mail server to allow Discourse to connect. It’s easiest (at least from the Discourse perspective) if you assign a password.

There are a zillion things that make running a mail server hard. FWIW, back when email was easy, I ported sendmail and UUCP to Linux and ran my own mail server for a decade. I have tried a couple times to set up a mail server and haven’t yet bothered to be successful.
