diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2017-10-18 17:31:02 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2017-10-18 17:31:02 +0000 |
commit | 65d86a7cda4586200aa0762205c74f415b9823b2 (patch) | |
tree | b87bbac2b5376dbd2ea30873ffa973e3fd06390d /libexec/spamd/sdl.h | |
parent | 36821cb22128b4c947eb7618266688578ce46c0c (diff) |
Make blacklist entries override the whitelist. When running spamd
in greylisting mode, it is not uncommon for an IP to get whitelisted
before it shows up on a spam blacklist. With this change, spamd
will check its blacklists before adding a WHITE entry to the
<spamd-white> pf table. If the IP matches a blacklist, the WHITE
entry will be removed. OK phessler@
Diffstat (limited to 'libexec/spamd/sdl.h')
-rw-r--r-- | libexec/spamd/sdl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/spamd/sdl.h b/libexec/spamd/sdl.h index 84b752453f7..aef0093f1fe 100644 --- a/libexec/spamd/sdl.h +++ b/libexec/spamd/sdl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sdl.h,v 1.8 2017/10/17 13:52:10 millert Exp $ */ +/* $OpenBSD: sdl.h,v 1.9 2017/10/18 17:31:01 millert Exp $ */ /* * Copyright (c) 2003-2007 Bob Beck. All rights reserved. @@ -62,6 +62,7 @@ struct sdlist { int sdl_add(char *, char *, char **, u_int, char **, u_int); void sdl_del(char *); +int sdl_check(struct sdlist *, int, void *); struct sdlist **sdl_lookup(struct sdlist *, int, void *); #endif /* _SDL_H_ */ |