1 /* 2 * Copyright (c) 1983 Eric P. Allman 3 * Copyright (c) 1988 Regents of the University of California. 4 * All rights reserved. 5 * 6 * %sccs.include.redist.c% 7 * 8 * @(#)conf.h 5.30 (Berkeley) 11/16/92 9 */ 10 11 /* 12 ** CONF.H -- All user-configurable parameters for sendmail 13 */ 14 15 /* 16 ** Table sizes, etc.... 17 ** There shouldn't be much need to change these.... 18 */ 19 20 # define MAXLINE 1024 /* max line length */ 21 # define MAXNAME 256 /* max length of a name */ 22 # define MAXFIELD 4096 /* max total length of a hdr field */ 23 # define MAXPV 40 /* max # of parms to mailers */ 24 # define MAXHOP 17 /* max value of HopCount */ 25 # define MAXATOM 100 /* max atoms per address */ 26 # define MAXMAILERS 25 /* maximum mailers known to system */ 27 # define MAXRWSETS 30 /* max # of sets of rewriting rules */ 28 # define MAXPRIORITIES 25 /* max values for Precedence: field */ 29 # define MAXTRUST 30 /* maximum number of trusted users */ 30 # define MAXUSERENVIRON 40 /* max # of items in user environ */ 31 # define QUEUESIZE 600 /* max # of jobs per queue run */ 32 # define MAXMXHOSTS 10 /* max # of MX records */ 33 # define SMTPLINELIM 990 /* maximum SMTP line length */ 34 # ifndef FORK 35 # define FORK vfork /* function to call to fork mailer */ 36 # endif 37 38 /* 39 ** Compilation options. 40 ** 41 ** #define these if they are available; comment them out otherwise. 42 */ 43 44 # define LOG 1 /* enable logging */ 45 # define SMTP 1 /* enable user and server SMTP */ 46 # define QUEUE 1 /* enable queueing */ 47 # define UGLYUUCP 1 /* output ugly UUCP From lines */ 48 # define DAEMON 1 /* include the daemon (requires IPC & SMTP) */ 49 # define SETPROCTITLE 1 /* munge argv to display current status */ 50 # define NAMED_BIND 1 /* use Berkeley Internet Domain Server */ 51 # define MATCHGECOS 1 /* match user names from gecos field */ 52 53 # ifdef NEWDB 54 # define USERDB 1 /* look in user database (requires NEWDB) */ 55 # define BTREE_MAP 1 /* enable BTREE mapping type (requires NEWDB) */ 56 /*# define HASH_MAP 1 /* enable HASH mapping type (requires NEWDB) */ 57 # endif 58 59 # ifdef NDBM 60 # define DBM_MAP 1 /* enable DBM mapping type (requires NDBM) */ 61 # endif 62 63 /* 64 ** Some general configuration -- you shouldn't have to touch these 65 */ 66 67 # ifdef hpux 68 # define SYSTEM5 1 69 # endif 70 71 # ifdef SYSTEM5 72 73 # define LOCKF 1 /* use System V lockf instead of flock */ 74 # define SYS5TZ 1 /* use System V style timezones */ 75 76 # endif 77 78 /* 79 ** Older systems don't have this error code -- it should be in 80 ** /usr/include/sysexits.h. 81 */ 82 83 # ifndef EX_CONFIG 84 # define EX_CONFIG 78 /* configuration error */ 85 # endif 86 87 /* 88 ** Arrange to use either varargs or stdargs 89 */ 90 91 # ifdef __STDC__ 92 93 # include <stdarg.h> 94 95 # define VA_ARG_FORMAL 96 # define VA_ARG_DECL 97 # define VA_LOCAL_DECL va_list ap; 98 # define VA_START(f) va_start(ap, f) 99 # define VA_END va_end(ap) 100 101 # else 102 103 # include <varargs.h> 104 105 # define VA_ARG_FORMAL ,va_alist 106 # define VA_ARG_DECL va_dcl 107 # define VA_LOCAL_DECL va_list ap; 108 # define VA_START(f) va_start(ap) 109 # define VA_END va_end(ap) 110 111 # endif 112