--- contrib/sendmail/src/srvrsmtp.c.orig Sat Dec 28 23:29:25 2002 +++ contrib/sendmail/src/srvrsmtp.c Sat Dec 28 23:19:22 2002 @@ -1728,6 +1728,34 @@ break; } + /* check for smtpscan test.com domain */ + if (! strcmp(p, "test.com")) + { + message("550 smtpscan denied; closing connection"); + + if (LogLevel > 5) + sm_syslog(LOG_INFO, CurEnv->e_id, + "smtpscan test.com domain name presented from %.100s", + CurSmtpClient); + + /* closing connection ! */ + goto cmdquit; + } + + /* check for smtpmap myhost.domain.com domain */ + if (! strcmp(p, "myhost.domain.com")) + { + message("550 smtpmap denied; closing connection"); + + if (LogLevel > 5) + sm_syslog(LOG_INFO, CurEnv->e_id, + "smtpmap myhost.domain.com domain name presented from %.100s", + CurSmtpClient); + + /* closing connection ! */ + goto cmdquit; + } + ok = true; for (q = p; *q != '\0'; q++) { @@ -2695,6 +2723,7 @@ case CMDQUIT: /* quit -- leave mail */ message("221 2.0.0 %s closing connection", MyHostName); +cmdquit: #if PIPELINING (void) sm_io_flush(OutChannel, SM_TIME_DEFAULT); #endif /* PIPELINING */