From a6e6a2c9be1f39b46bd61de53dd3dae80062ca24 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 14 Jul 2011 12:09:55 -0400 Subject: [PATCH] When the maximum number of client connections has been exceeded, turn away SMTP clients with a 451 response instead of a 500. --- citadel/modules/smtp/serv_smtp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index 885bf950f..dcaf51952 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -144,9 +144,7 @@ void smtp_greeting(int is_msa) /* Otherwise we're either clean or we check later. */ if (CC->nologin==1) { - cprintf("500 Too many users are already online (maximum is %d)\r\n", - config.c_maxsessions - ); + cprintf("451 Too many connections are already open; please try again later.\r\n"); CC->kill_me = KILLME_MAX_SESSIONS_EXCEEDED; /* no need to free_recipients(valid), it's not allocated yet */ return; -- 2.30.2