Published on Stefano Sasso (http://stefano.dscnet.org)
pf e spamd: tempi duri per gli spammer
By stefano
Data di creazione 10/12/2007 - 12:12

aggiungiamo queste regole a pf:

table <spamd> persist
table <spamd-white> persist file "/var/mail/whitelist.txt"
rdr pass on $ext_if inet proto tcp from <spamd> to \
         { $ext_if, $int_if:network } port smtp -> 127.0.0.1 port 8025
rdr pass on $ext_if inet proto tcp from !<spamd-white> to \
         { $ext_if, $int_if:network } port smtp -> 127.0.0.1 port 8025

e modifichiamo il file di configurazione di spamd secondo i nostri gusti (spamd.conf)

Creative Commons License Linux Kernel Debian GNU/Linux Apache Web Server Drupal CMS gnustile.net

Source URL (retrieved on 10/09/2010 - 18:52): http://stefano.dscnet.org/a/pf_e_spamd_tempi_duri_gli_spammer