For the last few hours I've been knocking my head against my desk.  I'm
trying to setup spamd for the first time and keep receiving syntax
errors on my redirect statements.  My redirect statements are:

nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
rdr on {$int_if, $wifi_if} proto tcp from any to any port 21 -> 127.0.0
.1 port 8021

##### spamd #####
rdr on $ext_if inet proto tcp from <whitelist> to $mail_svcs port smtp
-> $mail_svcs port smtp
rdr on $ext_if inet proto tcp from <blacklist> to $mail_svcs port smtp
-> 127.0.0.1 port spamd
rdr on $ext_if inet proto tcp from <spamd> to $mail_svcs port smtp ->
127.0.0.1 port spamd
rdr on $ext_if inet proto tcp from <spamd-white> to $mail_svcs port smtp
-> $mail_svcs port smtp
rdr on $ext_if inet proto tcp from !<spamd-white> to $mail_svcs port
smtp -> 127.0.0.1 port spamd
#################

My redirect for ftp-proxy works just fine.  Every thing I've read (man
pages, google, etc) says my syntax is right.  I've tried making it
identical to the statement in the pf.conf(5) and still got the same
error so I figured I'd turn to more knowledgeable folks.  I am using
binat for my mail server and $mail_svcs contains my server IPs.

I'm using 4.2-stable.  Any help/info/pointers are very much appreciated.

Thanks,
Shane


Reply via email to