分享:
▼
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!
|