From: Art Cancro Date: Thu, 14 Jul 2011 16:09:55 +0000 (-0400) Subject: When the maximum number of client connections has been exceeded, turn away SMTP clien... X-Git-Tag: v8.11~583 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a6e6a2c9be1f39b46bd61de53dd3dae80062ca24 When the maximum number of client connections has been exceeded, turn away SMTP clients with a 451 response instead of a 500. --- 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;