我在服务器上设置了 postfix,它会将根邮件转发到我的 Gmail。我在使用 postfix 时遇到了问题。
当邮件root@mydomain
到达 Gmail 时,它会进入收件箱文件夹和发送文件夹。发送文件夹保存相同的消息。我解释一下。当我删除已发送文件夹中的消息时,它也会从收件箱文件夹中删除。当我删除收件箱文件夹中的消息时,它也会从已发送文件夹中删除。
我有以下信息:
From: [email protected]
To: root@mydomain
Bcc: [email protected]
这是我的 postfix 配置:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
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
smtp_use_tls = yes
smtp_tls_loglevel=1
smtp_tls_security_level=encrypt
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_un$
myhostname = mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, mydomain, localhost.localdomain, localhost
relayhost = [smtp.gmail.com]:587
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
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
为什么会发生这种情况?消息不会尝试发送到互联网并mydomain
在互联网上找到吗?