On 26/05/06 14:37, Sándor Zsolt wrote:

> Is it possible to suspend/decrease the delays in the smtp sessions in
> courier some way if the user is unknown?

Yes, it's open source software :-)

Look at courier/module.esmtp/courieresmtpd.c lines 65 to 76:

-----------------------------------------------------------------------

#define INIT_TEERGRUBE  8
#define MAX_TEERGRUBE   128

static time_t teergrube=INIT_TEERGRUBE;

static void tarpit()
{
        sleep(teergrube);
        teergrube *= 2;
        if (teergrube > MAX_TEERGRUBE)
                teergrube=MAX_TEERGRUBE;
}


-----------------------------------------------------------------------

Change INIT_TEERGRUBE to change the delay for the first unknown user.
Change MAX_TEERGRUBE to change the maximum delay.  Comment out or modify
the line "teergrube *= 2;" to avoid or change the delay increase.  To
completely disable the delay, comment out the line "sleep(teergrube);".

And of course, make your tests.  I only looked at the source code, I did
not try any of these changes.  My suggestions may be crap.  If you
decide to try it, I'm curious about your results ;-)

Daniel

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to