| From | Sent On | Attachments |
|---|---|---|
| Sándor Zsolt | May 26, 2006 2:25 am | |
| Daniel Faber | May 26, 2006 3:32 am | |
| Sam Varshavchik | May 26, 2006 3:50 am | |
| Sándor Zsolt | May 26, 2006 5:36 am | |
| Gordon Messmer | May 26, 2006 9:52 am | |
| Daniel Faber | May 26, 2006 10:33 am | |
| Gordon Messmer | May 26, 2006 10:40 am | |
| Arno | May 26, 2006 11:26 am | |
| Daniel Faber | May 26, 2006 12:10 pm | |
| Sándor Zsolt | May 29, 2006 2:51 am | |
| Sam Varshavchik | May 29, 2006 6:16 am | |
| Sándor Zsolt | May 30, 2006 12:26 am | |
| Sam Varshavchik | May 30, 2006 3:55 am |
| Subject: | Re: [courier-users] Considerable time when "550 unknown user" error msg. at local domain - thanks for your help | |
|---|---|---|
| From: | Sándor Zsolt (sand...@mail.vpop.hu) | |
| Date: | May 29, 2006 2:51:48 am | |
| List: | net.sourceforge.lists.courier-users | |
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





