- 论坛徽章:
- 1
|
本帖最后由 roger1402001 于 2012-03-29 17:01 编辑
環境:
Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
需求:
該主機 IP 需有 dns 註冊 (無註冊時,發信件會queue佇,無法 deliver)
步驟如下:
1.進入config 目錄
# cd /etc/mail/cf/cf
2.編輯巨集檔,叫 NullClient.mc
# vi NullClient.mc 內容如下:
divert(0)dnl
VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04')
OSTYPE(`solaris2')dnl
DOMAIN(`solaris-generic')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
MAILER(`local')dnl
MAILER(`smtp')dnl
3.編譯巨集檔
# make NullClient.cf
4.備分sendmail config file及起動 sendmail
# mv NullClient.cf /etc/mail
# mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.org
# mv NullClient.cf sendmail.cf
# svcadm disable sendmail
# svcadm enable sendmail
|
|