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

Re: Policy based spam filtering - bug ?



> > 14799w  453-4.7.1 Access denied due to excessive spamming from your

>      That report message in itself may have been somewhat
>      errorneous.

It is; and I'd like to propose something like in the diff attached.
(Matti, you also promiced to include my diff about the `-d' option
in the mailbox, eh?)

--- smtpcmds.c.orig	Mon Oct 20 23:19:35 1997
+++ smtpcmds.c	Fri Nov 14 18:18:51 1997
@@ -457,19 +457,19 @@
 				  POLICY_MAILFROM, cp, addrlen);
     if (SS->policyresult < 0) {
 	if (SS->policyresult < -99) {
-	  type(SS, -453, "4.7.1", "Access denied due to excessive spamming
from your domain" );
-	  type(SS, -453, "4.7.1", "or address.  If you are a customer of a
spam-friendly ISP," );
-	  type(SS, -453, "4.7.1", "we recommend changing to a different ISP."
);
-	  type(SS, -453, "4.7.1", "" );
-	  type(SS, 453, "4.7.1", "We apologize for the inconvenience.");
+	  type(SS, -453, "4.7.1", "The server figured that you are trying to
send mail");
+	  type(SS, -453, "4.7.1", "to somebody who is not a customer of this
server");
+	  type(SS, -453, "4.7.1", "*AND* you are not our customer yourself.");
+	  type(SS, -453, "4.7.1", "Maybe you just made a typo in the FROM
address.");
+	  type(SS, 443, "4.7.1", "either TO or FROM address is not
legitimate.");
 	} else {
 	  /* this message is meant to be polite enough that spam-ISP customers
 	     become annoyed at their ISP, not at us. */
-	  type(SS, -553, "5.7.1", "Access denied due to excessive spamming
from your domain" );
-	  type(SS, -553, "5.7.1", "or address.  If you are a customer of a
spam-friendly ISP," );
-	  type(SS, -553, "5.7.1", "we recommend changing to a different ISP."
);
-	  type(SS, -553, "5.7.1", "" );
-	  type(SS, 553, "5.7.1", "We apologize for the inconvenience.");
+	  type(SS, -553, "5.7.1", "The server figured that you are trying to
send mail");
+	  type(SS, -553, "5.7.1", "to somebody who is not a customer of this
server");
+	  type(SS, -553, "5.7.1", "*AND* you are not our customer yourself.");
+	  type(SS, -553, "5.7.1", "Maybe you just made a typo in the FROM
address.");
+	  type(SS, 553, "5.7.1", "either TO or FROM address is not
legitimate.");
 	}
 	if (newcp)
 	    free((void*)newcp);