On Tue, Jan 13, 2009 at 11:30:21AM +0500, engineer wrote:
> $ fgrep -v '#' /etc/mail/spamd.conf
> all:\
>         :myblack:uatraps:nixspam:china:korea:mywhite:
>
> myblack:\
>         :black:\
>         :msg="Your address %A has sent spam to me":\
>         :method=file:\
>         :file=/etc/postfix/spamd_black.txt:
>
> mywhite:\
>         :white:\
>         :method=file:\
>         :file=/etc/postfix/spamd_white.txt:
...SNIP...
> I was thinking that all WHITElisted nets will be in the <spamd-white>
> immediately, just after spamd started...

Do not be confused by similar (or same) named in different places. In
this case whitelists in spamd.conf merely subtract entries from
blacklists, and only from immeditately preceeding blacklists. Check
spamd.conf(5) for more details.

What you want is possible, but you have to do it yourself in pf.conf.
The good news is that it's easy...

table <mywhite> persist file "/etc/postfix/spamd_white.txt"

no rdr inet proto tcp from <mywhite> to any port smtp

Put the "no rdr" line *before* the other spamd rdr lines. Note that pf
will only read spamd_white.txt when pf.conf is loaded. If you edit your
list and want it to take effect you can do it manually with pfctl
-tmywhite -Treplace /etc/postfix/spamd_white.txt

--
Darrin Chandler            |  Phoenix BSD User Group  |  MetaBUG
dwchand...@stilyagin.com   |  http://phxbug.org/      |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG
Federation

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to