# Использование Postfix с Discourse

**URL:** <https://meta.discourse.org/t/using-postfix-with-discourse/153841>\
**Category:** Self-hosting\
**Created:** [04.Июнь.2020 16:17:15 UTC](https://meta.discourse.org/t/using-postfix-with-discourse/153841 "2020-06-04T16:17:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cmoi](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@cmoi](https://meta.discourse.org/u/cmoi)\
**Post date:** [04.Июнь.2020 16:44:38 UTC](https://meta.discourse.org/t/using-postfix-with-discourse/153841/3 "2020-06-04T16:44:38Z")

</div>

Я перепробовал все возможные конфигурации.

Для моего Postfix /etc/postfix/main.cf:

```plaintext
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = discourse-mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = discourse-mydomain, mydomain.com, discourse-mydomain, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128, 140.82.40.82, 172.17.0.2
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 172.17.0.1
inet_protocols = all
home_mailbox = Maildir/
virtual_alias_maps = hash:/etc/postfix/virtual

```

Я даже изменил inet\_interfaces, чтобы они соответствовали моему Docker-контейнеру.

```plaintext
  DISCOURSE_SMTP_ADDRESS: mail.mydomain.com
  #DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME:
  DISCOURSE_SMTP_PASSWORD:
  #DISCOURSE_SMTP_ENABLE_START_TLS: true

```

Не вижу, где именно ошибка в конфигурации. Есть какие-нибудь идеи?

---

_[View the full topic](https://meta.discourse.org/t/using-postfix-with-discourse/153841)._
