On Thursday 02 September 2004 07:56, Peter Hessler wrote:
> :I wanted to test spamd with greylisting, but it seems that the interaction
> :with PF is broken. In short spamd doesn't add anything to /var/db/spamd so
> :I'll never get my IP added to <spamd-white>
>
> What does `ps aux | grep spamd` say?  Mine says:
> $ps aux | grep spamd
> _spamd    5408  0.0  0.2  8788   632 ??  Is    Sun01PM    1:15.88 spamd:
> (pf <spamd-white> update) (spamd)
> _spamd     892  0.0  1.6  9044  4124 ??  S     Sun01PM    0:12.37
> /usr/libexec/spamd -g
> _spamd   17732  0.0  0.2  8784   568 ??  I     Sun01PM    0:01.79 spamd:
> (/var/db/spamd update) (spamd)

# ps auxw | grep spam
_spamd     142  0.0  0.4  8528   576 ??  Is     1:59PM    0:00.03 spamd: (pf 
<spamd-white> update) (spamd)
_spamd   18655  0.0  3.0  8660  3908 ??  I      1:59PM    0:00.10 /usr/libexec/spamd 
-g 
_spamd   32539  0.0  0.3  8404   352 ??  I      1:59PM    0:00.00 spamd: 
(/var/db/spamd update) (spamd)
root     30894  0.0  0.3   100   360 ??  Is     1:59PM    0:00.01 
/usr/libexec/spamlogd 


# top -n 50 | grep spam
18655 _spamd     2    0 8660K 3908K idle     select   0:00  0.00% spamd
  142 _spamd    10    0 8488K  536K sleep    nanosl   0:00  0.00% spamd
30894 root      -6    0  100K  360K idle     piperd   0:00  0.00% spamlogd
32539 _spamd    -6    0 8404K  352K idle     piperd   0:00  0.00% spamd


# pfctl -sn
rdr pass inet proto tcp from <spamd> to any port = smtp -> 127.0.0.1 port 8025
rdr pass inet proto tcp from ! <spamd-white> to any port = smtp -> 127.0.0.1 port 8025


# netstat -an
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp        0      0  10.0.0.2.25            *.*                    LISTEN
tcp        0      0  127.0.0.1.8026         *.*                    LISTEN
tcp        0      0  *.8025                 *.*                    LISTEN
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
udp        0      0  *.514                  *.*                   
Active UNIX domain sockets
Address    Type   Recv-Q Send-Q      Inode       Conn       Refs    Nextref Addr
0xd3ac5194 dgram       0      0        0x0 0xd0a72340        0x0 0xd0a97100
0xd3ac5004 stream      0      0 0xd3b50108        0x0        0x0        0x0 tabs/.sock
0xd3ba1e10 dgram       0      0        0x0 0xd0a72340        0x0 0xd0a97440
0xd3ba1ed8 dgram       0      0        0x0 0xd0a72340        0x0 0xd0a97000
0xd3ba1d48 stream      0      0 0xd3b52af8        0x0        0x0        0x0 
/var/run/apmdev
0xd3ba1c80 stream      0      0        0x0 0xd0a720c0        0x0        0x0
0xd3ba1bb8 stream      0      0        0x0 0xd0a97700        0x0        0x0
0xd3ba1af0 dgram       0      0        0x0 0xd0a72340        0x0 0xd0a97e00
0xd3ba1640 dgram       0      0        0x0 0xd0a72340        0x0 0xd0a723c0
0xd3ba1578 dgram       0      0        0x0 0xd0a72340        0x0        0x0
0xd3ba14b0 stream      0      0        0x0 0xd0a368c0        0x0        0x0
0xd3ba13e8 stream      0      0        0x0 0xd0a72100        0x0        0x0
0xd3ba1320 stream      0      0        0x0 0xd0a72480        0x0        0x0
0xd3ba1258 stream      0      0        0x0 0xd0a72440        0x0        0x0
0xd3ba1190 dgram       0      0 0xd3b67644        0x0        0x0        0x0 
/var/empty/dev/log
0xd3ba10c8 dgram       0      0 0xd3b67580        0x0 0xd0a97ec0        0x0 /dev/log


/var/db/spamd is always empty.

Any clue ?


        Ed

Reply via email to