Hi, I am trying to protect my mailserver from spam with pf and spamd and have run into some problems. My mailserver sits on my LAN protected by my 3.3-current firewall. The firewall redirects smtp, web, and so on to the appropriate machine on the lan, my smtp rdr is as follows:
rdr on $ext_if proto tcp from any to $external_addr/32 port 25 -> $mailserver port 25 Now this works, but I wanted to implement spamd on the firewall as well. I set up the following rules (I've tried having them both before and after the afformentioned rule): table <spamd> persist no rdr on { lo0, lo1 } from any to any rdr on $ext_if inet proto tcp from <spamd> to any port smtp -> 127.0.0.1 port 8025 and I've poppulated <spamd> with addresses from relays that have spamed me, however none seem to have ever gotten caught in my trap. (and I know that I've recieved spam from the same relay more than once). Am I missing something obvious, or is this just not possible? - Johan