Postfix проблема с отправкой на любые emai'ы Relay access denied Что не так в конфигурации?

Aug 14 15:18:15 server postfix/smtpd[2268]: connect from localhost[127.0.0.1]
Aug 14 15:18:15 server postfix/smtpd[2268]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 554 5.7.1 <xx@gmail.com>: Relay access denied; from=<xx@xx.su> to=<xx@gmail.com> proto=ESMTP helo=<xx.su>
Aug 14 15:18:15 server postfix/smtpd[2268]: warning: non-SMTP command from localhost[127.0.0.1]: To: xx@gmail.com
Aug 14 15:18:15 server postfix/cleanup[1296]: 0845DDC13E7: message-id=<20140814111815.0845DDC13E7@mail.xx.su>
Aug 14 15:18:15 server postfix/smtpd[2268]: disconnect from localhost[127.0.0.1]
Aug 14 15:18:15 server postfix/qmgr[1278]: 0845DDC13E7: from=<double-bounce@mail.xx.su>, size=982, nrcpt=1 (queue active)
Aug 14 15:18:15 server postfix/smtp[2269]: 0845DDC13E7: to=<postmaster@change-this-to-your.domain.tld>, orig_to=<postmaster>, relay=none, delay=0.08, delays=0.06/0.01/0.01/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=change-this-to-your.domain.tld type=A: Host not found)
Aug 14 15:18:15 server postfix/bounce[1302]: warning: 0845DDC13E7: undeliverable postmaster notification discarded
Aug 14 15:18:15 server postfix/qmgr[1278]: 0845DDC13E7: removed


Настройки /etc/postfix/main.cf
smtp_helo_name = xx.su
myhostname = mail.xx.su
mydomain = xxsu
myorigin = xx.su
mydestination = $myhostname, localhost.$mydomain, localhost
inet_protocols = ipv4
inet_interfaces = all
mynetworks =
notify_classes = resource, software, protocol, policy
virtual_minimum_uid = 120
virtual_uid_maps = static:120
virtual_gid_maps = static:120
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
local_recipient_maps = $alias_maps
message_size_limit = 31457280
smtpd_client_restrictions =  permit_mynetworks,  permit_sasl_authenticated, reject_unknown_client_hostname
smtpd_helo_restrictions =  permit_mynetworks,  permit_sasl_authenticated,  reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname,
reject_unknown_helo_hostname

smtpd_helo_required = yes
smtpd_sender_restrictions =  reject_non_fqdn_sender,  reject_unknown_sender_domain, permit_mynetworks, permit_sasl_authenticated
smtpd_recipient_restrictions =  reject_non_fqdn_recipient,  reject_unknown_recipient_domain,  permit_mynetworks,
  permit_sasl_authenticated,  reject_unauth_destination,  reject_unlisted_recipient

virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/domains.cf

virtual_alias_maps =
   mysql:/etc/postfix/sql/alias.cf,
   mysql:/etc/postfix/sql/alias_domain.cf,
   mysql:/etc/postfix/sql/alias_domain_catchall.cf
virtual_mailbox_maps =
   mysql:/etc/postfix/sql/mailbox.cf,
   mysql:/etc/postfix/sql/alias_domain_mailbox.cf

# Dovecot LDA
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
virtual_mailbox_base = /home/vmail

# Dovecot SASL
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
  • Вопрос задан
  • 18885 просмотров
Решения вопроса 1
@s1dney
mynetworks = 127.0.0.0/8
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы