19147Seric /* 234920Sbostic * Copyright (c) 1983 Eric P. Allman 333728Sbostic * Copyright (c) 1988 Regents of the University of California. 433728Sbostic * All rights reserved. 533728Sbostic * 642825Sbostic * %sccs.include.redist.c% 733728Sbostic * 8*59092Seric * @(#)conf.h 6.18 (Berkeley) 04/15/93 933728Sbostic */ 109147Seric 1122726Sdist /* 1222726Sdist ** CONF.H -- All user-configurable parameters for sendmail 1322726Sdist */ 149147Seric 1557232Seric # include <sys/param.h> 1658689Seric # include <fcntl.h> 1757232Seric 189147Seric /* 199147Seric ** Table sizes, etc.... 209147Seric ** There shouldn't be much need to change these.... 219147Seric */ 229147Seric 2324945Seric # define MAXLINE 1024 /* max line length */ 2424945Seric # define MAXNAME 256 /* max length of a name */ 259147Seric # define MAXPV 40 /* max # of parms to mailers */ 269147Seric # define MAXATOM 100 /* max atoms per address */ 279147Seric # define MAXMAILERS 25 /* maximum mailers known to system */ 2857143Seric # define MAXRWSETS 100 /* max # of sets of rewriting rules */ 299147Seric # define MAXPRIORITIES 25 /* max values for Precedence: field */ 3057143Seric # define MAXMXHOSTS 20 /* max # of MX records */ 3152106Seric # define SMTPLINELIM 990 /* maximum SMTP line length */ 3257232Seric # define MAXKEY 128 /* maximum size of a database key */ 3357232Seric # define MEMCHUNKSIZE 1024 /* chunk size for memory allocation */ 3459056Seric # define MAXUSERENVIRON 100 /* max envars saved, must be >= 3 */ 3558106Seric # define MAXIPADDR 16 /* max # of IP addrs for this host */ 3657997Seric # define PSBUFSIZE (MAXNAME * 4) /* size of prescan buffer */ 3757143Seric 3857143Seric # ifndef QUEUESIZE 3957143Seric # define QUEUESIZE 1000 /* max # of jobs per queue run */ 4057143Seric # endif 4157143Seric 4252107Seric # ifndef FORK 4352107Seric # define FORK vfork /* function to call to fork mailer */ 4452107Seric # endif 459147Seric 469147Seric /* 479147Seric ** Compilation options. 4825673Seric ** 4925673Seric ** #define these if they are available; comment them out otherwise. 509147Seric */ 519147Seric 5225673Seric # define LOG 1 /* enable logging */ 5325673Seric # define SMTP 1 /* enable user and server SMTP */ 5425673Seric # define QUEUE 1 /* enable queueing */ 5525673Seric # define UGLYUUCP 1 /* output ugly UUCP From lines */ 5658778Seric # define NETINET 1 /* include internet support */ 5725673Seric # define SETPROCTITLE 1 /* munge argv to display current status */ 5835651Seric # define NAMED_BIND 1 /* use Berkeley Internet Domain Server */ 5953735Seric # define MATCHGECOS 1 /* match user names from gecos field */ 6036483Sbostic 6156337Seric # ifdef NEWDB 6256337Seric # define USERDB 1 /* look in user database (requires NEWDB) */ 6356823Seric # define BTREE_MAP 1 /* enable BTREE mapping type (requires NEWDB) */ 6457143Seric # define HASH_MAP 1 /* enable HASH mapping type (requires NEWDB) */ 6556337Seric # endif 6656337Seric 6756823Seric # ifdef NDBM 6856823Seric # define DBM_MAP 1 /* enable DBM mapping type (requires NDBM) */ 6956823Seric # endif 7056823Seric 7156823Seric /* 7259023Seric ** Operating system configuration. 7359023Seric ** 7459023Seric ** Unless you are porting to a new OS, you shouldn't have to 7559023Seric ** change these. 7656823Seric */ 7756823Seric 7856823Seric # ifdef hpux 7956823Seric # define SYSTEM5 1 8056823Seric # endif 8156823Seric 8251918Seric # ifdef SYSTEM5 8355418Seric 8451918Seric # define LOCKF 1 /* use System V lockf instead of flock */ 8555418Seric # define SYS5TZ 1 /* use System V style timezones */ 8657943Seric # define HASUNAME 1 /* use System V uname system call */ 8755418Seric 8859074Seric # endif 8959074Seric 9059023Seric #ifdef sun 9159023Seric # include <vfork.h> 9259023Seric #endif 9359023Seric 9459074Seric /* 95*59092Seric ** Due to a "feature" in some operating systems such as Ultrix 4.3 and 96*59092Seric ** HPUX 8.0, if you receive a "No route to host" message (ICMP message 97*59092Seric ** ICMP_UNREACH_HOST) on _any_ connection, all connections to that host 98*59092Seric ** are closed. Some firewalls return this error if you try to connect 99*59092Seric ** to the IDENT port (113), so you can't receive email from these hosts 100*59092Seric ** on these systems. The firewall really should use a more specific 101*59092Seric ** message such as ICMP_UNREACH_PROTOCOL or _PORT or _NET_PROHIB. 10259074Seric */ 10351918Seric 104*59092Seric #if !defined(ultrix) && !defined(hpux) 10559074Seric # define IDENTPROTO 1 /* use IDENT proto (RFC 1413) */ 10659074Seric #endif 10759074Seric 10850537Seric /* 10959023Seric ** Remaining definitions should never have to be changed. They are 11059023Seric ** primarily to provide back compatibility for older systems -- for 11159023Seric ** example, it includes some POSIX compatibility definitions */ 11259023Seric 11359023Seric /* 11450537Seric ** Older systems don't have this error code -- it should be in 11550537Seric ** /usr/include/sysexits.h. 11650537Seric */ 11750537Seric 11850537Seric # ifndef EX_CONFIG 11950537Seric # define EX_CONFIG 78 /* configuration error */ 12050537Seric # endif 12156852Seric 12256852Seric /* 12358778Seric ** Do some required dependencies 12458778Seric */ 12558778Seric 12658778Seric #if defined(NETINET) || defined(NETISO) 12758778Seric # define DAEMON 1 12858778Seric # define SMTP 1 12958778Seric # define QUEUE 1 13058778Seric #endif 13158778Seric 13258778Seric 13358778Seric /* 13456852Seric ** Arrange to use either varargs or stdargs 13556852Seric */ 13656852Seric 13756852Seric # ifdef __STDC__ 13856852Seric 13956852Seric # include <stdarg.h> 14056852Seric 14156852Seric # define VA_LOCAL_DECL va_list ap; 14256852Seric # define VA_START(f) va_start(ap, f) 14356852Seric # define VA_END va_end(ap) 14456852Seric 14556852Seric # else 14656852Seric 14756852Seric # include <varargs.h> 14856852Seric 14956852Seric # define VA_LOCAL_DECL va_list ap; 15056852Seric # define VA_START(f) va_start(ap) 15156852Seric # define VA_END va_end(ap) 15256852Seric 15356852Seric # endif 15457631Seric 15557943Seric #ifdef HASUNAME 15657631Seric # include <sys/utsname.h> 15757631Seric # ifdef newstr 15857631Seric # undef newstr 15957631Seric # endif 16057943Seric #else /* ! HASUNAME */ 16157631Seric # define NODE_LENGTH 32 16257631Seric struct utsname 16357631Seric { 16457631Seric char nodename[NODE_LENGTH+1]; 16557631Seric }; 16657943Seric #endif /* HASUNAME */ 16757642Seric 16857735Seric #ifndef MAXHOSTNAMELEN 16957735Seric #define MAXHOSTNAMELEN 256 17057735Seric #endif 17158153Seric 17258153Seric #if !defined(SIGCHLD) && defined(SIGCLD) 17358153Seric # define SIGCHLD SIGCLD 17458153Seric #endif 17558153Seric 17658153Seric #ifndef STDIN_FILENO 17758153Seric #define STDIN_FILENO 0 17858153Seric #endif 17958153Seric 18058153Seric #ifndef STDOUT_FILENO 18158153Seric #define STDOUT_FILENO 1 18258153Seric #endif 18358153Seric 18458153Seric #ifndef STDERR_FILENO 18558153Seric #define STDERR_FILENO 2 18658153Seric #endif 18758689Seric 18858689Seric #ifdef LOCKF 18958689Seric #define LOCK_SH 0x01 /* shared lock */ 19058689Seric #define LOCK_EX 0x02 /* exclusive lock */ 19158689Seric #define LOCK_NB 0x04 /* non-blocking lock */ 19258692Seric 19358692Seric #else 19458692Seric 19558692Seric # include <sys/file.h> 19658692Seric 19758689Seric #endif 19858702Seric 19958702Seric /* 20058702Seric ** Size of tobuf (deliver.c) 20158702Seric ** Tweak this to match your syslog implementation. It will have to 20258702Seric ** allow for the extra information printed. 20358702Seric */ 20458702Seric 20558702Seric #ifndef TOBUFSIZE 20658702Seric # define TOBUFSIZE (1024 - 256) 20758702Seric #endif 208