From 86fa32cbe5828c04097feb82839d211f42d688f3 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 26 Feb 2007 23:53:53 +0000
Subject: [PATCH] Bug-fix: if the recipient matched an "address alias" which
 was mapped to a user number (e.g. '1'), and the RX_BY_NUMBER mail server
 option was disabled, then the mail would be rejected with "user unknown".
 "name aliases" weren't effected by this.

---
 src/sbbs3/mailsrvr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/mailsrvr.c b/src/sbbs3/mailsrvr.c
index 30b6e2ed29..5b64ef25b7 100644
--- a/src/sbbs3/mailsrvr.c
+++ b/src/sbbs3/mailsrvr.c
@@ -3167,7 +3167,7 @@ static void smtp_thread(void* arg)
 				}
 			}
 
-			if((p==name_alias_buf || startup->options&MAIL_OPT_ALLOW_RX_BY_NUMBER)
+			if((p==alias_buf || p==name_alias_buf || startup->options&MAIL_OPT_ALLOW_RX_BY_NUMBER)
 				&& isdigit(*p)) {
 				usernum=atoi(p);			/* RX by user number */
 				/* verify usernum */
-- 
GitLab