summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8657d05)
SCCS-vsn: usr.sbin/sendmail/src/usersmtp.c 5.19
SCCS-vsn: usr.sbin/sendmail/src/main.c 5.43
SCCS-vsn: usr.sbin/sendmail/src/conf.h 5.24
SCCS-vsn: usr.sbin/sendmail/src/err.c 5.13
SCCS-vsn: usr.sbin/sendmail/src/version.c 5.91
SCCS-vsn: usr.sbin/sendmail/src/sendmail.h 5.29
SCCS-vsn: usr.sbin/sendmail/src/Makefile 5.24
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 5.53
SCCS-vsn: usr.sbin/sendmail/src/conf.c 5.34
-# @(#)Makefile 5.23 (Berkeley) %G%
+# @(#)Makefile 5.24 (Berkeley) %G%
-CFLAGS+=-I${.CURDIR} -DVMUNIX
SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
deliver.c domain.c envelope.c err.c headers.c macro.c main.c \
SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
deliver.c domain.c envelope.c err.c headers.c macro.c main.c \
-static char sccsid[] = "@(#)conf.c 5.33 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 5.34 (Berkeley) %G%";
#endif /* not lint */
# include <sys/ioctl.h>
#endif /* not lint */
# include <sys/ioctl.h>
**
** Defines the configuration of this installation.
**
**
** Defines the configuration of this installation.
**
-** Compilation Flags:
-** VMUNIX -- running on a Berkeley UNIX system.
-**
** Configuration Variables:
** HdrInfo -- a table describing well-known header fields.
** Each entry has the field name and some flags,
** Configuration Variables:
** HdrInfo -- a table describing well-known header fields.
** Each entry has the field name and some flags,
** Picks up extant zombies.
*/
** Picks up extant zombies.
*/
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)conf.h 5.23 (Berkeley) %G%
+ * @(#)conf.h 5.24 (Berkeley) %G%
# define QUEUESIZE 600 /* max # of jobs per queue run */
# define MAXMXHOSTS 10 /* max # of MX records */
# define SMTPLINELIM 990 /* maximum SMTP line length */
# define QUEUESIZE 600 /* max # of jobs per queue run */
# define MAXMXHOSTS 10 /* max # of MX records */
# define SMTPLINELIM 990 /* maximum SMTP line length */
+# ifndef FORK
+# define FORK vfork /* function to call to fork mailer */
+# endif
/*
** Compilation options.
/*
** Compilation options.
-static char sccsid[] = "@(#)deliver.c 5.52 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c 5.53 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
-# ifdef VMUNIX
-# define XFORK vfork
-# else VMUNIX
-# define XFORK fork
-# endif VMUNIX
+
+# ifndef FORK
+# define FORK fork
+# endif
# define DOFORK(fORKfN) \
{\
# define DOFORK(fORKfN) \
{\
if (strcmp(m->m_mailer, "[IPC]") == 0 ||
strcmp(m->m_mailer, "[TCP]") == 0)
{
if (strcmp(m->m_mailer, "[IPC]") == 0 ||
strcmp(m->m_mailer, "[TCP]") == 0)
{
register STAB *st;
extern STAB *stab();
register STAB *st;
extern STAB *stab();
-#endif HOSTINFO
-#ifdef DAEMON
register int i, j;
register u_short port;
register int i, j;
register u_short port;
for (j = 0; j < Nmx; j++)
{
CurHostName = MxHosts[j];
for (j = 0; j < Nmx; j++)
{
CurHostName = MxHosts[j];
/* see if we already know that this host is fried */
st = stab(MxHosts[j], ST_HOST, ST_FIND);
if (st == NULL || st->s_host.ho_exitstat == EX_OK)
/* see if we already know that this host is fried */
st = stab(MxHosts[j], ST_HOST, ST_FIND);
if (st == NULL || st->s_host.ho_exitstat == EX_OK)
i = st->s_host.ho_exitstat;
errno = st->s_host.ho_errno;
}
i = st->s_host.ho_exitstat;
errno = st->s_host.ho_errno;
}
-#else HOSTINFO
- message(Arpa_Info, "Connecting to %s (%s)...",
- MxHosts[j], m->m_name);
- i = makeconnection(MxHosts[j], port, pmfile, prfile,
- bitnset(M_SECURE_PORT, m->m_flags);
-#endif HOSTINFO
/* enter status of this host */
if (st == NULL)
st = stab(MxHosts[j], ST_HOST, ST_ENTER);
st->s_host.ho_exitstat = i;
st->s_host.ho_errno = errno;
/* enter status of this host */
if (st == NULL)
st = stab(MxHosts[j], ST_HOST, ST_ENTER);
st->s_host.ho_exitstat = i;
st->s_host.ho_errno = errno;
ExitStat = i;
continue;
}
ExitStat = i;
continue;
}
# ifdef SIGCHLD
(void) signal(SIGCHLD, SIG_DFL);
# endif SIGCHLD
# ifdef SIGCHLD
(void) signal(SIGCHLD, SIG_DFL);
# endif SIGCHLD
/* pid is set by DOFORK */
if (pid < 0)
{
/* pid is set by DOFORK */
if (pid < 0)
{
-static char sccsid[] = "@(#)err.c 5.12 (Berkeley) %G%";
+static char sccsid[] = "@(#)err.c 5.13 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
# endif SMTP
# ifdef DAEMON
# endif SMTP
# ifdef DAEMON
/*
** Handle special network error codes.
**
/*
** Handle special network error codes.
**
(void) sprintf(buf, "Host Name Lookup Failure");
return (buf);
}
(void) sprintf(buf, "Host Name Lookup Failure");
return (buf);
}
-# endif VMUNIX
-# endif DAEMON
if (errno > 0 && errno < sys_nerr)
return (sys_errlist[errno]);
if (errno > 0 && errno < sys_nerr)
return (sys_errlist[errno]);
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 5.42 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.43 (Berkeley) %G%";
#endif /* not lint */
#define _DEFINE
#endif /* not lint */
#define _DEFINE
extern ADDRESS *recipient();
bool canrename;
extern ADDRESS *recipient();
bool canrename;
/* Enforce use of local time (null string overrides this) */
if (TimeZoneSpec == NULL)
unsetenv("TZ");
else if (TimeZoneSpec[0] != '\0')
setenv("TZ", TimeZoneSpec);
/* Enforce use of local time (null string overrides this) */
if (TimeZoneSpec == NULL)
unsetenv("TZ");
else if (TimeZoneSpec[0] != '\0')
setenv("TZ", TimeZoneSpec);
+#else
+ /* enforce use of kernel-supplied time zone information */
+ unsetenv("TZ");
+#endif
/*
** Be sure we have enough file descriptors.
/*
** Be sure we have enough file descriptors.
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)sendmail.h 5.28 (Berkeley) %G%
+ * @(#)sendmail.h 5.29 (Berkeley) %G%
# ifdef _DEFINE
# define EXTERN
# ifndef lint
# ifdef _DEFINE
# define EXTERN
# ifndef lint
-static char SmailSccsId[] = "@(#)sendmail.h 5.28 %G%";
+static char SmailSccsId[] = "@(#)sendmail.h 5.29 %G%";
# endif lint
# else _DEFINE
# define EXTERN extern
# endif lint
# else _DEFINE
# define EXTERN extern
# endif LOG
# ifdef DAEMON
# endif LOG
# ifdef DAEMON
# include <sys/socket.h>
# include <netinet/in.h>
# include <sys/socket.h>
# include <netinet/in.h>
# define HOSTINFO struct hostinfo
# define HOSTINFO struct hostinfo
/* flag bits */
#define HOF_VALID 00001 /* this entry is valid */
/* flag bits */
#define HOF_VALID 00001 /* this entry is valid */
# endif DAEMON
\f/*
** Symbol table definitions
# endif DAEMON
\f/*
** Symbol table definitions
-static char sccsid[] = "@(#)usersmtp.c 5.18 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)usersmtp.c 5.19 (Berkeley) %G% (with SMTP)";
-static char sccsid[] = "@(#)usersmtp.c 5.18 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)usersmtp.c 5.19 (Berkeley) %G% (without SMTP)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
{
register int r;
EVENT *gte;
{
register int r;
EVENT *gte;
char buf[MAXNAME];
static int greettimeout();
char buf[MAXNAME];
static int greettimeout();
/*
** Open the connection to the mailer.
/*
** Open the connection to the mailer.
smtpquit(m);
return (EX_PROTOCOL);
smtpquit(m);
return (EX_PROTOCOL);
- /* signal a temporary failure */
-#ifdef HOSTINFO
- {
- register STAB *st;
- extern STAB *stab();
-
- /* log this as an error to avoid sure-to-be-void connections */
- st = stab(CurHostName, ST_HOST, ST_ENTER);
- st->s_host.ho_exitstat = EX_TEMPFAIL;
- st->s_host.ho_errno = errno;
- }
-#endif /* HOSTINFO */
+ /* log this as an error to avoid sure-to-be-void connections */
+ st = stab(CurHostName, ST_HOST, ST_ENTER);
+ st->s_host.ho_exitstat = EX_TEMPFAIL;
+ st->s_host.ho_errno = errno;
+ /* signal a temporary failure */
smtpquit(m);
return (EX_TEMPFAIL);
smtpquit(m);
return (EX_TEMPFAIL);
- /* signal service unavailable */
+ /* signal service unavailable */
smtpquit(m);
return (EX_UNAVAILABLE);
}
smtpquit(m);
return (EX_UNAVAILABLE);
}
-static char sccsid[] = "@(#)version.c 5.90 (Berkeley) %G%";
+static char sccsid[] = "@(#)version.c 5.91 (Berkeley) %G%";
-char Version[] = "5.90";
+char Version[] = "5.91";