Allow more than one IP address to dont-blacklist

git-svn: trunk@2530
remotes/push_mirror/metadata
Nigel Horne 19 years ago
parent 50c2759156
commit 4ac317d607
  1. 4
      clamav-devel/ChangeLog
  2. 20
      clamav-devel/clamav-milter/clamav-milter.c
  3. 11
      clamav-devel/docs/man/clamav-milter.8

@ -1,3 +1,7 @@
Sat Dec 2 15:17:47 GMT 2006 (njh)
----------------------------------
* clamav-milter: Allow more than one IP address to --dont-blacklist
Sat Dec 2 01:41:27 CET 2006 (tk)
---------------------------------
* libclamav/regex_list.c: add functionality level support for .pdb/.wdb files;

@ -24,9 +24,9 @@
*
* For installation instructions see the file INSTALL that came with this file
*/
static char const rcsid[] = "$Id: clamav-milter.c,v 1.300 2006/11/28 14:31:12 njh Exp $";
static char const rcsid[] = "$Id: clamav-milter.c,v 1.301 2006/12/02 15:17:02 njh Exp $";
#define CM_VERSION "devel-271106"
#define CM_VERSION "devel-021206"
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -1853,8 +1853,14 @@ main(int argc, char **argv)
tableInsert(blacklist, "127.0.0.1", 0);
if(wont_blacklist) {
logg(_("^Won't blacklist %s\n"), wont_blacklist);
(void)tableInsert(blacklist, wont_blacklist, 0);
const char *w;
i = 0;
while((w = cli_strtok(wont_blacklist, i++, ",")) != NULL) {
logg(_("^Won't blacklist %s\n"), w);
(void)tableInsert(blacklist, w, 0);
free(w);
}
}
}
@ -5713,8 +5719,7 @@ mx(void)
#else
if(addr != (in_addr_t)-1) {
#endif
if(use_syslog)
syslog(LOG_INFO, "Won't blacklist %s", buf);
logg(_("^Won't blacklist %s\n"), buf);
(void)tableInsert(blacklist, buf, 0);
} else
resolve(buf);
@ -5780,8 +5785,7 @@ resolve(const char *host)
p += 4;
ip = inet_ntoa(addr);
if(ip) {
if(use_syslog)
syslog(LOG_INFO, "Won't blacklist %s", ip);
logg(_("^Won't blacklist %s\n"), ip);
(void)tableInsert(blacklist, ip, 0);
}
}

@ -111,11 +111,12 @@ The recommended value is 60.
Machines on the LAN, the local host, and machines that are our MX peers are
never blacklisted.
.TP
\fB\f-K, \-\-dont-blacklist=IP\fR
Instructs clamav-milter to refrain from blacklisting an IP address. This
is useful for sites that receive email from upstream servers that are either
untrusted or have no virus. Without this option many false positives could
occur. This scenario often happens when the upstream server belongs to an
\fB\f-K, \-\-dont-blacklist=IP[,IP...]\fR
Instructs clamav-milter to refrain from blacklisting IP the given addresses.
This is useful for sites that receive email from upstream servers that are
either untrusted or have no virus.
Without this option many false positives could occur.
This scenario often happens when the upstream server belongs to an
ISP that may not have AV software.
.TP
\fB-l, \-\-local\fR

Loading…
Cancel
Save