On Sat, Jan 27, 2007 at 12:39:42PM -0500, Josh Grosse wrote:

> 
> # <spamd> is automatically maintained by spamd(8) and related apps.
> # <spamd-white> is automatically maintained by spamd(8) and related apps.
> # <mywhite> is a manually maintained whitelist
> 
> table <spamd> persist
> table <spamd-white> persist
> table <mywhite> persist file "/etc/whitelist"

> # redirect blacklisted and greylisted email connections
> #
> rdr pass log proto tcp from <spamd> to any port smtp \
>       -> 127.0.0.1 port spamd
> 
> # do not redirect whitelisted:
> #
> no rdr proto tcp from <mywhite> to any port smtp
 
I found that I had to put the manual whitelist first, but apart from
that, it is all as you said it was, many thanks for that.

> # redirect everything else not in spamdb's whitelist:
> rdr pass log proto tcp from !<spamd-white> to any port smtp \
>       -> 127.0.0.1 port spamd

I also did the spamd thing in cron so it updates, and edited spamd.conf
so that the whitelist part is read by spamd.

The only other thing I'm trying to find out now is whether whitelist.txt
can use domains rather than dotted quads
-- 
John 

Reply via email to