Solved PF: Can anyone tell me why spamd-white is not forwarding to SMTP correctly?

I configured some rules for my greylisting but eve after whitelisting IPs they are still sent to spamd.

Code:
 ############                                   
rdr on $ExtIf inet proto tcp from  <spamd-white>
to ($ExtIf) port smtp -> 127.0.0.1 port smtp    
rdr on $ExtIf inet proto tcp from !<spamd-white>
to ($ExtIf) port smtp -> lo0 port spamd         
#                                               
################ Filtering ######################
###########                                     
pass in log on $ExtIf inet proto tcp from  <spamd
-white> to lo0 port smtp  keep state            
pass in log on $ExtIf inet proto tcp from !<spamd
-white> to lo0 port spamd keep state [CODE]
[/CODE]
 
The rules are correct, so I think it's spamd misconfiguraton. To be sure you can create manual pf table, put test mail server there and add it to the first redirect rule. Probably, you need manual table anyway to list servers with huge pools.
Code:
table <spamd-manual> persist file "/var/db/pf/spamd-white.txt"
 
Back
Top