SCCS-vsn: usr.sbin/sendmail/src/srvrsmtp.c 8.16
-static char sccsid[] = "@(#)srvrsmtp.c 8.15 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 8.16 (Berkeley) %G% (with SMTP)";
-static char sccsid[] = "@(#)srvrsmtp.c 8.15 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 8.16 (Berkeley) %G% (without SMTP)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
/* non-standard commands */
# define CMDONEX 16 /* onex -- sending one transaction only */
# define CMDVERB 17 /* verb -- go into verbose mode */
/* non-standard commands */
# define CMDONEX 16 /* onex -- sending one transaction only */
# define CMDVERB 17 /* verb -- go into verbose mode */
+/* use this to catch and log "door handle" attempts on your system */
+# define CMDLOGBOGUS 23 /* bogus command that should be logged */
/* debugging-only commands, only enabled if SMTPDEBUG is defined */
# define CMDDBGQSHOW 24 /* showq -- show send queue */
# define CMDDBGDEBUG 25 /* debug -- set debug mode */
/* debugging-only commands, only enabled if SMTPDEBUG is defined */
# define CMDDBGQSHOW 24 /* showq -- show send queue */
# define CMDDBGDEBUG 25 /* debug -- set debug mode */
*/
"showq", CMDDBGQSHOW,
"debug", CMDDBGDEBUG,
*/
"showq", CMDDBGQSHOW,
"debug", CMDDBGDEBUG,
break;
# else /* not SMTPDEBUG */
break;
# else /* not SMTPDEBUG */
case CMDDBGQSHOW: /* show queues */
case CMDDBGDEBUG: /* set debug mode */
case CMDDBGQSHOW: /* show queues */
case CMDDBGDEBUG: /* set debug mode */
+# endif /* SMTPDEBUG */
+ case CMDLOGBOGUS: /* bogus command */
# ifdef LOG
if (LogLevel > 0)
# ifdef LOG
if (LogLevel > 0)
"\"%s\" command from %s (%s)",
c->cmdname, RealHostName,
anynet_ntoa(&RealHostAddr));
# endif
/* FALL THROUGH */
"\"%s\" command from %s (%s)",
c->cmdname, RealHostName,
anynet_ntoa(&RealHostAddr));
# endif
/* FALL THROUGH */
case CMDERROR: /* unknown command */
message("500 Command unrecognized");
case CMDERROR: /* unknown command */
message("500 Command unrecognized");