summaryrefslogtreecommitdiff
path: root/libexec/spamd
AgeCommit message (Collapse)Author
2006-10-29use setresuid/gid and check for failure, ok bobHenning Brauer
2006-10-19no need to escape "'";Jason McIntyre
2006-10-17Make this easier for people who aren't aware of what shell they are running.Bob Beck
ok deraadt@
2006-09-29typo; from sthenJason McIntyre
2006-08-15-r only applies to blacklists. ok beck@Kjell Wooding
2006-05-15add an -h option to override the hostname that is reported in thejoshua stein
SMTP banner ok beck@
2006-03-14spamd can show the wrong IP address to clients in a %A message becauseBob Beck
the per-connection copy of the connecting address was being pointed to the on-stack copy. Spotted (and fix suggested) by Michael Durket in pr 5046 ok deraadt@
2005-12-01Spell "blacklisted" consistently.Tom Cosgrove
ok jmc@
2005-11-30some cleanups prompted by lint, no really nasty bugs; ok beckTheo de Raadt
2005-11-24missing full stop;Jason McIntyre
2005-11-12spacingTheo de Raadt
2005-08-06replace port number 8025 w/ symbolic `spamd';Jason McIntyre
ok krw@ deraadt@ diff from ray lai;
2005-08-04Fix handling of empty entries at the end of an address list; avoidsOtto Moerbeek
always skipping the last address. ok beck@
2005-05-24Remove -ansi as that means expose only C89 interfaces.Todd C. Miller
2005-05-23have to ignore SIGPIPE in the child too or a spammer can kill spamd just byMike Frantzen
closing the connection while we're trying to write to it
2005-05-17update FILES;Jason McIntyre
2005-05-17- describe start up betterJason McIntyre
- note that greylisting does stutter slightly - make clear role of spamdb and spamd.conf - few minor tweaks ok beck@
2005-05-15move db->close to not hold this lock unnecssarily during long protractedBob Beck
operations. ok millert@ ages ago.
2005-04-16missing getopt choice; from dennisTheo de Raadt
2005-04-14Make spamd stutter at greylisted connections for a short period before talkingBob Beck
full speed. By default do this for 10 seconds. Many spammers disconnect by then. Adds -S option to select the amount of time greylisted connections will be stuttered at. feedback from jmc@, deraadt@, ok deraadt@
2005-03-12asprintf in place of strdup really is kind of lameBob Beck
ok millert@
2005-03-11"Greytrapping" for spamd - allow for spamd greylisting to maintainBob Beck
a list of spamtrap destination addresses in the spamd database. When a spamtrap address gets an attempted greylist delivery, blacklist the offending host for a day. Does not affect hosts already whitelisted. ok deraadt@, jmc@, dhartmei@ to get it in so it can be whacked on
2005-01-19clarification; ok beckTheo de Raadt
2004-12-04fix a signal race which could kill unrelated processes.Moritz Jodeit
signal handler could be interrupted by another instance of itself because it was used for multiple signals and only one signal was blocked. ok beck@ henning@
2004-11-17- \r\n fix for QUIT commandBob Beck
- Implement RSET in spamd - some virus scanning products (notably symantec's viruswall) spew a RSET into the smtp stream before every attempted delivery. (noticed by reitenba@fh-brandenburg.de and some others). This ensures such things can successfully talk to a spamd greylister. ok millert@ henning@
2004-10-05Change the default passtime to 25 minutes,Bob Beck
MTA's with a quadratic retry schedule have a retry after 26 minutes, and then again after an hour, so this probably makes a lot more sense than the old 30 minute default. ok henning@
2004-10-05change default to 451 for greylisting, thanks to a number ofBob Beck
people on misc, and some observations by Evan harris on the greylisting mailing list that a number of clustered mailers like aol behave better (and retry from the same IP) when they see a 451, but do not when they see a 450 (traditionally used for mailbox lock failure) 450 was the original for spamd, as the default for the tarpit is to encourage quick retries to punish blacklisted smtp servers more. This got carried over to the greylisting implementation, and isnt' really optimal for that case. ok millert@, henning@, todd@
2004-09-18This should be info, from mike@tric.ruBob Beck
ok henning@
2004-09-15ARGSUSED before signal handler with unused signoTheo de Raadt
2004-08-17impliment QUIT, beck okHenning Brauer
2004-08-15Expire entries that exactly match the time now in addition to onesTodd C. Miller
with an expire time in the past. From beck@, OK deraadt@
2004-08-08spacingTheo de Raadt
2004-07-04two missing freeaddrinfo() -- leak; andrushock@korovino.netTheo de Raadt
2004-07-04typo; andrushock@korovino.netTheo de Raadt
2004-06-29absolutely no need to include machine/endian.h after sys/types.h and ↵Michael Shalayeff
sys/types.h after sys/param.h
2004-06-21restrict address resolution to AF_INET for nowJun-ichiro itojun Hagino
2004-06-21use getaddr/nameinfo for address resolution. beck, henning okJun-ichiro itojun Hagino
2004-04-03fix logging. without -v, you get just the connection level, no mail data.Daniel Hartmeier
with -v, you get From/To/Subject at LOG_INFO, and the first ten body lines at LOG_DEBUG. ok beck@
2004-04-02nextstate() can get passed a read(2) chunk containing multiple lines,Daniel Hartmeier
so separate lines before logging headers/body. doesn't make logging more verbose, just fixes the case where chunks contain multiple lines. ok beck@
2004-03-17fix problem with counter and logging spotted by danh, where loggingBob Beck
would get messed up when the blacklist limit was hit. tested by danh@ and me ok cedric@
2004-03-16sort options and escape a minus sign;Jason McIntyre
2004-03-15Add -B option, with maxblack limit to limit the number of blacklistBob Beck
connections to something less than maxcon when greylisting. This ensures you don't completely run out of connections tarpitting spammers, and not allow real mail through. ok dhartmei@ millert@
2004-03-14make window size adjustement on sockets only after the DATABob Beck
connection. This ensures that greylisted connections are not delayed by a small windows size, but blacklisted connections still have to send the body through a tiny window, and presumably the body is the vast majority of what is being sent anyway. ok dhartmei@ millert@
2004-03-13Add signal handler to parent, so that when greylisting we don't need toBob Beck
kill all three processes to make it go away. Adjust daemon() call and logging appropriately. ok henning@, millert@
2004-03-12sort options;Jason McIntyre
2004-03-12paranoia and cleanup, ensure we use free then NULL everywhere.Bob Beck
ok millert@ dhartmei@
2004-03-12Fix typo, spotted by Eduardo Alvarenga <eduardo@eduardo.lan.cei>Bob Beck
ok xsa@ henning@
2004-03-11fix bug where custom 450 messages are not displayed,Bob Beck
found by yongari@kt-is.co.kr ok dhartmei@, millert@
2004-03-11Remove sync() calls that immediately precede databse close(). SinceTodd C. Miller
close() calls sync() itself the standalone sync() is a no-op. OK beck@
2004-03-11Call db-sync() after each db modification since they aren't all thatBob Beck
frequent in the scheme of things and this avoids the possibility of database corruption. Run here for a week. ok millert@ deraadt@