Ubuntu postfix 无法接收电子邮件

Ubuntu postfix 无法接收电子邮件

我无法接收电子邮件,但发送它们工作正常,
不知道下一步该怎么做如果有人能指出错误或为我指明正确的方向,我将不胜感激。

Postfix main.cf 文件

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/dlcincluded.crt
smtpd_tls_key_file=/etc/ssl/private/dlcincluded.key
smtpd_use_tls=yes
smtp_tls_security_level = may
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
smtpd_data_restrictions = reject_unauth_pipelining
myhostname = dlcincluded.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
virtual_alias_maps = hash:/etc/postfix/virtual

tail -f /var/log/mail.log

Aug 12 10:17:46 dlcincluded postfix/smtpd[3925]: connect from mail-pf0-f174.google.com[209.85.192.174]
Aug 12 10:17:46 dlcincluded postfix/smtpd[3925]: warning: connect to Milter service inet:localhost:8891: Connection refused
Aug 12 10:17:46 dlcincluded postfix/smtpd[3925]: NOQUEUE: reject: RCPT from mail-pf0-f174.google.com[209.85.192.174]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-pf0-f174.google.com>
Aug 12 10:17:46 dlcincluded postfix/smtpd[3925]: disconnect from mail-pf0-f174.google.com[209.85.192.174] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=5/7

答案1

问题产生的原因是因为我没有域名
mydestination = localhost。它需要mydestination = dlcincluded.com, localhost

答案2

check_relay_domains已经在 postfix 中被删除了很长一段时间。它被替换为reject_unauth_destination. 在您的smtpd_recipient_restrictions


看起来你的 milter demon(OpenDKIM?)也没有运行,但这可能是一个单独的问题。

相关内容