2 * Copyright (c) 1998-2002 Proofpoint, Inc. and its suppliers.
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.
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.
13 * $Id: conf.h,v 8.577 2013-11-22 20:51:55 ca Exp $
17 ** CONF.H -- All user-configurable parameters for sendmail
19 ** Send updates to sendmail-YYYY@support.sendmail.org
20 ** (replace YYYY with the current year)
21 ** so they will be included in the next release.
28 struct rusage; /* forward declaration to get gcc to shut up in wait.h */
31 # include <sys/param.h>
32 # include <sys/types.h>
33 # include <sys/stat.h>
35 /* in QNX this grabs bogus LOCK_* manifests */
36 # include <sys/file.h>
38 # include <sys/wait.h>
46 /* make sure TOBUFSIZ isn't larger than system limit for size of exec() args */
49 # define SM_ARG_MAX 4096
51 # define SM_ARG_MAX ARG_MAX
54 # define SM_ARG_MAX 4096
57 /**********************************************************************
58 ** Table sizes, etc....
59 ** There shouldn't be much need to change these....
60 ** If you do, be careful, none should be set anywhere near INT_MAX
61 **********************************************************************/
63 #define MAXLINE 2048 /* max line length */
65 # define MAXINPLINE 12288 /* max input line length (for AUTH) */
67 # define MAXINPLINE MAXLINE /* max input line length */
69 #define MAXNAME 256 /* max length of a name */
71 # define MAXAUTHINFO 100 /* max length of authinfo token */
73 #define MAXPV 256 /* max # of parms to mailers */
74 #define MAXATOM 1000 /* max atoms per address */
75 #define MAXRWSETS 200 /* max # of sets of rewriting rules */
76 #define MAXPRIORITIES 25 /* max values for Precedence: field */
77 #define MAXMXHOSTS 100 /* max # of MX records for one host */
78 #define SMTPLINELIM 990 /* max SMTP line length */
79 #define MAXUDBKEY 128 /* max size of a database key (udb only) */
80 #define MAXKEY 1024 /* max size of a database key */
81 #define MEMCHUNKSIZE 1024 /* chunk size for memory allocation */
82 #define MAXUSERENVIRON 100 /* max envars saved, must be >= 3 */
83 #define MAXMAPSTACK 12 /* max # of stacked or sequenced maps */
85 # define MAXFILTERS 25 /* max # of milter filters */
86 # define MAXFILTERMACROS 50 /* max # of macros per milter cmd */
88 #define MAXSMTPARGS 20 /* max # of ESMTP args for MAIL/RCPT */
89 #define MAXTOCLASS 8 /* max # of message timeout classes */
90 #define MAXRESTOTYPES 3 /* max # of resolver timeout types */
91 #define MAXMIMEARGS 20 /* max args in Content-Type: */
92 #define MAXMIMENESTING 20 /* max MIME multipart nesting */
93 #define QUEUESEGSIZE 1000 /* increment for queue size */
95 #ifndef MAXNOOPCOMMANDS
96 # define MAXNOOPCOMMANDS 20 /* max "noise" commands before slowdown */
100 ** MAXQFNAME == 2 (size of "qf", "df" prefix)
101 ** + 8 (base 60 encoded date, time & sequence number)
102 ** + 10 (base 10 encoded 32 bit process id)
103 ** + 1 (terminating NUL character).
106 #define MAXQFNAME 21 /* max qf file name length + 1 */
107 #define MACBUFSIZE 4096 /* max expanded macro buffer size */
108 #define TOBUFSIZE SM_ARG_MAX /* max buffer to hold address list */
109 #define MAXSHORTSTR 203 /* max short string length */
110 #define MAXMACNAMELEN 25 /* max macro name length */
111 #define MAXMACROID 0377 /* max macro id number */
112 /* Must match (BITMAPBITS - 1) */
114 # define MAXHDRSLEN (32 * 1024) /* max size of message headers */
117 # define MAXDAEMONS 10 /* max number of ports to listen to */
118 /* XREF: conf.c: MAXDAEMONS != 10 */
120 #ifndef MAXINTERFACES
121 # define MAXINTERFACES 512 /* number of interfaces to probe */
124 # define MAXSYMLINKS 32 /* max number of symlinks in a path */
126 #define MAXLINKPATHLEN (MAXPATHLEN * MAXSYMLINKS) /* max link-expanded file */
127 #define DATA_PROGRESS_TIMEOUT 300 /* how often to check DATA progress */
128 #define ENHSCLEN 10 /* max len of enhanced status code */
129 #define DEFAULT_MAX_RCPT 100 /* max number of RCPTs per envelope */
130 #ifndef MAXQUEUEGROUPS
131 # define MAXQUEUEGROUPS 50 /* max # of queue groups */
132 /* must be less than BITMAPBITS for DoQueueRun */
134 #if MAXQUEUEGROUPS >= BITMAPBITS
135 ERROR _MAXQUEUEGROUPS must be less than _BITMAPBITS
138 #ifndef MAXWORKGROUPS
139 # define MAXWORKGROUPS 50 /* max # of work groups */
142 #define MAXFILESYS BITMAPBITS /* max # of queue file systems
143 * must be <= BITMAPBITS */
144 #ifndef FILESYS_UPDATE_INTERVAL
145 # define FILESYS_UPDATE_INTERVAL 300 /* how often to update FileSys table */
148 #ifndef SM_DEFAULT_TTL
149 # define SM_DEFAULT_TTL 3600 /* default TTL for services that don't have one */
153 # ifndef AUTH_MECHANISMS
155 # define AUTH_MECHANISMS "EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5"
157 # define AUTH_MECHANISMS "GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5"
159 # endif /* ! AUTH_MECHANISMS */
163 ** Default database permissions (alias, maps, etc.)
164 ** Used by sendmail and libsmdb
168 # define DBMMODE 0640
172 ** Value which means a uid or gid value should not change
182 /**********************************************************************
183 ** Compilation options.
184 ** #define these to 1 if they are available;
185 ** #define them to 0 otherwise.
186 ** All can be overridden from Makefile.
187 **********************************************************************/
190 # define NETINET 1 /* include internet support */
194 # define NETINET6 0 /* do not include IPv6 support */
198 # define NETISO 0 /* do not include ISO socket support */
202 # define NAMED_BIND 1 /* use Berkeley Internet Domain Server */
206 # define XDEBUG 1 /* enable extended debugging */
210 # define MATCHGECOS 1 /* match user names from gecos field */
214 # define DSN 1 /* include delivery status notification code */
217 #if !defined(USERDB) && (defined(NEWDB) || defined(HESIOD))
218 # define USERDB 1 /* look in user database */
222 # define MIME8TO7 1 /* 8->7 bit MIME conversions */
226 # define MIME7TO8 1 /* 7->8 bit MIME conversions */
231 # define DNSMAP 1 /* DNS map type */
236 # define PIPELINING 1 /* SMTP PIPELINING */
239 /**********************************************************************
240 ** End of site-specific configuration.
241 **********************************************************************/
244 # define CDBEXT ".db"
247 # define CDBEXT ".cdb"
248 # define CDBext "cdb"
253 #endif /* ! CONF_H */