SCCS-vsn: usr.sbin/sendmail/src/domain.c 8.18
SCCS-vsn: usr.sbin/sendmail/src/err.c 8.25
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 8.77
-static char sccsid[] = "@(#)deliver.c 8.76 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c 8.77 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
if (LogLevel > ((stat == EX_TEMPFAIL) ? 8 : (stat == EX_OK) ? 7 : 6))
logdelivery(m, mci, &statmsg[4], ctladdr, e);
if (LogLevel > ((stat == EX_TEMPFAIL) ? 8 : (stat == EX_OK) ? 7 : 6))
logdelivery(m, mci, &statmsg[4], ctladdr, e);
+ if (tTd(11, 2))
+ printf("giveresponse: stat=%d, e->e_message=%s\n",
+ stat, e->e_message);
+
if (stat != EX_TEMPFAIL)
setstat(stat);
if (stat != EX_OK && (stat != EX_TEMPFAIL || e->e_message == NULL))
if (stat != EX_TEMPFAIL)
setstat(stat);
if (stat != EX_OK && (stat != EX_TEMPFAIL || e->e_message == NULL))
#ifndef lint
#ifdef NAMED_BIND
#ifndef lint
#ifdef NAMED_BIND
-static char sccsid[] = "@(#)domain.c 8.17 (Berkeley) %G% (with name server)";
+static char sccsid[] = "@(#)domain.c 8.18 (Berkeley) %G% (with name server)";
-static char sccsid[] = "@(#)domain.c 8.17 (Berkeley) %G% (without name server)";
+static char sccsid[] = "@(#)domain.c 8.18 (Berkeley) %G% (without name server)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
case T_CNAME:
if (loopcnt++ > MAXCNAMEDEPTH)
{
case T_CNAME:
if (loopcnt++ > MAXCNAMEDEPTH)
{
- syserr("DNS failure: CNAME loop for %s",
+ /*XXX should notify postmaster XXX*/
+ message("DNS failure: CNAME loop for %s",
+ if (CurEnv->e_message == NULL)
+ {
+ char ebuf[MAXLINE];
+
+ sprintf(ebuf, "Deferred: DNS failure: CNAME loop for %s",
+ host);
+ CurEnv->e_message = newstr(ebuf);
+ }
+ h_errno = NO_RECOVERY;
+ return FALSE;
}
/* value points at name */
}
/* value points at name */
-static char sccsid[] = "@(#)err.c 8.24 (Berkeley) %G%";
+static char sccsid[] = "@(#)err.c 8.25 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
ExitStat = EX_SOFTWARE;
else
ExitStat = EX_OSERR;
ExitStat = EX_SOFTWARE;
else
ExitStat = EX_OSERR;
+ if (tTd(54, 1))
+ printf("syserr: ExitStat = %d\n", ExitStat);