sendmail中service.switch貌似根本没用
发表于 : 2011-12-21 18:11
按FAQ中说如果本机没有DNS解析,就在/etc/mail/下建一个service.switch。
然而当我建好后,sendmail总是无法向外网发信。总出现如下错误:
然而当我建好后,sendmail总是无法向外网发信。总出现如下错误:
如果删除这个文件,信就能发出去。
Dec 14 19:14:40 openbsd5 sm-mta[9797]: pBC3Ch9l014062: to=<[email protected]>,
ctladdr=<[email protected]> (0/0), delay=2+08:01:56, xdelay=00:00:00,
mailer=esmtp, pri=1560373, relay=yeah.net [220.181.12.218], dsn=4.0.0, stat=Defe
rred: Connection refused by yeah.net
可见,service.switch文件的确不需要啊。
Dec 22 00:00:19 mail sendmail[10533]: pBLG0ACs010880: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:07, xdelay=00:00:06, mailer=esmtp, pri=30343, relay=yeahmx01.mxmail.netease.com. [46.137.252.186], dsn=2.0.0, stat=Sent (Mail OK queued as mx3,FlUQrECJQVr9q_FOiGaTBQ--.1694S2 1324461057)