我的 exim4 配置有问题。我尝试向 root 发送电子邮件,但电子邮件在队列中保持冻结状态。
我试过这个:
root@server2:~# echo TEST | mail -s "Hello this is testing email" root
并且电子邮件在队列中(冻结),请参阅下面的一些输出。
在日志 (/var/log/exim4/mainlog) 中有这条消息:
2014-06-11 11:47:36 1Wuf84-0004o3-E4 <= root@server2.mydomain.cz U=root P=local S=416
2014-06-11 11:47:36 1Wuf84-0004o3-E4 remote host address is the local host: server2.mydomain.cz
2014-06-11 11:47:36 1Wuf84-0004o3-E4 == mailer-daemon@server2.mydomain.cz R=dnslookup defer (-1): **remote host address is the local host**
2014-06-11 11:47:36 1Wuf84-0004o3-E4 Frozen
本地主机是可路由的(我希望):
root@server2:~# exim -bt localhost
LOG: MAIN
remote host address is the local host: server2.danielblazek.cz (while routing <localhost@server2.mydomain.cz>)
localhost@server2.mydomain.cz cannot be resolved at this time: remote host address is the local host
root@server2:~#
主机名的配置是正确的:
root@server2:~# hostname && hostname -f
server2
server2.mydomain.cz
别名似乎没问题:
root@server2:~# cat /etc/aliases
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: root
clamav: root
知道如何解决吗?使用 Postfix,我从来没有遇到过这样的问题。系统电子邮件始终发送到 /var/mail 文件夹。但是有了 exim4,我就陷入了困境。我需要接收系统电子邮件...
如果您需要更多信息或输出,请询问我。谢谢大家的回复!
丹尼尔