
Nexenta core 3.0.1(Solaris 기반 OS)에서 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과 결혼하지 않았으므로 목표를 달성하는 더 쉬운 방법이 있다면 제안에도 열려 있습니다.
감사해요,
답변1
마침내 그것을 알아 냈습니다 :
#svcadm enable smtp