ports/134347: mail/spamd: spamlogd's whitelist expiration period is hardcoded
Olli Hauer
ohauer at gmx.de
Sat May 9 18:40:06 UTC 2009
The following reply was made to PR ports/134347; it has been noted by GNATS.
From: "Olli Hauer" <ohauer at gmx.de>
To: bug-followup at FreeBSD.org, rs at bytecamp.net, ohauer at gmx.de
Cc:
Subject: Re: ports/134347: mail/spamd: spamlogd's whitelist expiration period
is hardcoded
Date: Sat, 09 May 2009 20:33:11 +0200
Hi,
is it possible that you have also spamlogd running?
spamd honors the times given (spamd.c line ~1132 variable whiteexp),
but if you have spamlogd running then the white times are pushed to
36 days (from grey.h) after the sending machine is whitelisted and
connects to your MTA.
See the following test.
# -- file /etc/rc.conf.local
obspamd_enable="YES"
obspamd_times="-G 1:6:2"
obspamd_flags="-5 -v -l127.0.0.1 -S0 -s0 ${obspamd_times}"
# 1st. connect
# spamdb
GREY|127.0.0.1|foo|sender at example.com|rcpt at example.com|1241892180|1241913780|1241913780|1|0
# 2nd. connect after one minute
# spamdb
GREY|127.0.0.1|foo|sender at example.com|rcpt at example.com|1241892180|1241892278|1241913780|2|0
# again after DB_SCAN_INTERVAL 60
# spamdb
WHITE|127.0.0.1|||1241892180|1241892278|1241899531|2|0
Now look at the timestamps from the white entry
# date -j -r 1241892180
Sa 9 Mai 2009 20:03:00 CEST
# date -j -r 1241892278
Sa 9 Mai 2009 20:04:38 CEST
# date -j -r 1241913780
Sa 9 Mai 2009 22:05:31 CEST
The whitelist time is around 2 hours.
//olli
--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a
More information about the freebsd-ports-bugs
mailing list