Qmail
[Top] [All Lists]

Re: [Christmas Gift for free] 50% Spam reduction !

To: qmail@list.cr.yp.to
Subject: Re: [Christmas Gift for free] 50% Spam reduction !
From: Marcelo Coelho <marcelo@tpn.com.br>
Date: Fri, 22 Dec 2006 17:34:17 -0200
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <3.0.6.32.20061222190856.00b84580@192.168.192.1>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <3.0.6.32.20061222190856.00b84580@192.168.192.1>
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
Dear Erwin,

In your website: "The qmail-smtpd.c_greylisting patch adds a defined delay..."

I think the correct should be "qmail-smtpd.c_greetdelay", right?

I'm sending you my patch to tcpserver, do exactly the same, without a system call to qmail-smtpd.

Thank you.

--
Marcelo Coelho
marcelo@tpn.com.br



Erwin Hoffmann wrote:
Hi,

introducing a delay in qmail-smtpd EHLO greeting by about 30 secs will
reduce the amount of spam emails by typically 50%.

In case you believe it or even if don't believe it, use my 5 line patch for
qmail-smtpd.c available here:

http://www.fehcom.de/qmail/qmail.html

For the german reading community follow that URL:

http://www.heise.de/ix/news/foren/go.shtml?read=1&msg_id=11829816&forum_id=1
09974

Actually, I couldn't believe it by myself; but it works high efficient.

regards and merry x-mas.
--eh.



Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24


diff -Nu ucspi-tcp-0.88.orig/tcpserver.c ucspi-tcp-0.88/tcpserver.c
--- ucspi-tcp-0.88.orig/tcpserver.c     Sat Mar 18 12:18:42 2000
+++ ucspi-tcp-0.88/tcpserver.c  Fri Dec 22 03:53:45 2006
@@ -72,6 +72,7 @@
 int flagdeny = 0;
 int flagallownorules = 0;
 char *fnrules = 0;
+unsigned long wait = 0;
 
 void drop_nomem(void)
 {
@@ -125,6 +126,7 @@
        if (data[1 + split] == '=') {
          data[1 + split] = 0;
          env(data + 1,data + 1 + split + 1);
+    if (str_diff(data+1, "WAIT") == 0) scan_ulong(data+1+split+1,&wait);
        }
        break;
     }
@@ -210,6 +212,8 @@
       close(fdrules);
     }
   }
+  
+  if (wait > 0) sleep(wait);
 
   if (verbosity >= 2) {
     strnum[fmt_ulong(strnum,getpid())] = 0;
@@ -331,6 +335,8 @@
     }
   argc -= optind;
   argv += optind;
+
+  x = env_get("WAIT"); if (x) scan_ulong(x,&wait);
 
   if (!verbosity)
     buffer_2->fd = -1;
<Prev in Thread] Current Thread [Next in Thread>