Download | Plain Text | No Line Numbers


  1. diff -Naur dovecot-2.2.21.orig/src/auth/auth-penalty.h dovecot-2.2.21/src/auth/auth-penalty.h
  2. --- dovecot-2.2.21.orig/src/auth/auth-penalty.h 2015-12-09 16:39:10.000000000 +0100
  3. +++ dovecot-2.2.21/src/auth/auth-penalty.h 2016-02-16 16:00:46.220188041 +0100
  4. @@ -4,11 +4,11 @@
  5. struct auth_request;
  6.  
  7. #define AUTH_PENALTY_INIT_SECS 2
  8. -#define AUTH_PENALTY_MAX_SECS 15
  9. +#define AUTH_PENALTY_MAX_SECS 60
  10. /* timeout specifies how long it takes for penalty to be irrelevant. */
  11. #define AUTH_PENALTY_TIMEOUT \
  12. - (AUTH_PENALTY_INIT_SECS + 4 + 8 + AUTH_PENALTY_MAX_SECS)
  13. -#define AUTH_PENALTY_MAX_PENALTY 4
  14. + 600
  15. +#define AUTH_PENALTY_MAX_PENALTY 30
  16.  
  17. /* If lookup failed, penalty and last_update are both zero */
  18. typedef void auth_penalty_callback_t(unsigned int penalty,
  19.