Postfix - 电子邮件丢失,日志中没有消息

Postfix - 电子邮件丢失,日志中没有消息

我正在 VPS 上为自己设置一个postfix+dovecot邮件服务器。我计划用它托管几个域,并能够通过 MySQL 管理用户。

它目前按我期望的方式工作,但它会错过从某些主机发送的电子邮件。发生这种情况时,日志中没有任何内容。所以我很难弄清楚为什么会发生这种情况,任何可以指出我正确方向的信息都将不胜感激。

以下是我目前进行的一些测试:

(多个主机也发生同样的情况)

以下是我的内容postfix/master.cf

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.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

myhostname = mydomain.com
myorigin = /etc/mailname
mydestination = localhost.net, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_base = /srv/mail
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_alias_domains =

sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix
data_directory = /var/lib/postfix

message_size_limit = 30720000

smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
broken_sasl_auth_clients = yes

proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

And in the VPS: Debian Wheezy, Postfix 2.9.6, Dovecot 2.1.7

我会继续尝试找出原因,或者至少记录一些内容并更新帖子。

答案1

我觉得你的 MX 记录可能存在问题。你可能需要使用 mxtoolbox.com 之类的网站来验证它们,以确保它们显示正确。查看其中一条成功消息的标题。你经常可以在那里找到问题的线索。

相关内容