我在一台服务器上使用 postfix,无法从命令行发送电子邮件。下面是命令的摘录postconf -n
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = loopback-only
mailbox_size_limit = 0
milter_default_action = tempfail
milter_protocol = 6
mydestination = ip-10-1-1-47, ip-10-1-1-47, localhost.localdomain, localhost
myhostname = ip-10-1-1-47
mynetworks = 127.0.0.0/8
myorigin = example.com
non_smtpd_milters =
recipient_delimiter = +
relayhost = [smtp.exampleapp.com]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = no
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_milters =
smtpd_use_tls = no
以下是 Postfix 日志。日志显示电子邮件已发送,但我从未收到电子邮件。
Oct 18 19:41:53 ip-10-1-1-47 postfix/smtpd[10425]: connect from localhost[127.0.0.1]
Oct 18 19:41:53 ip-10-1-1-47 postfix/smtpd[10425]: B7719421A8: client=localhost[127.0.0.1]
Oct 18 19:41:53 ip-10-1-1-47 postfix/cleanup[10428]: B7719421A8: message-id=<1476819713.1934825492@ip-10-1-1-47>
Oct 18 19:41:53 ip-10-1-1-47 postfix/smtpd[10425]: disconnect from localhost[127.0.0.1]
Oct 18 19:41:53 ip-10-1-1-47 postfix/qmgr[4955]: B7719421A8: from=<[email protected]>, size=620, nrcpt=1 (queue active)
Oct 18 19:41:53 ip-10-1-1-47 postfix/smtp[10429]: B7719421A8: to=<[email protected]>, relay=smtp.exampleapp.com[52.6.223.177]:25, delay=0.07, delays=0.04/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as C150F4800D9)
Oct 18 19:41:53 ip-10-1-1-47 postfix/qmgr[4955]: B7719421A8: removed
任何建议都会很有帮助。谢谢 注意:我已经仔细检查了我的收件箱。