xref: /csrg-svn/usr.sbin/sendmail/src/conf.h (revision 57735)
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*57735Seric  *	@(#)conf.h	6.5 (Berkeley) 01/28/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 */
3557143Seric 
3657143Seric # ifndef QUEUESIZE
3757143Seric # define QUEUESIZE	1000		/* max # of jobs per queue run */
3857143Seric # endif
3957143Seric 
4052107Seric # ifndef FORK
4152107Seric # define FORK		vfork		/* function to call to fork mailer */
4252107Seric # endif
439147Seric 
449147Seric /*
459147Seric **  Compilation options.
4625673Seric **
4725673Seric **	#define these if they are available; comment them out otherwise.
489147Seric */
499147Seric 
5025673Seric # define LOG		1	/* enable logging */
5125673Seric # define SMTP		1	/* enable user and server SMTP */
5225673Seric # define QUEUE		1	/* enable queueing */
5325673Seric # define UGLYUUCP	1	/* output ugly UUCP From lines */
5425673Seric # define DAEMON		1	/* include the daemon (requires IPC & SMTP) */
5525673Seric # define SETPROCTITLE	1	/* munge argv to display current status */
5635651Seric # define NAMED_BIND	1	/* use Berkeley Internet Domain Server */
5753735Seric # define MATCHGECOS	1	/* match user names from gecos field */
5836483Sbostic 
5956337Seric # ifdef NEWDB
6056337Seric # define USERDB		1	/* look in user database (requires NEWDB) */
6156823Seric # define BTREE_MAP	1	/* enable BTREE mapping type (requires NEWDB) */
6257143Seric # define HASH_MAP	1	/* enable HASH mapping type (requires NEWDB) */
6356337Seric # endif
6456337Seric 
6556823Seric # ifdef NDBM
6656823Seric # define DBM_MAP	1	/* enable DBM mapping type (requires NDBM) */
6756823Seric # endif
6856823Seric 
6956823Seric /*
7056823Seric **  Some general configuration -- you shouldn't have to touch these
7156823Seric */
7256823Seric 
7356823Seric # ifdef hpux
7456823Seric # define SYSTEM5	1
7556823Seric # endif
7656823Seric 
7751918Seric # ifdef SYSTEM5
7855418Seric 
7951918Seric # define LOCKF		1	/* use System V lockf instead of flock */
8055418Seric # define SYS5TZ		1	/* use System V style timezones */
8157631Seric # define UNAME		1	/* use System V uname system call */
8255418Seric 
8351918Seric # endif
8451918Seric 
8550537Seric /*
8650537Seric **  Older systems don't have this error code -- it should be in
8750537Seric **  /usr/include/sysexits.h.
8850537Seric */
8950537Seric 
9050537Seric # ifndef EX_CONFIG
9150537Seric # define EX_CONFIG	78	/* configuration error */
9250537Seric # endif
9356852Seric 
9456852Seric /*
9556852Seric **  Arrange to use either varargs or stdargs
9656852Seric */
9756852Seric 
9856852Seric # ifdef __STDC__
9956852Seric 
10056852Seric # include <stdarg.h>
10156852Seric 
10256852Seric # define VA_LOCAL_DECL	va_list ap;
10356852Seric # define VA_START(f)	va_start(ap, f)
10456852Seric # define VA_END		va_end(ap)
10556852Seric 
10656852Seric # else
10756852Seric 
10856852Seric # include <varargs.h>
10956852Seric 
11056852Seric # define VA_LOCAL_DECL	va_list ap;
11156852Seric # define VA_START(f)	va_start(ap)
11256852Seric # define VA_END		va_end(ap)
11356852Seric 
11456852Seric # endif
11557631Seric 
11657631Seric #ifdef UNAME
11757631Seric # include <sys/utsname.h>
11857631Seric # ifdef newstr
11957631Seric #  undef newstr
12057631Seric # endif
12157631Seric #else /* ! UNAME */
12257631Seric # define NODE_LENGTH 32
12357631Seric struct utsname
12457631Seric {
12557631Seric 	char nodename[NODE_LENGTH+1];
12657631Seric };
12757631Seric #endif /* UNAME */
12857642Seric 
12957642Seric #ifdef sun
13057642Seric # include <vfork.h>
13157642Seric #endif
132*57735Seric 
133*57735Seric #ifndef MAXHOSTNAMELEN
134*57735Seric #define MAXHOSTNAMELEN	256
135*57735Seric #endif
136