无法接收邮件,但可以通过 [email protected] 发送

无法接收邮件,但可以通过 [email protected] 发送

错误日志

Oct  6 06:09:59 ideashost postfix/smtpd[11673]: Anonymous TLS connection established from mail-io0-x229.google.com[2607:f8b0:4001:c06::229]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Oct  6 06:09:59 ideashost postfix/smtpd[11673]: NOQUEUE: reject: RCPT from mail-io0-x229.google.com[2607:f8b0:4001:c06::229]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-io0-x229.google.com>
Oct  6 06:09:59 ideashost postfix/smtpd[11673]: disconnect from mail-io0-x229.google.com[2607:f8b0:4001:c06::229] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=5/7

后配置-n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
compatibility_level = 2
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = $myhostname, $mydomain, localhost.ideaszambia.org, localhost
mydomain = mail.ideaszambia.org
myhostname = mail.ideaszambia.org
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/letsencrypt/live/mail.ideaszambia.org/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/mail.ideaszambia.org/privkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = $mydomain
virtual_alias_maps = hash:/etc/postfix/virtual

我哪里错了

答案1

您已将邮件服务器配置为接受发往以下域的邮件:

mydomain = mail.ideaszambia.org
myhostname = mail.ideaszambia.org
mydestination = $myhostname, $mydomain, localhost.ideaszambia.org, localhost
virtual_alias_domains = $mydomain

电子邮件地址的域名 不在该列表中,因此邮件被拒绝。您很可能希望将其添加到 ieto=<[email protected]>ideaszambia.orgvirtual_alias_domains

virtual_alias_domains = $mydomain ideaszambia.org

相关内容