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: Wietse Venema (wietseporcupine.org)
Date: Fri Jun 23 2000 - 18:41:45 CDT


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;