postfix centos 7 服务器中的传入电子邮件未进入收件箱

postfix centos 7 服务器中的传入电子邮件未进入收件箱

我正在使用 Centos 7 和 postfix。虽然我可以从我的服务器发送电子邮件,但我无法阅读电子邮件,因为我的 postfix“maildir”中没有收到电子邮件,所以我命令检查邮件日志 -

[root@server ~]# tail -f /var/log/maillog
Oct  9 09:59:43 server postfix/cleanup[17670]: 5B4DF2A0B52: message-id=<[email protected]>
Oct  9 09:59:43 server postfix/bounce[17673]: 8BA892A0A57: sender non-delivery notification: 5B4DF2A0B52
Oct  9 09:59:43 server postfix/qmgr[17266]: 5B4DF2A0B52: from=<>, size=4929, nrcpt=1 (queue active)
Oct  9 09:59:43 server postfix/qmgr[17266]: 8BA892A0A57: removed
Oct  9 09:59:44 server postfix/smtpd[17645]: disconnect from sonic302-19.consmr.mail.sg3.yahoo.com[106.10.242.139]
Oct  9 09:59:45 server postfix/smtp[17674]: 5B4DF2A0B52: to=<[email protected]>, relay=mta5.am0.yahoodns.net[74.6.137.63]:25, delay=2.5, delays=0/0.02/1/1.5, dsn=2.0.0, status=sent (250 ok dirdel)
Oct  9 09:59:45 server postfix/qmgr[17266]: 5B4DF2A0B52: removed
Oct  9 10:03:04 server postfix/anvil[17648]: statistics: max connection rate 1/60s for (smtp:106.10.242.139) at Oct  9 09:59:40
Oct  9 10:03:04 server postfix/anvil[17648]: statistics: max connection count 1 for (smtp:106.10.242.139) at Oct  9 09:59:40
Oct  9 10:03:04 server postfix/anvil[17648]: statistics: max cache size 1 at Oct  9 09:59:40

我认为电子邮件会自动从我的服务器中删除。

请检查日志并提供适当的解决方案来解决此问题。

答案1

您发布的日志片段是“发件人未送达通知”,这意味着您收到通知,您尝试发送的电子邮件已被退回。

来自Postfix 手册

   The bounce(8) daemon maintains per-message log files with delivery sta-
   tus information. Each log file is named after the queue  file  that  it
   corresponds  to,  and  is  kept in a queue subdirectory named after the
   service name in the master.cf file (either  bounce,  defer  or  trace).
   This program expects to be run from the master(8) process manager.
   The bounce(8) daemon processes two types of service requests:

   o      Append a recipient (non-)delivery status record to a per-message
          log file.

   o      Enqueue a delivery status notification message, with a copy of a
          per-message log file and of the corresponding message.  When the
          delivery status notification message is  enqueued  successfully,
          the per-message log file is deleted.

   The  software does a best notification effort. A non-delivery notifica-
   tion is sent even when the log file or the original message  cannot  be
   read.

运行自己的电子邮件服务器非常复杂,除非绝对必要,否则我建议不要这样做,而应该花钱请别人来做。(Gmail、Office365、Fastmail 等……)除了让守护进程正常运行之外,还有几层安全措施需要处理,其中许多措施很容易出错。如果你处理不当,你的电子邮件服务器很容易被当作垃圾邮件中继站。然后你就会被屏蔽,然后一段时间内你都不会再给任何人发送任何东西。

相关内容