xref: /csrg-svn/usr.sbin/sendmail/src/conf.h (revision 58689)
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*58689Seric  *	@(#)conf.h	6.11 (Berkeley) 03/17/93
933728Sbostic  */
109147Seric 
1122726Sdist /*
1222726Sdist **  CONF.H -- All user-configurable parameters for sendmail
1322726Sdist */
149147Seric 
1557232Seric # include <sys/param.h>
16*58689Seric # 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 */
3457642Seric # define MAXUSERENVIRON	100		/* max envariables saved */
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 */
5625673Seric # define DAEMON		1	/* include the daemon (requires IPC & SMTP) */
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 /*
7256823Seric **  Some general configuration -- you shouldn't have to touch these
7356823Seric */
7456823Seric 
7556823Seric # ifdef hpux
7656823Seric # define SYSTEM5	1
7756823Seric # endif
7856823Seric 
7951918Seric # ifdef SYSTEM5
8055418Seric 
8151918Seric # define LOCKF		1	/* use System V lockf instead of flock */
8255418Seric # define SYS5TZ		1	/* use System V style timezones */
8357943Seric # define HASUNAME	1	/* use System V uname system call */
8455418Seric 
8551918Seric # endif
8651918Seric 
8750537Seric /*
8850537Seric **  Older systems don't have this error code -- it should be in
8950537Seric **  /usr/include/sysexits.h.
9050537Seric */
9150537Seric 
9250537Seric # ifndef EX_CONFIG
9350537Seric # define EX_CONFIG	78	/* configuration error */
9450537Seric # endif
9556852Seric 
9656852Seric /*
9756852Seric **  Arrange to use either varargs or stdargs
9856852Seric */
9956852Seric 
10056852Seric # ifdef __STDC__
10156852Seric 
10256852Seric # include <stdarg.h>
10356852Seric 
10456852Seric # define VA_LOCAL_DECL	va_list ap;
10556852Seric # define VA_START(f)	va_start(ap, f)
10656852Seric # define VA_END		va_end(ap)
10756852Seric 
10856852Seric # else
10956852Seric 
11056852Seric # include <varargs.h>
11156852Seric 
11256852Seric # define VA_LOCAL_DECL	va_list ap;
11356852Seric # define VA_START(f)	va_start(ap)
11456852Seric # define VA_END		va_end(ap)
11556852Seric 
11656852Seric # endif
11757631Seric 
11857943Seric #ifdef HASUNAME
11957631Seric # include <sys/utsname.h>
12057631Seric # ifdef newstr
12157631Seric #  undef newstr
12257631Seric # endif
12357943Seric #else /* ! HASUNAME */
12457631Seric # define NODE_LENGTH 32
12557631Seric struct utsname
12657631Seric {
12757631Seric 	char nodename[NODE_LENGTH+1];
12857631Seric };
12957943Seric #endif /* HASUNAME */
13057642Seric 
13157642Seric #ifdef sun
13257642Seric # include <vfork.h>
13357642Seric #endif
13457735Seric 
13557735Seric #ifndef MAXHOSTNAMELEN
13657735Seric #define MAXHOSTNAMELEN	256
13757735Seric #endif
13858153Seric 
13958153Seric #if !defined(SIGCHLD) && defined(SIGCLD)
14058153Seric # define SIGCHLD	SIGCLD
14158153Seric #endif
14258153Seric 
14358153Seric #ifndef STDIN_FILENO
14458153Seric #define STDIN_FILENO	0
14558153Seric #endif
14658153Seric 
14758153Seric #ifndef STDOUT_FILENO
14858153Seric #define STDOUT_FILENO	1
14958153Seric #endif
15058153Seric 
15158153Seric #ifndef STDERR_FILENO
15258153Seric #define STDERR_FILENO	2
15358153Seric #endif
154*58689Seric 
155*58689Seric #ifdef LOCKF
156*58689Seric #define LOCK_SH		0x01	/* shared lock */
157*58689Seric #define LOCK_EX		0x02	/* exclusive lock */
158*58689Seric #define LOCK_NB		0x04	/* non-blocking lock */
159*58689Seric #endif
160