「讓 sendmail 擋除浮動 IP 傳送的信件」修訂間的差異
跳至導覽
跳至搜尋
行 12: | 行 12: | ||
==更改設定檔== | ==更改設定檔== | ||
− | + | 請用編輯器開啟 /etc/mail/`hostname`.mc 這個檔案,例如: | |
+ | <pre># vi /etc/mail/`hostname`.mc</pre> | ||
+ | 加入以下這一行: | ||
<pre>FEATURE(`delay_checks')dnl</pre> | <pre>FEATURE(`delay_checks')dnl</pre> | ||
於 2006年9月4日 (一) 05:46 的最新修訂
作者:Joe Horn( joehorn AT leobbs DOT net )
授權:[CC授權:姓名標示-非商業性-相同方式分享 2.5]
附註:本文件適用於 FreeBSD 平台,其它 UNIX-Like OS 可能有所不同。
初始化設定檔
請使用以下指令:
# cd /etc/mail # make
更改設定檔
請用編輯器開啟 /etc/mail/`hostname`.mc 這個檔案,例如:
# vi /etc/mail/`hostname`.mc
加入以下這一行:
FEATURE(`delay_checks')dnl
用編輯器編輯 /etc/mail/access ,除了原本的 IP 兩行,加進以下這段:
dynamic.apol.com.tw REJECT We can not allow dynamic IP to relay! dynamic.best.lsc.net.tw REJECT We can not allow dynamic IP to relay! dynamic.brdterra.com.br REJECT We can not allow dynamic IP to relay! dynamic.cctv.lsc.net.tw REJECT We can not allow dynamic IP to relay! dynamic.eatel.net REJECT We can not allow dynamic IP to relay! dynamic.giga.net.tw REJECT We can not allow dynamic IP to relay! dynamic.hinet.net REJECT We can not allow dynamic IP to relay! dynamic.hiway.net.tw REJECT We can not allow dynamic IP to relay! dynamic.lsc.net.tw REJECT We can not allow dynamic IP to relay! dynamic.kingnet.net.tw REJECT We can not allow dynamic IP to relay! dynamic.mts.net REJECT We can not allow dynamic IP to relay! dynamic.seed.net.tw REJECT We can not allow dynamic IP to relay! dynamic.seeder.net REJECT We can not allow dynamic IP to relay! dynamic.so-net.net.tw REJECT We can not allow dynamic IP to relay! dynamic.tfn.net.tw REJECT We can not allow dynamic IP to relay! dynamic.ttn.net REJECT We can not allow dynamic IP to relay!
安裝設定檔
請使用以下指令:
# cd /etc/mail # make # make cf install
重新啟動 sendmail
# cd /etc/mail # make restart