使用CentOS 5.6并尝试发送(只)电子邮件到远程盒子。 我在一个CentOS客户端,并试图发送电子邮件到我的跑马的电子邮件帐户。
mailx -s "Some Subject" [email protected] < msg.txt
$cat message.txt From: localhost.localdomain To: [email protected] Subject: Test Testing...
日志文件显示:
Oct 3 14:06:34 ip sendmail[1131]: p93J6Yas001131: from=root, size=118, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost Oct 3 14:06:34 ip sendmail[1131]: p93J6Yas001131: [email protected], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30118, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
从您发布的日志消息看来,您运行的是MSP代理,但不是MTA,或者MTA不在127.0.0.1端口25上侦听。您可能还必须发布/etc/mail/submit.mc和/etc/mail/sendmail.mc文件。