Correct conditional to correctly treat segments which end on a boundary.
[dragonfly.git] / contrib / sendmail-8.13.8 / sendmail / conf.h
1 /*
2  * Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers.
3  *      All rights reserved.
4  * Copyright (c) 1983, 1995-1997 Eric P. Allman.  All rights reserved.
5  * Copyright (c) 1988, 1993
6  *      The Regents of the University of California.  All rights reserved.
7  *
8  * By using this file, you agree to the terms and conditions set
9  * forth in the LICENSE file which can be found at the top level of
10  * the sendmail distribution.
11  *
12  *
13  *      $Id: conf.h,v 8.570 2005/12/09 18:37:27 ca Exp $
14  */
15
16 /*
17 **  CONF.H -- All user-configurable parameters for sendmail
18 **
19 **      Send updates to sendmail@Sendmail.ORG so they will be
20 **      included in the next release.
21 */
22
23 #ifndef CONF_H
24 #define CONF_H 1
25
26 #ifdef __GNUC__
27 struct rusage;  /* forward declaration to get gcc to shut up in wait.h */
28 #endif /* __GNUC__ */
29
30 # include <sys/param.h>
31 # include <sys/types.h>
32 # include <sys/stat.h>
33 # ifndef __QNX__
34 /* in QNX this grabs bogus LOCK_* manifests */
35 #  include <sys/file.h>
36 # endif /* ! __QNX__ */
37 # include <sys/wait.h>
38 # include <limits.h>
39 # include <fcntl.h>
40 # include <signal.h>
41 # include <netdb.h>
42 # include <pwd.h>
43 # include <grp.h>
44
45 /* make sure TOBUFSIZ isn't larger than system limit for size of exec() args */
46 #ifdef ARG_MAX
47 # if ARG_MAX > 4096
48 #  define SM_ARG_MAX    4096
49 # else /* ARG_MAX > 4096 */
50 #  define SM_ARG_MAX    ARG_MAX
51 # endif /* ARG_MAX > 4096 */
52 #else /* ARG_MAX */
53 # define SM_ARG_MAX     4096
54 #endif /* ARG_MAX */
55
56 /**********************************************************************
57 **  Table sizes, etc....
58 **      There shouldn't be much need to change these....
59 **      If you do, be careful, none should be set anywhere near INT_MAX
60 **********************************************************************/
61
62 #define MAXLINE         2048    /* max line length */
63 #define MAXNAME         256     /* max length of a name */
64 #ifndef MAXAUTHINFO
65 # define MAXAUTHINFO    100     /* max length of authinfo token */
66 #endif /* ! MAXAUTHINFO */
67 #define MAXPV           256     /* max # of parms to mailers */
68 #define MAXATOM         1000    /* max atoms per address */
69 #define MAXRWSETS       200     /* max # of sets of rewriting rules */
70 #define MAXPRIORITIES   25      /* max values for Precedence: field */
71 #define MAXMXHOSTS      100     /* max # of MX records for one host */
72 #define SMTPLINELIM     990     /* max SMTP line length */
73 #define MAXUDBKEY       128     /* max size of a database key (udb only) */
74 #if _FFR_MAXKEY
75 # define MAXKEY         1024    /* max size of a database key */
76 #else /* _FFR_MAXKEY */
77 # define MAXKEY         (MAXNAME + 1)   /* max size of a database key */
78 #endif /* _FFR_MAXKEY */
79 #define MEMCHUNKSIZE    1024    /* chunk size for memory allocation */
80 #define MAXUSERENVIRON  100     /* max envars saved, must be >= 3 */
81 #define MAXMAPSTACK     12      /* max # of stacked or sequenced maps */
82 #if MILTER
83 # define MAXFILTERS     25      /* max # of milter filters */
84 # define MAXFILTERMACROS 50     /* max # of macros per milter cmd */
85 #endif /* MILTER */
86 #define MAXSMTPARGS     20      /* max # of ESMTP args for MAIL/RCPT */
87 #define MAXTOCLASS      8       /* max # of message timeout classes */
88 #define MAXRESTOTYPES   3       /* max # of resolver timeout types */
89 #define MAXMIMEARGS     20      /* max args in Content-Type: */
90 #define MAXMIMENESTING  20      /* max MIME multipart nesting */
91 #define QUEUESEGSIZE    1000    /* increment for queue size */
92
93 #ifndef MAXNOOPCOMMANDS
94 # define MAXNOOPCOMMANDS 20     /* max "noise" commands before slowdown */
95 #endif /* ! MAXNOOPCOMMANDS */
96
97 /*
98 **  MAXQFNAME == 2 (size of "qf", "df" prefix)
99 **      + 8 (base 60 encoded date, time & sequence number)
100 **      + 10 (base 10 encoded 32 bit process id)
101 **      + 1 (terminating NUL character).
102 */
103
104 #define MAXQFNAME       21              /* max qf file name length + 1 */
105 #define MACBUFSIZE      4096            /* max expanded macro buffer size */
106 #define TOBUFSIZE       SM_ARG_MAX      /* max buffer to hold address list */
107 #define MAXSHORTSTR     203             /* max short string length */
108 #define MAXMACNAMELEN   25              /* max macro name length */
109 #define MAXMACROID      0377            /* max macro id number */
110                                         /* Must match (BITMAPBITS - 1) */
111 #ifndef MAXHDRSLEN
112 # define MAXHDRSLEN     (32 * 1024)     /* max size of message headers */
113 #endif /* ! MAXHDRSLEN */
114 #define MAXDAEMONS      10              /* max number of ports to listen to */
115 #ifndef MAXINTERFACES
116 # define MAXINTERFACES  512             /* number of interfaces to probe */
117 #endif /* MAXINTERFACES */
118 #ifndef MAXSYMLINKS
119 # define MAXSYMLINKS    32              /* max number of symlinks in a path */
120 #endif /* ! MAXSYMLINKS */
121 #define MAXLINKPATHLEN  (MAXPATHLEN * MAXSYMLINKS) /* max link-expanded file */
122 #define DATA_PROGRESS_TIMEOUT   300     /* how often to check DATA progress */
123 #define ENHSCLEN        10              /* max len of enhanced status code */
124 #define DEFAULT_MAX_RCPT        100     /* max number of RCPTs per envelope */
125 #define MAXQUEUEGROUPS  50              /* max # of queue groups */
126         /* must be less than BITMAPBITS for DoQueueRun */
127 #define MAXWORKGROUPS   50              /* max # of work groups */
128 #define MAXFILESYS      BITMAPBITS      /* max # of queue file systems
129                                          * must be <= BITMAPBITS */
130 #ifndef FILESYS_UPDATE_INTERVAL
131 # define FILESYS_UPDATE_INTERVAL 300    /* how often to update FileSys table */
132 #endif /* FILESYS_UPDATE_INTERVAL */
133
134 #ifndef SM_DEFAULT_TTL
135 # define SM_DEFAULT_TTL 3600 /* default TTL for services that don't have one */
136 #endif /* SM_DEFAULT_TTL */
137
138 #if SASL
139 # ifndef AUTH_MECHANISMS
140 #  if STARTTLS
141 #   define AUTH_MECHANISMS      "EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5"
142 #  else /* STARTTLS */
143 #   define AUTH_MECHANISMS      "GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5"
144 #  endif /* STARTTLS */
145 # endif /* ! AUTH_MECHANISMS */
146 #endif /* SASL */
147
148 /*
149 **  Default database permissions (alias, maps, etc.)
150 **      Used by sendmail and libsmdb
151 */
152
153 #ifndef DBMMODE
154 # define DBMMODE        0640
155 #endif /* ! DBMMODE */
156
157 /*
158 **  Value which means a uid or gid value should not change
159 */
160
161 #ifndef NO_UID
162 # define NO_UID         -1
163 #endif /* ! NO_UID */
164 #ifndef NO_GID
165 # define NO_GID         -1
166 #endif /* ! NO_GID */
167
168 /**********************************************************************
169 **  Compilation options.
170 **      #define these to 1 if they are available;
171 **      #define them to 0 otherwise.
172 **  All can be overridden from Makefile.
173 **********************************************************************/
174
175 #ifndef NETINET
176 # define NETINET        1       /* include internet support */
177 #endif /* ! NETINET */
178
179 #ifndef NETINET6
180 # define NETINET6       0       /* do not include IPv6 support */
181 #endif /* ! NETINET6 */
182
183 #ifndef NETISO
184 # define NETISO 0               /* do not include ISO socket support */
185 #endif /* ! NETISO */
186
187 #ifndef NAMED_BIND
188 # define NAMED_BIND     1       /* use Berkeley Internet Domain Server */
189 #endif /* ! NAMED_BIND */
190
191 #ifndef XDEBUG
192 # define XDEBUG         1       /* enable extended debugging */
193 #endif /* ! XDEBUG */
194
195 #ifndef MATCHGECOS
196 # define MATCHGECOS     1       /* match user names from gecos field */
197 #endif /* ! MATCHGECOS */
198
199 #ifndef DSN
200 # define DSN            1       /* include delivery status notification code */
201 #endif /* ! DSN */
202
203 #if !defined(USERDB) && (defined(NEWDB) || defined(HESIOD))
204 # define USERDB         1       /* look in user database */
205 #endif /* !defined(USERDB) && (defined(NEWDB) || defined(HESIOD)) */
206
207 #ifndef MIME8TO7
208 # define MIME8TO7       1       /* 8->7 bit MIME conversions */
209 #endif /* ! MIME8TO7 */
210
211 #ifndef MIME7TO8
212 # define MIME7TO8       1       /* 7->8 bit MIME conversions */
213 #endif /* ! MIME7TO8 */
214
215 #if NAMED_BIND
216 # ifndef DNSMAP
217 #  define DNSMAP        1       /* DNS map type */
218 # endif /* ! DNSMAP */
219 #endif /* NAMED_BIND */
220
221 #ifndef PIPELINING
222 # define PIPELINING     1       /* SMTP PIPELINING */
223 #endif /* PIPELINING */
224
225 /**********************************************************************
226 **  End of site-specific configuration.
227 **********************************************************************/
228
229 #include <sm/conf.h>
230
231 #endif /* ! CONF_H */