我正在尝试在 centos 7 上使用 postfix/dovecot/maria DB 设置邮件服务器,但似乎遇到了障碍。
我无法向内部用户发送电子邮件,日志显示“邮件传输不可用”。我在线检查了一些资源,似乎没有找到帮助,服务已启动并正在运行。
/var/log/邮件日志
Mar 9 21:30:41 server postfix/qmgr[4953]: 2222637E93F: from=<[email protected]>, size=472, nrcpt=1 (queue active)
Mar 9 21:30:41 server postfix/qmgr[4953]: warning: connect to transport private/dovecot: No such file or directory
Mar 9 21:30:41 server postfix/error[4991]: 2222637E93F: to=<[email protected]>, relay=none, delay=0.14, delays=0.09/0.03/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)
Mar 9 21:34:53 server postfix/pickup[4952]: 59F6E2D66A4: uid=0 from=<root>
Mar 9 21:34:53 server postfix/cleanup[5145]: 59F6E2D66A4: message-id=<[email protected]>
Mar 9 21:34:53 server postfix/qmgr[4953]: 59F6E2D66A4: from=<[email protected]>, size=472, nrcpt=1 (queue active)
Mar 9 21:34:53 server postfix/qmgr[4953]: warning: connect to transport private/dovecot: No such file or directory
Mar 9 21:34:53 server postfix/error[5153]: 59F6E2D66A4: to=<[email protected]>, relay=none, delay=0.17, delays=0.12/0.03/0/0.03, dsn=4.3.0, status=deferred (mail transport unavailable)
Mar 9 21:35:22 server postfix/qmgr[4953]: C47911FB57A: from=<[email protected]>, size=476, nrcpt=1 (queue active)
Mar 9 21:35:22 server postfix/error[5153]: C47911FB57A: to=<[email protected]>, relay=none, delay=540, delays=540/0/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
我需要找出错误的根源。
答案1
就我个人而言,我了解了strace
该qmgr
过程,并希望看到错误来自何处。
dovecot 正在运行吗?website-internal.com
有MX记录吗?
当你跑步时会发生什么:
echo "test" | /usr/sbin/sendmail [email protected] [email protected]