OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: RE: 1012 noops in a row cause slow responses from Postfix.
From: Mark Hoffman (mark.hoffmanwallst.com)
Date: Mon Jun 26 2000 - 16:24:24 CDT


Thanks very much!

-----Original Message-----
From: wietseporcupine.org [mailto:wietseporcupine.org]
Sent: Friday, June 23, 2000 7:42 PM
To: postfix-userspostfix.org
Subject: Re: 1012 noops in a row cause slow responses from Postfix.

Wietse Venema:
> Now, there can be made an argument that the junk counter should be
> reset after successful delivery, just like the error status flag.

Patch follows.

        Wietse

*** ./smtpd.c- Sat Jun 3 08:32:12 2000
--- ./smtpd.c Fri Jun 23 19:39:42 2000
***************
*** 911,916 ****
--- 911,917 ----
      if (state->err == CLEANUP_STAT_OK) {
          state->error_count = 0;
          state->error_mask = 0;
+ state->junk_cmds = 0;
          smtpd_chat_reply(state, "250 Ok: queued as %s", state->queue_id);
      } else if ((state->err & CLEANUP_STAT_BAD) != 0) {
          state->error_mask |= MAIL_ERROR_SOFTWARE;