SCCS-vsn: usr.sbin/sendmail/src/usersmtp.c 8.9
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.38
-static char sccsid[] = "@(#)conf.c 8.37 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 8.38 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
*/
int DtableSize = 50; /* max open files; reset in 4.2bsd */
*/
int DtableSize = 50; /* max open files; reset in 4.2bsd */
+
+
+/*
+** Following should be config parameters (and probably will be in
+** future releases). In the meantime, setting these is considered
+** unsupported, and is intentionally undocumented.
+*/
+
+#ifdef BROKENSMTPPEERS
+bool BrokenSmtpPeers = TRUE; /* set if you have broken SMTP peers */
+#else
+bool BrokenSmtpPeers = FALSE; /* set if you have broken SMTP peers */
+#endif
+#ifdef NOLOOPBACKCHECK
+bool CheckLoopBack = FALSE; /* set to check HELO loopback */
+#else
+bool CheckLoopBack = TRUE; /* set to check HELO loopback */
+#endif
+
\f/*
** SETDEFAULTS -- set default values
**
\f/*
** SETDEFAULTS -- set default values
**
-static char sccsid[] = "@(#)usersmtp.c 8.8 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)usersmtp.c 8.9 (Berkeley) %G% (with SMTP)";
-static char sccsid[] = "@(#)usersmtp.c 8.8 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)usersmtp.c 8.9 (Berkeley) %G% (without SMTP)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
p = strchr(&SmtpReplyBuffer[4], ' ');
if (p != NULL)
*p = '\0';
p = strchr(&SmtpReplyBuffer[4], ' ');
if (p != NULL)
*p = '\0';
- if (strcasecmp(&SmtpReplyBuffer[4], MyHostName) == 0)
+ if (CheckLoopBack && strcasecmp(&SmtpReplyBuffer[4], MyHostName) == 0)
{
syserr("553 %s config error: mail loops back to myself",
MyHostName);
{
syserr("553 %s config error: mail loops back to myself",
MyHostName);