* Copyright (c) 1983 Eric P. Allman
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* @(#)conf.h 8.1 (Berkeley) 6/7/93
** CONF.H -- All user-configurable parameters for sendmail
** There shouldn't be much need to change these....
# define MAXLINE 2048 /* max line length */
# define MAXNAME 256 /* max length of a name */
# define MAXPV 40 /* max # of parms to mailers */
# define MAXATOM 200 /* max atoms per address */
# define MAXMAILERS 25 /* maximum mailers known to system */
# define MAXRWSETS 100 /* max # of sets of rewriting rules */
# define MAXPRIORITIES 25 /* max values for Precedence: field */
# define MAXMXHOSTS 20 /* max # of MX records */
# define SMTPLINELIM 990 /* maximum SMTP line length */
# define MAXKEY 128 /* maximum size of a database key */
# define MEMCHUNKSIZE 1024 /* chunk size for memory allocation */
# define MAXUSERENVIRON 100 /* max envars saved, must be >= 3 */
# define MAXIPADDR 16 /* max # of IP addrs for this host */
# define MAXALIASDB 12 /* max # of alias databases */
# define PSBUFSIZE (MAXLINE + MAXATOM) /* size of prescan buffer */
# define QUEUESIZE 1000 /* max # of jobs per queue run */
** #define these if they are available; comment them out otherwise.
# define LOG 1 /* enable logging */
# define UGLYUUCP 1 /* output ugly UUCP From lines */
# define NETINET 1 /* include internet support */
# define SETPROCTITLE 1 /* munge argv to display current status */
# define NAMED_BIND 1 /* use Berkeley Internet Domain Server */
# define MATCHGECOS 1 /* match user names from gecos field */
# define USERDB 1 /* look in user database (requires NEWDB) */
** Operating system configuration.
** Unless you are porting to a new OS, you shouldn't have to
/* HP-UX -- tested for 8.07 */
# define UNSETENV 1 /* need unsetenv(3) support */
/* IBM AIX 3.x -- actually tested for 3.2.3 */
# define LOCKF 1 /* use System V lockf instead of flock */
# define FORK fork /* no vfork primitive available */
# define UNSETENV 1 /* need unsetenv(3) support */
/* general System V defines */
# define LOCKF 1 /* use System V lockf instead of flock */
# define SYS5TZ 1 /* use System V style timezones */
# define HASUNAME 1 /* use System V uname system call */
#if defined(sun) && !defined(BSD)
# define UNSETENV 1 /* need unsetenv(3) support */
# define LOCKF 1 /* use System V lockf instead of flock */
# define UNSETENV 1 /* need unsetenv(3) support */
# define HASUSTAT 1 /* has the ustat(2) syscall */
# define HASSTATFS 1 /* has the statfs(2) syscall */
# define HASSTATFS 1 /* has the statfs(2) syscall */
# define HASSETSID 1 /* has setsid(2) call */
** Due to a "feature" in some operating systems such as Ultrix 4.3 and
** HPUX 8.0, if you receive a "No route to host" message (ICMP message
** ICMP_UNREACH_HOST) on _any_ connection, all connections to that host
** are closed. Some firewalls return this error if you try to connect
** to the IDENT port (113), so you can't receive email from these hosts
** on these systems. The firewall really should use a more specific
** message such as ICMP_UNREACH_PROTOCOL or _PORT or _NET_PROHIB.
#if !defined(ultrix) && !defined(__hpux)
# define IDENTPROTO 1 /* use IDENT proto (RFC 1413) */
** Remaining definitions should never have to be changed. They are
** primarily to provide back compatibility for older systems -- for
** example, it includes some POSIX compatibility definitions
/* System 5 compatibility */
#define S_ISREG(foo) ((foo & S_IFREG) == S_IFREG)
** Older systems don't have this error code -- it should be in
** /usr/include/sysexits.h.
# define EX_CONFIG 78 /* configuration error */
** Do some required dependencies
#if defined(NETINET) || defined(NETISO)
# define SMTP 1 /* enable user and server SMTP */
# define QUEUE 1 /* enable queueing */
# define DAEMON 1 /* include the daemon (requires IPC & SMTP) */
** Arrange to use either varargs or stdargs
# define VA_LOCAL_DECL va_list ap;
# define VA_START(f) va_start(ap, f)
# define VA_END va_end(ap)
# define VA_LOCAL_DECL va_list ap;
# define VA_START(f) va_start(ap)
# define VA_END va_end(ap)
# include <sys/utsname.h>
char nodename
[NODE_LENGTH
+1];
#define MAXHOSTNAMELEN 256
#if !defined(SIGCHLD) && defined(SIGCLD)
#define LOCK_SH 0x01 /* shared lock */
#define LOCK_EX 0x02 /* exclusive lock */
#define LOCK_NB 0x04 /* non-blocking lock */
#define LOCK_UN 0x08 /* unlock */
** Size of tobuf (deliver.c)
** Tweak this to match your syslog implementation. It will have to
** allow for the extra information printed.
# define TOBUFSIZE (1024 - 256)
/* fork routine -- set above using #ifdef _osname_ or in Makefile */
# define FORK vfork /* function to call to fork mailer */