Hello Daniel,

Thank you very much for the info. I tried to decrease the values, and then 
completely remarked the routine commands - no sleep at all - and both work 
fine.

Without sleep it is very fast, there were some five thousand bad mail in the 
queue of the firewall, what were processed and dropped within a few minutes.

The mail server is powerful enough to manage these mails coming from the 
firewall, and on the other hand we have to get all mails to the firewall, so 
there is no reason to delay the communication for the bad letters between the 
mailserver and the firewall.

I'm going to monitor the traffic of the mailserver - with courier-analog - to 
see if there are too many "unknown users" error from the firewall.

Many thanks again to you and to the others who also answered my question and 
have a good time and good work with Courier.

Best regards

Zsolt Sandor


On Friday 26 May 2006 19:33, Daniel Faber wrote:
> 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



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

Reply via email to