我正在尝试在Nexenta core 3.0.1(基于Solaris的操作系统)中设置sendmail。 我想要的只是能够发送来自主机的电子邮件 – 比如有关故障的通知,cron作业输出等。最初,Nexenta核心没有sendmail,所以这里是我所做的:
apt-get install sunwsndmu
现在在/ usr / sbin / sendmail中有一个sendmail。 当我尝试从命令行发送电子邮件时:
$mail maxim test .
它不给我任何错误,但在日志文件中我看到:
Dec 20 12:41:08 nas sendmail[12295]: [ID 801593 mail.info] oBKHf8u7012295: from=maxim, size=107, class=0, nrcpts=1, msgid=<201012201741.oBKHf8u7012295@nas>, relay=maxim@localhost Dec 20 12:41:08 nas sendmail[12295]: [ID 801593 mail.info] oBKHf8u7012295: to=maxim, ctladdr=maxim (1000/10), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30107, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
所以我想我需要运行SMTP服务。 我如何在Nexenta中做到这一点?
svcs -a | grep sendmail
不返回任何和
# svcadm enable sendmail svcadm: Pattern 'sendmail' doesn't match any instances
我没有嫁给sendmail,所以如果有更简单的方法来实现我的目标,我也接受build议。
谢谢,
终于搞明白了:
#svcadm enable smtp