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*57997Seric * @(#)conf.h 6.7 (Berkeley) 02/15/93 933728Sbostic */ 109147Seric 1122726Sdist /* 1222726Sdist ** CONF.H -- All user-configurable parameters for sendmail 1322726Sdist */ 149147Seric 1557232Seric # include <sys/param.h> 1657232Seric 179147Seric /* 189147Seric ** Table sizes, etc.... 199147Seric ** There shouldn't be much need to change these.... 209147Seric */ 219147Seric 2224945Seric # define MAXLINE 1024 /* max line length */ 2324945Seric # define MAXNAME 256 /* max length of a name */ 249147Seric # define MAXPV 40 /* max # of parms to mailers */ 259147Seric # define MAXATOM 100 /* max atoms per address */ 269147Seric # define MAXMAILERS 25 /* maximum mailers known to system */ 2757143Seric # define MAXRWSETS 100 /* max # of sets of rewriting rules */ 289147Seric # define MAXPRIORITIES 25 /* max values for Precedence: field */ 299147Seric # define MAXTRUST 30 /* maximum number of trusted users */ 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 */ 3457642Seric # define MAXUSERENVIRON 100 /* max envariables saved */ 35*57997Seric # define PSBUFSIZE (MAXNAME * 4) /* size of prescan buffer */ 3657143Seric 3757143Seric # ifndef QUEUESIZE 3857143Seric # define QUEUESIZE 1000 /* max # of jobs per queue run */ 3957143Seric # endif 4057143Seric 4152107Seric # ifndef FORK 4252107Seric # define FORK vfork /* function to call to fork mailer */ 4352107Seric # endif 449147Seric 459147Seric /* 469147Seric ** Compilation options. 4725673Seric ** 4825673Seric ** #define these if they are available; comment them out otherwise. 499147Seric */ 509147Seric 5125673Seric # define LOG 1 /* enable logging */ 5225673Seric # define SMTP 1 /* enable user and server SMTP */ 5325673Seric # define QUEUE 1 /* enable queueing */ 5425673Seric # define UGLYUUCP 1 /* output ugly UUCP From lines */ 5525673Seric # define DAEMON 1 /* include the daemon (requires IPC & SMTP) */ 5625673Seric # define SETPROCTITLE 1 /* munge argv to display current status */ 5735651Seric # define NAMED_BIND 1 /* use Berkeley Internet Domain Server */ 5853735Seric # define MATCHGECOS 1 /* match user names from gecos field */ 5936483Sbostic 6056337Seric # ifdef NEWDB 6156337Seric # define USERDB 1 /* look in user database (requires NEWDB) */ 6256823Seric # define BTREE_MAP 1 /* enable BTREE mapping type (requires NEWDB) */ 6357143Seric # define HASH_MAP 1 /* enable HASH mapping type (requires NEWDB) */ 6456337Seric # endif 6556337Seric 6656823Seric # ifdef NDBM 6756823Seric # define DBM_MAP 1 /* enable DBM mapping type (requires NDBM) */ 6856823Seric # endif 6956823Seric 7056823Seric /* 7156823Seric ** Some general configuration -- you shouldn't have to touch these 7256823Seric */ 7356823Seric 7456823Seric # ifdef hpux 7556823Seric # define SYSTEM5 1 7656823Seric # endif 7756823Seric 7851918Seric # ifdef SYSTEM5 7955418Seric 8051918Seric # define LOCKF 1 /* use System V lockf instead of flock */ 8155418Seric # define SYS5TZ 1 /* use System V style timezones */ 8257943Seric # define HASUNAME 1 /* use System V uname system call */ 8355418Seric 8451918Seric # endif 8551918Seric 8650537Seric /* 8750537Seric ** Older systems don't have this error code -- it should be in 8850537Seric ** /usr/include/sysexits.h. 8950537Seric */ 9050537Seric 9150537Seric # ifndef EX_CONFIG 9250537Seric # define EX_CONFIG 78 /* configuration error */ 9350537Seric # endif 9456852Seric 9556852Seric /* 9656852Seric ** Arrange to use either varargs or stdargs 9756852Seric */ 9856852Seric 9956852Seric # ifdef __STDC__ 10056852Seric 10156852Seric # include <stdarg.h> 10256852Seric 10356852Seric # define VA_LOCAL_DECL va_list ap; 10456852Seric # define VA_START(f) va_start(ap, f) 10556852Seric # define VA_END va_end(ap) 10656852Seric 10756852Seric # else 10856852Seric 10956852Seric # include <varargs.h> 11056852Seric 11156852Seric # define VA_LOCAL_DECL va_list ap; 11256852Seric # define VA_START(f) va_start(ap) 11356852Seric # define VA_END va_end(ap) 11456852Seric 11556852Seric # endif 11657631Seric 11757943Seric #ifdef HASUNAME 11857631Seric # include <sys/utsname.h> 11957631Seric # ifdef newstr 12057631Seric # undef newstr 12157631Seric # endif 12257943Seric #else /* ! HASUNAME */ 12357631Seric # define NODE_LENGTH 32 12457631Seric struct utsname 12557631Seric { 12657631Seric char nodename[NODE_LENGTH+1]; 12757631Seric }; 12857943Seric #endif /* HASUNAME */ 12957642Seric 13057642Seric #ifdef sun 13157642Seric # include <vfork.h> 13257642Seric #endif 13357735Seric 13457735Seric #ifndef MAXHOSTNAMELEN 13557735Seric #define MAXHOSTNAMELEN 256 13657735Seric #endif 137