【发布时间】:2014-11-26 23:11:28
【问题描述】:
我使用的服务器是 FreeBSD,而 sendmail 最近刚刚停止发送电子邮件。我一直在谷歌上做很多研究,我已经从很多不同的网站尝试了很多东西,但到目前为止没有任何效果。
这是 sendmail 命令的输出:
# echo "test" | mail -v -s test test@test.com
test@test.com... Connecting to [127.0.0.1] via relay...
test@test.com... Deferred: Connection refused by [127.0.0.1]
这是端口 25 上的 telnet:
# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: connect to address ::1: Connection refused
telnet: Unable to connect to remote host
这是 netstat 输出的一部分:
tcp4 0 0 the.first.ip.address.25 *.* LISTEN
tcp4 0 0 the.second.ip.address.26 *.* LISTEN
tcp4 0 0 the.third.ip.address.25 *.* LISTEN
tcp4 0 0 the.fourth.ip.address.25 *.* LISTEN
tcp4 0 0 the.main.server.ip.address.25 *.* LISTEN
到目前为止我尝试过的一些事情:
1) changed settings /etc/hosts file
2) changed settings in the .mc file, then make, make install, service sendmail restart
3) directly changed the .cf file since changing .mc file didn't fix the problem, then "service sendmail restart"
如果有人以前遇到过这个问题或知道如何解决它,我愿意接受。
谢谢!
【问题讨论】:
标签: email localhost sendmail freebsd