[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.99.56pre4 config help





On Tue, 10 Jun 2003, Ambrose Li wrote:

> Hello,
>
> I wonder if someone would know what I am doing wrong.
>
> 1. My ZMailer 2.99.56pre4 is not checking for existence of users.
>    HELO pattern only has R (because ftve needs interactive router
>    subsystem and I disabled that), but ROUTEUSER_IN_ABNORMAL_UNIX
>    is empty.
>
> 2. My content filter is not working. It seems to hang, even if I
>    put STDOUT->flush() calls after printing #hungry.


Drweb antivirus includes following patch for zmailer:

--- smtpserver/smtpdata.c.orig	Sat Jul  3 01:17:03 1999
+++ smtpserver/smtpdata.c	Thu Aug 22 12:12:10 2002
@@ -160,9 +160,12 @@
 	/* Things have been good thus far, now we store
 	   the resulting file into router spool area;
 	   pending a few things we do at first.. */
-
 	/* Lets see what the content-policy will tell now ? */
 	char *fname = mail_fname(SS->mfp);
+
+	/* flush incoming file so contentpolicy() could see it */
+	fflush(SS->mfp);
+
 	SS->policyresult = contentpolicy(policydb, &SS->policystate, fname);

 	if (SS->policyresult < 0) {
@@ -371,6 +374,10 @@

 	/* Lets see what the content-policy will tell now ? */
 	char *fname = mail_fname(SS->mfp);
+
+	/* flush incoming file so contentpolicy() could see it */
+	fflush(SS->mfp);
+
 	SS->policyresult = contentpolicy(policydb, &SS->policystate, fname);

 	if (SS->policyresult < 0) {

=================================================

I have applied this patch but i don't know is this really required or not...


-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi