xref: /freebsd-13.1/contrib/sendmail/src/README (revision 95697f42)
1e92d3f3fSGregory Neil Shapiro# Copyright (c) 1998-2004 Proofpoint, Inc. and its suppliers.
206f25ae9SGregory Neil Shapiro#	All rights reserved.
3c2aa98e2SPeter Wemm# Copyright (c) 1983, 1995-1997 Eric P. Allman.  All rights reserved.
4c2aa98e2SPeter Wemm# Copyright (c) 1988
5c2aa98e2SPeter Wemm#	The Regents of the University of California.  All rights reserved.
6c2aa98e2SPeter Wemm#
7c2aa98e2SPeter Wemm# By using this file, you agree to the terms and conditions set
8c2aa98e2SPeter Wemm# forth in the LICENSE file which can be found at the top level of
9c2aa98e2SPeter Wemm# the sendmail distribution.
10c2aa98e2SPeter Wemm#
11c2aa98e2SPeter Wemm#
12*95697f42SGregory Neil Shapiro#	$Id: README,v 8.393 2013-11-22 20:51:54 ca Exp $
13c2aa98e2SPeter Wemm#
14c2aa98e2SPeter Wemm
15c2aa98e2SPeter WemmThis directory contains the source files for sendmail(TM).
16c2aa98e2SPeter Wemm
1740266059SGregory Neil Shapiro   *******************************************************************
1840266059SGregory Neil Shapiro   !! Read sendmail/SECURITY for important installation information !!
1940266059SGregory Neil Shapiro   *******************************************************************
20c2aa98e2SPeter Wemm
21c2aa98e2SPeter Wemm	**********************************************************
22c2aa98e2SPeter Wemm	**  Read below for more details on building sendmail.	**
23c2aa98e2SPeter Wemm	**********************************************************
24c2aa98e2SPeter Wemm
25c2aa98e2SPeter Wemm**************************************************************************
26c2aa98e2SPeter Wemm**  IMPORTANT:  Read the appropriate paragraphs in the section on	**
27c2aa98e2SPeter Wemm**  ``Operating System and Compile Quirks''.				**
28c2aa98e2SPeter Wemm**************************************************************************
29c2aa98e2SPeter Wemm
30c2aa98e2SPeter WemmFor detailed instructions, please read the document ../doc/op/op.me:
31c2aa98e2SPeter Wemm
3240266059SGregory Neil Shapiro	cd ../doc/op ; make op.ps op.txt
33c2aa98e2SPeter Wemm
34c2aa98e2SPeter WemmSendmail is a trademark of Proofpoint, Inc.
35*95697f42SGregory Neil ShapiroUS Patent Numbers 6865671, 6986037.
36c2aa98e2SPeter Wemm
37c2aa98e2SPeter Wemm
38c2aa98e2SPeter Wemm+-------------------+
39c2aa98e2SPeter Wemm| BUILDING SENDMAIL |
40c2aa98e2SPeter Wemm+-------------------+
41c2aa98e2SPeter Wemm
42c2aa98e2SPeter WemmBy far, the easiest way to compile sendmail is to use the "Build"
43c2aa98e2SPeter Wemmscript:
44c2aa98e2SPeter Wemm
45e3793f76SGregory Neil Shapiro	sh ./Build
46c2aa98e2SPeter Wemm
47c2aa98e2SPeter WemmThis uses the "uname" command to figure out what architecture you are
48c2aa98e2SPeter Wemmon and creates a proper Makefile accordingly.  It also creates a
49c2aa98e2SPeter Wemmsubdirectory per object format, so that multiarchitecture support is
50c2aa98e2SPeter Wemmeasy.  In general this should be all you need.  IRIX 6.x users should
51c2aa98e2SPeter Wemmread the note below in the OPERATING SYSTEM AND COMPILE QUIRKS section.
52c2aa98e2SPeter Wemm
53c2aa98e2SPeter WemmIf you need to look at other include or library directories, use the
54c2aa98e2SPeter Wemm-I or -L flags on the command line, e.g.,
55c2aa98e2SPeter Wemm
56e3793f76SGregory Neil Shapiro	sh ./Build -I/usr/sww/include -L/usr/sww/lib
57c2aa98e2SPeter Wemm
58c2aa98e2SPeter WemmIt's also possible to create local site configuration in the file
59c2aa98e2SPeter Wemmsite.config.m4 (or another file settable with the -f flag).  This
60c2aa98e2SPeter Wemmfile contains M4 definitions for various compilation values; the
61c2aa98e2SPeter Wemmmost useful are:
62c2aa98e2SPeter Wemm
63c2aa98e2SPeter WemmconfMAPDEF	-D flags to specify database types to be included
64c2aa98e2SPeter Wemm		(see below)
65c2aa98e2SPeter WemmconfENVDEF	-D flags to specify other environment information
66c2aa98e2SPeter WemmconfINCDIRS	-I flags for finding include files during compilation
67c2aa98e2SPeter WemmconfLIBDIRS	-L flags for finding libraries during linking
68c2aa98e2SPeter WemmconfLIBS	-l flags for selecting libraries during linking
69c2aa98e2SPeter WemmconfLDOPTS	other ld(1) linker options
70c2aa98e2SPeter Wemm
71c2aa98e2SPeter WemmOthers can be found by examining Makefile.m4.  Please read
7206f25ae9SGregory Neil Shapiro../devtools/README for more information about the site.config.m4
73c2aa98e2SPeter Wemmfile.
74c2aa98e2SPeter Wemm
75c2aa98e2SPeter WemmYou can recompile from scratch using the -c flag with the Build
76c2aa98e2SPeter Wemmcommand.  This removes the existing compilation directory for the
77605302a5SGregory Neil Shapirocurrent platform and builds a new one.  The -c flag must also
78605302a5SGregory Neil Shapirobe used if any site.*.m4 file in devtools/Site/ is changed.
79c2aa98e2SPeter Wemm
80c2aa98e2SPeter WemmPorting to a new Unix-based system should be a matter of creating
8106f25ae9SGregory Neil Shapiroan appropriate configuration file in the devtools/OS/ directory.
82c2aa98e2SPeter Wemm
83c2aa98e2SPeter Wemm
84c2aa98e2SPeter Wemm+----------------------+
85c2aa98e2SPeter Wemm| DATABASE DEFINITIONS |
86c2aa98e2SPeter Wemm+----------------------+
87c2aa98e2SPeter Wemm
88c2aa98e2SPeter WemmThere are several database formats that can be used for the alias files
89c2aa98e2SPeter Wemmand for general maps.  When used for alias files they interact in an
90c2aa98e2SPeter Wemmattempt to be backward compatible.
91c2aa98e2SPeter Wemm
92c2aa98e2SPeter WemmThe options are:
93c2aa98e2SPeter Wemm
94c2aa98e2SPeter WemmCDB		Constant DataBase, requires tinycdb (0.75), see
95c2aa98e2SPeter Wemm		http://www.corpit.ru/mjt/tinycdb.html
96c2aa98e2SPeter Wemm		CDB is included automatically if the Build script can find
97c2aa98e2SPeter Wemm		a library named libcdb.a or libcdb.so.
98c2aa98e2SPeter Wemm		By default, .cdb is used as extension for cdb maps, however,
99c2aa98e2SPeter Wemm		if CDB is set to 2, then .db is used to make transition from
100c2aa98e2SPeter Wemm		hash maps easier.  Note: this usually requires to exclude cdb
101c2aa98e2SPeter Wemm		from confLIBSEARCH, see devtools/README.
102c2aa98e2SPeter WemmNEWDB		The new Berkeley DB package.  Some systems (e.g., BSD/OS and
103c2aa98e2SPeter Wemm		Digital UNIX 4.0) have some version of this package
104c2aa98e2SPeter Wemm		pre-installed.  If your system does not have Berkeley DB
10506f25ae9SGregory Neil Shapiro		pre-installed, or the version installed is not version 2.0
10613bd1963SGregory Neil Shapiro		or greater (e.g., is Berkeley DB 1.85 or 1.86), get the
10713bd1963SGregory Neil Shapiro		current version from http://www.sleepycat.com/.  DO NOT
108c2aa98e2SPeter Wemm		use a version from any of the University of California,
109c2aa98e2SPeter Wemm		Berkeley "Net" or other distributions.  If you are still
110c2aa98e2SPeter Wemm		running BSD/386 1.x, you will need to upgrade the included
111c2aa98e2SPeter Wemm		Berkeley DB library to a current version.  NEWDB is included
112c2aa98e2SPeter Wemm		automatically if the Build script can find a library named
113c2aa98e2SPeter Wemm		libdb.a or libdb.so.
114c2aa98e2SPeter Wemm		See also OPERATING SYSTEM AND COMPILE QUIRKS about Berkeley
115c2aa98e2SPeter Wemm		DB versions, e.g., DB 4.1.x.
116c2aa98e2SPeter WemmNDBM		The older NDBM implementation -- the very old V7 DBM
117c2aa98e2SPeter Wemm		implementation is no longer supported.
118c86d5965SGregory Neil ShapiroNIS		Network Information Services.  To use this you must have
11906f25ae9SGregory Neil Shapiro		NIS support on your system.
12006f25ae9SGregory Neil ShapiroNISPLUS		NIS+ (the revised NIS released with Solaris 2).  You must
12106f25ae9SGregory Neil Shapiro		have NIS+ support on your system to use this flag.
12206f25ae9SGregory Neil ShapiroHESIOD		Support for Hesiod (from the DEC/Athena distribution).  You
123c2aa98e2SPeter Wemm		must already have Hesiod support on your system for this to
124c2aa98e2SPeter Wemm		work.  You may be able to get this to work with the MIT/Athena
125c2aa98e2SPeter Wemm		version of Hesiod, but that's likely to be a lot of work.
126c2aa98e2SPeter Wemm		BIND 8.X also includes Hesiod support.
12740266059SGregory Neil ShapiroLDAPMAP		Lightweight Directory Access Protocol support.  You will
12840266059SGregory Neil Shapiro		have to install the UMich or OpenLDAP
129a7ec597cSGregory Neil Shapiro		(http://www.openldap.org/) ldap and lber libraries to use
13006f25ae9SGregory Neil Shapiro		this flag.
131e92d3f3fSGregory Neil ShapiroMAP_REGEX	Regular Expression support.  You will need to use an
132e92d3f3fSGregory Neil Shapiro		operating system which comes with the POSIX regex()
133c2aa98e2SPeter Wemm		routines or install a regexp library such as libregex from
134c2aa98e2SPeter Wemm		the Free Software Foundation.
135c2aa98e2SPeter WemmDNSMAP		DNS map support.  Requires NAMED_BIND.
136c2aa98e2SPeter WemmPH_MAP		PH map support.  You will need the libphclient library from
137c2aa98e2SPeter Wemm		the nph package (http://www-dev.cites.uiuc.edu/ph/nph/).
138c2aa98e2SPeter WemmMAP_NSD		nsd map support (IRIX 6.5 and later).
139c2aa98e2SPeter WemmSOCKETMAP	Support for a trivial query protocol over UNIX domain or TCP
140c2aa98e2SPeter Wemm		sockets.
141c2aa98e2SPeter Wemm
142c2aa98e2SPeter Wemm>>>  NOTE WELL for NEWDB support: If you want to get ndbm support, for
143c2aa98e2SPeter Wemm>>>  Berkeley DB versions under 2.0, it is CRITICAL that you remove
144c2aa98e2SPeter Wemm>>>  ndbm.o from libdb.a before you install it and DO NOT install ndbm.h;
145c2aa98e2SPeter Wemm>>>  for Berkeley DB versions 2.0 through 2.3.14, remove dbm.o from libdb.a
146c2aa98e2SPeter Wemm>>>  before you install it.  If you don't delete these, there is absolutely
147c2aa98e2SPeter Wemm>>>  no point to including -DNDBM, since it will just get you another
148c2aa98e2SPeter Wemm>>>  (inferior) API to the same format database.  These files OVERRIDE
149c2aa98e2SPeter Wemm>>>  calls to ndbm routines -- in particular, if you leave ndbm.h in,
150c2aa98e2SPeter Wemm>>>  you can find yourself using the new db package even if you don't
151c2aa98e2SPeter Wemm>>>  define NEWDB.  Berkeley DB versions later than 2.3.14 do not need
152c2aa98e2SPeter Wemm>>>  to be modified.  Please also consult the README in the top level
153c2aa98e2SPeter Wemm>>>  directory of the sendmail distribution for other important information.
154c2aa98e2SPeter Wemm>>>
155c2aa98e2SPeter Wemm>>>  Further note: DO NOT remove your existing /usr/include/ndbm.h --
156c2aa98e2SPeter Wemm>>>  you need that one.  But do not install an updated ndbm.h in
157c2aa98e2SPeter Wemm>>>  /usr/include, /usr/local/include, or anywhere else.
158c2aa98e2SPeter Wemm
159c2aa98e2SPeter WemmIf NEWDB and NDBM are defined (but not NIS), then sendmail will read
160c2aa98e2SPeter WemmNDBM format alias files, but the next time a newaliases is run the
161c2aa98e2SPeter Wemmformat will be converted to NEWDB; that format will be used forever
162c2aa98e2SPeter Wemmmore.  This is intended as a transition feature.
163c2aa98e2SPeter Wemm
164c2aa98e2SPeter WemmIf NEWDB, NDBM, and NIS are all defined and the name of the file includes
165c2aa98e2SPeter Wemmthe string "/yp/", sendmail will rebuild BOTH the NEWDB and NDBM format
166c2aa98e2SPeter Wemmalias files.  However, it will only read the NEWDB file; the NDBM format
167605302a5SGregory Neil Shapirofile is used only by the NIS subsystem.  This is needed because the NIS
168605302a5SGregory Neil Shapiromaps on an NIS server are built directly from the NDBM files.
169c2aa98e2SPeter Wemm
170c2aa98e2SPeter WemmIf NDBM and NIS are defined (regardless of the definition of NEWDB),
171c2aa98e2SPeter Wemmand the filename includes the string "/yp/", sendmail adds the special
172c2aa98e2SPeter Wemmtokens "YP_LAST_MODIFIED" and "YP_MASTER_NAME", both of which are
173c2aa98e2SPeter Wemmrequired if the NDBM file is to be used as an NIS map.
174c2aa98e2SPeter Wemm
175c2aa98e2SPeter WemmAll of these flags are normally defined in a confMAPDEF setting in your
176c2aa98e2SPeter Wemmsite.config.m4.
177c2aa98e2SPeter Wemm
178c2aa98e2SPeter WemmIf you define NEWDB or HESIOD you get the User Database (USERDB)
179c2aa98e2SPeter Wemmautomatically.  Generally you do want to have NEWDB for it to do
180c2aa98e2SPeter Wemmanything interesting.  See above for getting the Berkeley DB
181c2aa98e2SPeter Wemmpackage (i.e., NEWDB).  There is no separate "user database"
182c2aa98e2SPeter Wemmpackage -- don't bother searching for it on the net.
183c2aa98e2SPeter Wemm
184c2aa98e2SPeter WemmHesiod and LDAP require libraries that may not be installed with your
185c2aa98e2SPeter Wemmsystem.  These are outside of my ability to provide support.  See the
186e92d3f3fSGregory Neil Shapiro"Quirks" section for more information.
187e92d3f3fSGregory Neil Shapiro
188e92d3f3fSGregory Neil ShapiroThe regex map can be used to see if an address matches a certain regular
189e92d3f3fSGregory Neil Shapiroexpression.  For example, all-numerics local parts are common spam
190e92d3f3fSGregory Neil Shapiroaddresses, so "^[0-9]+$" would match this.  By using such a map in a
191e92d3f3fSGregory Neil Shapirocheck_* rule-set, you can block a certain range of addresses that would
192e92d3f3fSGregory Neil Shapirootherwise be considered valid.
193e92d3f3fSGregory Neil Shapiro
194e92d3f3fSGregory Neil ShapiroThe socket map uses a simple request/reply protocol over TCP or
19513058a91SGregory Neil ShapiroUNIX domain sockets to query an external server. Both requests and
196c2aa98e2SPeter Wemmreplies are text based and encoded as netstrings.  The socket map
197c2aa98e2SPeter Wemmuses the same syntax as milters the specify the remote endpoint,
198c2aa98e2SPeter Wemme.g.:
199c2aa98e2SPeter Wemm
200c2aa98e2SPeter WemmKmySocketMap socket inet:[email protected]
201c2aa98e2SPeter Wemm
202c2aa98e2SPeter WemmSee doc/op/op.me for details.
203c2aa98e2SPeter Wemm
20406f25ae9SGregory Neil Shapiro
205c2aa98e2SPeter Wemm+---------------+
206c2aa98e2SPeter Wemm| COMPILE FLAGS |
207c2aa98e2SPeter Wemm+---------------+
208c2aa98e2SPeter Wemm
209c2aa98e2SPeter WemmWherever possible, I try to make sendmail pull in the correct
210c2aa98e2SPeter Wemmcompilation options needed to compile on various environments based on
211c2aa98e2SPeter Wemmautomatically defined symbols.  Some machines don't seem to have useful
212c2aa98e2SPeter Wemmsymbols available, requiring that a compilation flag be defined in
213c2aa98e2SPeter Wemmthe Makefile; see the devtools/OS subdirectory for the supported
214c2aa98e2SPeter Wemmarchitectures.
215c2aa98e2SPeter Wemm
216c2aa98e2SPeter WemmIf you are a system to which sendmail has already been ported you
217c2aa98e2SPeter Wemmshould not have to touch the following symbols.  But if you are porting,
218c2aa98e2SPeter Wemmyou may have to tweak the following compilation flags in conf.h in order
21940266059SGregory Neil Shapiroto get it to compile and link properly:
22040266059SGregory Neil Shapiro
221c2aa98e2SPeter WemmSYSTEM5		Adjust for System V (not necessarily Release 4).
222c2aa98e2SPeter WemmSYS5SIGNALS	Use System V signal semantics -- the signal handler
22306f25ae9SGregory Neil Shapiro		is automatically dropped when the signal is caught.
22440266059SGregory Neil Shapiro		If this is not set, use POSIX/BSD semantics, where the
22540266059SGregory Neil Shapiro		signal handler stays in force until an exec or an
226c2aa98e2SPeter Wemm		explicit delete.  Implied by SYSTEM5.
227c2aa98e2SPeter WemmSYS5SETPGRP	Use System V setpgrp() semantics.  Implied by SYSTEM5.
228c2aa98e2SPeter WemmHASNICE		Define this to zero if you lack the nice(2) system call.
229c2aa98e2SPeter WemmHASRRESVPORT	Define this to zero if you lack the rresvport(3) system call.
230c2aa98e2SPeter WemmHASFCHMOD	Define this to one if you have the fchmod(2) system call.
231c2aa98e2SPeter Wemm		This improves security.
232c2aa98e2SPeter WemmHASFCHOWN	Define this to one if you have the fchown(2) system call.
233c2aa98e2SPeter Wemm		This is required for the TrustedUser option if sendmail
234c2aa98e2SPeter Wemm		must rebuild an (alias) map.
235c2aa98e2SPeter WemmHASFLOCK	Set this if you prefer to use the flock(2) system call
236c2aa98e2SPeter Wemm		rather than using fcntl-based locking.  Fcntl locking
237c2aa98e2SPeter Wemm		has some semantic gotchas, but many vendor systems
238c2aa98e2SPeter Wemm		also interface it to lockd(8) to do NFS-style locking.
239c2aa98e2SPeter Wemm		Unfortunately, may vendors implementations of fcntl locking
240c2aa98e2SPeter Wemm		is just plain broken (e.g., locks are never released,
241c2aa98e2SPeter Wemm		causing your sendmail to deadlock; when the kernel runs
242c2aa98e2SPeter Wemm		out of locks your system crashes).  For this reason, I
243c2aa98e2SPeter Wemm		recommend always defining this unless you are absolutely
244c2aa98e2SPeter Wemm		certain that your fcntl locking implementation really works.
245c2aa98e2SPeter WemmHASUNAME	Set if you have the "uname" system call.  Implied by
246c2aa98e2SPeter Wemm		SYSTEM5.
247c2aa98e2SPeter WemmHASUNSETENV	Define this if your system library has the "unsetenv"
248c2aa98e2SPeter Wemm		subroutine.
249c2aa98e2SPeter WemmHASSETSID	Define this if you have the setsid(2) system call.  This
250c2aa98e2SPeter Wemm		is implied if your system appears to be POSIX compliant.
251c2aa98e2SPeter WemmHASINITGROUPS	Define this if you have the initgroups(3) routine.
252c2aa98e2SPeter WemmHASSETVBUF	Define this if you have the setvbuf(3) library call.
253c2aa98e2SPeter Wemm		If you don't, setlinebuf will be used instead.  This
254c2aa98e2SPeter Wemm		defaults on if your compiler defines __STDC__.
255c2aa98e2SPeter WemmHASSETREUID	Define this if you have setreuid(2) ***AND*** root can
256c2aa98e2SPeter Wemm		use setreuid to change to an arbitrary user.  This second
257c2aa98e2SPeter Wemm		condition is not satisfied on AIX 3.x.  You may find that
258c2aa98e2SPeter Wemm		your system has setresuid(2), (for example, on HP-UX) in
259c2aa98e2SPeter Wemm		which case you will also have to #define setreuid(r, e)
260c2aa98e2SPeter Wemm		to be the appropriate call.  Some systems (such as Solaris)
261c2aa98e2SPeter Wemm		have a compatibility routine that doesn't work properly,
262c2aa98e2SPeter Wemm		but may have "saved user ids" properly implemented so you
263c2aa98e2SPeter Wemm		can ``#define setreuid(r, e) seteuid(e)'' and have it work.
264c2aa98e2SPeter Wemm		The important thing is that you have a call that will set
265c2aa98e2SPeter Wemm		the effective uid independently of the real or saved uid
266c2aa98e2SPeter Wemm		and be able to set the effective uid back again when done.
267c2aa98e2SPeter Wemm		There's a test program in ../test/t_setreuid.c that will
268c2aa98e2SPeter Wemm		try things on your system.  Setting this improves the
269c2aa98e2SPeter Wemm		security, since sendmail doesn't have to read .forward
270c2aa98e2SPeter Wemm		and :include: files as root.  There are certain attacks
27140266059SGregory Neil Shapiro		that may be unpreventable without this call.
27240266059SGregory Neil ShapiroUSESETEUID	Define this to 1 if you have a seteuid(2) system call that
27340266059SGregory Neil Shapiro		will allow root to set only the effective user id to an
27440266059SGregory Neil Shapiro		arbitrary value ***AND*** you have saved user ids.  This is
27540266059SGregory Neil Shapiro		preferable to HASSETREUID if these conditions are fulfilled.
27640266059SGregory Neil Shapiro		These are the semantics of the to-be-released revision of
27740266059SGregory Neil Shapiro		Posix.1.  The test program ../test/t_seteuid.c will try
27840266059SGregory Neil Shapiro		this out on your system.  If you define both HASSETREUID
27940266059SGregory Neil Shapiro		and USESETEUID, the former is ignored.
280c2aa98e2SPeter WemmHASSETEGID	Define this if you have setegid(2) and it can be
281c2aa98e2SPeter Wemm		used to set the saved gid.  Please run t_dropgid in
282c2aa98e2SPeter Wemm		test/ if you are not sure whether the call works.
283c2aa98e2SPeter WemmHASSETREGID	Define this if you have setregid(2) and it can be
284c2aa98e2SPeter Wemm		used to set the saved gid.  Please run t_dropgid in
285c2aa98e2SPeter Wemm		test/ if you are not sure whether the call works.
286c2aa98e2SPeter WemmHASSETRESGID	Define this if you have setresgid(2) and it can be
287c2aa98e2SPeter Wemm		used to set the saved gid.  Please run t_dropgid in
288c2aa98e2SPeter Wemm		test/ if you are not sure whether the call works.
289c2aa98e2SPeter WemmHASLSTAT	Define this if you have symbolic links (and thus the
290c2aa98e2SPeter Wemm		lstat(2) system call).  This improves security.  Unlike
291c2aa98e2SPeter Wemm		most other options, this one is on by default, so you
292c2aa98e2SPeter Wemm		need to #undef it in conf.h if you don't have symbolic
293c2aa98e2SPeter Wemm		links (these days everyone does).
294c2aa98e2SPeter WemmHASSETRLIMIT	Define this to 1 if you have the setrlimit(2) syscall.
295c2aa98e2SPeter Wemm		You can define it to 0 to force it off.  It is assumed
29606f25ae9SGregory Neil Shapiro		if you are running a BSD-like system.
29706f25ae9SGregory Neil ShapiroHASULIMIT	Define this if you have the ulimit(2) syscall (System V
29806f25ae9SGregory Neil Shapiro		style systems).  HASSETRLIMIT overrides, as it is more
29906f25ae9SGregory Neil Shapiro		general.
300c2aa98e2SPeter WemmHASWAITPID	Define this if you have the waitpid(2) syscall.
301c2aa98e2SPeter WemmHASGETDTABLESIZE
302e92d3f3fSGregory Neil Shapiro		Define this if you have the getdtablesize(2) syscall.
303e92d3f3fSGregory Neil ShapiroHAS_GETHOSTBYNAME2	Define this to 1 if your system supports
30440266059SGregory Neil Shapiro		gethostbyname2(2).
305c2aa98e2SPeter WemmHAS_ST_GEN	Define this to 1 if your system has the st_gen field in
306c2aa98e2SPeter Wemm		the stat structure (see stat(2)).
307c2aa98e2SPeter WemmHASSRANDOMDEV	Define this if your system has the srandomdev(3) function
308d9986b26SGregory Neil Shapiro		call.
309d9986b26SGregory Neil ShapiroHASURANDOMDEV	Define this if your system has /dev/urandom(4).
310c2aa98e2SPeter WemmHASSTRERROR	Define this if you have the libc strerror(3) function (which
311c2aa98e2SPeter Wemm		should be declared in <errno.h>), and it should be used
312c2aa98e2SPeter Wemm		instead of sys_errlist.
313c2aa98e2SPeter WemmHASCLOSEFROM	Define this if your system has closefrom(3).
314c2aa98e2SPeter WemmHASFDWALK	Define this if your system has fdwalk(3).
315c2aa98e2SPeter WemmSM_CONF_GETOPT	Define this as 0 if you need a reimplementation of getopt(3).
316c2aa98e2SPeter Wemm		On some systems, getopt does very odd things if called
317c2aa98e2SPeter Wemm		to scan the arguments twice.  This flag will ask sendmail
318c2aa98e2SPeter Wemm		to compile in a local version of getopt that works
319c2aa98e2SPeter Wemm		properly.  You may also need this if you build with
320c2aa98e2SPeter Wemm		another library that introduces a non-standard getopt(3).
321c2aa98e2SPeter WemmNEEDSTRTOL	Define this if your standard C library does not define
322c2aa98e2SPeter Wemm		strtol(3).  This will compile in a local version.
323c2aa98e2SPeter WemmNEEDFSYNC	Define this if your standard C library does not define
324c2aa98e2SPeter Wemm		fsync(2).  This will try to simulate the operation using
325c2aa98e2SPeter Wemm		fcntl(2); if that is not available it does nothing, which
326c2aa98e2SPeter Wemm		isn't great, but at least it compiles and runs.
327c2aa98e2SPeter WemmHASGETUSERSHELL	Define this to 1 if you have getusershell(3) in your
328c2aa98e2SPeter Wemm		standard C library.  If this is not defined, or is defined
329c2aa98e2SPeter Wemm		to be 0, sendmail will scan the /etc/shells file (no
330c2aa98e2SPeter Wemm		NIS-style support, defaults to /bin/sh and /bin/csh if
331c2aa98e2SPeter Wemm		that file does not exist) to get a list of unrestricted
332c2aa98e2SPeter Wemm		user shells.  This is used to determine whether users
333c2aa98e2SPeter Wemm		are allowed to forward their mail to a program or a file.
334c2aa98e2SPeter WemmNEEDPUTENV	Define this if your system needs am emulation of the
335c2aa98e2SPeter Wemm		putenv(3) call.  Define to 1 to implement it in terms
336c2aa98e2SPeter Wemm		of setenv(3) or to 2 to do it in terms of primitives.
337c2aa98e2SPeter WemmNOFTRUNCATE	Define this if you don't have the ftruncate(2) syscall.
338c2aa98e2SPeter Wemm		If you don't have this system call, there is an unavoidable
339c2aa98e2SPeter Wemm		race condition that occurs when creating alias databases.
340c2aa98e2SPeter WemmGIDSET_T	The type of entries in a gidset passed as the second
341c2aa98e2SPeter Wemm		argument to getgroups(2).  Historically this has been an
342c2aa98e2SPeter Wemm		int, so this is the default, but some systems (such as
343c2aa98e2SPeter Wemm		IRIX) pass it as a gid_t, which is an unsigned short.
344c2aa98e2SPeter Wemm		This will make a difference, so it is important to get
345c2aa98e2SPeter Wemm		this right!  However, it is only an issue if you have
346c2aa98e2SPeter Wemm		group sets.
347c2aa98e2SPeter WemmSLEEP_T		The type returned by the system sleep() function.
348c2aa98e2SPeter Wemm		Defaults to "unsigned int".  Don't worry about this
349c2aa98e2SPeter Wemm		if you don't have compilation problems.
350c2aa98e2SPeter WemmARBPTR_T	The type of an arbitrary pointer -- defaults to "void *".
351c2aa98e2SPeter Wemm		If you are an very old compiler you may need to define
352c2aa98e2SPeter Wemm		this to be "char *".
353c2aa98e2SPeter WemmSOCKADDR_LEN_T	The type used for the third parameter to accept(2),
354c2aa98e2SPeter Wemm		getsockname(2), and getpeername(2), representing the
355c2aa98e2SPeter Wemm		length of a struct sockaddr.  Defaults to int.
356c2aa98e2SPeter WemmSOCKOPT_LEN_T	The type used for the fifth parameter to getsockopt(2)
357c2aa98e2SPeter Wemm		and setsockopt(2), representing the length of the option
358c2aa98e2SPeter Wemm		buffer.  Defaults to int.
359c2aa98e2SPeter WemmLA_TYPE		The type of load average your kernel supports.  These
360c2aa98e2SPeter Wemm		can be one of:
361c2aa98e2SPeter Wemm		 LA_ZERO (1) -- it always returns the load average as
362c2aa98e2SPeter Wemm			"zero" (and does so on all architectures).
363c2aa98e2SPeter Wemm		 LA_INT (2) to read /dev/kmem for the symbol avenrun and
364c2aa98e2SPeter Wemm			interpret as a long integer.
365c2aa98e2SPeter Wemm		 LA_FLOAT (3) same, but interpret the result as a floating
366c2aa98e2SPeter Wemm			point number.
367c2aa98e2SPeter Wemm		 LA_SHORT (6) to interpret as a short integer.
368c2aa98e2SPeter Wemm		 LA_SUBR (4) if you have the getloadavg(3) routine in your
369c2aa98e2SPeter Wemm			system library.
370c2aa98e2SPeter Wemm		 LA_MACH (5) to use MACH-style load averages (calls
371c2aa98e2SPeter Wemm			processor_set_info()),
372c2aa98e2SPeter Wemm		 LA_PROCSTR (7) to read /proc/loadavg and interpret it
373c2aa98e2SPeter Wemm			as a string representing a floating-point
374c2aa98e2SPeter Wemm			number (Linux-style).
375c2aa98e2SPeter Wemm		 LA_READKSYM (8) is an implementation suitable for some
376c2aa98e2SPeter Wemm			versions of SVr4 that uses the MIOC_READKSYM ioctl
377c2aa98e2SPeter Wemm			call to read /dev/kmem.
378c2aa98e2SPeter Wemm		 LA_DGUX (9) is a special implementation for DG/UX that uses
37913d88268SGregory Neil Shapiro			the dg_sys_info system call.
38013d88268SGregory Neil Shapiro		 LA_HPUX (10) is an HP-UX specific version that uses the
38113d88268SGregory Neil Shapiro			pstat_getdynamic system call.
382c2aa98e2SPeter Wemm		 LA_IRIX6 (11) is an IRIX 6.x specific version that adapts
383c2aa98e2SPeter Wemm			to 32 or 64 bit kernels; it is otherwise very similar
384c2aa98e2SPeter Wemm			to LA_INT.
385c2aa98e2SPeter Wemm		 LA_KSTAT (12) uses the (Solaris-specific) kstat(3k)
386c2aa98e2SPeter Wemm			implementation.
387c2aa98e2SPeter Wemm		 LA_DEVSHORT (13) reads a short from a system file (default:
388c2aa98e2SPeter Wemm			/dev/table/avenrun) and scales it in the same manner
389c2aa98e2SPeter Wemm			as LA_SHORT.
390c2aa98e2SPeter Wemm		 LA_LONGLONG (17) to read /dev/kmem for the symbol avenrun and
391c2aa98e2SPeter Wemm			interpret as a long long integer (e.g., for 64 bit
392c2aa98e2SPeter Wemm			systems).
393c2aa98e2SPeter Wemm		LA_INT, LA_SHORT, LA_FLOAT, and LA_READKSYM have several
394c2aa98e2SPeter Wemm		other parameters that they try to divine: the name of your
395c2aa98e2SPeter Wemm		kernel, the name of the variable in the kernel to examine,
396c2aa98e2SPeter Wemm		the number of bits of precision in a fixed point load average,
397c2aa98e2SPeter Wemm		and so forth.  LA_DEVSHORT uses _PATH_AVENRUN to find the
398c2aa98e2SPeter Wemm		device to be read to find the load average.
399c2aa98e2SPeter Wemm		In desperation, use LA_ZERO.  The actual code is in
400c2aa98e2SPeter Wemm		conf.c -- it can be tweaked if you are brave.
401c2aa98e2SPeter WemmFSHIFT		For LA_INT, LA_SHORT, and LA_READKSYM, this is the number
402c2aa98e2SPeter Wemm		of bits of load average after the binary point -- i.e.,
403c2aa98e2SPeter Wemm		the number of bits to shift right in order to scale the
404c2aa98e2SPeter Wemm		integer to get the true integer load average.  Defaults to 8.
405c2aa98e2SPeter Wemm_PATH_UNIX	The path to your kernel.  Needed only for LA_INT, LA_SHORT,
406c2aa98e2SPeter Wemm		and LA_FLOAT.  Defaults to "/unix" on System V, "/vmunix"
407c2aa98e2SPeter Wemm		everywhere else.
408c2aa98e2SPeter WemmLA_AVENRUN	For LA_INT, LA_SHORT, and LA_FLOAT, the name of the kernel
409c2aa98e2SPeter Wemm		variable that holds the load average.  Defaults to "avenrun"
410c2aa98e2SPeter Wemm		on System V, "_avenrun" everywhere else.
411c2aa98e2SPeter WemmSFS_TYPE	Encodes how your kernel can locate the amount of free
412c2aa98e2SPeter Wemm		space on a disk partition.  This can be set to SFS_NONE
413c2aa98e2SPeter Wemm		(0) if you have no way of getting this information,
414c2aa98e2SPeter Wemm		SFS_USTAT (1) if you have the ustat(2) system call,
415c2aa98e2SPeter Wemm		SFS_4ARGS (2) if you have a four-argument statfs(2)
416c2aa98e2SPeter Wemm		system call (and the include file is <sys/statfs.h>),
417c2aa98e2SPeter Wemm		SFS_VFS (3), SFS_MOUNT (4), SFS_STATFS (5) if you have
418c2aa98e2SPeter Wemm		the two-argument statfs(2) system call with includes in
419c2aa98e2SPeter Wemm		<sys/vfs.h>, <sys/mount.h>, or <sys/statfs.h> respectively,
420c2aa98e2SPeter Wemm		or SFS_STATVFS (6) if you have the two-argument statvfs(2)
421c2aa98e2SPeter Wemm		call.  The default if nothing is defined is SFS_NONE.
422c2aa98e2SPeter WemmSFS_BAVAIL	with SFS_4ARGS you can also set SFS_BAVAIL to the field name
423c2aa98e2SPeter Wemm		in the statfs structure that holds the useful information;
424c2aa98e2SPeter Wemm		this defaults to f_bavail.
425c2aa98e2SPeter WemmSPT_TYPE	Encodes how your system can display what a process is doing
426c2aa98e2SPeter Wemm		on a ps(1) command (SPT stands for Set Process Title).  Can
427c2aa98e2SPeter Wemm		be set to:
428c2aa98e2SPeter Wemm		SPT_NONE (0) -- Don't try to set the process title at all.
429c2aa98e2SPeter Wemm		SPT_REUSEARGV (1) -- Pad out your argv with the information;
430c2aa98e2SPeter Wemm			this is the default if none specified.
431c2aa98e2SPeter Wemm		SPT_BUILTIN (2) -- The system library has setproctitle.
432c2aa98e2SPeter Wemm		SPT_PSTAT (3) -- Use the PSTAT_SETCMD option to pstat(2)
433c2aa98e2SPeter Wemm			to set the process title; this is used by HP-UX.
434c2aa98e2SPeter Wemm		SPT_PSSTRINGS (4) -- Use the magic PS_STRINGS pointer (4.4BSD).
435c2aa98e2SPeter Wemm		SPT_SYSMIPS (5) -- Use sysmips() supported by NEWS-OS 6.
436c2aa98e2SPeter Wemm		SPT_SCO (6) -- Write kernel u. area.
437c2aa98e2SPeter Wemm		SPT_CHANGEARGV (7) -- Write pointers to our own strings into
438c2aa98e2SPeter Wemm			the existing argv vector.
439c2aa98e2SPeter WemmSPT_PADCHAR	Character used to pad the process title; if undefined,
440c2aa98e2SPeter Wemm		the space character (0x20) is used.  This is ignored if
441c2aa98e2SPeter Wemm		SPT_TYPE != SPT_REUSEARGV
442c2aa98e2SPeter WemmERRLIST_PREDEFINED
443c2aa98e2SPeter Wemm		If set, assumes that some header file defines sys_errlist.
444c2aa98e2SPeter Wemm		This may be needed if you get type conflicts on this
445c2aa98e2SPeter Wemm		variable -- otherwise don't worry about it.
446c2aa98e2SPeter WemmWAITUNION	The wait(2) routine takes a "union wait" argument instead
447c2aa98e2SPeter Wemm		of an integer argument.  This is for compatibility with
448c2aa98e2SPeter Wemm		old versions of BSD.
449c2aa98e2SPeter WemmSCANF		You can set this to extend the F command to accept a
450c2aa98e2SPeter Wemm		scanf string -- this gives you a primitive parser for
451c2aa98e2SPeter Wemm		class definitions -- BUT it can make you vulnerable to
452c2aa98e2SPeter Wemm		core dumps if the target file is poorly formed.
453c2aa98e2SPeter WemmSYSLOG_BUFSIZE	You can define this to be the size of the buffer that
454c2aa98e2SPeter Wemm		syslog accepts.  If it is not defined, it assumes a
455c2aa98e2SPeter Wemm		1024-byte buffer.  If the buffer is very small (under
456c2aa98e2SPeter Wemm		256 bytes) the log message format changes -- each
457c2aa98e2SPeter Wemm		e-mail message will log many more messages, since it
458c2aa98e2SPeter Wemm		will log each piece of information as a separate line
459c2aa98e2SPeter Wemm		in syslog.
460c2aa98e2SPeter WemmBROKEN_RES_SEARCH
461c2aa98e2SPeter Wemm		On Ultrix (and maybe other systems?) if you use the
462c2aa98e2SPeter Wemm		res_search routine with an unknown host name, it returns
463c2aa98e2SPeter Wemm		-1 but sets h_errno to 0 instead of HOST_NOT_FOUND.  If
464c2aa98e2SPeter Wemm		you set this, sendmail considers 0 to be the same as
465c2aa98e2SPeter Wemm		HOST_NOT_FOUND.
466c2aa98e2SPeter WemmNAMELISTMASK	If defined, values returned by nlist(3) are masked
467c2aa98e2SPeter Wemm		against this value before use -- a common value is
468c2aa98e2SPeter Wemm		0x7fffffff to strip off the top bit.
469c2aa98e2SPeter WemmBSD4_4_SOCKADDR	If defined, socket addresses have an sa_len field that
470c2aa98e2SPeter Wemm		defines the length of this address.
471c2aa98e2SPeter WemmSAFENFSPATHCONF	Set this to 1 if and only if you have verified that a
472c2aa98e2SPeter Wemm		pathconf(2) call with _PC_CHOWN_RESTRICTED argument on an
473c2aa98e2SPeter Wemm		NFS filesystem where the underlying system allows users to
474c2aa98e2SPeter Wemm		give away files to other users returns <= 0.  Be sure you
475c2aa98e2SPeter Wemm		try both on NFS V2 and V3.  Some systems assume that their
476c2aa98e2SPeter Wemm		local policy apply to NFS servers -- this is a bad
47706f25ae9SGregory Neil Shapiro		assumption!  The test/t_pathconf.c program will try this
47806f25ae9SGregory Neil Shapiro		for you -- you have to run it in a directory that is
47906f25ae9SGregory Neil Shapiro		mounted from a server that allows file giveaway.
48006f25ae9SGregory Neil ShapiroSIOCGIFCONF_IS_BROKEN
48106f25ae9SGregory Neil Shapiro		Set this if your system has an SIOCGIFCONF ioctl defined,
48206f25ae9SGregory Neil Shapiro		but it doesn't behave the same way as "most" systems (BSD,
48306f25ae9SGregory Neil Shapiro		Solaris, SunOS, HP-UX, etc.)
4848774250cSGregory Neil ShapiroSIOCGIFNUM_IS_BROKEN
4858774250cSGregory Neil Shapiro		Set this if your system has an SIOCGIFNUM ioctl defined,
4868774250cSGregory Neil Shapiro		but it doesn't behave the same way as "most" systems
48740266059SGregory Neil Shapiro		(Solaris, HP-UX).
48840266059SGregory Neil ShapiroFAST_PID_RECYCLE
489605302a5SGregory Neil Shapiro		Set this if your system can reuse the same PID in the same
490605302a5SGregory Neil Shapiro		second.
49140266059SGregory Neil ShapiroSO_REUSEADDR_IS_BROKEN
49240266059SGregory Neil Shapiro		Set this if your system has a setsockopt() SO_REUSEADDR
49340266059SGregory Neil Shapiro		flag but doesn't pay attention to it when trying to bind a
49440266059SGregory Neil Shapiro		socket to a recently closed port.
49540266059SGregory Neil ShapiroNEEDSGETIPNODE	Set this if your system supports IPv6 but doesn't include
49640266059SGregory Neil Shapiro		the getipnodeby{name,addr}() functions.  Set automatically
49740266059SGregory Neil Shapiro		for Linux's glibc.
4985ef517c0SGregory Neil ShapiroPIPELINING	Support SMTP PIPELINING	(set by default).
4995ef517c0SGregory Neil ShapiroUSING_NETSCAPE_LDAP
5005ef517c0SGregory Neil Shapiro		Deprecated in favor of SM_CONF_LDAP_MEMFREE.  See
501e92d3f3fSGregory Neil Shapiro		libsm/README.
502e92d3f3fSGregory Neil ShapiroNEEDLINK	Set this if your system doesn't have a link() call.  It
503e92d3f3fSGregory Neil Shapiro		will create a copy of the file instead of a hardlink.
504e92d3f3fSGregory Neil ShapiroUSE_ENVIRON	Set this to 1 to access process environment variables from
505e92d3f3fSGregory Neil Shapiro		the external variable environ instead of the third
5064e4196cbSGregory Neil Shapiro		parameter of main().
5074e4196cbSGregory Neil ShapiroUSE_DOUBLE_FORK By default this is on (1).  Set it to 0 to suppress the
5084e4196cbSGregory Neil Shapiro		extra fork() used to avoid intermediate zombies.
5094e4196cbSGregory Neil ShapiroALLOW_255	Do not convert (char)0xff to (char)0x7f in headers etc.
5104e4196cbSGregory Neil Shapiro		This can also be done at runtime with the command line
5114e4196cbSGregory Neil Shapiro		option -d82.101.
512d0cef73dSGregory Neil ShapiroNEEDINTERRNO	Set this if <errno.h> does not declare errno, i.e., if an
513d0cef73dSGregory Neil Shapiro		application needs to use
514d0cef73dSGregory Neil Shapiro		extern int errno;
515c2aa98e2SPeter WemmUSE_TTYPATH	Set this to 1 to enable ErrorMode=write.
51613058a91SGregory Neil ShapiroUSESYSCTL	Use sysctl(3) to determine the number of CPUs in a system.
517c2aa98e2SPeter WemmHASSNPRINTF	Set this to 1 if your OS has a working snprintf(3), i.e.,
518c2aa98e2SPeter Wemm		it properly obeys the size of the buffer and returns the
519c2aa98e2SPeter Wemm		number of characters that would have been printed if the
520c2aa98e2SPeter Wemm		size were unlimited.
521c2aa98e2SPeter WemmLDAP_REFERRALS	Set this if you want to use the -R flag (do not auto chase
522c2aa98e2SPeter Wemm		referrals) for LDAP maps (requires -DLDAPMAP).
523c2aa98e2SPeter WemmMILTER_NO_NAGLE	Turn off Nagle algorithm for communication with libmilter
524c2aa98e2SPeter Wemm		("cork" on Linux).  On some operating systems this may
525c2aa98e2SPeter Wemm		improve the interprocess communication performance.
526c2aa98e2SPeter Wemm
527c2aa98e2SPeter Wemm
528c2aa98e2SPeter Wemm+-----------------------+
529c2aa98e2SPeter Wemm| COMPILE-TIME FEATURES |
530c2aa98e2SPeter Wemm+-----------------------+
531c2aa98e2SPeter Wemm
532c2aa98e2SPeter WemmThere are a bunch of features that you can decide to compile in, such
533c2aa98e2SPeter Wemmas selecting various database packages and special protocol support.
534c2aa98e2SPeter WemmSeveral are assumed based on other compilation flags -- if you want to
535c2aa98e2SPeter Wemm"un-assume" something, you probably need to edit conf.h.  Compilation
536c2aa98e2SPeter Wemmflags that add support for special features include:
537c2aa98e2SPeter Wemm
538c2aa98e2SPeter WemmCDB		Include support for tinycdb.
539c2aa98e2SPeter WemmNDBM		Include support for "new" DBM library for aliases and maps.
540c2aa98e2SPeter Wemm		Normally defined in the Makefile.
541c2aa98e2SPeter WemmNEWDB		Include support for Berkeley DB package (hash & btree)
542c2aa98e2SPeter Wemm		for aliases and maps.  Normally defined in the Makefile.
54306f25ae9SGregory Neil Shapiro		If the version of NEWDB you have is the old one that does
54406f25ae9SGregory Neil Shapiro		not include the "fd" call (this call was added in version
54506f25ae9SGregory Neil Shapiro		1.5 of the Berkeley DB code), you must upgrade to the
546c2aa98e2SPeter Wemm		current version of Berkeley DB.
547c2aa98e2SPeter WemmNIS		Define this to get NIS (YP) support for aliases and maps.
548c2aa98e2SPeter Wemm		Normally defined in the Makefile.
549c2aa98e2SPeter WemmNISPLUS		Define this to get NIS+ support for aliases and maps.
550c2aa98e2SPeter Wemm		Normally defined in the Makefile.
551c2aa98e2SPeter WemmHESIOD		Define this to get Hesiod support for aliases and maps.
552c2aa98e2SPeter Wemm		Normally defined in the Makefile.
553c2aa98e2SPeter WemmNETINFO		Define this to get NeXT NetInfo support for aliases and maps.
554c2aa98e2SPeter Wemm		Normally defined in the Makefile.
55506f25ae9SGregory Neil ShapiroLDAPMAP		Define this to get LDAP support for maps.
556c2aa98e2SPeter WemmPH_MAP		Define this to get PH support for maps.
557c2aa98e2SPeter WemmMAP_NSD		Define this to get nsd support for maps.
558c2aa98e2SPeter WemmUSERDB		Define this to 1 to include support for the User Information
559c2aa98e2SPeter Wemm		Database.  Implied by NEWDB or HESIOD.  You can use
560c2aa98e2SPeter Wemm		-DUSERDB=0 to explicitly turn it off.
561c2aa98e2SPeter WemmIDENTPROTO	Define this as 1 to get IDENT (RFC 1413) protocol support.
562c2aa98e2SPeter Wemm		This is assumed unless you are running on Ultrix or
563c2aa98e2SPeter Wemm		HP-UX, both of which have a problem in the UDP
564c2aa98e2SPeter Wemm		implementation.  You can define it to be 0 to explicitly
565c2aa98e2SPeter Wemm		turn off IDENT protocol support.  If defined off, the code
566c2aa98e2SPeter Wemm		is actually still compiled in, but it defaults off; you
567c2aa98e2SPeter Wemm		can turn it on by setting the IDENT timeout in the
568c2aa98e2SPeter Wemm		configuration file.
569c2aa98e2SPeter WemmIP_SRCROUTE	Define this to 1 to get IP source routing information
570c2aa98e2SPeter Wemm		displayed in the Received: header.  This is assumed on
57106f25ae9SGregory Neil Shapiro		most systems, but some (e.g., Ultrix) apparently have a
57206f25ae9SGregory Neil Shapiro		broken version of getsockopt that doesn't properly
57306f25ae9SGregory Neil Shapiro		support the IP_OPTIONS call.  You probably want this if
57406f25ae9SGregory Neil Shapiro		your OS can cope with it.  Symptoms of failure will be that
575c2aa98e2SPeter Wemm		it won't compile properly (that is, no support for fetching
576c2aa98e2SPeter Wemm		IP_OPTIONs), or it compiles but source-routed TCP connections
577c2aa98e2SPeter Wemm		either refuse to open or open and hang for no apparent reason.
578c2aa98e2SPeter Wemm		Ultrix and AIX3 are known to fail this way.
57906f25ae9SGregory Neil ShapiroLOG		Set this to get syslog(3) support.  Defined by default
58006f25ae9SGregory Neil Shapiro		in conf.h.  You want this if at all possible.
581c2aa98e2SPeter WemmNETINET		Set this to get TCP/IP support.  Defined by default
582c2aa98e2SPeter Wemm		in conf.h.  You probably want this.
583c2aa98e2SPeter WemmNETINET6	Set this to get IPv6 support.  Other configuration may
584c2aa98e2SPeter Wemm		be needed in conf.h for your particular operating system.
585c2aa98e2SPeter Wemm		Also, DaemonPortOptions must be set appropriately for
586c2aa98e2SPeter Wemm		sendmail to accept IPv6 connections.
587c2aa98e2SPeter WemmNETISO		Define this to get ISO networking support.
588c2aa98e2SPeter WemmNETUNIX		Define this to get Unix domain networking support.  Defined
589c2aa98e2SPeter Wemm		by default.  A few bizarre systems (SCO, ISC, Altos) don't
590c2aa98e2SPeter Wemm		support this networking domain.
591c2aa98e2SPeter WemmNETNS		Define this to get NS networking support.
592c2aa98e2SPeter WemmNETX25		Define this to get X.25 networking support.
593c2aa98e2SPeter WemmNAMED_BIND	If non-zero, include DNS (name daemon) support, including
594c2aa98e2SPeter Wemm		MX support.  The specs say you must use this if you run
595323f6dcbSGregory Neil Shapiro		SMTP.  You don't have to be running a name server daemon
596323f6dcbSGregory Neil Shapiro		on your machine to need this -- any use of the DNS resolver,
597323f6dcbSGregory Neil Shapiro		including remote access to another machine, requires this
598323f6dcbSGregory Neil Shapiro		option.  Defined by default in conf.h.  Define it to zero
599323f6dcbSGregory Neil Shapiro		ONLY on machines that do not use DNS in any way.
600c2aa98e2SPeter WemmMATCHGECOS	Permit fuzzy matching of user names against the full
601c2aa98e2SPeter Wemm		name (GECOS) field in the /etc/passwd file.  This should
602c2aa98e2SPeter Wemm		probably be on, since you can disable it from the config
603c2aa98e2SPeter Wemm		file if you want to.  Defined by default in conf.h.
604c2aa98e2SPeter WemmMIME8TO7	If non-zero, include 8 to 7 bit MIME conversions.  This
605c2aa98e2SPeter Wemm		also controls advertisement of 8BITMIME in the ESMTP
606c2aa98e2SPeter Wemm		startup dialogue.
607c2aa98e2SPeter WemmMIME7TO8_OLD	If 0 then use an algorithm for MIME 7-bit quoted-printable
608c2aa98e2SPeter Wemm		or base64 encoding to 8-bit text that has been introduced
609c2aa98e2SPeter Wemm		in 8.12.3.  There are some examples where that code fails,
610c2aa98e2SPeter Wemm		but the old code works.  If you have an example of improper
611c2aa98e2SPeter Wemm		7 to 8 bit conversion please send it to sendmail-bugs.
612c2aa98e2SPeter WemmMIME7TO8	If non-zero, include 7 to 8 bit MIME conversions.
613c2aa98e2SPeter WemmHES_GETMAILHOST	Define this to 1 if you are using Hesiod with the
614c2aa98e2SPeter Wemm		hes_getmailhost() routine.  This is included with the MIT
615c2aa98e2SPeter Wemm		Hesiod distribution, but not with the DEC Hesiod distribution.
616c2aa98e2SPeter WemmXDEBUG		Do additional internal checking.  These don't cost too
61706f25ae9SGregory Neil Shapiro		much; you might as well leave this on.
61806f25ae9SGregory Neil ShapiroTCPWRAPPERS	Turns on support for the TCP wrappers library (-lwrap).
61906f25ae9SGregory Neil Shapiro		See below for further information.
62006f25ae9SGregory Neil ShapiroSECUREWARE	Enable calls to the SecureWare luid enabling/changing routines.
62106f25ae9SGregory Neil Shapiro		SecureWare is a C2 security package added to several UNIX's
62206f25ae9SGregory Neil Shapiro		(notably ConvexOS) to get a C2 Secure system.  This
62306f25ae9SGregory Neil Shapiro		option causes mail delivery to be done with the luid of the
62406f25ae9SGregory Neil Shapiro		recipient.
62506f25ae9SGregory Neil ShapiroSHARE_V1	Support for the fair share scheduler, version 1.  Setting to
62606f25ae9SGregory Neil Shapiro		1 causes final delivery to be done using the recipients
62706f25ae9SGregory Neil Shapiro		resource limitations.  So far as I know, this is only
62806f25ae9SGregory Neil Shapiro		supported on ConvexOS.
62906f25ae9SGregory Neil ShapiroSASL		Enables SMTP AUTH (RFC 2554).  This requires the Cyrus SASL
630605302a5SGregory Neil Shapiro		library (ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/).  Please
63106f25ae9SGregory Neil Shapiro		install at least version 1.5.13.  See below for further
63206f25ae9SGregory Neil Shapiro		information: SASL COMPILATION AND CONFIGURATION.  If your
63340266059SGregory Neil Shapiro		SASL library is older than 1.5.10, you have to set this
63440266059SGregory Neil Shapiro		to its version number using a simple conversion:  a.b.c
63506f25ae9SGregory Neil Shapiro		-> c + b*100 + a*10000, e.g. for 1.5.9 define SASL=10509.
63606f25ae9SGregory Neil Shapiro		Note: Using an older version than 1.5.5 of Cyrus SASL is
63706f25ae9SGregory Neil Shapiro		not supported.  Starting with version 1.5.10, setting SASL=1
638e92d3f3fSGregory Neil Shapiro		is sufficient.  Any value other than 1 (or 0) will be
639e92d3f3fSGregory Neil Shapiro		compared with the actual version found and if there is a
640b6bacd31SGregory Neil Shapiro		mismatch, compilation will fail.
641e92d3f3fSGregory Neil ShapiroEGD		Define this if your system has EGD installed, see
642e92d3f3fSGregory Neil Shapiro		http://egd.sourceforge.net/ .  It should be used to
64340266059SGregory Neil Shapiro		seed the PRNG for STARTTLS if HASURANDOMDEV is not defined.
64440266059SGregory Neil ShapiroSTARTTLS	Enables SMTP STARTTLS (RFC 2487).  This requires OpenSSL
64513bd1963SGregory Neil Shapiro		(http://www.OpenSSL.org/); use OpenSSL 0.9.8zc or later.
64613bd1963SGregory Neil Shapiro		See STARTTLS COMPILATION AND CONFIGURATION for further
64713bd1963SGregory Neil Shapiro		information.
64813bd1963SGregory Neil ShapiroTLS_EC		Enable use of elliptic curve cryptography in STARTTLS.
64913bd1963SGregory Neil Shapiro		If set to 2 sendmail uses SSL_CTX_set_ecdh_auto(),
65013bd1963SGregory Neil Shapiro		if set to 1 it selects the NID_X9_62_prime256v1 curve
65113bd1963SGregory Neil Shapiro		(created via EC_KEY_new_by_curve_name()) and uses
65213bd1963SGregory Neil Shapiro		SSL_CTX_set_tmp_ecdh().
65313bd1963SGregory Neil Shapiro		Support offered by different TLS libraries varies
65494c01205SGregory Neil Shapiro		greatly: some old versions do not support elliptic curve
65594c01205SGregory Neil Shapiro		cryptography at all, some new versions have it enabled
656c2aa98e2SPeter Wemm		by default (i.e., no need to set TLS_EC at all), while
65713058a91SGregory Neil Shapiro		others may require one of the above settings.
65813058a91SGregory Neil ShapiroTLS_NO_RSA	Turn off support for RSA algorithms in STARTTLS.
65913058a91SGregory Neil ShapiroMILTER		Turn on support for external filters using the Milter API;
66013058a91SGregory Neil Shapiro		this option is set by default, to turn it off use
66113058a91SGregory Neil Shapiro			APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER=0')
66213058a91SGregory Neil Shapiro		in devtools/Site/site.config.m4 (see devtools/README).
66313058a91SGregory Neil Shapiro		See libmilter/README for more information about milter.
664c2aa98e2SPeter WemmREQUIRES_DIR_FSYNC	Turn on support for file systems that require to
665c2aa98e2SPeter Wemm		call fsync() for a directory if the meta-data in it has
666c2aa98e2SPeter Wemm		been changed.  This should be turned on at least for older
667c2aa98e2SPeter Wemm		versions of ReiserFS; it is enabled by default for Linux.
668c2aa98e2SPeter Wemm		According to some information this flag is not needed
669c2aa98e2SPeter Wemm		anymore for kernel 2.4.16 and newer.  We would appreciate
670c2aa98e2SPeter Wemm		feedback about the semantics of the various file systems
671c2aa98e2SPeter Wemm		available for Linux.
672c2aa98e2SPeter Wemm		An alternative to this compile time flag is to mount the
673c2aa98e2SPeter Wemm		queue directory without the -async option, or using
674c2aa98e2SPeter Wemm		chattr +S on Linux.
675c2aa98e2SPeter WemmDBMMODE		The default file permissions to use when creating new
676c2aa98e2SPeter Wemm		database files for maps and aliases.  Defaults to 0640.
677c2aa98e2SPeter WemmIPV6_FULL	Use uncompressed IPv6 addresses (set by default).  This
678c2aa98e2SPeter Wemm		permits a zero subnet to have a more specific match,
679c2aa98e2SPeter Wemm		such as different map entries for IPv6:0:0 vs IPv6:0.
680c2aa98e2SPeter Wemm
681c2aa98e2SPeter WemmGeneric notice: If you enable a compile time option that needs
682c2aa98e2SPeter Wemmlibraries or include files that don't come with sendmail or are
683c2aa98e2SPeter Wemminstalled in a location that your C compiler doesn't use by default
684c2aa98e2SPeter Wemmyou should set confINCDIRS and confLIBDIRS as explained in the
685c2aa98e2SPeter Wemmfirst section:  BUILDING SENDMAIL.
686c2aa98e2SPeter Wemm
687c2aa98e2SPeter Wemm
688c2aa98e2SPeter Wemm+---------------------+
689c2aa98e2SPeter Wemm| DNS/RESOLVER ISSUES |
690c2aa98e2SPeter Wemm+---------------------+
691c2aa98e2SPeter Wemm
692c2aa98e2SPeter WemmMany systems have old versions of the resolver library.  At a minimum,
693c2aa98e2SPeter Wemmyou should be running BIND 4.8.3; older versions may compile, but they
694c2aa98e2SPeter Wemmhave known bugs that should give you pause.
695193538b7SGregory Neil Shapiro
696193538b7SGregory Neil ShapiroCommon problems in old versions include "undefined" errors for
69740266059SGregory Neil Shapirodn_skipname.
69840266059SGregory Neil Shapiro
69940266059SGregory Neil ShapiroSome people have had a problem with BIND 4.9; it uses some routines
70040266059SGregory Neil Shapirothat it expects to be externally defined such as strerror().  It may
701c2aa98e2SPeter Wemmhelp to link with "-l44bsd" to solve this problem.  This has apparently
70213058a91SGregory Neil Shapirobeen fixed in later versions of BIND, starting around 4.9.3.  In other
70306f25ae9SGregory Neil Shapirowords, if you use 4.9.0 through 4.9.2, you need -l44bsd; for earlier or
70406f25ae9SGregory Neil Shapirolater versions, you do not.
70506f25ae9SGregory Neil Shapiro
70606f25ae9SGregory Neil Shapiro!PLEASE! be sure to link with the same version of the resolver as
70740266059SGregory Neil Shapirothe header files you used -- some people have used the 4.9 headers
70840266059SGregory Neil Shapiroand linked with BIND 4.8 or vice versa, and it doesn't work.
70906f25ae9SGregory Neil ShapiroUnfortunately, it doesn't fail in an obvious way -- things just
71006f25ae9SGregory Neil Shapirosubtly don't work.
71106f25ae9SGregory Neil Shapiro
71206f25ae9SGregory Neil ShapiroWILDCARD MX RECORDS ARE A BAD IDEA!  The only situation in which they
71306f25ae9SGregory Neil Shapirowork reliably is if you have two versions of DNS, one in the real world
71406f25ae9SGregory Neil Shapirowhich has a wildcard pointing to your firewall, and a completely
71513058a91SGregory Neil Shapirodifferent version of the database internally that does not include
71613058a91SGregory Neil Shapirowildcard MX records that match your domain.  ANYTHING ELSE WILL GIVE
71713058a91SGregory Neil ShapiroYOU HEADACHES!
71813058a91SGregory Neil Shapiro
71913058a91SGregory Neil ShapiroWhen attempting to canonify a hostname, some broken name servers will
72006f25ae9SGregory Neil Shapiroreturn SERVFAIL (a temporary failure) on T_AAAA (IPv6) lookups.  If you
72106f25ae9SGregory Neil Shapirowant to excuse this behavior, include WorkAroundBrokenAAAA in
72206f25ae9SGregory Neil ShapiroResolverOptions.  However, instead, we recommend catching the problem and
72306f25ae9SGregory Neil Shapiroreporting it to the name server administrator so we can rid the world of
72406f25ae9SGregory Neil Shapirobroken name servers.
72506f25ae9SGregory Neil Shapiro
72606f25ae9SGregory Neil Shapiro
72706f25ae9SGregory Neil Shapiro+----------------------------------------+
72806f25ae9SGregory Neil Shapiro| STARTTLS COMPILATION AND CONFIGURATION |
72906f25ae9SGregory Neil Shapiro+----------------------------------------+
73006f25ae9SGregory Neil Shapiro
73106f25ae9SGregory Neil ShapiroPlease read the documentation accompanying the OpenSSL library.  You
73213bd1963SGregory Neil Shapirohave to compile and install the OpenSSL libraries before you can compile
73313bd1963SGregory Neil Shapirosendmail.  See devtools/README how to set the correct compile time
73413bd1963SGregory Neil Shapiroparameters; you should at least set the following variables:
73513bd1963SGregory Neil Shapiro
73613bd1963SGregory Neil ShapiroAPPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS')
73713bd1963SGregory Neil ShapiroAPPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto')
73813bd1963SGregory Neil Shapiro
73913bd1963SGregory Neil ShapiroIf you have installed the OpenSSL libraries and include files in
74013bd1963SGregory Neil Shapiroa location that your C compiler doesn't use by default you should
74113bd1963SGregory Neil Shapiroset confINCDIRS and confLIBDIRS as explained in the first section:
74213bd1963SGregory Neil ShapiroBUILDING SENDMAIL.
74313bd1963SGregory Neil Shapiro
74413bd1963SGregory Neil ShapiroConfiguration information can be found in doc/op/op.me (required
74513bd1963SGregory Neil Shapirocertificates) and cf/README (how to tell sendmail about certificates).
74606f25ae9SGregory Neil Shapiro
74706f25ae9SGregory Neil ShapiroTo perform an initial test, connect to your sendmail daemon
74806f25ae9SGregory Neil Shapiro(telnet localhost 25) and issue a EHLO localhost and see whether
74906f25ae9SGregory Neil Shapiro250-STARTTLS
75006f25ae9SGregory Neil Shapirois in the response.  If it isn't, run the daemon with
75106f25ae9SGregory Neil Shapiro-O LogLevel=14
75206f25ae9SGregory Neil Shapiroand try again.  Then take a look at the logfile and see whether
75306f25ae9SGregory Neil Shapirothere are any problems listed about permissions (unsafe files)
75440266059SGregory Neil Shapiroor the validity of X.509 certificates.
75540266059SGregory Neil Shapiro
75640266059SGregory Neil ShapiroFrom: Garrett Wollman <[email protected]>
75713bd1963SGregory Neil Shapiro
75840266059SGregory Neil Shapiro    If your certificate authority is hierarchical, and you only include
75913058a91SGregory Neil Shapiro    the top-level CA certificate in the CACertFile file, some mail clients
76013058a91SGregory Neil Shapiro    may be unable to infer the proper certificate chain when selecting a
76113058a91SGregory Neil Shapiro    client certificate.  Including the bottom-level CA certificate(s) in
76213058a91SGregory Neil Shapiro    the CACertFile file will allow these clients to work properly.  This
76313058a91SGregory Neil Shapiro    is not necessary if you are not using client certificates for
76413058a91SGregory Neil Shapiro    authentication, or if all your clients are running Sendmail or other
76513058a91SGregory Neil Shapiro    programs using the OpenSSL library (which get it right automatically).
76613058a91SGregory Neil Shapiro    In addition, some mail clients are totally incapable of using
76706f25ae9SGregory Neil Shapiro    certificate authentication -- even some of those which already support
76806f25ae9SGregory Neil Shapiro    SSL/TLS for confidentiality.
76906f25ae9SGregory Neil Shapiro
77006f25ae9SGregory Neil ShapiroFurther information can be found via:
77106f25ae9SGregory Neil Shapirohttp://www.sendmail.org/tips/
77240266059SGregory Neil Shapiro
77340266059SGregory Neil Shapiro
77406f25ae9SGregory Neil Shapiro+------------------------------------+
77506f25ae9SGregory Neil Shapiro| SASL COMPILATION AND CONFIGURATION |
77606f25ae9SGregory Neil Shapiro+------------------------------------+
77706f25ae9SGregory Neil Shapiro
77806f25ae9SGregory Neil ShapiroPlease read the documentation accompanying the Cyrus SASL library
77906f25ae9SGregory Neil Shapiro(INSTALL and README).  If you use Berkeley DB for Cyrus SASL then
78006f25ae9SGregory Neil Shapiroyou must compile sendmail with the same version of Berkeley DB.
78106f25ae9SGregory Neil ShapiroSee devtools/README for how to set the correct compile time parameters;
78206f25ae9SGregory Neil Shapiroyou should at least set the following variables:
78306f25ae9SGregory Neil Shapiro
78406f25ae9SGregory Neil ShapiroAPPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')
78506f25ae9SGregory Neil ShapiroAPPENDDEF(`conf_sendmail_LIBS', `-lsasl')
78606f25ae9SGregory Neil Shapiro
787c2aa98e2SPeter WemmIf you have installed the Cyrus SASL library and include files in
788c2aa98e2SPeter Wemma location that your C compiler doesn't use by default you should
789c2aa98e2SPeter Wemmset confINCDIRS and confLIBDIRS as explained in the first section:
790c2aa98e2SPeter WemmBUILDING SENDMAIL.
791c2aa98e2SPeter Wemm
79240266059SGregory Neil ShapiroYou have to select and install authentication mechanisms and tell
79340266059SGregory Neil Shapirosendmail where to find the sasl library and the include files (see
79440266059SGregory Neil Shapirodevtools/README for the parameters to set).  Set up the required
795c2aa98e2SPeter Wemmusers and passwords as explained in the SASL documentation.  See
796c2aa98e2SPeter Wemmalso cf/README for authentication related options (especially
797c2aa98e2SPeter WemmDefaultAuthInfo if you want authentication between MTAs).
798c2aa98e2SPeter Wemm
799c2aa98e2SPeter WemmTo perform an initial test, connect to your sendmail daemon
800c2aa98e2SPeter Wemm(telnet localhost 25) and issue a EHLO localhost and see whether
801c2aa98e2SPeter Wemm250-AUTH ....
802c2aa98e2SPeter Wemmis in the response.  If it isn't, run the daemon with
803c2aa98e2SPeter Wemm-O LogLevel=14
804c2aa98e2SPeter Wemmand try again.  Then take a look at the logfile and see whether
805c2aa98e2SPeter Wemmthere are any security related problems listed (unsafe files).
806c2aa98e2SPeter Wemm
807c2aa98e2SPeter WemmFurther information can be found via:
808c2aa98e2SPeter Wemmhttp://www.sendmail.org/tips/
809c2aa98e2SPeter Wemm
810c2aa98e2SPeter Wemm
811c2aa98e2SPeter Wemm+-------------------------------------+
812c2aa98e2SPeter Wemm| OPERATING SYSTEM AND COMPILE QUIRKS |
813c2aa98e2SPeter Wemm+-------------------------------------+
814c2aa98e2SPeter Wemm
815c2aa98e2SPeter WemmGCC problems
816c2aa98e2SPeter Wemm	When compiling with "gcc -O -Wall" specify "-DSM_OMIT_BOGUS_WARNINGS"
817c2aa98e2SPeter Wemm		too (see include/sm/cdefs.h for more info).
818c2aa98e2SPeter Wemm
81913bd1963SGregory Neil Shapiro	*****************************************************************
82013bd1963SGregory Neil Shapiro	**  IMPORTANT:  DO NOT USE OPTIMIZATION (``-O'') IF YOU ARE    **
82113bd1963SGregory Neil Shapiro	**  RUNNING GCC 2.4.x or 2.5.x.  THERE IS A BUG IN THE GCC     **
82213bd1963SGregory Neil Shapiro	**  OPTIMIZER THAT CAUSES SENDMAIL COMPILES TO FAIL MISERABLY. **
82313bd1963SGregory Neil Shapiro	*****************************************************************
824c2aa98e2SPeter Wemm
825c2aa98e2SPeter Wemm	Jim Wilson of Cygnus believes he has found the problem -- it will
826c2aa98e2SPeter Wemm	probably be fixed in GCC 2.5.6 -- but until this is verified, be
827c2aa98e2SPeter Wemm	very suspicious of gcc -O.  This problem is reported to have been
828c2aa98e2SPeter Wemm	fixed in gcc 2.6.
829c2aa98e2SPeter Wemm
830c2aa98e2SPeter Wemm	A bug in gcc 2.5.5 caused problems compiling sendmail 8.6.5 with
831c2aa98e2SPeter Wemm	optimization on a Sparc.  If you are using gcc 2.5.5, youi should
832c2aa98e2SPeter Wemm	upgrade to the latest version of gcc.
83306f25ae9SGregory Neil Shapiro
834c2aa98e2SPeter Wemm	Apparently GCC 2.7.0 on the Pentium processor has optimization
835c2aa98e2SPeter Wemm	problems.  I recommend against using -O on that architecture.  This
836c2aa98e2SPeter Wemm	has been seen on FreeBSD 2.0.5 RELEASE.
837c2aa98e2SPeter Wemm
838c2aa98e2SPeter Wemm	Solaris 2.X users should use version 2.7.2.3 over 2.7.2.
839c2aa98e2SPeter Wemm
840c2aa98e2SPeter Wemm	We have been told there are problems with gcc 2.8.0.  If you are
84106f25ae9SGregory Neil Shapiro	using this version, you should upgrade to 2.8.1 or later.
84206f25ae9SGregory Neil Shapiro
84306f25ae9SGregory Neil ShapiroBerkeley DB
84406f25ae9SGregory Neil Shapiro	Berkeley DB 4.1.x with x <= 24 does not work with sendmail.
84506f25ae9SGregory Neil Shapiro	You need at least 4.1.25.
84606f25ae9SGregory Neil Shapiro
84706f25ae9SGregory Neil ShapiroGDBM	GDBM does not work with sendmail because the additional
84806f25ae9SGregory Neil Shapiro	security checks and file locking cause problems.  Unfortunately,
84906f25ae9SGregory Neil Shapiro	gdbm does not provide a compile flag in its version of ndbm.h so
85006f25ae9SGregory Neil Shapiro	the code can adapt.  Until the GDBM authors can fix these problems,
85106f25ae9SGregory Neil Shapiro	GDBM will not be supported.  Please use Berkeley DB instead.
85206f25ae9SGregory Neil Shapiro
85306f25ae9SGregory Neil ShapiroConfiguration file location
85406f25ae9SGregory Neil Shapiro	Up to 8.6, sendmail tried to find the sendmail.cf file in the same
85506f25ae9SGregory Neil Shapiro	place as the vendors had put it, even when this was obviously
85606f25ae9SGregory Neil Shapiro	stupid.  As of 8.7, sendmail ALWAYS looks for /etc/sendmail.cf.
85740266059SGregory Neil Shapiro	Beginning with 8.10, sendmail uses /etc/mail/sendmail.cf.
85840266059SGregory Neil Shapiro	You can get sendmail to use the stupid vendor .cf location by
85940266059SGregory Neil Shapiro	adding -DUSE_VENDOR_CF_PATH during compilation, but this may break
86040266059SGregory Neil Shapiro	support programs and scripts that need to find sendmail.cf.  You
86140266059SGregory Neil Shapiro	are STRONGLY urged to use symbolic links if you want to use the
86240266059SGregory Neil Shapiro	vendor location rather than changing the location in the sendmail
86340266059SGregory Neil Shapiro	binary.
86440266059SGregory Neil Shapiro
86540266059SGregory Neil Shapiro	NETINFO systems use NETINFO to determine the location of
86640266059SGregory Neil Shapiro	sendmail.cf.  The full path to sendmail.cf is stored as the value of
86740266059SGregory Neil Shapiro	the "sendmail.cf" property in the "/locations/sendmail"
86840266059SGregory Neil Shapiro	subdirectory of NETINFO.  Set the value of this property to
86940266059SGregory Neil Shapiro	"/etc/mail/sendmail.cf" (without the quotes) to use this new
87040266059SGregory Neil Shapiro	default location for Sendmail 8.10.0 and higher.
87140266059SGregory Neil Shapiro
87240266059SGregory Neil ShapiroControlSocket permissions
87340266059SGregory Neil Shapiro	Paraphrased from BIND 8.2.1's README:
874c2aa98e2SPeter Wemm
875c2aa98e2SPeter Wemm	Solaris and other pre-4.4BSD kernels do not respect ownership or
876c2aa98e2SPeter Wemm	protections on UNIX-domain sockets.  The short term fix for this is to
877c2aa98e2SPeter Wemm	override the default path and put such control sockets into root-
878c2aa98e2SPeter Wemm	owned directories which do not permit non-root to r/w/x through them.
879c2aa98e2SPeter Wemm	The long term fix is for all kernels to upgrade to 4.4BSD semantics.
880c2aa98e2SPeter Wemm
881c2aa98e2SPeter WemmHP MPE/iX
882c2aa98e2SPeter Wemm	The MPE-specific code within sendmail emulates a set-user-id root
883c2aa98e2SPeter Wemm	environment for the sendmail binary.  But there is no root uid 0 on
884c2aa98e2SPeter Wemm	MPE, nor is there any support for set-user-id programs.  Even when
885c2aa98e2SPeter Wemm	sendmail thinks it is running as uid 0, it will still have the file
886c2aa98e2SPeter Wemm	access rights of the underlying non-zero uid, but because sendmail is
887c2aa98e2SPeter Wemm	an MPE priv-mode program it will still be able to call setuid() to
888c2aa98e2SPeter Wemm	successfully switch to a new uid.
889c2aa98e2SPeter Wemm
890c2aa98e2SPeter Wemm	MPE setgid() semantics don't quite work the way sendmail expects, so
891c2aa98e2SPeter Wemm	special emulation is done here also.
892c2aa98e2SPeter Wemm
893c2aa98e2SPeter Wemm	This uid/gid emulation is enabled via the setuid/setgid file mode bits
894c2aa98e2SPeter Wemm	which are not currently used by MPE.  Code in libsm/mpeix.c examines
895c2aa98e2SPeter Wemm	these bits and enables emulation if they have been set, i.e.,
896c2aa98e2SPeter Wemm	chmod u+s,g+s /SENDMAIL/CURRENT/SENDMAIL.
897c2aa98e2SPeter Wemm
898c2aa98e2SPeter WemmSunOS 4.x (Solaris 1.x)
899c2aa98e2SPeter Wemm	You may have to use -lresolv on SunOS.  However, beware that
900c2aa98e2SPeter Wemm	this links in a new version of gethostbyname that does not
901c2aa98e2SPeter Wemm	understand NIS, so you must have all of your hosts in DNS.
902c2aa98e2SPeter Wemm
903c2aa98e2SPeter Wemm	Some people have reported problems with the SunOS version of
90406f25ae9SGregory Neil Shapiro	-lresolv and/or in.named, and suggest that you get a newer
90506f25ae9SGregory Neil Shapiro	version.  The symptoms are delays when you connect to the
90606f25ae9SGregory Neil Shapiro	SMTP server on a SunOS machine or having your domain added to
90706f25ae9SGregory Neil Shapiro	addresses inappropriately.  There is a version of BIND
90806f25ae9SGregory Neil Shapiro	version 4.9 on gatekeeper.DEC.COM in pub/BSD/bind/4.9.
909c2aa98e2SPeter Wemm
910c2aa98e2SPeter Wemm	There is substantial disagreement about whether you can make
911c2aa98e2SPeter Wemm	this work with resolv+, which allows you to specify a search-path
912c2aa98e2SPeter Wemm	of services.  Some people report that it works fine, others
913c2aa98e2SPeter Wemm	claim it doesn't work at all (including causing sendmail to
914c2aa98e2SPeter Wemm	drop core when it tries to do multiple resolv+ lookups for a
915c2aa98e2SPeter Wemm	single job).  I haven't tried resolv+, as we use DNS exclusively.
916c2aa98e2SPeter Wemm
917c2aa98e2SPeter Wemm	Should you want to try resolv+, it is on ftp.uu.net in
91806f25ae9SGregory Neil Shapiro	/networking/ip/dns.
919c2aa98e2SPeter Wemm
920c2aa98e2SPeter Wemm	Apparently getservbyname() can fail under moderate to high
921c2aa98e2SPeter Wemm	load under some circumstances.  This will exhibit itself as
922c2aa98e2SPeter Wemm	the message ``554 makeconnection: service "smtp" unknown''.
923c2aa98e2SPeter Wemm	The problem has been traced to one or more blank lines in
924c2aa98e2SPeter Wemm	/etc/services on the NIS server machine.  Delete these
925c2aa98e2SPeter Wemm	and it should work.  This info is thanks to Brian Bartholomew
926c2aa98e2SPeter Wemm	<[email protected]> of I-Kinetics, Inc.
927c2aa98e2SPeter Wemm
928c2aa98e2SPeter Wemm	NOTE: The SunOS 4.X linker uses library paths specified during
929c2aa98e2SPeter Wemm	compilation using -L for run-time shared library searches.
930c2aa98e2SPeter Wemm	Therefore, it is vital that relative and unsafe directory paths not
931c2aa98e2SPeter Wemm	be used when compiling sendmail.
932c2aa98e2SPeter Wemm
933c2aa98e2SPeter WemmSunOS 4.0.2 (Sun 386i)
934c2aa98e2SPeter Wemm	Date: Fri, 25 Aug 1995 11:13:58 +0200 (MET DST)
935c2aa98e2SPeter Wemm	From: [email protected]
936c2aa98e2SPeter Wemm
937c2aa98e2SPeter Wemm	Sendmail 8.7.Beta.12 compiles and runs nearly out of the box with the
938c2aa98e2SPeter Wemm	following changes:
939c2aa98e2SPeter Wemm	* Don't use /usr/5bin in your PATH, but make /usr/5bin/uname
940c2aa98e2SPeter Wemm	  available as "uname" command.
941c2aa98e2SPeter Wemm	* Use the defines "-DBSD4_3 -DNAMED_BIND=0" in
942c2aa98e2SPeter Wemm	  devtools/OS/SunOS.4.0, which is selected via the "uname" command.
943c2aa98e2SPeter Wemm	I recommend to make available the db-library on the system first
944c2aa98e2SPeter Wemm	(and change the Makefile to use this library).
945c2aa98e2SPeter Wemm	Note that the sendmail.cf and aliases files are found in /etc.
946c2aa98e2SPeter Wemm
947c2aa98e2SPeter WemmSunOS 4.1.3, 4.1.3_U1
948c2aa98e2SPeter Wemm	Sendmail causes crashes on SunOS 4.1.3 and 4.1.3_U1.  According
949c2aa98e2SPeter Wemm	to Sun bug number 1077939:
950605302a5SGregory Neil Shapiro
951605302a5SGregory Neil Shapiro	If an application does a getsockopt() on a SOCK_STREAM (TCP) socket
952605302a5SGregory Neil Shapiro	after the other side of the connection has sent a TCP RESET for
953605302a5SGregory Neil Shapiro	the stream, the kernel gets a Bus Trap in the tcp_ctloutput() or
954c2aa98e2SPeter Wemm	ip_ctloutput() routine.
955c2aa98e2SPeter Wemm
956c2aa98e2SPeter Wemm	For 4.1.3, this is fixed in patch 100584-08, available on the
957c2aa98e2SPeter Wemm	Sunsolve 2.7.1 or later CDs.  For 4.1.3_U1, this was fixed in patch
958c2aa98e2SPeter Wemm	101790-01 (SunOS 4.1.3_U1: TCP socket and reset problems), later
959c2aa98e2SPeter Wemm	obsoleted by patch 102010-05.
960c2aa98e2SPeter Wemm
961c2aa98e2SPeter Wemm	Sun patch 100584-08 is not currently publicly available on their
962c2aa98e2SPeter Wemm	ftp site but a user has reported it can be found at other sites
963c2aa98e2SPeter Wemm	using a web search engine.
964c2aa98e2SPeter Wemm
965c2aa98e2SPeter WemmSolaris 2.x (SunOS 5.x)
966c2aa98e2SPeter Wemm	To compile for Solaris, the Makefile built by Build must
967c2aa98e2SPeter Wemm	include a SOLARIS definition which reflects the Solaris version
968c2aa98e2SPeter Wemm	(i.e. -DSOLARIS=20400 for 2.4 or -DSOLARIS=20501 for 2.5.1).
969c2aa98e2SPeter Wemm	If you are using gcc, make sure -I/usr/include is not used (or
970c2aa98e2SPeter Wemm	it might complain about TopFrame).  If you are using Sun's cc,
971c2aa98e2SPeter Wemm	make sure /opt/SUNWspro/bin/cc is used instead of /usr/ucb/cc
972c2aa98e2SPeter Wemm	(or it might complain about tm_zone).
973c2aa98e2SPeter Wemm
974c2aa98e2SPeter Wemm	The Solaris 2.x (x <= 3) "syslog" function is apparently limited
975c2aa98e2SPeter Wemm	to something about 90 characters because of a kernel limitation.
976c2aa98e2SPeter Wemm	If you have source code, you can probably up this number.  You
977c2aa98e2SPeter Wemm	can get patches that fix this problem:  the patch ids are:
978c2aa98e2SPeter Wemm
979c2aa98e2SPeter Wemm		Solaris 2.1	100834
980c2aa98e2SPeter Wemm		Solaris 2.2	100999
981c2aa98e2SPeter Wemm		Solaris 2.3	101318
982c2aa98e2SPeter Wemm
983c2aa98e2SPeter Wemm	Be sure you have the appropriate patch installed or you won't
984c2aa98e2SPeter Wemm	see system logging.
985c2aa98e2SPeter Wemm
98640266059SGregory Neil ShapiroSolaris 2.4 (SunOS 5.4)
987c2aa98e2SPeter Wemm	If you include /usr/lib at the end of your LD_LIBRARY_PATH you run
988c2aa98e2SPeter Wemm	the risk of getting the wrong libraries under some circumstances.
989c2aa98e2SPeter Wemm	This is because of a new feature in Solaris 2.4, described by
990c2aa98e2SPeter Wemm	[email protected]:
991c2aa98e2SPeter Wemm
992c2aa98e2SPeter Wemm	>> Prior to SunOS 5.4, any LD_LIBRARY_PATH setting was ignored by the
993c2aa98e2SPeter Wemm	>> runtime linker if the application was setxid (secure), thus your
994c2aa98e2SPeter Wemm	>> applications search path would be:
995c2aa98e2SPeter Wemm	>>
996c2aa98e2SPeter Wemm	>>	/usr/local/lib	LD_LIBRARY_PATH component - IGNORED
997c2aa98e2SPeter Wemm	>>	/usr/lib	LD_LIBRARY_PATH component - IGNORED
998c2aa98e2SPeter Wemm	>>	/usr/local/lib	RPATH - honored
999c2aa98e2SPeter Wemm	>>	/usr/lib	RPATH - honored
1000c2aa98e2SPeter Wemm	>>
1001c2aa98e2SPeter Wemm	>> the effect is that path 3 would be the first used, and this would
1002c2aa98e2SPeter Wemm	>> satisfy your resolv.so lookup.
1003c2aa98e2SPeter Wemm	>>
1004c2aa98e2SPeter Wemm	>> In SunOS 5.4 we made the LD_LIBRARY_PATH a little more flexible.
1005c2aa98e2SPeter Wemm	>> People who developed setxid applications wanted to be able to alter
1006c2aa98e2SPeter Wemm	>> the library search path to some degree to allow for their own
1007c2aa98e2SPeter Wemm	>> testing and debugging mechanisms.  It was decided that the only
1008c2aa98e2SPeter Wemm	>> secure way to do this was to allow a `trusted' path to be used in
1009c2aa98e2SPeter Wemm	>> LD_LIBRARY_PATH.  The only trusted directory we presently define
1010c2aa98e2SPeter Wemm	>> is /usr/lib.  Thus a set-user-ID root developer could play with some
1011c2aa98e2SPeter Wemm	>> alternative shared object implementations and place them in
1012c2aa98e2SPeter Wemm	>> /usr/lib (being root we assume they'ed have access to write in this
1013c2aa98e2SPeter Wemm	>> directory).  This change was made as part of 1155380 - after a
1014c2aa98e2SPeter Wemm	>> *huge* amount of discussion regarding the security aspect of things.
1015c2aa98e2SPeter Wemm	>>
1016c2aa98e2SPeter Wemm	>> So, in SunOS 5.4 your applications search path would be:
1017c2aa98e2SPeter Wemm	>>
101840266059SGregory Neil Shapiro	>>	/usr/local/lib	from LD_LIBRARY_PATH - IGNORED (untrustworthy)
1019c2aa98e2SPeter Wemm	>>	/usr/lib	from LD_LIBRARY_PATH - honored (trustworthy)
102006f25ae9SGregory Neil Shapiro	>>	/usr/local/lib	from RPATH - honored
102106f25ae9SGregory Neil Shapiro	>>	/usr/lib	from RPATH - honored
102206f25ae9SGregory Neil Shapiro	>>
102306f25ae9SGregory Neil Shapiro	>> here, path 2 would be the first used.
102406f25ae9SGregory Neil Shapiro
102506f25ae9SGregory Neil ShapiroSolaris 2.5.1 (SunOS 5.5.1) and 2.6 (SunOS 5.6)
102606f25ae9SGregory Neil Shapiro	Apparently Solaris 2.5.1 patch 103663-01 installs a new
102706f25ae9SGregory Neil Shapiro	/usr/include/resolv.h file that defines the __P macro without
102806f25ae9SGregory Neil Shapiro	checking to see if it is already defined.  This new resolv.h is also
102906f25ae9SGregory Neil Shapiro	included in the Solaris 2.6 distribution.  This causes compile
103006f25ae9SGregory Neil Shapiro	warnings such as:
103106f25ae9SGregory Neil Shapiro
103206f25ae9SGregory Neil Shapiro	   In file included from daemon.c:51:
103306f25ae9SGregory Neil Shapiro	   /usr/include/resolv.h:208: warning: `__P' redefined
103440266059SGregory Neil Shapiro	   cdefs.h:58: warning: this is the location of the previous definition
103540266059SGregory Neil Shapiro
103640266059SGregory Neil Shapiro	These warnings can be safely ignored or you can create a resolv.h
103740266059SGregory Neil Shapiro	file in the obj.SunOS.5.5.1.* or obj.SunOS.5.6.* directory that reads:
103840266059SGregory Neil Shapiro
103940266059SGregory Neil Shapiro	   #undef __P
104040266059SGregory Neil Shapiro	   #include "/usr/include/resolv.h"
104140266059SGregory Neil Shapiro
104240266059SGregory Neil Shapiro	This problem was fixed in Solaris 7 (Sun bug ID 4081053).
104340266059SGregory Neil Shapiro
104440266059SGregory Neil ShapiroSolaris 7 (SunOS 5.7)
104540266059SGregory Neil Shapiro	Solaris 7 includes LDAP libraries but the implementation was
1046605302a5SGregory Neil Shapiro	lacking a few things.  The following settings can be placed in
104740266059SGregory Neil Shapiro	devtools/Site/site.SunOS.5.7.m4 if you plan on using those
1048605302a5SGregory Neil Shapiro	libraries.
1049605302a5SGregory Neil Shapiro
105040266059SGregory Neil Shapiro	APPENDDEF(`confMAPDEF', `-DLDAPMAP')
105140266059SGregory Neil Shapiro	APPENDDEF(`confENVDEF', `-DLDAP_VERSION_MAX=3')
1052193538b7SGregory Neil Shapiro	APPENDDEF(`confLIBS', `-lldap')
1053193538b7SGregory Neil Shapiro
1054193538b7SGregory Neil Shapiro	Also, Sun's patch 107555 is needed to prevent a crash in the call
1055193538b7SGregory Neil Shapiro	to ldap_set_option for LDAP_OPT_REFERRALS in ldapmap_setopts if
1056193538b7SGregory Neil Shapiro	LDAP support is compiled in sendmail.
1057193538b7SGregory Neil Shapiro
1058193538b7SGregory Neil ShapiroSolaris 8 and later (SunOS 5.8 and later)
1059193538b7SGregory Neil Shapiro	Solaris 8 and later can optionally install LDAP support.  If you
1060193538b7SGregory Neil Shapiro	have installed the Entire Distribution meta-cluster, you can use
106113bd1963SGregory Neil Shapiro	the following in devtools/Site/site.SunOS.5.8.m4 (or other
1062193538b7SGregory Neil Shapiro	appropriately versioned file) to enable LDAP:
1063193538b7SGregory Neil Shapiro
1064193538b7SGregory Neil Shapiro	APPENDDEF(`confMAPDEF', `-DLDAPMAP')
1065193538b7SGregory Neil Shapiro	APPENDDEF(`confLIBS', `-lldap')
1066193538b7SGregory Neil Shapiro
1067193538b7SGregory Neil ShapiroSolaris 9 and later (SunOS 5.9 and later)
1068193538b7SGregory Neil Shapiro	Solaris 9 and later have a revised LDAP library, libldap.so.5,
1069193538b7SGregory Neil Shapiro	which is derived from a Netscape implementation, thus requiring
1070193538b7SGregory Neil Shapiro	that SM_CONF_LDAP_MEMFREE be defined in conjunction with LDAPMAP:
1071c2aa98e2SPeter Wemm
1072c2aa98e2SPeter Wemm	APPENDDEF(`confMAPDEF', `-DLDAPMAP')
1073c2aa98e2SPeter Wemm	APPENDDEF(`confENVDEF', `-DSM_CONF_LDAP_MEMFREE')
1074c2aa98e2SPeter Wemm	APPENDDEF(`confLIBS', `-lldap')
107506f25ae9SGregory Neil Shapiro
107606f25ae9SGregory Neil ShapiroSolaris
107706f25ae9SGregory Neil Shapiro	If you are using dns for hostname resolution on Solaris, make sure
107806f25ae9SGregory Neil Shapiro	that the 'dns' entry is last on the hosts line in
107906f25ae9SGregory Neil Shapiro	'/etc/nsswitch.conf'.  For example, use:
108006f25ae9SGregory Neil Shapiro
108106f25ae9SGregory Neil Shapiro		hosts:	nisplus files dns
108206f25ae9SGregory Neil Shapiro
108306f25ae9SGregory Neil Shapiro	Do not use:
108406f25ae9SGregory Neil Shapiro
108506f25ae9SGregory Neil Shapiro		hosts:  nisplus dns [NOTFOUND=return] files
108606f25ae9SGregory Neil Shapiro
1087c2aa98e2SPeter Wemm	Note that 'nisplus' above is an illustration.  The same comment
1088c2aa98e2SPeter Wemm	applies no matter what naming services you are using.  If you have
1089c2aa98e2SPeter Wemm	anything other than dns last, even after "[NOTFOUND=return]",
1090c2aa98e2SPeter Wemm	sendmail may not be able to determine whether an error was
1091c2aa98e2SPeter Wemm	temporary or permanent.  The error returned by the solaris
1092c2aa98e2SPeter Wemm	gethostbyname() is the error for the last lookup used, and other
1093c2aa98e2SPeter Wemm	naming services do not have the same concept of temporary failure.
1094c2aa98e2SPeter Wemm
1095c2aa98e2SPeter WemmUltrix
1096c2aa98e2SPeter Wemm	By default, the IDENT protocol is turned off on Ultrix.  If you
1097c2aa98e2SPeter Wemm	are running Ultrix 4.4 or later, or if you have included patch
1098c2aa98e2SPeter Wemm	CXO-8919 for Ultrix 4.2 or 4.3 to fix the TCP problem, you can turn
1099c2aa98e2SPeter Wemm	IDENT on in the configuration file by setting the "ident" timeout.
1100c2aa98e2SPeter Wemm
1101c2aa98e2SPeter Wemm	The Ultrix 4.5 Y2K patch (ULTV45-022-1) has changed the resolver
1102c2aa98e2SPeter Wemm	included in libc.a.  Unfortunately, the __RES symbol hasn't changed
1103c2aa98e2SPeter Wemm	and therefore, sendmail can no longer automatically detect the
1104c2aa98e2SPeter Wemm	newer version.  If you get a compiler error:
1105c2aa98e2SPeter Wemm
1106c2aa98e2SPeter Wemm	/lib/libc.a(gethostent.o): local_hostname_length: multiply defined
1107c2aa98e2SPeter Wemm
1108c2aa98e2SPeter Wemm	Then rebuild with this in devtools/Site/site.ULTRIX.m4:
1109c2aa98e2SPeter Wemm
1110c2aa98e2SPeter Wemm	APPENDDEF(`conf_sendmail_ENVDEF', `-DNEEDLOCAL_HOSTNAME_LENGTH=0')
1111c2aa98e2SPeter Wemm
1112c2aa98e2SPeter WemmDigital UNIX (formerly DEC OSF/1)
1113c2aa98e2SPeter Wemm	If you are compiling on OSF/1 (DEC Alpha), you must use
1114c2aa98e2SPeter Wemm	-L/usr/shlib (otherwise it core dumps on startup).  You may also
1115c2aa98e2SPeter Wemm	need -mld to get the nlist() function, although some versions
1116c2aa98e2SPeter Wemm	apparently don't need this.
1117c2aa98e2SPeter Wemm
1118c2aa98e2SPeter Wemm	Also, the enclosed makefile removed /usr/sbin/smtpd; if you need
1119c2aa98e2SPeter Wemm	it, just create the link to the sendmail binary.
1120c2aa98e2SPeter Wemm
1121c2aa98e2SPeter Wemm	On DEC OSF/1 3.2 or earlier, the MatchGECOS option doesn't work
1122065a643dSPeter Wemm	properly due to a bug in the getpw* routines.  If you want to use
1123065a643dSPeter Wemm	this, use -DDEC_OSF_BROKEN_GETPWENT=1.  The problem is fixed in 3.2C.
1124065a643dSPeter Wemm
1125065a643dSPeter Wemm	Digital's mail delivery agent, /bin/mail (aka /bin/binmail), will
1126065a643dSPeter Wemm	only preserve the envelope sender in the "From " header if
1127065a643dSPeter Wemm	DefaultUserID is set to daemon.  Setting this to mailnull will
1128c2aa98e2SPeter Wemm	cause all mail to have the header "From mailnull ...".  To use
1129c2aa98e2SPeter Wemm	a different DefaultUserID, you will need to use a different mail
1130c2aa98e2SPeter Wemm	delivery agent (such as mail.local found in the sendmail
1131c2aa98e2SPeter Wemm	distribution).
1132c2aa98e2SPeter Wemm
1133c2aa98e2SPeter Wemm	On Digital UNIX 4.0 and later, Berkeley DB 1.85 is included with the
1134c2aa98e2SPeter Wemm	operating system and already has the ndbm.o module removed.  However,
1135c2aa98e2SPeter Wemm	Digital has modified the original Berkeley DB db.h include file.
1136c2aa98e2SPeter Wemm	This results in the following warning while compiling map.c and udb.c:
1137c2aa98e2SPeter Wemm
1138c2aa98e2SPeter Wemm	cc: Warning: /usr/include/db.h, line 74: The redefinition of the macro
1139c2aa98e2SPeter Wemm	 "__signed" conflicts with a current definition because the replacement
1140c2aa98e2SPeter Wemm	 lists differ.  The redefinition is now in effect.
1141c2aa98e2SPeter Wemm	#define __signed        signed
1142c2aa98e2SPeter Wemm	------------------------^
1143c2aa98e2SPeter Wemm
1144c2aa98e2SPeter Wemm	This warning can be ignored.
1145c2aa98e2SPeter Wemm
1146c2aa98e2SPeter Wemm	Digital UNIX's linker checks /usr/ccs/lib/ before /usr/lib/.
1147c2aa98e2SPeter Wemm	If you have installed a new version of BIND in /usr/include
1148c2aa98e2SPeter Wemm	and /usr/lib, you will experience difficulties as Digital ships
1149c2aa98e2SPeter Wemm	libresolv.a in /usr/ccs/lib/ as well.  Be sure to replace both
1150c2aa98e2SPeter Wemm	copies of libresolv.a.
1151c2aa98e2SPeter Wemm
1152c2aa98e2SPeter WemmIRIX
1153c2aa98e2SPeter Wemm	The header files on SGI IRIX are completely prototyped, and as
1154c2aa98e2SPeter Wemm	a result you can sometimes get some warning messages during
1155c2aa98e2SPeter Wemm	compilation.  These can be ignored.  There are two errors in
1156c2aa98e2SPeter Wemm	deliver only if you are using gcc, both of the form ``warning:
1157c2aa98e2SPeter Wemm	passing arg N of `execve' from incompatible pointer type''.
1158c2aa98e2SPeter Wemm	Also, if you compile with -DNIS, you will get a complaint
1159c2aa98e2SPeter Wemm	about a declaration of struct dom_binding in a prototype
1160c2aa98e2SPeter Wemm	when compiling map.c; this is not important because the
1161c2aa98e2SPeter Wemm	function being prototyped is not used in that file.
1162c2aa98e2SPeter Wemm
1163c2aa98e2SPeter Wemm	In order to compile sendmail you will have had to install
116406f25ae9SGregory Neil Shapiro	the developers' option in order to get the necessary include
116506f25ae9SGregory Neil Shapiro	files.
1166c2aa98e2SPeter Wemm
1167602a2b1bSGregory Neil Shapiro	If you compile with -lmalloc (the fast memory allocator), you may
1168602a2b1bSGregory Neil Shapiro	get warning messages such as the following:
1169602a2b1bSGregory Neil Shapiro
1170602a2b1bSGregory Neil Shapiro	   ld32: WARNING 85: definition of _calloc in /usr/lib32/libmalloc.so
1171602a2b1bSGregory Neil Shapiro		preempts that definition in /usr/lib32/mips3/libc.so.
117240266059SGregory Neil Shapiro	   ld32: WARNING 85: definition of _malloc in /usr/lib32/libmalloc.so
117340266059SGregory Neil Shapiro		preempts that definition in /usr/lib32/mips3/libc.so.
117440266059SGregory Neil Shapiro	   ld32: WARNING 85: definition of _realloc in /usr/lib32/libmalloc.so
1175602a2b1bSGregory Neil Shapiro		preempts that definition in /usr/lib32/mips3/libc.so.
117606f25ae9SGregory Neil Shapiro	   ld32: WARNING 85: definition of _free in /usr/lib32/libmalloc.so
117706f25ae9SGregory Neil Shapiro		preempts that definition in /usr/lib32/mips3/libc.so.
117806f25ae9SGregory Neil Shapiro	   ld32: WARNING 85: definition of _cfree in /usr/lib32/libmalloc.so
117906f25ae9SGregory Neil Shapiro		preempts that definition in /usr/lib32/mips3/libc.so.
1180c2aa98e2SPeter Wemm
1181c2aa98e2SPeter Wemm	These are unavoidable and innocuous -- just ignore them.
1182c2aa98e2SPeter Wemm
1183c2aa98e2SPeter Wemm	According to Dave Sill <[email protected]>, there is a version of the
1184c2aa98e2SPeter Wemm	Berkeley DB library patched to run on Irix 6.2 available from
1185c2aa98e2SPeter Wemm	http://reality.sgi.com/ariel/freeware/#db .
1186c2aa98e2SPeter Wemm
1187c2aa98e2SPeter WemmIRIX 6.x
1188c2aa98e2SPeter Wemm	If you are using XFS filesystem, avoid using the -32 ABI switch to
1189c2aa98e2SPeter Wemm	the cc compiler if possible.
1190c2aa98e2SPeter Wemm
119106f25ae9SGregory Neil Shapiro	Broken inet_aton and inet_ntoa on IRIX using gcc: There's
1192c2aa98e2SPeter Wemm	a problem with gcc on IRIX, i.e., gcc can't pass structs
1193c2aa98e2SPeter Wemm	less than 16 bits long unless they are 8 bits; IRIX 6.2 has
1194c2aa98e2SPeter Wemm	some other sized structs.  See
1195c2aa98e2SPeter Wemm	http://www.bitmechanic.com/mail-archives/mysql/current/0418.html
1196c2aa98e2SPeter Wemm	This problem seems to be fixed by gcc v2.95.2, gcc v2.8.1
1197c2aa98e2SPeter Wemm	is reported as broken.  Check your gcc version for this bug
1198c2aa98e2SPeter Wemm	before installing sendmail.
1199c2aa98e2SPeter Wemm
1200c2aa98e2SPeter WemmIRIX 6.4
1201c2aa98e2SPeter Wemm	The IRIX 6.5.4 version of /bin/m4 does not work properly with
1202c2aa98e2SPeter Wemm	sendmail.  Either install fw_m4.sw.m4 off the Freeware_May99 CD and
1203c2aa98e2SPeter Wemm	use /usr/freeware/bin/m4 or install and use GNU m4.
1204c2aa98e2SPeter Wemm
1205c2aa98e2SPeter WemmNeXT or NEXTSTEP
1206c2aa98e2SPeter Wemm	NEXTSTEP 3.3 and earlier ship with the old DBM library.  Also,
1207c2aa98e2SPeter Wemm	Berkeley DB does not currently run on NEXTSTEP.
1208c2aa98e2SPeter Wemm
1209c2aa98e2SPeter Wemm	If you are compiling on NEXTSTEP, you will have to create an
1210c2aa98e2SPeter Wemm	empty file "unistd.h" and create a file "dirent.h" containing:
1211c2aa98e2SPeter Wemm
1212c2aa98e2SPeter Wemm		#include <sys/dir.h>
121306f25ae9SGregory Neil Shapiro		#define dirent	direct
1214c2aa98e2SPeter Wemm
1215c2aa98e2SPeter Wemm	(devtools/OS/NeXT should try to do both of these for you.)
1216c2aa98e2SPeter Wemm
1217c2aa98e2SPeter Wemm	Apparently, there is a bug in getservbyname on Nextstep 3.0
1218c2aa98e2SPeter Wemm	that causes it to fail under some circumstances with the
1219c2aa98e2SPeter Wemm	message "SYSERR: service "smtp" unknown" logged.  You should
122006f25ae9SGregory Neil Shapiro	be able to work around this by including the line:
122106f25ae9SGregory Neil Shapiro
122206f25ae9SGregory Neil Shapiro		OOPort=25
1223c2aa98e2SPeter Wemm
1224c2aa98e2SPeter Wemm	in your .cf file.
1225c2aa98e2SPeter Wemm
1226c2aa98e2SPeter WemmBSDI (BSD/386) 1.0, NetBSD 0.9, FreeBSD 1.0
1227c2aa98e2SPeter Wemm	The "m4" from BSDI won't handle the config files properly.
1228c2aa98e2SPeter Wemm	I haven't had a chance to test this myself.
1229c2aa98e2SPeter Wemm
1230c2aa98e2SPeter Wemm	The M4 shipped in FreeBSD and NetBSD 0.9 don't handle the config
1231c2aa98e2SPeter Wemm	files properly.  One must use either GNU m4 1.1 or the PD-M4
1232c2aa98e2SPeter Wemm	recently posted in comp.os.386bsd.bugs (and maybe others).
1233c2aa98e2SPeter Wemm	NetBSD-current includes the PD-M4 (as stated in the NetBSD file
1234602a2b1bSGregory Neil Shapiro	CHANGES).
1235602a2b1bSGregory Neil Shapiro
1236602a2b1bSGregory Neil Shapiro	FreeBSD 1.0 RELEASE has uname(2) now.  Use -DUSEUNAME in order to
1237602a2b1bSGregory Neil Shapiro	use it (look into devtools/OS/FreeBSD).  NetBSD-current may have
1238c2aa98e2SPeter Wemm	it too but it has not been verified.
123940266059SGregory Neil Shapiro
124040266059SGregory Neil Shapiro	The latest version of Berkeley DB uses a different naming
124140266059SGregory Neil Shapiro	scheme than the version that is supplied with your release.  This
124240266059SGregory Neil Shapiro	means you will be able to use the current version of Berkeley DB
124340266059SGregory Neil Shapiro	with sendmail as long you use the new db.h when compiling
124440266059SGregory Neil Shapiro	sendmail and link it against the new libdb.a or libdb.so.  You
1245c2aa98e2SPeter Wemm	should probably keep the original db.h in /usr/include and the
1246c2aa98e2SPeter Wemm	new db.h in /usr/local/include.
1247c2aa98e2SPeter Wemm
1248c2aa98e2SPeter Wemm4.3BSD
1249c2aa98e2SPeter Wemm	If you are running a "virgin" version of 4.3BSD, you'll have
1250c2aa98e2SPeter Wemm	a very old resolver and be missing some header files.  The
1251c2aa98e2SPeter Wemm	header files are simple -- create empty versions and everything
1252c2aa98e2SPeter Wemm	will work fine.  For the resolver you should really port a new
1253c2aa98e2SPeter Wemm	version (4.8.3 or later) of the resolver; 4.9 is available on
1254c2aa98e2SPeter Wemm	gatekeeper.DEC.COM in pub/BSD/bind/4.9.  If you are really
1255c2aa98e2SPeter Wemm	determined to continue to use your old, buggy version (or as
1256c2aa98e2SPeter Wemm	a shortcut to get sendmail working -- I'm sure you have the
1257c2aa98e2SPeter Wemm	best intentions to port a modern version of BIND), you can
1258c2aa98e2SPeter Wemm	copy ../contrib/oldbind.compat.c into sendmail and add the
1259c2aa98e2SPeter Wemm	following to devtools/Site/site.config.m4:
1260c2aa98e2SPeter Wemm
1261c2aa98e2SPeter Wemm	APPENDDEF(`confOBJADD', `oldbind.compat.o')
1262c2aa98e2SPeter Wemm
1263c2aa98e2SPeter WemmOpenBSD (up to 2.9 Release), NetBSD, FreeBSD (up to 4.3-RELEASE)
1264c2aa98e2SPeter Wemm	m4 from *BSD won't handle libsm/Makefile.m4 properly, since the
1265c2aa98e2SPeter Wemm	maximum length for strings is too short.  You need to use GNU m4
1266c2aa98e2SPeter Wemm	or patch m4, see for example:
1267c2aa98e2SPeter Wemm  http://FreeBSD.org/cgi/cvsweb.cgi/src/usr.bin/m4/eval.c.diff?r1=1.11&r2=1.12
1268c2aa98e2SPeter Wemm
1269c2aa98e2SPeter WemmA/UX
1270c2aa98e2SPeter Wemm	Date: Tue, 12 Oct 1993 18:28:28 -0400 (EDT)
1271c2aa98e2SPeter Wemm	From: "Eric C. Hagberg" <[email protected]>
1272c2aa98e2SPeter Wemm	Subject: Fix for A/UX ndbm
1273c2aa98e2SPeter Wemm
1274c2aa98e2SPeter Wemm	I guess this isn't really a sendmail bug, however, it is something
1275c2aa98e2SPeter Wemm	that A/UX users should be aware of when compiling sendmail 8.6.
1276c2aa98e2SPeter Wemm
1277c2aa98e2SPeter Wemm	Apparently, the calls that sendmail is using to the ndbm routines
1278c2aa98e2SPeter Wemm	in A/UX 3.0.x contain calls to "broken" routines, in that the
1279c2aa98e2SPeter Wemm	aliases database will break when it gets "just a little big"
1280c2aa98e2SPeter Wemm	(sorry I don't have exact numbers here, but it broke somewhere
1281c2aa98e2SPeter Wemm	around 20-25 aliases for me.), making all aliases non-functional
128240266059SGregory Neil Shapiro	after exceeding this point.
128340266059SGregory Neil Shapiro
1284c2aa98e2SPeter Wemm	What I did was to get the gnu-dbm-1.6 package, compile it, and
1285c2aa98e2SPeter Wemm	then re-compile sendmail with "-lgdbm", "-DNDBM", and using the
1286c2aa98e2SPeter Wemm	ndbm.h header file that comes with the gnu-package.  This makes
1287c2aa98e2SPeter Wemm	things behave properly.
1288c2aa98e2SPeter Wemm	  [NOTE: see comment above about GDBM]
1289c2aa98e2SPeter Wemm
129040266059SGregory Neil Shapiro	I suppose porting the New Berkeley DB package is another route,
129140266059SGregory Neil Shapiro	however, I made a quick attempt at it, and found it difficult
129240266059SGregory Neil Shapiro	(not easy at least); the gnu-dbm package "configured" and
129340266059SGregory Neil Shapiro	compiled easily.
1294c2aa98e2SPeter Wemm
1295c2aa98e2SPeter Wemm	  [NOTE: Berkeley DB version 2.X runs on A/UX and can be used for
1296c2aa98e2SPeter Wemm	  database maps.]
1297c2aa98e2SPeter Wemm
1298c2aa98e2SPeter WemmSCO Unix
1299c2aa98e2SPeter Wemm	From: Thomas Essebier <[email protected]>
1300c2aa98e2SPeter Wemm	Organisation:  Stallion Technologies Pty Ltd.
1301c2aa98e2SPeter Wemm
1302c2aa98e2SPeter Wemm	It will probably help those who are trying to configure sendmail 8.6.9
1303c2aa98e2SPeter Wemm	to know that if they are on SCO, they had better set
1304c2aa98e2SPeter Wemm		OI-dnsrch
1305c2aa98e2SPeter Wemm	or they will core dump as soon as they try to use the resolver.
1306c2aa98e2SPeter Wemm	i.e., although SCO has _res.dnsrch defined, and is kinda BIND 4.8.3,
1307c2aa98e2SPeter Wemm	it does not inititialise it, nor does it understand 'search' in
1308c2aa98e2SPeter Wemm	/etc/named.boot.
1309c2aa98e2SPeter Wemm		- sigh -
1310c2aa98e2SPeter Wemm
1311c2aa98e2SPeter Wemm	According to SCO, the m4 which ships with UnixWare 2.1.2 is broken.
1312c2aa98e2SPeter Wemm	We recommend installing GNU m4 before attempting to build sendmail.
131306f25ae9SGregory Neil Shapiro
1314c2aa98e2SPeter Wemm	On some versions a bogus error value is listed if connections
1315c2aa98e2SPeter Wemm	time out (large negative number).  To avoid this explicitly set
1316c2aa98e2SPeter Wemm	Timeout.connect to a reasonable value (several minutes).
1317c2aa98e2SPeter Wemm
1318c2aa98e2SPeter WemmDG/UX
1319c2aa98e2SPeter Wemm	Doug Anderson <[email protected]> has successfully run
132040266059SGregory Neil Shapiro	V8 on the DG/UX 5.4.2 and 5.4R3.x platforms under heavy usage.
132140266059SGregory Neil Shapiro	Originally, the DG /bin/mail program wasn't compatible with
1322c2aa98e2SPeter Wemm	the V8 sendmail, since the DG /bin/mail requires the environment
1323c2aa98e2SPeter Wemm	variable "_FORCE_MAIL_LOCAL_=yes" be set.  Version 8.7 now includes
1324c2aa98e2SPeter Wemm	this in the environment before invoking the local mailer.  Some
1325c2aa98e2SPeter Wemm	have used procmail to avoid this problem in the past.  It works
1326c2aa98e2SPeter Wemm	but some have experienced file locking problems with their DG/UX
1327c2aa98e2SPeter Wemm	ports of procmail.
1328c2aa98e2SPeter Wemm
1329c2aa98e2SPeter WemmApollo DomainOS
1330c2aa98e2SPeter Wemm	If you are compiling on Apollo, you will have to create an empty
1331c2aa98e2SPeter Wemm	file "unistd.h" (for DomainOS 10.3 and earlier) and create a file
1332c2aa98e2SPeter Wemm	"dirent.h" containing:
1333c2aa98e2SPeter Wemm
1334c2aa98e2SPeter Wemm		#include <sys/dir.h>
1335c2aa98e2SPeter Wemm		#define dirent	direct
1336c2aa98e2SPeter Wemm
1337739ac4d4SGregory Neil Shapiro	(devtools/OS/DomainOS will attempt to do both of these for you.)
1338739ac4d4SGregory Neil Shapiro
1339739ac4d4SGregory Neil ShapiroHP-UX 8.00
1340e92d3f3fSGregory Neil Shapiro	Date: Mon, 24 Jan 1994 13:25:45 +0200
1341e92d3f3fSGregory Neil Shapiro	From: Kimmo Suominen <[email protected]>
1342e92d3f3fSGregory Neil Shapiro	Subject: 8.6.5 w/ HP-UX 8.00 on s300
1343e92d3f3fSGregory Neil Shapiro
1344e92d3f3fSGregory Neil Shapiro	Just compiled and fought with sendmail 8.6.5 on a HP9000/360 (i.e.,
1345e92d3f3fSGregory Neil Shapiro	a series 300 machine) running HP-UX 8.00.
1346c2aa98e2SPeter Wemm
1347c2aa98e2SPeter Wemm	I was getting segmentation fault when delivering to a local user.
1348c2aa98e2SPeter Wemm	With debugging I saw it was faulting when doing _free@libc... *sigh*
1349c2aa98e2SPeter Wemm	It seems the new implementation of malloc on s300 is buggy as of 8.0,
1350c2aa98e2SPeter Wemm	so I tried out the one in -lmalloc (malloc(3X)).  With that it seems
1351c2aa98e2SPeter Wemm	to work just dandy.
1352c2aa98e2SPeter Wemm
1353c2aa98e2SPeter Wemm	When linking, you will get the following error:
1354c2aa98e2SPeter Wemm
1355c2aa98e2SPeter Wemm	ld: multiply defined symbol _freespace in file /usr/lib/libmalloc.a
1356c2aa98e2SPeter Wemm
1357c2aa98e2SPeter Wemm	but you can just ignore it.  You might want to add this info to the
1358c2aa98e2SPeter Wemm	README file for the future...
1359c2aa98e2SPeter Wemm
1360c2aa98e2SPeter WemmLinux
1361c2aa98e2SPeter Wemm	Something broke between versions 0.99.13 and 0.99.14 of Linux: the
1362c2aa98e2SPeter Wemm	flock() system call gives errors.  If you are running .14, you must
1363c2aa98e2SPeter Wemm	not use flock.  You can do this with -DHASFLOCK=0.  We have also
1364c2aa98e2SPeter Wemm	been getting complaints since version 2.4.X was released.
1365c2aa98e2SPeter Wemm	sendmail 8.13 has changed the default locking method to fcntl()
1366c2aa98e2SPeter Wemm	for Linux kernel version 2.4 and later.  Be sure to update other
1367c2aa98e2SPeter Wemm	sendmail related programs to match locking techniques (some
1368c2aa98e2SPeter Wemm	examples, besides makemap and mail.local, include procmail, mailx,
1369c2aa98e2SPeter Wemm	mutt, elm, etc).
1370c2aa98e2SPeter Wemm
1371c2aa98e2SPeter Wemm	Around the inclusion of bind-4.9.3 & Linux libc-4.6.20, the
1372c2aa98e2SPeter Wemm	initialization of the _res structure changed.  If /etc/hosts.conf
1373c2aa98e2SPeter Wemm	was configured as "hosts, bind" the resolver code could return
13742e43090eSPeter Wemm	"Name server failure" errors.  This is supposedly fixed in
13752e43090eSPeter Wemm	later versions of libc (>= 4.6.29?), and later versions of
13762e43090eSPeter Wemm	sendmail (> 8.6.10) try to work around the problem.
13772e43090eSPeter Wemm
13782e43090eSPeter Wemm	Some older versions (< 4.6.20?) of the libc/include files conflict
13792e43090eSPeter Wemm	with sendmail's version of cdefs.h.  Deleting sendmail's version
1380602a2b1bSGregory Neil Shapiro	on those systems should be non-harmful, and new versions don't care.
1381602a2b1bSGregory Neil Shapiro
1382602a2b1bSGregory Neil Shapiro	NOTE ON LINUX & BIND:  By default, the Makefile generated for Linux
1383602a2b1bSGregory Neil Shapiro	includes header files in /usr/local/include and libraries in
1384602a2b1bSGregory Neil Shapiro	/usr/local/lib.  If you've installed BIND on your system, the header
1385602a2b1bSGregory Neil Shapiro	files typically end up in the search path and you need to add
1386602a2b1bSGregory Neil Shapiro	"-lresolv" to the LIBS line in your Makefile.  Really old versions
1387602a2b1bSGregory Neil Shapiro	may need to include "-l44bsd" as well (particularly if the link phase
1388602a2b1bSGregory Neil Shapiro	complains about missing strcasecmp, strncasecmp or strpbrk).
1389602a2b1bSGregory Neil Shapiro	Complaints about an undefined reference to `__dn_skipname' in
1390602a2b1bSGregory Neil Shapiro	domain.o are a sure sign that you need to add -lresolv to LIBS.
139106f25ae9SGregory Neil Shapiro	Newer versions of Linux are basically threaded BIND, so you may or
139206f25ae9SGregory Neil Shapiro	may not see complaints if you accidentally mix BIND
139306f25ae9SGregory Neil Shapiro	headers/libraries with virginal libc.  If you have BIND headers in
139406f25ae9SGregory Neil Shapiro	/usr/local/include (resolv.h, etc) you *should* be adding -lresolv
139506f25ae9SGregory Neil Shapiro	to LIBS.  Data structures may change and you'd be asking for a
139606f25ae9SGregory Neil Shapiro	core dump.
139706f25ae9SGregory Neil Shapiro
139806f25ae9SGregory Neil Shapiro	A number of problems have been reported regarding the Linux 2.2.0
139906f25ae9SGregory Neil Shapiro	kernel.  So far, these problems have been tracked down to syslog()
140013bd1963SGregory Neil Shapiro	and DNS resolution.  We believe the problem is with the poll()
140106f25ae9SGregory Neil Shapiro	implementation in the Linux 2.2.0 kernel and poll()-aware versions
140206f25ae9SGregory Neil Shapiro	of glib (at least up to 2.0.111).
140306f25ae9SGregory Neil Shapiro
140406f25ae9SGregory Neil Shapiroglibc
140506f25ae9SGregory Neil Shapiro	glibc 2.2.1 (and possibly other versions) changed the value of
140606f25ae9SGregory Neil Shapiro	__RES in resolv.h but failed to actually provide the IPv6 API
140706f25ae9SGregory Neil Shapiro	changes that the change implied.  Therefore, compiling with
140806f25ae9SGregory Neil Shapiro	-DNETINET6 fails.
140906f25ae9SGregory Neil Shapiro
141006f25ae9SGregory Neil Shapiro	Workarounds:
141106f25ae9SGregory Neil Shapiro	1) Compile without -DNETINET6
141240266059SGregory Neil Shapiro	2) Build against a real BIND 8.2.2 include/lib tree
141340266059SGregory Neil Shapiro	3) Wait for glibc to fix it
141440266059SGregory Neil Shapiro
141540266059SGregory Neil ShapiroAIX 4.X
141640266059SGregory Neil Shapiro	The AIX 4.X linker uses library paths specified during compilation
141740266059SGregory Neil Shapiro	using -L for run-time shared library searches.  Therefore, it is
141840266059SGregory Neil Shapiro	vital that relative and unsafe directory paths not be using when
141940266059SGregory Neil Shapiro	compiling sendmail.  Because of this danger, by default, compiles
142040266059SGregory Neil Shapiro	on AIX use the -blibpath option to limit shared libraries to
142140266059SGregory Neil Shapiro	/usr/lib and /lib.  If you need to allow more directories, such as
142240266059SGregory Neil Shapiro	/usr/local/lib, modify your devtools/Site/site.AIX.4.2.m4,
142340266059SGregory Neil Shapiro	site.AIX.4.3.m4, and/or site.AIX.4.x.m4 file(s) and set confLDOPTS
142440266059SGregory Neil Shapiro	appropriately.  For example:
142506f25ae9SGregory Neil Shapiro
142606f25ae9SGregory Neil Shapiro	define(`confLDOPTS', `-blibpath:/usr/lib:/lib:/usr/local/lib')
142706f25ae9SGregory Neil Shapiro
142806f25ae9SGregory Neil Shapiro	Be sure to only add (safe) system directories.
142906f25ae9SGregory Neil Shapiro
143042e5d165SGregory Neil Shapiro	The AIX version of GNU ld also exhibits this problem.  If you are
143106f25ae9SGregory Neil Shapiro	using that version, instead of -blibpath, use its -rpath option.
143206f25ae9SGregory Neil Shapiro	For example:
143306f25ae9SGregory Neil Shapiro
143406f25ae9SGregory Neil Shapiro	gcc -Wl,-rpath /usr/lib -Wl,-rpath /lib -Wl,-rpath /usr/local/lib
143506f25ae9SGregory Neil Shapiro
1436602a2b1bSGregory Neil ShapiroAIX 4.X	If the test program t-event (and most others) in libsm fails,
143706f25ae9SGregory Neil Shapiro	check your compiler settings.  It seems that the flags -qnoro or
143806f25ae9SGregory Neil Shapiro	-qnoroconst on some AIX versions trigger a compiler bug.  Check
1439c2aa98e2SPeter Wemm	your compiler settings or use cc instead of xlc.
1440c2aa98e2SPeter Wemm
1441c2aa98e2SPeter WemmAIX 4.0-4.2, maybe some AIX 4.3 versions
1442c2aa98e2SPeter Wemm	The AIX m4 implements a different mechanism for ifdef which is
1443c2aa98e2SPeter Wemm	inconsistent with other versions of m4.  Therefore, it will not
1444c2aa98e2SPeter Wemm	work properly with the sendmail Build architecture or m4
1445c2aa98e2SPeter Wemm	configuration method.  To work around this problem, please use
1446c2aa98e2SPeter Wemm	GNU m4 from ftp://ftp.gnu.org/pub/gnu/.
1447c2aa98e2SPeter Wemm	The problem seems to be solved in AIX 4.3.3 at least.
1448c2aa98e2SPeter Wemm
1449c2aa98e2SPeter WemmAIX 4.3.3
1450c2aa98e2SPeter Wemm	From: [email protected]
1451c2aa98e2SPeter Wemm	Date: Sun, 02 Jul 2000 03:58:02 -0400
1452c2aa98e2SPeter Wemm
1453c2aa98e2SPeter Wemm	Under AIX 4.3.3, after applying bos.adt.include 4.3.3.12 to close the
1454c2aa98e2SPeter Wemm	BIND 8.2.2 security holes, you can no longer build with  -DNETINET6
1455c2aa98e2SPeter Wemm	because they changed the value of __RES in resolv.h but failed to
1456c2aa98e2SPeter Wemm	actually provide the API changes that the change implied.
1457c2aa98e2SPeter Wemm
1458c2aa98e2SPeter Wemm	Workarounds:
1459c2aa98e2SPeter Wemm	1) Compile without -DNETINET6
1460c2aa98e2SPeter Wemm	2) Build against a real BIND 8.2.2 include/lib tree
1461c2aa98e2SPeter Wemm	3) Wait for IBM to fix it
1462c2aa98e2SPeter Wemm
146306f25ae9SGregory Neil ShapiroAIX 3.x
146406f25ae9SGregory Neil Shapiro	This version of sendmail does not support MB, MG, and MR resource
1465c2aa98e2SPeter Wemm	records, which are supported by AIX sendmail.
1466c2aa98e2SPeter Wemm
146706f25ae9SGregory Neil Shapiro	Several people have reported that the IBM-supplied named returns
1468c2aa98e2SPeter Wemm	fairly random results -- the named should be replaced.  It is not
1469c2aa98e2SPeter Wemm	necessary to replace the resolver, which will simplify installation.
1470c2aa98e2SPeter Wemm	A new BIND resolver can be found at http://www.isc.org/isc/.
1471c2aa98e2SPeter Wemm
1472c2aa98e2SPeter WemmAIX 3.1.x
1473c2aa98e2SPeter Wemm	The supplied load average code only works correctly for AIX 3.2.x.
1474c2aa98e2SPeter Wemm	For 3.1, use -DLA_TYPE=LA_SUBR and get the latest ``monitor''
1475c2aa98e2SPeter Wemm	package by Jussi Maki <[email protected]> from ftp.funet.fi in the
1476c2aa98e2SPeter Wemm	directory pub/unix/AIX/rs6000/monitor-1.12.tar.Z; use the loadavgd
1477c2aa98e2SPeter Wemm	daemon, and the getloadavg subroutine supplied with that package.
1478c2aa98e2SPeter Wemm	If you don't care about load average throttling, just turn off
1479c2aa98e2SPeter Wemm	load average checking using -DLA_TYPE=LA_ZERO.
1480c2aa98e2SPeter Wemm
1481c2aa98e2SPeter WemmRISC/os
1482c2aa98e2SPeter Wemm	RISC/os from MIPS is a merged AT&T/Berkeley system.  When you
1483c2aa98e2SPeter Wemm	compile on that platform you will get duplicate definitions
1484c2aa98e2SPeter Wemm	on many files.  You can ignore these.
1485c2aa98e2SPeter Wemm
1486c2aa98e2SPeter WemmSystem V Release 4 Based Systems
1487c2aa98e2SPeter Wemm	There is a single devtools OS that is intended for all SVR4-based
1488c2aa98e2SPeter Wemm	systems (built from devtools/OS/SVR4).  It defines __svr4__,
1489c2aa98e2SPeter Wemm	which is predefined by some compilers.  If your compiler already
1490c2aa98e2SPeter Wemm	defines this compile variable, you can delete the definition from
1491c2aa98e2SPeter Wemm	the generated Makefile or create a devtools/Site/site.config.m4
1492c2aa98e2SPeter Wemm	file.
1493c2aa98e2SPeter Wemm
1494c2aa98e2SPeter Wemm	It's been tested on Dell Issue 2.2.
1495c2aa98e2SPeter Wemm
1496c2aa98e2SPeter WemmDELL SVR4
1497c2aa98e2SPeter Wemm	Date:      Mon, 06 Dec 1993 10:42:29 EST
1498c2aa98e2SPeter Wemm	From: "Kimmo Suominen" <[email protected]>
1499c2aa98e2SPeter Wemm	Message-ID: <[email protected]>
1500c2aa98e2SPeter Wemm	To: [email protected]
1501c2aa98e2SPeter Wemm	Cc: [email protected]
1502c2aa98e2SPeter Wemm	Subject:   Notes for DELL SVR4
1503c2aa98e2SPeter Wemm
1504c2aa98e2SPeter Wemm	Eric,
1505c2aa98e2SPeter Wemm
1506c2aa98e2SPeter Wemm	Here are some notes for compiling Sendmail 8.6.4 on DELL SVR4.  I ran
1507c2aa98e2SPeter Wemm	across these things when helping out some people who contacted me by
1508c2aa98e2SPeter Wemm	e-mail.
1509c2aa98e2SPeter Wemm
1510c2aa98e2SPeter Wemm	1) Use gcc 2.4.5 (or later?).  Dell distributes gcc 2.1 with their
1511c2aa98e2SPeter Wemm	   Issue 2.2 Unix.  It is too old, and gives you problems with
1512c2aa98e2SPeter Wemm	   clock.c, because sigset_t won't get defined in <sys/signal.h>.
1513c2aa98e2SPeter Wemm	   This is due to a problematic protection rule in there, and is
1514c2aa98e2SPeter Wemm	   fixed with gcc 2.4.5.
1515c2aa98e2SPeter Wemm
1516c2aa98e2SPeter Wemm	2) If you don't use the new Berkeley DB (-DNEWDB), then you need
1517c2aa98e2SPeter Wemm	   to add "-lc -lucb" to the libraries to link with.  This is because
1518c2aa98e2SPeter Wemm	   the -ldbm distributed by Dell needs the bcopy, bcmp and bzero
1519c2aa98e2SPeter Wemm	   functions.  It is important that you specify both libraries in
1520c2aa98e2SPeter Wemm	   the given order to be sure you only get the BSTRING functions
1521c2aa98e2SPeter Wemm	   from the UCB library (and not the signal routines etc.).
1522c2aa98e2SPeter Wemm
1523c2aa98e2SPeter Wemm	3) Don't leave out "-lelf" even if compiling with "-lc -lucb".
1524c2aa98e2SPeter Wemm	   The UCB library also has another copy of the nlist routines,
1525c2aa98e2SPeter Wemm	   but we do want the ones from "-lelf".
1526c2aa98e2SPeter Wemm
1527c2aa98e2SPeter Wemm	If anyone needs a compiled gcc 2.4.5 and/or a ported DB library, they
1528c2aa98e2SPeter Wemm	can use anonymous ftp to fetch them from lut.fi in the /kim directory.
1529c2aa98e2SPeter Wemm	They are copies of what I use on grendel.lut.fi, and offering them
1530c2aa98e2SPeter Wemm	does not imply that I would also support them.  I have sent the DB
1531c2aa98e2SPeter Wemm	port for SVR4 back to Keith Bostic for inclusion in the official
1532c2aa98e2SPeter Wemm	distribution, but I haven't heard anything from him as of today.
1533c2aa98e2SPeter Wemm
1534c2aa98e2SPeter Wemm	- gcc-2.4.5-svr4.tar.gz	(gcc 2.4.5 and the corresponding libg++)
1535c2aa98e2SPeter Wemm	- db-1.72.tar.gz	(with source, objects and a installed copy)
1536c2aa98e2SPeter Wemm
1537c2aa98e2SPeter Wemm	Cheers
1538c2aa98e2SPeter Wemm	+ Kim
1539c2aa98e2SPeter Wemm	--
1540c2aa98e2SPeter Wemm	 *  [email protected]  *  SysVr4 enthusiast at GRENDEL.LUT.FI  *
1541c2aa98e2SPeter Wemm	*    [email protected]   *  Postmaster and Hostmaster at LUT.FI   *
1542c2aa98e2SPeter Wemm	 *    + 358 200 865 718    *  Unix area moderator at NIC.FUNET.FI  *
1543c2aa98e2SPeter Wemm
1544c2aa98e2SPeter WemmConvexOS 10.1 and below
1545c2aa98e2SPeter Wemm	In order to use the name server, you must create the file
1546c2aa98e2SPeter Wemm	/etc/use_nameserver.  If this file does not exist, the call
1547c2aa98e2SPeter Wemm	to res_init() will fail and you will have absolutely no
1548c2aa98e2SPeter Wemm	access to DNS, including MX records.
1549c2aa98e2SPeter Wemm
1550c2aa98e2SPeter WemmAmdahl UTS 2.1.5
1551605302a5SGregory Neil Shapiro	In order to get UTS to work, you will have to port BIND 4.9.
155213bd1963SGregory Neil Shapiro	The vendor's BIND is reported to be ``totally inadequate.''
1553605302a5SGregory Neil Shapiro	See sendmail/contrib/AmdahlUTS.patch for the patches necessary
1554605302a5SGregory Neil Shapiro	to get BIND 4.9 compiled for UTS.
155540266059SGregory Neil Shapiro
155640266059SGregory Neil ShapiroUnixWare
15578774250cSGregory Neil Shapiro	According to Alexander Kolbasov <[email protected]>,
15588774250cSGregory Neil Shapiro	the m4 on UnixWare 2.0 (still in Beta) will core dump on the
15598774250cSGregory Neil Shapiro	config files.  GNU m4 and the m4 from UnixWare 1.x both work.
15608774250cSGregory Neil Shapiro
15618774250cSGregory Neil Shapiro	According to Larry Rosenman <[email protected]>:
15628774250cSGregory Neil Shapiro
15638774250cSGregory Neil Shapiro		UnixWare 2.1.[23]'s m4 chokes (not obviously) when
15648774250cSGregory Neil Shapiro		processing the 8.9.0 cf files.
15658774250cSGregory Neil Shapiro
15668774250cSGregory Neil Shapiro		I had a LOCAL_RULE_0 that wound up AFTER the
15678774250cSGregory Neil Shapiro		SBasic_check_rcpt rules using the SCO supplied M4.
15688774250cSGregory Neil Shapiro		GNU M4 works fine.
15698774250cSGregory Neil Shapiro
157040266059SGregory Neil ShapiroUNICOS 8.0.3.4
157140266059SGregory Neil Shapiro	Some people have reported that the -O flag on UNICOS can cause
157240266059SGregory Neil Shapiro	problems.  You may want to turn this off if you have problems
157340266059SGregory Neil Shapiro	running sendmail.  Reported by Jerry G. DeLapp <[email protected]>.
157440266059SGregory Neil Shapiro
157540266059SGregory Neil ShapiroDarwin/Mac OS X (10.X.X)
157640266059SGregory Neil Shapiro	The linker errors produced regarding getopt() and its associated
157740266059SGregory Neil Shapiro	variables can safely be ignored.
157840266059SGregory Neil Shapiro
157940266059SGregory Neil Shapiro	From Mike Zimmerman <[email protected]>:
158040266059SGregory Neil Shapiro
158140266059SGregory Neil Shapiro	From scratch here is what Darwin users need to do to the standard
158240266059SGregory Neil Shapiro	10.0.0, 10.0.1 install to get sendmail working.
158340266059SGregory Neil Shapiro	From http://www.macosx.com/forums/showthread.php?s=6dac0e9e1f3fd118a4870a8a9b559491&threadid=2242:
158440266059SGregory Neil Shapiro	1. chmod g-w / /private /private/etc
158540266059SGregory Neil Shapiro	2. Properly set HOSTNAME in /etc/hostconfig to your FQDN:
158640266059SGregory Neil Shapiro	   HOSTNAME=-my.domain.com-
158740266059SGregory Neil Shapiro	3. Edit /etc/rc.boot:
158840266059SGregory Neil Shapiro	   hostname my.domain.com
158940266059SGregory Neil Shapiro	   domainname domain.com
159040266059SGregory Neil Shapiro	4. Edit /System/Library/StartupItems/Sendmail/Sendmail:
159140266059SGregory Neil Shapiro	   Remove the "&" after the sendmail command:
1592739ac4d4SGregory Neil Shapiro	   /usr/sbin/sendmail -bd -q1h
1593739ac4d4SGregory Neil Shapiro
1594739ac4d4SGregory Neil Shapiro	From Carsten Klapp <[email protected]>:
1595739ac4d4SGregory Neil Shapiro
1596739ac4d4SGregory Neil Shapiro	The easiest workaround is to remove the group-writable permission
1597739ac4d4SGregory Neil Shapiro	for the root directory and the symbolic /etc inherits this
1598739ac4d4SGregory Neil Shapiro	change. While this does fix sendmail, the unfortunate side-effect
1599739ac4d4SGregory Neil Shapiro	is the OS X admin will no longer be able to manipulate icons in the
1600739ac4d4SGregory Neil Shapiro	top level of the Startup disk unless logged into the GUI as the
1601739ac4d4SGregory Neil Shapiro	superuser.
1602739ac4d4SGregory Neil Shapiro
1603739ac4d4SGregory Neil Shapiro	In applying the alternate workaround, care must be taken while
1604739ac4d4SGregory Neil Shapiro	swapping the symlink /etc with the directory /private/etc. In all
1605739ac4d4SGregory Neil Shapiro	likelihood any admin who is concerned with this sendmail error has
1606739ac4d4SGregory Neil Shapiro	enough experience to not accidentally harm anything in the process.
1607739ac4d4SGregory Neil Shapiro
1608739ac4d4SGregory Neil Shapiro	a. Swap the /etc symlink with /private/etc (as superuser):
1609739ac4d4SGregory Neil Shapiro	   rm /etc
1610739ac4d4SGregory Neil Shapiro	   mv /private/etc /etc
1611739ac4d4SGregory Neil Shapiro	   ln -s /etc /private/etc
1612739ac4d4SGregory Neil Shapiro
1613739ac4d4SGregory Neil Shapiro	b. Set / to group unwritable (as superuser):
1614c2aa98e2SPeter Wemm	   chmod g-w /
1615c2aa98e2SPeter Wemm
1616c2aa98e2SPeter WemmDarwin/Mac OS X (10.1.5)
1617c2aa98e2SPeter Wemm	Apple's upgrade to sendmail 8.12 is incorrectly configured.  You
1618c2aa98e2SPeter Wemm	will need to manually fix it up by doing the following:
1619c2aa98e2SPeter Wemm
1620c2aa98e2SPeter Wemm	1. chown smmsp:smmsp /var/spool/clientmqueue
1621c2aa98e2SPeter Wemm	2. chmod 2770 /var/spool/clientmqueue
1622c2aa98e2SPeter Wemm	3. chgrp smmsp /usr/sbin/sendmail
1623c2aa98e2SPeter Wemm	4. chmod g+s /usr/sbin/sendmail
1624c2aa98e2SPeter Wemm
1625c2aa98e2SPeter Wemm	From Daniel J. Luke <[email protected]>:
1626c2aa98e2SPeter Wemm
1627c2aa98e2SPeter Wemm	It appears that setting the sendmail.cf property in
1628c2aa98e2SPeter Wemm	/locations/sendmail in NetInfo on Mac OS X 10.1.5 with sendmail
1629c2aa98e2SPeter Wemm	8.12.4 causes 'bad things' to happen.
1630c2aa98e2SPeter Wemm
163106f25ae9SGregory Neil Shapiro	Specifically sendmail instances that should be getting their config
163206f25ae9SGregory Neil Shapiro	from /etc/mail/submit.cf don't (so mail/mutt/perl scripts which
163306f25ae9SGregory Neil Shapiro	open pipes to sendmail stop working as sendmail tries to write to
163406f25ae9SGregory Neil Shapiro	/var/spool/mqueue and cannot as sendmail is no longer suid root).
163506f25ae9SGregory Neil Shapiro
163606f25ae9SGregory Neil Shapiro	Removing the entry from NetInfo fixes this problem.
163706f25ae9SGregory Neil Shapiro
163806f25ae9SGregory Neil ShapiroGNU getopt
163906f25ae9SGregory Neil Shapiro	I'm told that GNU getopt has a problem in that it gets confused
164006f25ae9SGregory Neil Shapiro	by the double call.  Use the version in conf.c instead.
164106f25ae9SGregory Neil Shapiro
164206f25ae9SGregory Neil ShapiroBIND 4.9.2 and Ultrix
164306f25ae9SGregory Neil Shapiro	If you are running on Ultrix, be sure you read conf/Info.Ultrix
164406f25ae9SGregory Neil Shapiro	in the BIND distribution very carefully -- there is information
1645c2aa98e2SPeter Wemm	in there that you need to know in order to avoid errors of the
1646c2aa98e2SPeter Wemm	form:
1647c2aa98e2SPeter Wemm
1648c2aa98e2SPeter Wemm		/lib/libc.a(gethostent.o): sethostent: multiply defined
1649c2aa98e2SPeter Wemm		/lib/libc.a(gethostent.o): endhostent: multiply defined
1650c2aa98e2SPeter Wemm		/lib/libc.a(gethostent.o): gethostbyname: multiply defined
1651c2aa98e2SPeter Wemm		/lib/libc.a(gethostent.o): gethostbyaddr: multiply defined
1652c2aa98e2SPeter Wemm
1653c2aa98e2SPeter Wemm	during the link stage.
1654c2aa98e2SPeter Wemm
1655c2aa98e2SPeter WemmBIND 8.X
1656c2aa98e2SPeter Wemm	BIND 8.X returns HOST_NOT_FOUND instead of TRY_AGAIN on temporary
1657c2aa98e2SPeter Wemm	DNS failures when trying to find the hostname associated with an IP
1658c2aa98e2SPeter Wemm	address (gethostbyaddr()).  This can cause problems as
1659c2aa98e2SPeter Wemm	$&{client_name} based lookups in class R ($=R) and the access
1660c2aa98e2SPeter Wemm	database won't succeed.
1661c2aa98e2SPeter Wemm
1662c2aa98e2SPeter Wemm	This will be fixed in BIND 8.2.1.  For earlier versions, this can
1663c2aa98e2SPeter Wemm	be fixed by making "dns" the last name service queried for host
1664c2aa98e2SPeter Wemm	resolution in /etc/irs.conf:
1665c2aa98e2SPeter Wemm
1666c2aa98e2SPeter Wemm		hosts local continue
1667c2aa98e2SPeter Wemm		hosts dns
1668c2aa98e2SPeter Wemm
1669c2aa98e2SPeter Wemmstrtoul
1670c2aa98e2SPeter Wemm	Some compilers (notably gcc) claim to be ANSI C but do not
1671c2aa98e2SPeter Wemm	include the ANSI-required routine "strtoul".  If your compiler
1672c2aa98e2SPeter Wemm	has this problem, you will get an error in srvrsmtp.c on the
167306f25ae9SGregory Neil Shapiro	code:
167406f25ae9SGregory Neil Shapiro
167506f25ae9SGregory Neil Shapiro	  # ifdef defined(__STDC__) && !defined(BROKEN_ANSI_LIBRARY)
167606f25ae9SGregory Neil Shapiro			e->e_msgsize = strtoul(vp, (char **) NULL, 10);
167742e5d165SGregory Neil Shapiro	  # else
167842e5d165SGregory Neil Shapiro			e->e_msgsize = strtol(vp, (char **) NULL, 10);
1679c2aa98e2SPeter Wemm	  # endif
168006f25ae9SGregory Neil Shapiro
168106f25ae9SGregory Neil Shapiro	You can use -DBROKEN_ANSI_LIBRARY to get around this problem.
1682a7ec597cSGregory Neil Shapiro
168340266059SGregory Neil ShapiroListproc 6.0c
168440266059SGregory Neil Shapiro	Date: 23 Sep 1995 23:56:07 GMT
168540266059SGregory Neil Shapiro	Message-ID: <[email protected]>
168640266059SGregory Neil Shapiro	From: [email protected] (Alan Schwartz)
168740266059SGregory Neil Shapiro	Subject: Listproc 6.0c + Sendmail 8.7 [Helpful hint]
168806f25ae9SGregory Neil Shapiro
168906f25ae9SGregory Neil Shapiro	Just upgraded to sendmail 8.7, and discovered that listproc 6.0c
16902e43090eSPeter Wemm	breaks, because it, by default, sends a blank "HELO" rather than
1691c2aa98e2SPeter Wemm	a "HELO hostname" when using the 'system' or 'telnet' mail method.
1692c2aa98e2SPeter Wemm
1693c2aa98e2SPeter Wemm	The fix is to include -DZMAILER in the compilation, which will
1694c2aa98e2SPeter Wemm	cause it to use "HELO hostname" (which Z-mail apparently requires
1695c2aa98e2SPeter Wemm	as well. :)
1696c2aa98e2SPeter Wemm
1697c2aa98e2SPeter WemmPH
169806f25ae9SGregory Neil Shapiro	PH support is provided by Mark Roth <[email protected]>.  The map is
1699c2aa98e2SPeter Wemm	described at http://www-dev.cites.uiuc.edu/sendmail/ .
1700c2aa98e2SPeter Wemm
1701c2aa98e2SPeter Wemm	NOTE: The "spacedname" pseudo-field which was used by earlier
1702c2aa98e2SPeter Wemm	versions of the PH map code is no longer supported!  See the URL
1703c2aa98e2SPeter Wemm	listed above for more information.
1704c2aa98e2SPeter Wemm
1705c2aa98e2SPeter Wemm	Please contact Mark Roth for support and questions regarding the
1706c2aa98e2SPeter Wemm	map.
1707c2aa98e2SPeter Wemm
1708c2aa98e2SPeter WemmTCP Wrappers
1709c2aa98e2SPeter Wemm	If you are using -DTCPWRAPPERS to get TCP Wrappers support you will
1710c2aa98e2SPeter Wemm	also need to install libwrap.a and modify your site.config.m4 file
1711c2aa98e2SPeter Wemm	or the generated Makefile to include -lwrap in the LIBS line
1712c2aa98e2SPeter Wemm	(make sure that INCDIRS and LIBDIRS point to where the tcpd.h and
1713c2aa98e2SPeter Wemm	libwrap.a can be found).
1714c2aa98e2SPeter Wemm
1715c2aa98e2SPeter Wemm	TCP Wrappers is available at ftp://ftp.porcupine.org/pub/security/.
1716c2aa98e2SPeter Wemm
1717c2aa98e2SPeter Wemm	If you have alternate MX sites for your site, be sure that all of
1718c2aa98e2SPeter Wemm	your MX sites reject the same set of hosts.  If not, a bad guy whom
1719c2aa98e2SPeter Wemm	you reject will connect to your site, fail, and move on to the next
1720c2aa98e2SPeter Wemm	MX site, which will accept the mail for you and forward it on to you.
1721c2aa98e2SPeter Wemm
1722c2aa98e2SPeter WemmRegular Expressions (MAP_REGEX)
1723af9557fdSGregory Neil Shapiro	If sendmail linking fails with:
1724af9557fdSGregory Neil Shapiro
1725af9557fdSGregory Neil Shapiro		undefined reference to 'regcomp'
1726af9557fdSGregory Neil Shapiro
1727af9557fdSGregory Neil Shapiro	or sendmail gives an error about a regular expression with:
1728af9557fdSGregory Neil Shapiro
1729af9557fdSGregory Neil Shapiro		pattern-compile-error: : Operation not applicable
1730af9557fdSGregory Neil Shapiro
1731af9557fdSGregory Neil Shapiro	Your libc does not include a running version of POSIX-regex.  Use
1732af9557fdSGregory Neil Shapiro	librx or regex.o from the GNU Free Software Foundation,
1733af9557fdSGregory Neil Shapiro	ftp://ftp.gnu.org/pub/gnu/rx-?.?.tar.gz or
1734af9557fdSGregory Neil Shapiro	ftp://ftp.gnu.org/pub/gnu/regex-?.?.tar.gz.
1735c2aa98e2SPeter Wemm	You can also use the regex-lib by Henry Spencer,
1736c2aa98e2SPeter Wemm	ftp://ftp.funet.fi/pub/languages/C/spencer/regex.shar.gz
1737c2aa98e2SPeter Wemm	Make sure, your compiler reads regex.h from the distribution,
1738c2aa98e2SPeter Wemm	not from /usr/include, otherwise sendmail will dump a core.
1739c2aa98e2SPeter Wemm
174006f25ae9SGregory Neil ShapiroFedora Core 5, 64 bit version
174106f25ae9SGregory Neil Shapiro	If the ld stage fails with undefined functions like
1742c2aa98e2SPeter Wemm	__res_querydomain, __dn_expand
174313058a91SGregory Neil Shapiro	then add these lines to devtools/Site/site.config.m4
1744c2aa98e2SPeter Wemm
1745c2aa98e2SPeter Wemm	APPENDDEF(`confLIBDIRS', `-L/usr/lib64')
1746c2aa98e2SPeter Wemm	APPENDDEF(`confINCDIRS', `-I/usr/include/bind9')
1747c2aa98e2SPeter Wemm
1748c2aa98e2SPeter Wemm	and rebuild (sh ./Build -c).
1749c2aa98e2SPeter Wemm
1750c2aa98e2SPeter Wemm	Problem noted by Daniel Krones, solution suggested by
1751c2aa98e2SPeter Wemm	Anthony Howe.
1752c2aa98e2SPeter Wemm
1753c2aa98e2SPeter Wemm
1754c2aa98e2SPeter Wemm+--------------+
1755c2aa98e2SPeter Wemm| MANUAL PAGES |
1756c2aa98e2SPeter Wemm+--------------+
1757c2aa98e2SPeter Wemm
1758c2aa98e2SPeter WemmThe manual pages have been written against the -man macros, and
1759c2aa98e2SPeter Wemmshould format correctly with any reasonable *roff.
1760c2aa98e2SPeter Wemm
1761c2aa98e2SPeter Wemm
1762c2aa98e2SPeter Wemm+-----------------+
1763c2aa98e2SPeter Wemm| DEBUGGING HOOKS |
1764c2aa98e2SPeter Wemm+-----------------+
1765c2aa98e2SPeter Wemm
1766c2aa98e2SPeter WemmAs of 8.6.5, sendmail daemons will catch a SIGUSR1 signal and log
1767c2aa98e2SPeter Wemmsome debugging output (logged at LOG_DEBUG severity).  The
1768c2aa98e2SPeter Wemminformation dumped is:
1769c2aa98e2SPeter Wemm
1770c2aa98e2SPeter Wemm * The value of the $j macro.
1771c2aa98e2SPeter Wemm * A warning if $j is not in the set $=w.
1772c2aa98e2SPeter Wemm * A list of the open file descriptors.
1773c2aa98e2SPeter Wemm * The contents of the connection cache.
1774c2aa98e2SPeter Wemm * If ruleset 89 is defined, it is evaluated and the results printed.
1775c2aa98e2SPeter Wemm
177606f25ae9SGregory Neil ShapiroThis allows you to get information regarding the runtime state of the
177706f25ae9SGregory Neil Shapirodaemon on the fly.  This should not be done too frequently, since
1778c2aa98e2SPeter Wemmthe process of rewriting may lose memory which will not be recovered.
177906f25ae9SGregory Neil ShapiroAlso, ruleset 89 may call non-reentrant routines, so there is a small
1780c2aa98e2SPeter Wemmnon-zero probability that this will cause other problems.  It is
1781c2aa98e2SPeter Wemmreally only for debugging serious problems.
1782c2aa98e2SPeter Wemm
1783c2aa98e2SPeter WemmA typical formulation of ruleset 89 would be:
178406f25ae9SGregory Neil Shapiro
1785c2aa98e2SPeter Wemm	R$*		$@ $>0 some test address
178640266059SGregory Neil Shapiro
178740266059SGregory Neil Shapiro
178840266059SGregory Neil Shapiro+-----------------------------+
178940266059SGregory Neil Shapiro| DESCRIPTION OF SOURCE FILES |
1790c2aa98e2SPeter Wemm+-----------------------------+
1791c2aa98e2SPeter Wemm
1792c2aa98e2SPeter WemmThe following list describes the files in this directory:
1793c2aa98e2SPeter Wemm
1794c2aa98e2SPeter WemmBuild		Shell script for building sendmail.
1795c2aa98e2SPeter WemmMakefile	A convenience for calling ./Build.
1796c2aa98e2SPeter WemmMakefile.m4	A template for constructing a makefile based on the
1797c2aa98e2SPeter Wemm		information in the devtools directory.
179840266059SGregory Neil ShapiroREADME		This file.
1799c2aa98e2SPeter WemmTRACEFLAGS	My own personal list of the trace flags -- not guaranteed
180040266059SGregory Neil Shapiro		to be particularly up to date.
1801c2aa98e2SPeter Wemmalias.c		Does name aliasing in all forms.
1802c2aa98e2SPeter Wemmaliases.5	Man page describing the format of the aliases file.
1803c2aa98e2SPeter Wemmarpadate.c	A subroutine which creates ARPANET standard dates.
1804c2aa98e2SPeter Wemmbf.c		Routines to implement memory-buffered file system using
180506f25ae9SGregory Neil Shapiro		hooks provided by libsm now (formerly Torek stdio library).
1806c2aa98e2SPeter Wemmbf.h		Buffered file I/O function declarations and
180706f25ae9SGregory Neil Shapiro		data structure and function declarations for bf.c.
1808c2aa98e2SPeter Wemmcollect.c	The routine that actually reads the mail into a temp
1809c2aa98e2SPeter Wemm		file.  It also does a certain amount of parsing of
181006f25ae9SGregory Neil Shapiro		the header, etc.
1811c2aa98e2SPeter Wemmconf.c		The configuration file.  This contains information
1812c2aa98e2SPeter Wemm		that is presumed to be quite static and non-
181306f25ae9SGregory Neil Shapiro		controversial, or code compiled in for efficiency
1814c2aa98e2SPeter Wemm		reasons.  Most of the configuration is in sendmail.cf.
1815c2aa98e2SPeter Wemmconf.h		Configuration that must be known everywhere.
181606f25ae9SGregory Neil Shapirocontrol.c	Routines to implement control socket.
1817c2aa98e2SPeter Wemmconvtime.c	A routine to sanely process times.
181806f25ae9SGregory Neil Shapirodaemon.c	Routines to implement daemon mode.
1819c2aa98e2SPeter Wemmdeliver.c	Routines to deliver mail.
1820c2aa98e2SPeter Wemmdomain.c	Routines that interface with DNS (the Domain Name
1821c2aa98e2SPeter Wemm		System).
1822c2aa98e2SPeter Wemmenvelope.c	Routines to manipulate the envelope structure.
1823c2aa98e2SPeter Wemmerr.c		Routines to print error messages.
182440266059SGregory Neil Shapiroheaders.c	Routines to process message headers.
1825c2aa98e2SPeter Wemmhelpfile	An example helpfile for the SMTP HELP command and -bt mode.
182606f25ae9SGregory Neil Shapiromacro.c		The macro expander.  This is used internally to
1827c2aa98e2SPeter Wemm		insert information from the configuration file.
182840266059SGregory Neil Shapiromailq.1		Man page for the mailq command.
182906f25ae9SGregory Neil Shapiromain.c		The main routine to sendmail.  This file also
183006f25ae9SGregory Neil Shapiro		contains some miscellaneous routines.
183140266059SGregory Neil Shapiromakesendmail	A convenience for calling ./Build.
183240266059SGregory Neil Shapiromap.c		Support for database maps.
1833c2aa98e2SPeter Wemmmci.c		Routines that handle mail connection information caching.
1834c2aa98e2SPeter Wemmmilter.c	MTA portions of the mail filter API.
1835c2aa98e2SPeter Wemmmime.c		MIME conversion routines.
183606f25ae9SGregory Neil Shapironewaliases.1	Man page for the newaliases command.
1837c2aa98e2SPeter Wemmparseaddr.c	The routines which do address parsing.
1838c2aa98e2SPeter Wemmqueue.c		Routines to implement message queueing.
183906f25ae9SGregory Neil Shapiroreadcf.c	The routine that reads the configuration file and
184006f25ae9SGregory Neil Shapiro		translates it to internal form.
184106f25ae9SGregory Neil Shapirorecipient.c	Routines that manipulate the recipient list.
184240266059SGregory Neil Shapirosasl.c		Routines to interact with Cyrys-SASL.
1843c2aa98e2SPeter Wemmsavemail.c	Routines which save the letter on processing errors.
1844c2aa98e2SPeter Wemmsendmail.8	Man page for the sendmail command.
1845c2aa98e2SPeter Wemmsendmail.h	Main header file for sendmail.
1846c2aa98e2SPeter Wemmsfsasl.c	I/O interface between SASL/TLS and the MTA.
1847c2aa98e2SPeter Wemmsfsasl.h	Header file for sfsasl.c.
1848c2aa98e2SPeter Wemmshmticklib.c	Routines for shared memory counters.
184906f25ae9SGregory Neil Shapirosm_resolve.c	Routines for DNS lookups (for DNS map type).
1850c2aa98e2SPeter Wemmsm_resolve.h	Header file for sm_resolve.c.
1851*95697f42SGregory Neil Shapirosrvrsmtp.c	Routines to implement server SMTP.
1852stab.c		Routines to manage the symbol table.
1853stats.c		Routines to collect and post the statistics.
1854statusd_shm.h	Data structure and function declarations for shmticklib.c.
1855sysexits.c	List of error messages associated with error codes
1856		in sysexits.h.
1857sysexits.h	List of error codes for systems that lack their own.
1858timers.c	Routines to provide microtimers.
1859timers.h	Data structure and function declarations for timers.h.
1860tls.c		Routines for TLS.
1861trace.c		The trace package.  These routines allow setting and
1862		testing of trace flags with a high granularity.
1863udb.c		The user database interface module.
1864usersmtp.c	Routines to implement user SMTP.
1865util.c		Some general purpose routines used by sendmail.
1866version.c	The version number and information about this
1867		version of sendmail.
1868
1869(Version $Revision: 8.393 $, last update $Date: 2013-11-22 20:51:54 $ )
1870