我已经设置了一个带有 ubuntu、postfix、dovecot 和 mysql 的邮件服务器。
尝试从 Web 界面发送邮件邮件出去没有任何不便。从我的笔记本电脑(使用互联网)尝试使用电子邮件客户端我不能。我收到此错误:
2 月 13 日 11:44:48 邮件后缀/提交/smtpd[13066]:警告:未知 smtpd 限制:“permit_sasl_autenticated”
以下是:
2 月 13 日 11:44:48 邮件 postfix/submission/smtpd[13066]: NOQUEUE: reject: RCPT from unknown[37.176.162.9]: 451 4.3.5 服务器配置错误;from= to= proto=ESMTP helo=<[192.168.0.100]>
第二行是我的消息被服务器拒绝。
我检查了 /etc/postfix/main.cf 并且我的 TLS 配置如下:
# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_use_tls=yes
#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
#smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_cert_file=/etc/dovecot/cert.pem smtpd_tls_key_file=/etc/dovecot/private/cert.pem smtpd_use_tls=yes smtpd_tls_auth_only = yes
#Enabling SMTP for authenticated users, adn handing off autentication to Dovecot smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
如您所见,没有permit_sasl_autenticated
任何地方(整个文件中也没有)。
到底是怎么回事?你能帮我解决这个问题吗?
编辑 - 添加了我日志的更完整部分:
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: warning: hostname 217-221-73-77-static.albacom.net does not resolve to address 217.221.73.77: Name or service not known
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: connect from unknown[217.221.73.77]
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: disconnect from unknown[217.221.73.77]
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: warning: hostname 217-221-73-77-static.albacom.net does not resolve to address 217.221.73.77: Name or service not known
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: connect from unknown[217.221.73.77]
Feb 13 11:27:23 mail postfix/trivial-rewrite[12501]: warning: do not list domain montglane.it in BOTH mydestination and virtual_mailbox_domains
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: warning: unknown smtpd restriction: "permit_sasl_autenticated"
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: NOQUEUE: reject: RCPT from unknown[217.221.73.77]: 451 4.3.5 Server configuration error; from=<[email protected]> to=<[email protected]$
Feb 13 11:27:23 mail postfix/cleanup[12503]: D9AF313ED0D: message-id=<[email protected]>
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: disconnect from unknown[217.221.73.77]
Feb 13 11:27:23 mail postfix/oqmgr[3096]: D9AF313ED0D: from=<[email protected]>, size=1329, nrcpt=1 (queue active)
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: warning: hostname 217-221-73-77-static.albacom.net does not resolve to address 217.221.73.77: Name or service not known
Feb 13 11:27:23 mail postfix/submission/smtpd[12499]: connect from unknown[217.221.73.77]
Feb 13 11:26:49 mail dovecot: message repeated 3 times: [ auth: Warning: auth client 0 disconnected with 1 pending requests: EOF]
Feb 13 11:27:23 mail dovecot: lmtp(12507): Connect from local
Feb 13 11:27:24 mail dovecot: lmtp(12507, [email protected]): eXI0OAuKoVjbMAAAiLNN4A: msgid=<[email protected]>: saved mail to INBOX
Feb 13 11:27:24 mail dovecot: lmtp(12507): Disconnect from local: Successful quit
Feb 13 11:27:24 mail postfix/lmtp[12506]: D9AF313ED0D: to=<[email protected]>, orig_to=<postmaster>, relay=mail.montglane.it[private/dovecot-lmtp], delay=0.15, delays=0.04/0.01/0.$
Feb 13 11:27:24 mail postfix/oqmgr[3096]: D9AF313ED0D: removed
Feb 13 11:27:24 mail postfix/submission/smtpd[12499]: warning: unknown smtpd restriction: "permit_sasl_autenticated"
Feb 13 11:27:24 mail postfix/submission/smtpd[12499]: NOQUEUE: reject: RCPT from unknown[217.221.73.77]: 451 4.3.5 Server configuration error; from=<[email protected]> to=<[email protected]$
Feb 13 11:27:24 mail postfix/cleanup[12503]: 2A96D13ED0D: message-id=<[email protected]>
Feb 13 11:27:24 mail postfix/oqmgr[3096]: 2A96D13ED0D: from=<[email protected]>, size=1329, nrcpt=1 (queue active)
Feb 13 11:27:24 mail postfix/submission/smtpd[12499]: disconnect from unknown[217.221.73.77]
Feb 13 11:27:24 mail dovecot: lmtp(12507): Connect from local
Feb 13 11:27:24 mail dovecot: lmtp(12507, [email protected]): fXI0OAuKoVjbMAAAiLNN4A: msgid=<[email protected]>: saved mail to INBOX
Feb 13 11:27:24 mail postfix/lmtp[12506]: 2A96D13ED0D: to=<[email protected]>, orig_to=<postmaster>, relay=mail.montglane.it[private/dovecot-lmtp], delay=0.09, delays=0.02/0/0/0.0$
Feb 13 11:27:24 mail dovecot: lmtp(12507): Disconnect from local: Successful quit
Feb 13 11:27:24 mail postfix/oqmgr[3096]: 2A96D13ED0D: removed
将您的身份验证方法添加到您的
/etc/master.cf
文件中。查找与此类似的条目:更改 Postfix 配置后,请务必重新启动服务。