centos 5.3 64
用mutt 发送邮件。发不了。检查host文件,修改为如下:
[root@server217 ~]#cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.0.217 server217 server217.localdomain localhost
127.0.0.1 localhost
还是发不出去。重新启动sendmail服务。就可以发送。
#service sendmail restart
发送不成功的日志:
Feb 21 09:25:24 server217 sendmail[9284]: q1L1POSb009284: from=root, size=817, class=0, nrcpts=1, msgid=<>,
Feb 21 09:25:24 server217 sendmail[9284]: q1L1POSb009284:, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30817, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
发送成功的日志:
Feb 21 09:25:42 server217 sendmail[9304]: alias database /etc/aliases rebuilt by root
Feb 21 09:25:42 server217 sendmail[9304]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Feb 21 09:25:42 server217 sendmail[9309]: starting daemon (8.13.8):
Feb 21 09:25:43 server217 sm-msp-queue[9318]: starting daemon (8.13.8):
Feb 21 09:25:46 server217 sendmail[9332]: q1