summaryrefslogtreecommitdiff
path: root/libexec/spamd
AgeCommit message (Collapse)Author
2014-03-26strdup() returns NULL if out of memory, we should check it.Gleydson Soares
OK beck@
2013-11-27unsigned char for ctypeTheo de Raadt
ok okan kettenis
2013-11-19add a bunch of missing prototypesTheo de Raadt
ok beck phessler
2013-11-19repair format strings for time_t, and some missing protosTheo de Raadt
ok beck phessler
2013-11-19the time being handled here is strictly unsigned 32 bitTheo de Raadt
ok beck phessler
2013-08-21Remove the use of time_t in the greylist db file and use int64_t insteadTodd C. Miller
with backwards compatibility for records with 32-bit times. OK deraadt@ beck@
2012-12-04rather than a mishmash of headers, this only needs <stdint.h>Theo de Raadt
with guenther
2012-10-02while it's of little harm, it's also been 5.5 years (and 8 releases),Okan Demirmen
remove the db conversion from BTREE to HASH. ok beck@
2012-09-27remove some history details which have been around for long enoughJason McIntyre
to no longer be relevant; ok beck
2012-06-19use warn() instead of perror(), like the rest of the code doesTheo de Raadt
from Liam J. Foy
2012-04-19rate-limit accept(); small tweaks and such along the way from gilles,Theo de Raadt
millert, camield..
2012-04-18merge some whitespace changes before bigger changesTheo de Raadt
2012-04-13Don't assume that the new conffd is a unset in the fd_set, it could be aTheo de Raadt
recyle of a fd which is still set. ok claudio
2011-03-19fix rdr-to example (requires direction); from James TurnerOkan Demirmen
ok jmc@
2011-03-03repair arguments passed to pfctl; PR 6142, ok beckTheo de Raadt
2010-10-06do not pass GREY entries to pf's spamd-white table if already TRAPPED.Stephan A. Rickauer
Fixes pr/6467. (from boudewijn at indes dot com) - ok beck@
2010-01-14drop connections to confused clients who do repeated command failures -Bob Beck
typically when a client just flings commands at us without looking for responses and then gets confused. ok jsing@
2010-01-11KNFBob Beck
2010-01-11KNFBob Beck
2009-11-12malloc() after line length check, to avoid memory leak; ok teduTheo de Raadt
2009-09-17merge/update the spamlogd rules into spamd - there were some subtleJason McIntyre
problems because of the recent pf nat changes that caused problems; i've fleshed out the example in spamd and just added a pointer to it from spamlogd; ok beck
2009-09-07the example pf rules should be "pass in", not just "pass"; ok henningJason McIntyre
2009-09-01match samples here with pf.conf(5) sample ruleset following recent pf changesTodd T. Fries
ok henning@
2009-05-20Do not fall back to using nobody if _user is missing, butThordur I. Bjornsson
error out. Add a new user _rwalld for rpc.rwalld, and use that instead of nobody, also unconditionally drop to _rwalld not only if rpc.rwalld was started with euid 0 (as root). ok deraadt@
2009-04-20tweak previous;Jason McIntyre
2009-04-20PR 6090 - from Olli Hauer <ohauer@gmx.de>Bob Beck
A number of small improvements: - patch for empty lines and comments in alloweddomains_file - remove some whitespaces at end of line. - document comment and empty line handling - Remove unused parameter 'r' from getopt in spamd.c, it is removed in the 'switch statement' but not in getopt. http://www.openbsd.org/cgi-bin/cvsweb/src/libexec/spamd/spamd.c.diff?r1=1.94;r2=1.95;f=h - replace atoi with strtonum - make debug output more usefull, display only what will be synced and not a second message which prints always "sync trapped %s" - some cosemtic and whitespace fixes.
2009-02-25fix slow memory leak, spotted by Max Laier and Artis CauneBob Beck
ok deraadt@, oga@, otto@
2009-02-17clarification for the MX stuff; requested by Stephan A. RickauerJason McIntyre
ok beck
2008-12-07time_t is signed, so use INT_MAX rather than UINT_MAX when parsing a time_tChad Loder
with strtonum
2008-09-20document spamd log entry format; requested by Stephan A. RickauerJason McIntyre
ok beck
2008-08-26Fix an if (); typo. ok beck@Jonathan Gray
2008-08-11some documentation updates for spamd synchronisation:Jason McIntyre
- whitelisted entries are not synced - entries added manually (using spamdb) are not synced suggested by Stephan A. Rickauer; ok reyk
2008-07-11shut off an annoying gcc warning.Reyk Floeter
ok beck@
2008-07-11write a syslog debug message when a new GREY or TRAPPED entry is addedReyk Floeter
to the database. ok beck@
2008-07-11greyreader() shouldn't return, so tell us if it doesPeter Hessler
ok beck@, reyk@
2008-05-22version 2 of spamd sync protocol for two reasons:Theo de Raadt
1) ip addresses were accidentally being sent in host-byte order, which caused compatibility problems (spotted by jbg) 2) the sub-headers in the frame were not natively aligned, thus timeout values were incorrectly sent by 64-bit machines ok beck
2008-05-09As was done in dhcpd, insert pad blocks after sub-messages to keep theTheo de Raadt
structures aligned to 16 byte boundaries for maximum portability (somewhat similar to CMSG's). Old spamd's and new spamd's can still communicate with this change. It would be nice if someone tested spamd on 64-bit unaligned architectures (with and without this change) ok beck
2008-05-07check if the received buffer of a sync element is even big enough toReyk Floeter
hold the header with length field. ok deraadt@ beck@
2008-03-28typo, ok beck@Alexander von Gernler
2008-01-08simplify the suggested pf ruleset; ok beckJason McIntyre
2007-12-27Add a missing length check of received spamd sync packet headers.Reyk Floeter
From Diego Giagio (dgiagio at gmail) with input from tedu@
2007-11-03PR 5621 - spamd doesn't clear the last entry from an empty TRAP list,Bob Beck
noticed and patch from Piotr Sikora <piotr@sikora.nu>
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-16- Don't fill spamd debug with bogus config errors if there are noRay Lai
traps. - Change count to size_t to avoid a size_t -> int conversion. - Since configure_spamd always returns 0, change to void. - Since configure_spamd now returns void, remove unreachable logging statement. OK ckuethe and deraadt, initial diff from fgsch@ and OKed by beck.
2007-08-11tweak previous:Jason McIntyre
- this document talks about "default mode", not "greylisting mode" - kill trailing whitespace
2007-08-11Add note to the effect that the spamd pf table is noJonathan Gray
longer used in greylisting mode. ok ckuethe@
2007-07-07document maximum values for -S and -s;Jason McIntyre
from Saint Aardvark the Carpeted, documentation/5535;
2007-06-25s/is is/it is/. From Jim Razmus, jim (at) bonetruck (dot) org; thanks.Tom Cosgrove
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-26remove a redundant paragraph; ok beckJason McIntyre
also, this section is blacklist-only, so tweak .Sh