邮箱无法收件问题

发布于 2021-06-02 15:52:47

1. 检查邮件日志: /var/log/maillog

Jun 1 15:25:44 mail postfix/smtpd[1280]: Anonymous TLS connection established from unknown[219.142.247.90]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jun 1 15:25:44 mail postfix/smtpd[1280]: NOQUEUE: reject: RCPT from unknown[219.142.247.90]: 450 4.7.1 <mail.genetronhealth.com>: Helo command rejected: Host not found; from=<dong.ding@genetronhealth.com> to=<bjjw@genewill.cn> proto=ESMTP helo=<mail.genetronhealth.com>
Jun 1 15:25:44 mail postfix/smtpd[1280]: disconnect from unknown[219.142.247.90] ehlo=2 starttls=1 mail=1 rcpt=0/1 quit=1 commands=5/6

2. 检查一下postfix配置:注释掉这一行reject_unknown_sender_domain 和

# Sender restrictions
smtpd_sender_restrictions =
#    reject_unknown_sender_domain
    reject_non_fqdn_sender
    reject_unlisted_sender
    permit_mynetworks
    permit_sasl_authenticated
    check_sender_access pcre:/etc/postfix/sender_access.pcre

reject_unknown_helo_hostname(解决Host not found问题)

smtpd_helo_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    check_helo_access pcre:/etc/postfix/helo_access.pcre
#    reject_unknown_helo_hostname
1 条评论

发布
问题