SCCS-vsn: usr.sbin/sendmail/src/err.c 8.29
SCCS-vsn: usr.sbin/sendmail/src/parseaddr.c 8.37
-static char sccsid[] = "@(#)err.c 8.28 (Berkeley) %G%";
+static char sccsid[] = "@(#)err.c 8.29 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
-static char sccsid[] = "@(#)parseaddr.c 8.36 (Berkeley) %G%";
+static char sccsid[] = "@(#)parseaddr.c 8.37 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
strncpy(fmt, buf, 3);
strcpy(&fmt[3], " %s");
usrerr(fmt, buf + 4);
strncpy(fmt, buf, 3);
strcpy(&fmt[3], " %s");
usrerr(fmt, buf + 4);
+
+ /*
+ ** If this is a 4xx code and we aren't running
+ ** SMTP on our input, bounce this message;
+ ** otherwise it disappears without a trace.
+ */
+
+ if (fmt[0] == '4' && OpMode != MD_SMTP &&
+ OpMode != MD_DAEMON)
+ {
+ e->e_flags |= EF_FATALERRS;
+ }