使用Sendmail阻擋廣告信的方式,可以編輯/etc/mail/sendmail.mc這個檔,尋找76行的地方,加上以下紅色字體的黑名單網站!
dnl FEATURE(delay_checks)dnl
FEATURE(`dnsbl',`bl.spamcop.net',`"550 Mail from "$&{client_addr} rejected - see http://spamcop.net/"')dnl
FEATURE(`dnsbl',`njabl.org',`"550 Mail from "$&{client_addr} rejected - see http://njabl.org/"')dnl
FEATURE(`dnsbl',`cbl.abuseat.org',`"550 Mail from "$&{client_addr} rejected - see http://abuseat.org/"')dnl
FEATURE(`no_default_msa', `dnl')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
修改完後再將sendmail.mc產生為sendmail使用的sendmail.cf檔,重新起動sendmail即可
註:如果自已有其它的黑名單網站,也可依此方式加入
沒有留言:
張貼留言