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 | * |
df39ad0d | 8 | * @(#)conf.h 6.17 (Berkeley) %G% |
bee79b64 | 9 | */ |
aeb2545d DF |
10 | |
11 | /* | |
12 | ** CONF.H -- All user-configurable parameters for sendmail | |
5a739feb EA |
13 | */ |
14 | ||
f43b04ce | 15 | # include <sys/param.h> |
f8a31c8e | 16 | # include <fcntl.h> |
f43b04ce | 17 | |
5a739feb EA |
18 | /* |
19 | ** Table sizes, etc.... | |
20 | ** There shouldn't be much need to change these.... | |
21 | */ | |
22 | ||
f0a960f1 EA |
23 | # define MAXLINE 1024 /* max line length */ |
24 | # define MAXNAME 256 /* max length of a name */ | |
5a739feb | 25 | # define MAXPV 40 /* max # of parms to mailers */ |
5a739feb EA |
26 | # define MAXATOM 100 /* max atoms per address */ |
27 | # define MAXMAILERS 25 /* maximum mailers known to system */ | |
8583ab39 | 28 | # define MAXRWSETS 100 /* max # of sets of rewriting rules */ |
5a739feb | 29 | # define MAXPRIORITIES 25 /* max values for Precedence: field */ |
8583ab39 | 30 | # define MAXMXHOSTS 20 /* max # of MX records */ |
8657d05f | 31 | # define SMTPLINELIM 990 /* maximum SMTP line length */ |
f43b04ce EA |
32 | # define MAXKEY 128 /* maximum size of a database key */ |
33 | # define MEMCHUNKSIZE 1024 /* chunk size for memory allocation */ | |
b0b636d1 | 34 | # define MAXUSERENVIRON 100 /* max envars saved, must be >= 3 */ |
8e571338 | 35 | # define MAXIPADDR 16 /* max # of IP addrs for this host */ |
68ffe387 | 36 | # define PSBUFSIZE (MAXNAME * 4) /* size of prescan buffer */ |
8583ab39 EA |
37 | |
38 | # ifndef QUEUESIZE | |
39 | # define QUEUESIZE 1000 /* max # of jobs per queue run */ | |
40 | # endif | |
41 | ||
140717b5 EA |
42 | # ifndef FORK |
43 | # define FORK vfork /* function to call to fork mailer */ | |
44 | # endif | |
5a739feb EA |
45 | |
46 | /* | |
47 | ** Compilation options. | |
9bcdff70 EA |
48 | ** |
49 | ** #define these if they are available; comment them out otherwise. | |
5a739feb EA |
50 | */ |
51 | ||
9bcdff70 EA |
52 | # define LOG 1 /* enable logging */ |
53 | # define SMTP 1 /* enable user and server SMTP */ | |
54 | # define QUEUE 1 /* enable queueing */ | |
55 | # define UGLYUUCP 1 /* output ugly UUCP From lines */ | |
3356c77c | 56 | # define NETINET 1 /* include internet support */ |
9bcdff70 | 57 | # define SETPROCTITLE 1 /* munge argv to display current status */ |
35af2f06 | 58 | # define NAMED_BIND 1 /* use Berkeley Internet Domain Server */ |
7f0fd60b | 59 | # define MATCHGECOS 1 /* match user names from gecos field */ |
d25bb424 | 60 | |
273562d8 EA |
61 | # ifdef NEWDB |
62 | # define USERDB 1 /* look in user database (requires NEWDB) */ | |
5a4c03c6 | 63 | # define BTREE_MAP 1 /* enable BTREE mapping type (requires NEWDB) */ |
8583ab39 | 64 | # define HASH_MAP 1 /* enable HASH mapping type (requires NEWDB) */ |
5a4c03c6 EA |
65 | # endif |
66 | ||
67 | # ifdef NDBM | |
68 | # define DBM_MAP 1 /* enable DBM mapping type (requires NDBM) */ | |
69 | # endif | |
70 | ||
71 | /* | |
e6245c7e EA |
72 | ** Operating system configuration. |
73 | ** | |
74 | ** Unless you are porting to a new OS, you shouldn't have to | |
75 | ** change these. | |
5a4c03c6 EA |
76 | */ |
77 | ||
78 | # ifdef hpux | |
79 | # define SYSTEM5 1 | |
273562d8 EA |
80 | # endif |
81 | ||
d25bb424 | 82 | # ifdef SYSTEM5 |
07c63e56 | 83 | |
d25bb424 | 84 | # define LOCKF 1 /* use System V lockf instead of flock */ |
07c63e56 | 85 | # define SYS5TZ 1 /* use System V style timezones */ |
322eceee | 86 | # define HASUNAME 1 /* use System V uname system call */ |
07c63e56 | 87 | |
df39ad0d EA |
88 | # endif |
89 | ||
e6245c7e EA |
90 | #ifdef sun |
91 | # include <vfork.h> | |
92 | #endif | |
93 | ||
df39ad0d EA |
94 | /* |
95 | ** Due to a "feature" in Ultrix, if you receive an ICMP_UNREACH_HOST | |
96 | ** on _any_ connection, all connections to that host are closed. Some | |
97 | ** firewalls return this error if you try to connect to the IDENT port | |
98 | ** (113), so you can't receive email from these hosts on Ultrix. The | |
99 | ** firewall really should use ICMP_UNREACH_PROTOCOL or _PORT or | |
100 | ** _NET_PROHIB instead. | |
101 | */ | |
102 | ||
103 | #ifndef ultrix | |
104 | # define IDENTPROTO 1 /* use IDENT proto (RFC 1413) */ | |
105 | #endif | |
19c9e482 | 106 | |
e6245c7e EA |
107 | /* |
108 | ** Remaining definitions should never have to be changed. They are | |
109 | ** primarily to provide back compatibility for older systems -- for | |
110 | ** example, it includes some POSIX compatibility definitions */ | |
111 | ||
030ae776 EA |
112 | /* |
113 | ** Older systems don't have this error code -- it should be in | |
114 | ** /usr/include/sysexits.h. | |
115 | */ | |
116 | ||
117 | # ifndef EX_CONFIG | |
118 | # define EX_CONFIG 78 /* configuration error */ | |
119 | # endif | |
5229f34d | 120 | |
3356c77c EA |
121 | /* |
122 | ** Do some required dependencies | |
123 | */ | |
124 | ||
125 | #if defined(NETINET) || defined(NETISO) | |
126 | # define DAEMON 1 | |
127 | # define SMTP 1 | |
128 | # define QUEUE 1 | |
129 | #endif | |
130 | ||
131 | ||
5229f34d EA |
132 | /* |
133 | ** Arrange to use either varargs or stdargs | |
134 | */ | |
135 | ||
136 | # ifdef __STDC__ | |
137 | ||
138 | # include <stdarg.h> | |
139 | ||
5229f34d EA |
140 | # define VA_LOCAL_DECL va_list ap; |
141 | # define VA_START(f) va_start(ap, f) | |
142 | # define VA_END va_end(ap) | |
143 | ||
144 | # else | |
145 | ||
146 | # include <varargs.h> | |
147 | ||
5229f34d EA |
148 | # define VA_LOCAL_DECL va_list ap; |
149 | # define VA_START(f) va_start(ap) | |
150 | # define VA_END va_end(ap) | |
151 | ||
152 | # endif | |
422bed79 | 153 | |
322eceee | 154 | #ifdef HASUNAME |
422bed79 EA |
155 | # include <sys/utsname.h> |
156 | # ifdef newstr | |
157 | # undef newstr | |
158 | # endif | |
322eceee | 159 | #else /* ! HASUNAME */ |
422bed79 EA |
160 | # define NODE_LENGTH 32 |
161 | struct utsname | |
162 | { | |
163 | char nodename[NODE_LENGTH+1]; | |
164 | }; | |
322eceee | 165 | #endif /* HASUNAME */ |
6e99f903 | 166 | |
8d3fd325 EA |
167 | #ifndef MAXHOSTNAMELEN |
168 | #define MAXHOSTNAMELEN 256 | |
169 | #endif | |
49c069a9 EA |
170 | |
171 | #if !defined(SIGCHLD) && defined(SIGCLD) | |
172 | # define SIGCHLD SIGCLD | |
173 | #endif | |
174 | ||
175 | #ifndef STDIN_FILENO | |
176 | #define STDIN_FILENO 0 | |
177 | #endif | |
178 | ||
179 | #ifndef STDOUT_FILENO | |
180 | #define STDOUT_FILENO 1 | |
181 | #endif | |
182 | ||
183 | #ifndef STDERR_FILENO | |
184 | #define STDERR_FILENO 2 | |
185 | #endif | |
f8a31c8e EA |
186 | |
187 | #ifdef LOCKF | |
188 | #define LOCK_SH 0x01 /* shared lock */ | |
189 | #define LOCK_EX 0x02 /* exclusive lock */ | |
190 | #define LOCK_NB 0x04 /* non-blocking lock */ | |
64247676 EA |
191 | |
192 | #else | |
193 | ||
194 | # include <sys/file.h> | |
195 | ||
f8a31c8e | 196 | #endif |
a3685d83 EA |
197 | |
198 | /* | |
199 | ** Size of tobuf (deliver.c) | |
200 | ** Tweak this to match your syslog implementation. It will have to | |
201 | ** allow for the extra information printed. | |
202 | */ | |
203 | ||
204 | #ifndef TOBUFSIZE | |
205 | # define TOBUFSIZE (1024 - 256) | |
206 | #endif |