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