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: "Matthew R. Dempsky" <mrd@alkemio.org>
Date: Fri, 22 Dec 2006 17:43:13 -0600
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>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <3.0.6.32.20061222190856.00b84580@192.168.192.1>
On Fri, Dec 22, 2006 at 07:08:56PM +0100, Erwin Hoffmann wrote:
> In case you believe it or even if don't believe it, use my 5 line patch for
> qmail-smtpd.c available here:

Why is this a patch at all?

What's wrong with something like

    tcpserver 0 25 sh -c "sleep $GREETDELAY; exec qmail-smtpd"

?  If you're worried about the /bin/sh invocation overhead, how about
something like (with appropriate error handling added):

    #include <stdio.h>
    #include <stdlib.h>

    main(int argc,char *argv[])
    {
      int delay;
      sscanf(getenv("GREETDELAY"),"%d",&delay);
      sleep(delay);
      execvp(argv[1],argv + 1);
    }

or a dozen variations on the theme?

<Prev in Thread] Current Thread [Next in Thread>