From 2ec4f24cde4a865048cafca821599ac2604d7734 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 12 Nov 2002 01:34:30 +0000
Subject: [PATCH] Include host_name (which may be different from Internet
 e-mail address) in determining if a received SMTP message is for the local
 system or not.

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

diff --git a/src/sbbs3/mailsrvr.c b/src/sbbs3/mailsrvr.c
index ed999fef62..b4bd1b4251 100644
--- a/src/sbbs3/mailsrvr.c
+++ b/src/sbbs3/mailsrvr.c
@@ -2110,6 +2110,7 @@ static void smtp_thread(void* arg)
 				}
 				sprintf(domain_list,"%sdomains.cfg",scfg.ctrl_dir);
 				if((stricmp(dest_host,scfg.sys_inetaddr)!=0
+						&& stricmp(dest_host,startup->host_name)!=0
 						&& resolve_ip(dest_host)!=server_addr.sin_addr.s_addr
 						&& findstr(dest_host,domain_list)==FALSE)
 					|| dest_port!=server_addr.sin_port) {
-- 
GitLab