diff options
Diffstat (limited to 'libexec/spamd')
-rw-r--r-- | libexec/spamd/grey.h | 4 | ||||
-rw-r--r-- | libexec/spamd/spamd.8 | 26 | ||||
-rw-r--r-- | libexec/spamd/spamd.c | 12 |
3 files changed, 21 insertions, 21 deletions
diff --git a/libexec/spamd/grey.h b/libexec/spamd/grey.h index f3c0b10d98d..5567d86ab60 100644 --- a/libexec/spamd/grey.h +++ b/libexec/spamd/grey.h @@ -1,4 +1,4 @@ -/* $OpenBSD: grey.h,v 1.6 2007/02/23 19:22:07 beck Exp $ */ +/* $OpenBSD: grey.h,v 1.7 2007/02/27 02:10:58 beck Exp $ */ /* * Copyright (c) 2004 Bob Beck. All rights reserved. @@ -22,7 +22,7 @@ #define WHITEEXP (60 * 60 * 24 * 36) /* remove white entries after 36 days */ #define TRAPEXP (60 * 60 * 24) /* hitting a spamtrap blacklists for a day */ #define PATH_PFCTL "/sbin/pfctl" -#define PATH_SPAMD_ALLOWEDDOMAINS "/etc/spamd/alloweddomains" +#define PATH_SPAMD_ALLOWEDDOMAINS "/etc/mail/spamd.alloweddomains" #define DB_SCAN_INTERVAL 60 #define PATH_SPAMD_DB "/var/db/spamd" diff --git a/libexec/spamd/spamd.8 b/libexec/spamd/spamd.8 index f170485bfb4..268a2650ac2 100644 --- a/libexec/spamd/spamd.8 +++ b/libexec/spamd/spamd.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: spamd.8,v 1.72 2007/02/25 22:04:12 jmc Exp $ +.\" $OpenBSD: spamd.8,v 1.73 2007/02/27 02:10:58 beck Exp $ .\" .\" Copyright (c) 2002 Theo de Raadt. All rights reserved. .\" @@ -31,9 +31,9 @@ .Sh SYNOPSIS .Nm spamd .Bk -words -.Op Fl 45dgv +.Op Fl 45bdv .Op Fl B Ar maxblack -.Op Fl b Ar address +.Op Fl l Ar address .Op Fl c Ar maxcon .Op Fl G Ar passtime:greyexp:whiteexp .Op Fl h Ar hostname @@ -67,7 +67,7 @@ This value may not be greater than maxcon (see below). The default is .Ar maxcon \- 100. -.It Fl b Ar address +.It Fl l Ar address Specify the local address to which .Nm is to @@ -96,8 +96,8 @@ to 4 (hours), and .Ar whiteexp to 864 (hours, approximately 36 days). -.It Fl g -Greylisting mode; see +.It Fl b +Turn off Greylisting mode, and run only as a blacklister. see .Sx GREYLISTING below. .It Fl h Ar hostname @@ -319,7 +319,7 @@ Connections from addresses not listed in the table are redirected to .Nm . If an address matches a blacklist specified in -.Pa /etc/spamd.conf , +.Pa /etc/mail/spamd.conf , the connection will be stuttered at by .Nm . All other connections will be considered for greylisting and @@ -408,17 +408,17 @@ See for further details. .Pp The file -.Pa /etc/spamd/alloweddomains +.Pa /etc/mail/spamd.alloweddomains can be used to specify a list of domainname suffixes, one per line, one of which must match each destination email address in the greylist. Any destination address which does not match one of the suffixes listed in -.Pa /etc/spamd/alloweddomains +.Pa /etc/mail/spamd.alloweddomains will be trapped, exactly as if it were sent to a .Em spamtrap address above. .Pp For example, if -.Pa /etc/spamd/alloweddomains +.Pa /etc/mail/spamd.alloweddomains contains: .Bd -literal -offset 4n @humpingforjesus.com @@ -453,10 +453,10 @@ section can be used to log connection details to a dedicated file: daemon.err;daemon.warn;daemon.info /var/log/spamd .Ed .Sh FILES -.Bl -tag -width "/etc/spamd/alloweddomainsXX" -compact -.It /etc/spamd.conf +.Bl -tag -width "/etc/mail/spamd.alloweddomainsXX" -compact +.It /etc/mail/spamd.conf Default configuration file. -.It /etc/spamd/alloweddomains +.It /etc/mail/spamd.alloweddomains Optional required suffixes for greytrapping. .It /var/db/spamd Greylisting database. diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c index e1211e71618..ebd0a8fa697 100644 --- a/libexec/spamd/spamd.c +++ b/libexec/spamd/spamd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd.c,v 1.88 2007/02/23 22:40:50 beck Exp $ */ +/* $OpenBSD: spamd.c,v 1.89 2007/02/27 02:10:58 beck Exp $ */ /* * Copyright (c) 2002 Theo de Raadt. All rights reserved. @@ -142,7 +142,7 @@ void usage(void) { fprintf(stderr, - "usage: spamd [-45dgv] [-B maxblack] [-b address] [-c maxcon]\n"); + "usage: spamd [-45dbv] [-B maxblack] [-l address] [-c maxcon]\n"); fprintf(stderr, " [-G mins:hours:hours] [-h host] [-n name] [-p port]\n"); fprintf(stderr, @@ -984,7 +984,7 @@ main(int argc, char *argv[]) if (gethostname(hostname, sizeof hostname) == -1) err(1, "gethostname"); - while ((ch = getopt(argc, argv, "45b:c:B:p:dgG:h:r:s:S:n:vw:")) != -1) { + while ((ch = getopt(argc, argv, "45l:c:B:p:bdG:h:r:s:S:n:vw:")) != -1) { switch (ch) { case '4': nreply = "450"; @@ -992,7 +992,7 @@ main(int argc, char *argv[]) case '5': nreply = "550"; break; - case 'b': + case 'l': bind_address = optarg; break; case 'B': @@ -1012,8 +1012,8 @@ main(int argc, char *argv[]) case 'd': debug = 1; break; - case 'g': - greylist = 1; + case 'b': + greylist = 0; break; case 'G': if (sscanf(optarg, "%d:%d:%d", &passtime, &greyexp, |