我正在尝试在NexentaCore3.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服务。我怎么才能在尼森塔做到这一点?
svcs -a | grep sendmail不会归还任何东西
# svcadm enable sendmail
svcadm: Pattern 'sendmail' doesn't match any instances我没有和sendmail结婚,所以如果有更简单的方法来达到你的目标,我也愿意接受建议。
谢谢,
发布于 2010-12-25 21:46:19
终于弄明白了:
#svcadm enable smtphttps://serverfault.com/questions/214549
复制相似问题