Turn off SESSION mode

git-svn: trunk@1325
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent 4adfd51c69
commit 16656ad8ab
  1. 4
      clamav-devel/ChangeLog
  2. 1
      clamav-devel/clamav-milter/INSTALL
  3. 11
      clamav-devel/clamav-milter/clamav-milter.c

@ -1,3 +1,7 @@
Tue Feb 8 09:03:19 GMT 2005 (njh)
----------------------------------
* clamav-milter: Don't use clamd's SESSION command
Mon Feb 7 22:13:47 GMT 2005 (njh)
----------------------------------
* clamav-milter: --detect-forged-email-address

@ -683,6 +683,7 @@ Changes
Up issue
0.82a 7/2/05: Added --detect-forged-email-address
NUL terminate the string read from clamd
0.82b 8/2/05: Don't use clamd's SESSION command
INTERNATIONALISATION

@ -26,6 +26,9 @@
*
* Change History:
* $Log: clamav-milter.c,v $
* Revision 1.180 2005/02/08 09:01:26 nigelhorne
* Turn off SESSION mode
*
* Revision 1.179 2005/02/07 22:35:14 nigelhorne
* Bug fix to detect-forged-email-address
*
@ -548,9 +551,9 @@
* Revision 1.6 2003/09/28 16:37:23 nigelhorne
* Added -f flag use MaxThreads if --max-children not set
*/
static char const rcsid[] = "$Id: clamav-milter.c,v 1.179 2005/02/07 22:35:14 nigelhorne Exp $";
static char const rcsid[] = "$Id: clamav-milter.c,v 1.180 2005/02/08 09:01:26 nigelhorne Exp $";
#define CM_VERSION "0.82a"
#define CM_VERSION "0.82b"
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -649,7 +652,7 @@ typedef unsigned int in_addr_t;
#define VERSION_LENGTH 128
#define SESSION /*
/*#define SESSION /*
* Keep one command connection open to clamd, otherwise a new
* command connection is created for each new email
*
@ -2656,7 +2659,7 @@ clamfi_envfrom(SMFICTX *ctx, char **argv)
return SMFIS_CONTINUE;
}
ptr = strstr(argv[0], me);
if(ptr && (*--ptr == '@')) {
if(ptr && (ptr != argv[0]) && (*--ptr == '@')) {
if(use_syslog)
syslog(LOG_NOTICE, _("Rejected email falsely claiming to be from %s"), argv[0]);
smfi_setreply(ctx, "550", "5.7.1", _("You have claimed to be me, but you are not"));

Loading…
Cancel
Save