13 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Considerable time...
FromSent OnAttachments
Sándor ZsoltMay 26, 2006 2:25 am 
Daniel FaberMay 26, 2006 3:32 am 
Sam VarshavchikMay 26, 2006 3:50 am 
Sándor ZsoltMay 26, 2006 5:36 am 
Gordon MessmerMay 26, 2006 9:52 am 
Daniel FaberMay 26, 2006 10:33 am 
Gordon MessmerMay 26, 2006 10:40 am 
ArnoMay 26, 2006 11:26 am 
Daniel FaberMay 26, 2006 12:10 pm 
Sándor ZsoltMay 29, 2006 2:51 am 
Sam VarshavchikMay 29, 2006 6:16 am 
Sándor ZsoltMay 30, 2006 12:26 am 
Sam VarshavchikMay 30, 2006 3:55 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Considerable time when "550 unknown user" error msg. at local domainActions...
From:Daniel Faber (ma@daniel-faber.de)
Date:May 26, 2006 10:33:16 am
List:net.sourceforge.lists.courier-users

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