我使用以下后缀/etc/postfix/main.cf
:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level=may
smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = leibnizproject.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#myorigin = leibnizproject.com
myorigin = localhost
#mydestination = leibnizproject.com, 197t.l.hostens.cloud, localhost.l.hostens.cloud, localhost
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
inet_interfaces = all
inet_protocols = all
virtual_alias_domains = $myhostname
virtual_alias_maps = hash:/etc/postfix/virtual
当我尝试发送电子邮件至[email protected]
时,myPersonalEmail
我收到/var/log/mail.log
:
Feb 2 16:46:01 leibnizproject postfix/qmgr[35735]: DC70314073C: from=<myPersonalEmail>, size=6508, nrcpt=1 (queue active)
Feb 2 16:46:01 leibnizproject postfix/cleanup[35745]: 01DA114073E: message-id=<[email protected]>
Feb 2 16:46:01 leibnizproject postfix/qmgr[35735]: 01DA114073E: from=<myPersonalEmail>, size=6643, nrcpt=1 (queue active)
Feb 2 16:46:01 leibnizproject postfix/local[35756]: DC70314073C: to=<postmaster@localhost>, orig_to=<[email protected]>, relay=local, delay=0.15, delays=0.15/0.01/0/0, dsn=2.0.0, status=sent (forwarded as 01DA114073E)
Feb 2 16:46:01 leibnizproject postfix/qmgr[35735]: DC70314073C: removed
Feb 2 16:46:01 leibnizproject postfix/local[35756]: 01DA114073E: to=<postmaster@localhost>, orig_to=<[email protected]>, relay=local, delay=0.01, delays=0/0/0/0.01, dsn=5.4.6, status=bounced (mail forwarding loop for postmaster@localhost)
Feb 2 16:46:01 leibnizproject postfix/cleanup[35745]: 03F9A14073F: message-id=<[email protected]>
Feb 2 16:46:01 leibnizproject postfix/qmgr[35735]: 03F9A14073F: from=<>, size=8633, nrcpt=1 (queue active)
Feb 2 16:46:01 leibnizproject postfix/bounce[35758]: 01DA114073E: sender non-delivery notification: 03F9A14073F
Feb 2 16:46:01 leibnizproject postfix/qmgr[35735]: 01DA114073E: removed
Feb 2 16:46:01 leibnizproject postfix/smtpd[35741]: disconnect from sonic309-24.consmr.mail.ir2.yahoo.com[77.238.179.82] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
以下是 的内容/etc/postfix/virtual
:
[email protected] postmaster
我尝试修改一些参数,main.cf
但问题仍然存在。我不明白from=<>, size=8633, nrcpt=1 (queue active)
日志中为什么会有这行。是否尝试发送一封没有发件人的邮件?