讓 sendmail 擋除浮動 IP 傳送的信件
跳至導覽
跳至搜尋
作者:Joe Horn( joehorn AT leobbs DOT net )
授權:[CC授權:姓名標示-非商業性-相同方式分享 2.5]
附註:本文件適用於 FreeBSD 平台,其它 UNIX-Like OS 可能有所不同。
初始化設定檔
請使用以下指令:
# cd /etc/mail # make
更改設定檔
用編輯器打開 /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