分享:
▼
x0
|
[Linux] 轉貼-檔除動態IP網段來的廣告信件
最近幾家 ISP 陸續將浮動 IP 的反解改成 dynamic.domain.name 的格式, 而現今許多廣告信的發送點, 都是從這些動態撥接的 IP 而來,因此可以檔掉。
Postfix: in /etc/postfix/main.cf
增加: smtpd_client_restrictions = check_client_access hash:/etc/postfix/access
然後在 /etc/postfix/ 下寫 access 檔:
dynamic.apol.com.tw REJECT We can't allow dynamic IP to relay! dynamic.giga.net.tw REJECT We can't allow dynamic IP to relay! dynamic.hinet.net REJECT We can't allow dynamic IP to relay! dynamic.seed.net.tw REJECT We can't allow dynamic IP to relay! dynamic.tfn.net.tw REJECT We can't allow dynamic IP to relay! dynamic.ttn.net REJECT We can't allow dynamic IP to relay! dynamic.lsc.net.tw REJECT We can't allow dynamic IP to relay!
|