Skip to content
Snippets Groups Projects
Commit 2ec4f24c authored by rswindell's avatar rswindell
Browse files

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.
parent d2c71c9d
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment