Hi Polkan, I myself is new in spamd. Just configure it few days ago. Up and runing fine. So pardon me if it is not the answer you are looking for.
if you pf.conf you should have: table <spamd> persist table <spamd-white> persist rdr pass on $ext_if proto tcp from <spamd> to port smtp \ -> 127.0.0.1 port spamd rdr pass on $ext_if proto tcp from !<spamd-white> to port smtp \ -> 127.0.0.1 port spamd this is to tell the pf to redirect all the spamd and not the spamd-white table to the spamdaemon. then you can download the spamd from spews etc. in your spamd.conf you have to include this: all:\ :spews2:whitelist:china:whitelist:korea:whitelist: call the spamd -v -g for greylisting. modify the parameter using -G if you like. Mostly it work for me, the whitelist will go directly to sendmail. I also done some manually spamdb -a ipaddress if I see that the message is important and do not need to go through repeating for 25 minutes. It will be a lot of work if your mail server is very busy. My is not... =)) Happy trial. Best regards, Riwan At 12:41 PM 7/14/2006 -0500, Polkan Garcia wrote:
Hi people... I readed so much documentation about spamd and now, i have a final dude: I enabled spamd without greylisting (-g flag), send mails from another places and arrives ok. Then, add ip address of a "trust mailserver" to blacklist and spamd's reject connection (good). Next, repeat the test with greylisting (sending mail from any mail server: gmail by example), but the messages doesn't arrives. The log says: Jul 14 12:25:21 www2 spamd[16779]: (GREY) 2xx.xx.xx.xx: <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]> Jul 14 12:25:21 www2 spamd[16779]: 200.xxx.xxx.xx: disconnected after 12 seconds. Jul 14 12:25:46 www2 spamd[23862]: whitelisting 2xx.xx.xx.xx in /var/db/spamd In my pf only have the next line to redirect all incoming smtp traffic to spamd port: ************ rdr pass inet proto tcp from any to { em0, em1 } port smtp -> 127.0.0.1 port spamd pass in log keep state pass out log keep state ************ In theory, with greylisting all connections are forwared to spamd, why the messages sent without greylisting are received and with greylisting not? -Polkan