xref: /freebsd/contrib/sendmail/README (revision 5b0945b57059d1cde0831d3afea7ec56c7d79508)
1c2aa98e2SPeter Wemm
2c2aa98e2SPeter Wemm			SENDMAIL RELEASE 8
3c2aa98e2SPeter Wemm
45dd76dd0SGregory Neil ShapiroThis directory has the latest sendmail(TM) software from Proofpoint, Inc.
5c2aa98e2SPeter Wemm
64e4196cbSGregory Neil ShapiroReport any bugs to sendmail-bugs-YYYY@support.sendmail.org
74e4196cbSGregory Neil Shapirowhere YYYY is the current year, e.g., 2005.
8c2aa98e2SPeter Wemm
94e4196cbSGregory Neil ShapiroThere is a web site at http://www.sendmail.org/ -- see that site for
10c2aa98e2SPeter Wemmthe latest updates.
11c2aa98e2SPeter Wemm
1206f25ae9SGregory Neil Shapiro+--------------+
1306f25ae9SGregory Neil Shapiro| INTRODUCTION |
1406f25ae9SGregory Neil Shapiro+--------------+
1506f25ae9SGregory Neil Shapiro
164e4196cbSGregory Neil Shapiro0. The vast majority of queries about sendmail are answered in the
174e4196cbSGregory Neil Shapiro   README files noted below.
1806f25ae9SGregory Neil Shapiro
1906f25ae9SGregory Neil Shapiro1. Read this README file, especially this introduction, and the DIRECTORY
2006f25ae9SGregory Neil Shapiro   PERMISSIONS sections.
2106f25ae9SGregory Neil Shapiro
2213058a91SGregory Neil Shapiro2. Read the INSTALL file in this directory.
2313058a91SGregory Neil Shapiro
2413058a91SGregory Neil Shapiro3. Read sendmail/README, especially:
2506f25ae9SGregory Neil Shapiro   a. the introduction
2606f25ae9SGregory Neil Shapiro   b. the BUILDING SENDMAIL section
2706f25ae9SGregory Neil Shapiro   c. the relevant part(s) of the OPERATING SYSTEM AND COMPILE QUIRKS section
2806f25ae9SGregory Neil Shapiro
2906f25ae9SGregory Neil Shapiro   You may also find these useful:
3006f25ae9SGregory Neil Shapiro
3140266059SGregory Neil Shapiro   d. sendmail/SECURITY
3240266059SGregory Neil Shapiro   e. devtools/README
3340266059SGregory Neil Shapiro   f. devtools/Site/README
3440266059SGregory Neil Shapiro   g. libmilter/README
3540266059SGregory Neil Shapiro   h. mail.local/README
3640266059SGregory Neil Shapiro   i. smrsh/README
3706f25ae9SGregory Neil Shapiro
3813058a91SGregory Neil Shapiro4. Read cf/README.
39c2aa98e2SPeter Wemm
405dd76dd0SGregory Neil ShapiroSendmail is a trademark of Proofpoint, Inc.
419bd497b8SGregory Neil ShapiroUS Patent Numbers 6865671, 6986037.
42c2aa98e2SPeter Wemm
43c2aa98e2SPeter Wemm+-----------------------+
44c2aa98e2SPeter Wemm| DIRECTORY PERMISSIONS |
45c2aa98e2SPeter Wemm+-----------------------+
46c2aa98e2SPeter Wemm
47c2aa98e2SPeter WemmSendmail often gets blamed for many problems that are actually the
48c2aa98e2SPeter Wemmresult of other problems, such as overly permissive modes on directories.
49c2aa98e2SPeter WemmFor this reason, sendmail checks the modes on system directories and
5006f25ae9SGregory Neil Shapirofiles to determine if they can be trusted.  For sendmail to run without
5106f25ae9SGregory Neil Shapirocomplaining, you MUST execute the following command:
52c2aa98e2SPeter Wemm
53c2aa98e2SPeter Wemm	chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
54c2aa98e2SPeter Wemm	chown root / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
55c2aa98e2SPeter Wemm
56c2aa98e2SPeter WemmYou will probably have to tweak this for your environment (for example,
57c2aa98e2SPeter Wemmsome systems put the spool directory into /usr/spool instead of
5806f25ae9SGregory Neil Shapiro/var/spool).  If you set the RunAsUser option in your sendmail.cf, the
5906f25ae9SGregory Neil Shapiro/var/spool/mqueue directory will have to be owned by the RunAsUser user.
6006f25ae9SGregory Neil ShapiroAs a general rule, after you have compiled sendmail, run the command
61c2aa98e2SPeter Wemm
62c2aa98e2SPeter Wemm	sendmail -v -bi
63c2aa98e2SPeter Wemm
64c2aa98e2SPeter Wemmto initialize the alias database.  If it gives messages such as
65c2aa98e2SPeter Wemm
66c2aa98e2SPeter Wemm	WARNING: writable directory /etc
6706f25ae9SGregory Neil Shapiro	WARNING: writable directory /var/spool/mqueue
68c2aa98e2SPeter Wemm
69c2aa98e2SPeter Wemmthen the directories listed have inappropriate write permissions and
70c2aa98e2SPeter Wemmshould be secured to avoid various possible security attacks.
71c2aa98e2SPeter Wemm
72c2aa98e2SPeter WemmBeginning with sendmail 8.9, these checks have become more strict to
73c2aa98e2SPeter Wemmprevent users from being able to access files they would normally not
74c2aa98e2SPeter Wemmbe able to read.  In particular, .forward and :include: files in unsafe
75c2aa98e2SPeter Wemmdirectory paths (directory paths which are group or world writable) will
76c2aa98e2SPeter Wemmno longer be allowed.  This would mean that if user joe's home directory
77c2aa98e2SPeter Wemmwas writable by group staff, sendmail would not use his .forward file.
78c2aa98e2SPeter WemmThis behavior can be altered, at the expense of system security, by
79c2aa98e2SPeter Wemmsetting the DontBlameSendmail option.  For example, to allow .forward
80c2aa98e2SPeter Wemmfiles in group writable directories:
81c2aa98e2SPeter Wemm
82c2aa98e2SPeter Wemm	O DontBlameSendmail=forwardfileingroupwritabledirpath
83c2aa98e2SPeter Wemm
84c2aa98e2SPeter WemmOr to allow them in both group and world writable directories:
85c2aa98e2SPeter Wemm
86c2aa98e2SPeter Wemm	O DontBlameSendmail=forwardfileinunsafedirpath
87c2aa98e2SPeter Wemm
88c2aa98e2SPeter WemmItems from these unsafe .forward and :include: files will be marked
89c2aa98e2SPeter Wemmas unsafe addresses -- the items can not be deliveries to files or
90c2aa98e2SPeter Wemmprograms.  This behavior can also be altered via DontBlameSendmail:
91c2aa98e2SPeter Wemm
92c2aa98e2SPeter Wemm	O DontBlameSendmail=forwardfileinunsafedirpath,
93c2aa98e2SPeter Wemm		forwardfileinunsafedirpathsafe
94c2aa98e2SPeter Wemm
95c2aa98e2SPeter WemmThe first flag allows the .forward file to be read, the second allows
96c2aa98e2SPeter Wemmthe items in the file to be marked as safe for file and program
97c2aa98e2SPeter Wemmdelivery.
98c2aa98e2SPeter Wemm
99c2aa98e2SPeter WemmOther files affected by this strengthened security include class
10040266059SGregory Neil Shapirofiles (i.e., Fw /etc/mail/local-host-names), persistent host status files,
10106f25ae9SGregory Neil Shapiroand the files specified by the ErrorHeader and HelpFile options.  Similar
102c2aa98e2SPeter WemmDontBlameSendmail flags are available for the class, ErrorHeader, and
103c2aa98e2SPeter WemmHelpFile files.
104c2aa98e2SPeter Wemm
105c2aa98e2SPeter WemmIf you have an unsafe configuration of .forward and :include:
106c2aa98e2SPeter Wemmfiles, you can make it safe by finding all such files, and doing
107c2aa98e2SPeter Wemma "chmod go-w $FILE" on each.  Also, do a "chmod go-w $DIR" for
108c2aa98e2SPeter Wemmeach directory in the file's path.
109c2aa98e2SPeter Wemm
110c2aa98e2SPeter Wemm
11194c01205SGregory Neil Shapiro+--------------------------+
11294c01205SGregory Neil Shapiro| FILE AND MAP PERMISSIONS |
11394c01205SGregory Neil Shapiro+--------------------------+
11494c01205SGregory Neil Shapiro
11594c01205SGregory Neil ShapiroAny application which uses either flock() or fcntl() style locking or
11694c01205SGregory Neil Shapiroother APIs that use one of these locking methods (such as open() with
11794c01205SGregory Neil ShapiroO_EXLOCK and O_SHLOCK) on files readable by other local untrusted users
11894c01205SGregory Neil Shapiromay be susceptible to local denial of service attacks.
11994c01205SGregory Neil Shapiro
12094c01205SGregory Neil ShapiroFile locking is used throughout sendmail for a variety of files
12194c01205SGregory Neil Shapiroincluding aliases, maps, statistics, and the pid file.  Any user who
12294c01205SGregory Neil Shapirocan open one of these files can prevent sendmail or it's associated
12394c01205SGregory Neil Shapiroutilities, e.g., makemap or newaliases, from operating properly.  This
12494c01205SGregory Neil Shapirocan also affect sendmail's ability to update status files such as
12594c01205SGregory Neil Shapirostatistics files.  For system which use flock() for file locking, a
12694c01205SGregory Neil Shapirouser's ability to obtain an exclusive lock prevents other sendmail
12794c01205SGregory Neil Shapiroprocesses from reading certain files such as alias or map databases.
12894c01205SGregory Neil Shapiro
12994c01205SGregory Neil ShapiroA workaround for this problem is to protect all sendmail files such
13094c01205SGregory Neil Shapirothat they can't be opened by untrusted users.  As long as users can
13194c01205SGregory Neil Shapironot open a file, they can not lock it.  Since queue files should
13294c01205SGregory Neil Shapiroalready have restricted permissions, the only files that need
13394c01205SGregory Neil Shapiroadjustment are alias, map, statistics, and pid files.  These files
13494c01205SGregory Neil Shapiroshould be owned by root or the trusted user specified in the
13594c01205SGregory Neil ShapiroTrustedUser option.  Changing the permissions to be only readable and
13694c01205SGregory Neil Shapirowritable by that user is sufficient to avoid the denial of service.
13794c01205SGregory Neil ShapiroFor example, depending on the paths you use, these commands would be
13894c01205SGregory Neil Shapiroused:
13994c01205SGregory Neil Shapiro
14094c01205SGregory Neil Shapiro	chmod 0640 /etc/mail/aliases /etc/mail/aliases.{db,pag,dir}
14194c01205SGregory Neil Shapiro	chmod 0640 /etc/mail/*.{db,pag,dir}
14294c01205SGregory Neil Shapiro	chmod 0640 /etc/mail/statistics /var/log/sendmail.st
14394c01205SGregory Neil Shapiro	chmod 0600 /var/run/sendmail.pid /etc/mail/sendmail.pid
14494c01205SGregory Neil Shapiro
14594c01205SGregory Neil ShapiroIf the permissions 0640 are used, be sure that only trusted users belong
14694c01205SGregory Neil Shapiroto the group assigned to those files.  Otherwise, files should not even
14794c01205SGregory Neil Shapirobe group readable.  As of sendmail 8.12.4, the permissions shown above
14894c01205SGregory Neil Shapiroare the default permissions for newly created files.
14994c01205SGregory Neil Shapiro
15094c01205SGregory Neil ShapiroNote that the denial of service on the plain text aliases file
15194c01205SGregory Neil Shapiro(/etc/mail/aliases) only prevents newaliases from rebuilding the
15294c01205SGregory Neil Shapiroaliases file.  The same is true for the database files on systems which
15394c01205SGregory Neil Shapirouse fcntl() style locking.  Since it does not interfere with normal
15494c01205SGregory Neil Shapirooperations, sites may chose to leave these files readable.  Also, it is
15594c01205SGregory Neil Shapironot necessary to protect the text files associated with map databases
15694c01205SGregory Neil Shapiroas makemap does not lock those files.
15794c01205SGregory Neil Shapiro
15894c01205SGregory Neil Shapiro
159c2aa98e2SPeter Wemm+-----------------------+
160c2aa98e2SPeter Wemm| RELATED DOCUMENTATION |
161c2aa98e2SPeter Wemm+-----------------------+
162c2aa98e2SPeter Wemm
163c2aa98e2SPeter WemmThere are other files you should read.  Rooted in this directory are:
164c2aa98e2SPeter Wemm
165c2aa98e2SPeter Wemm  FAQ
16613058a91SGregory Neil Shapiro	The FAQ (frequently answered questions) is no longer maintained
16713058a91SGregory Neil Shapiro	with the sendmail release.  It is available at
16813058a91SGregory Neil Shapiro	http://www.sendmail.org/faq/ .  The file FAQ is a reminder of
16913058a91SGregory Neil Shapiro	this and a pointer to the web page.
17006f25ae9SGregory Neil Shapiro  INSTALL
17106f25ae9SGregory Neil Shapiro	Installation instructions for building and installing sendmail.
172c2aa98e2SPeter Wemm  KNOWNBUGS
17306f25ae9SGregory Neil Shapiro	Known bugs in the current release.
174c2aa98e2SPeter Wemm  RELEASE_NOTES
175c2aa98e2SPeter Wemm	A detailed description of the changes in each version.  This
176c2aa98e2SPeter Wemm	is quite long, but informative.
17706f25ae9SGregory Neil Shapiro  sendmail/README
178c2aa98e2SPeter Wemm	Details on compiling and installing sendmail.
179c2aa98e2SPeter Wemm  cf/README
180c2aa98e2SPeter Wemm	Details on configuring sendmail.
181c2aa98e2SPeter Wemm  doc/op/op.me
18213bd1963SGregory Neil Shapiro	The sendmail Installation & Operations Guide.  In addition
18313bd1963SGregory Neil Shapiro	to the shipped PostScript version, plain text and PDF versions
18413bd1963SGregory Neil Shapiro	can be generating using (assuming the required conversion software
18513bd1963SGregory Neil Shapiro	is installed on your system, see doc/op/Makefile):
18613bd1963SGregory Neil Shapiro
18713bd1963SGregory Neil Shapiro	cd doc/op && make op.txt op.pdf
18813bd1963SGregory Neil Shapiro
18913bd1963SGregory Neil Shapiro	Be warned: on some systems calling make in doc/op/ will cause
19013bd1963SGregory Neil Shapiro	errors due to nroff/groff problems.  Known problems are:
19113bd1963SGregory Neil Shapiro	- running this off on systems with an old version of -me, you
19213bd1963SGregory Neil Shapiro	need to add the following macro to the macros:
193c2aa98e2SPeter Wemm
194c2aa98e2SPeter Wemm		.de sm
195c2aa98e2SPeter Wemm		\s-1\\$1\\s0\\$2
196c2aa98e2SPeter Wemm		..
197c2aa98e2SPeter Wemm
198c2aa98e2SPeter Wemm	This sets a word in a smaller pointsize.
199c2aa98e2SPeter Wemm
20013bd1963SGregory Neil Shapiro	- with new groff versions (1.18 seems affected)
20113bd1963SGregory Neil Shapiro
20213bd1963SGregory Neil Shapiro	GROFF_NO_SGR=1
20313bd1963SGregory Neil Shapiro
20413bd1963SGregory Neil Shapiro	needs to be set, e.g., in doc/op/Makefile:
20513bd1963SGregory Neil Shapiro
20613bd1963SGregory Neil Shapiro	ROFF_CMD=	GROFF_NO_SGR=1 groff
20713bd1963SGregory Neil Shapiro
208c2aa98e2SPeter Wemm
209c2aa98e2SPeter Wemm+--------------+
210c2aa98e2SPeter Wemm| RELATED RFCS |
211c2aa98e2SPeter Wemm+--------------+
212c2aa98e2SPeter Wemm
213c2aa98e2SPeter WemmThere are several related RFCs that you may wish to read -- they are
214da7d7b9cSGregory Neil Shapiroavailable from several sites, see
215c2aa98e2SPeter Wemm
216da7d7b9cSGregory Neil Shapiro	http://www.rfc-editor.org/
217c2aa98e2SPeter Wemm	http://www.ietf.org/
218c2aa98e2SPeter Wemm
219c2aa98e2SPeter WemmImportant RFCs for electronic mail are:
220c2aa98e2SPeter Wemm
221c2aa98e2SPeter Wemm	RFC821	SMTP protocol
222c2aa98e2SPeter Wemm	RFC822	Mail header format
223c2aa98e2SPeter Wemm	RFC974	MX routing
224c2aa98e2SPeter Wemm	RFC976	UUCP mail format
225c2aa98e2SPeter Wemm	RFC1123	Host requirements (modifies 821, 822, and 974)
226c2aa98e2SPeter Wemm	RFC1344	Implications of MIME for Internet Mail Gateways
22740266059SGregory Neil Shapiro	RFC1413	Identification server
228c2aa98e2SPeter Wemm	RFC1428	Transition of Internet Mail from Just-Send-8 to
229c2aa98e2SPeter Wemm		8-bit SMTP/MIME
23040266059SGregory Neil Shapiro	RFC1652	SMTP Service Extension for 8bit-MIMEtransport
23140266059SGregory Neil Shapiro	RFC1869	SMTP Service Extensions (ESMTP spec)
23240266059SGregory Neil Shapiro	RFC1870	SMTP Service Extension for Message Size Declaration
233c2aa98e2SPeter Wemm	RFC1891	SMTP Service Extension for Delivery Status Notifications
234c2aa98e2SPeter Wemm	RFC1892	Multipart/Report Content Type for the Reporting of
235c2aa98e2SPeter Wemm		Mail System Administrative Messages
236c2aa98e2SPeter Wemm	RFC1893	Enhanced Mail System Status Codes
237c2aa98e2SPeter Wemm	RFC1894	An Extensible Message Format for Delivery Status
238c2aa98e2SPeter Wemm		Notifications
239c2aa98e2SPeter Wemm	RFC1985	SMTP Service Extension for Remote Message Queue Starting
24006f25ae9SGregory Neil Shapiro	RFC2033 Local Mail Transfer Protocol (LMTP)
24106f25ae9SGregory Neil Shapiro	RFC2034 SMTP Service Extension for Returning Enhanced Error Codes
24240266059SGregory Neil Shapiro	RFC2045	Multipurpose Internet Mail Extensions (MIME) Part One:
24340266059SGregory Neil Shapiro		Format of Internet Message Bodies
24406f25ae9SGregory Neil Shapiro	RFC2476 Message Submission
24506f25ae9SGregory Neil Shapiro	RFC2487 SMTP Service Extension for Secure SMTP over TLS
24606f25ae9SGregory Neil Shapiro	RFC2554 SMTP Service Extension for Authentication
24740266059SGregory Neil Shapiro	RFC2821 Simple Mail Transfer Protocol
24840266059SGregory Neil Shapiro	RFC2822 Internet Message Format
24940266059SGregory Neil Shapiro	RFC2852 Deliver By SMTP Service Extension
25040266059SGregory Neil Shapiro	RFC2920 SMTP Service Extension for Command Pipelining
251c2aa98e2SPeter Wemm
252c2aa98e2SPeter WemmOther standards that may be of interest (but which are less directly
253c2aa98e2SPeter Wemmrelevant to sendmail) are:
254c2aa98e2SPeter Wemm
255c2aa98e2SPeter Wemm	RFC987	Mapping between RFC822 and X.400
256c2aa98e2SPeter Wemm	RFC1049	Content-Type header field (extension to RFC822)
257c2aa98e2SPeter Wemm
258c2aa98e2SPeter WemmWarning to AIX users: this version of sendmail does not implement
259c2aa98e2SPeter WemmMB, MR, or MG DNS resource records, as defined (as experiments) in
260c2aa98e2SPeter WemmRFC1035.
261c2aa98e2SPeter Wemm
262c2aa98e2SPeter Wemm
26306f25ae9SGregory Neil Shapiro+---------+
26406f25ae9SGregory Neil Shapiro| WARNING |
26506f25ae9SGregory Neil Shapiro+---------+
26606f25ae9SGregory Neil Shapiro
26706f25ae9SGregory Neil ShapiroSince sendmail 8.11 and later includes hooks to cryptography, the
26806f25ae9SGregory Neil Shapirofollowing information from OpenSSL applies to sendmail as well.
26906f25ae9SGregory Neil Shapiro
27006f25ae9SGregory Neil ShapiroPLEASE REMEMBER THAT EXPORT/IMPORT AND/OR USE OF STRONG CRYPTOGRAPHY
27106f25ae9SGregory Neil ShapiroSOFTWARE, PROVIDING CRYPTOGRAPHY HOOKS OR EVEN JUST COMMUNICATING
27206f25ae9SGregory Neil ShapiroTECHNICAL DETAILS ABOUT CRYPTOGRAPHY SOFTWARE IS ILLEGAL IN SOME
27306f25ae9SGregory Neil ShapiroPARTS OF THE WORLD.  SO, WHEN YOU IMPORT THIS PACKAGE TO YOUR
27406f25ae9SGregory Neil ShapiroCOUNTRY, RE-DISTRIBUTE IT FROM THERE OR EVEN JUST EMAIL TECHNICAL
27506f25ae9SGregory Neil ShapiroSUGGESTIONS OR EVEN SOURCE PATCHES TO THE AUTHOR OR OTHER PEOPLE
27606f25ae9SGregory Neil ShapiroYOU ARE STRONGLY ADVISED TO PAY CLOSE ATTENTION TO ANY EXPORT/IMPORT
27706f25ae9SGregory Neil ShapiroAND/OR USE LAWS WHICH APPLY TO YOU.  THE AUTHORS ARE NOT LIABLE FOR
27806f25ae9SGregory Neil ShapiroANY VIOLATIONS YOU MAKE HERE.  SO BE CAREFUL, IT IS YOUR RESPONSIBILITY.
27906f25ae9SGregory Neil Shapiro
28006f25ae9SGregory Neil ShapiroIf you use OpenSSL then make sure you read their README file which
28106f25ae9SGregory Neil Shapirocontains information about patents etc.
28206f25ae9SGregory Neil Shapiro
28306f25ae9SGregory Neil Shapiro
284c2aa98e2SPeter Wemm+-------------------+
285c2aa98e2SPeter Wemm| DATABASE ROUTINES |
286c2aa98e2SPeter Wemm+-------------------+
287c2aa98e2SPeter Wemm
288c2aa98e2SPeter WemmIF YOU WANT TO RUN THE NEW BERKELEY DB SOFTWARE:  ****  DO NOT  ****
289c2aa98e2SPeter Wemmuse the version that was on the Net2 tape -- it has a number of
290c2aa98e2SPeter Wemmnefarious bugs that were bad enough when I got them; you shouldn't have
291c2aa98e2SPeter Wemmto go through the same thing.  Instead, get a new version via the web at
292c2aa98e2SPeter Wemmhttp://www.sleepycat.com/.  This software is highly recommended; it gets
293c2aa98e2SPeter Wemmrid of several stupid limits, it's much faster, and the interface is
294c2aa98e2SPeter Wemmnicer to animals and plants.  If the Berkeley DB include files
295c2aa98e2SPeter Wemmare installed in a location other than those which your compiler searches,
296c2aa98e2SPeter Wemmyou will need to provide that directory when building:
297c2aa98e2SPeter Wemm
298e3793f76SGregory Neil Shapiro	./Build -I/path/to/include/directory
299c2aa98e2SPeter Wemm
300c2aa98e2SPeter WemmIf you are using Berkeley DB versions 1.85 or 1.86, you are *strongly*
30106f25ae9SGregory Neil Shapirourged to upgrade to DB version 2 or later, available from
30206f25ae9SGregory Neil Shapirohttp://www.sleepycat.com/.  Berkeley DB versions 1.85 and 1.86 are known to
30306f25ae9SGregory Neil Shapirobe broken in various nasty ways (see http://www.sleepycat.com/db.185.html),
30406f25ae9SGregory Neil Shapiroand can cause sendmail to dump core.  In addition, the newest versions of
30506f25ae9SGregory Neil Shapirogcc and the Solaris compilers perform optimizations in those versions that
30606f25ae9SGregory Neil Shapiromay cause fairly random core dumps.
307c2aa98e2SPeter Wemm
308c2aa98e2SPeter WemmIf you have no choice but to use Berkeley DB 1.85 or 1.86, and you are
309c2aa98e2SPeter Wemmusing both Berkeley DB and files in the UNIX ndbm format, remove ndbm.h
310c2aa98e2SPeter Wemmand ndbm.o from the DB library after building it.  You should also apply
311c2aa98e2SPeter Wemmall of the patches for DB 1.85 and 1.86 found at the Sleepycat web site
312c2aa98e2SPeter Wemm(see http://www.sleepycat.com/db.185.html), as they fix some of the known
313c2aa98e2SPeter Wemmproblems.
314c2aa98e2SPeter Wemm
315c2aa98e2SPeter WemmIf you are using a version of Berkeley DB 2 previous to 2.3.15, and you
316c2aa98e2SPeter Wemmare using both Berkeley DB and files in the UNIX ndbm format, remove dbm.o
317c2aa98e2SPeter Wemmfrom the DB library after building it.  No other changes are necessary.
318c2aa98e2SPeter Wemm
319c2aa98e2SPeter WemmIf you are using Berkeley DB version 2.3.15 or greater, no changes are
320c2aa98e2SPeter Wemmnecessary.
321c2aa98e2SPeter Wemm
322c2aa98e2SPeter WemmThe underlying database file formats changed between Berkeley DB versions
32306f25ae9SGregory Neil Shapiro1.85 and 1.86, again between DB 1.86 and version 2.0, and finally between
32406f25ae9SGregory Neil ShapiroDB 2.X and 3.X.  If you are upgrading from one of those versions, you must
32506f25ae9SGregory Neil Shapirorecreate your database file(s).  Do this by rebuilding all maps with
32606f25ae9SGregory Neil Shapiromakemap and rebuilding the alias file with newaliases.
327c2aa98e2SPeter Wemm
328c2aa98e2SPeter Wemm
329c2aa98e2SPeter Wemm+--------------------+
330c2aa98e2SPeter Wemm| HOST NAME SERVICES |
331c2aa98e2SPeter Wemm+--------------------+
332c2aa98e2SPeter Wemm
333c2aa98e2SPeter WemmIf you are using NIS or /etc/hosts, it is critical that you
334c2aa98e2SPeter Wemmlist the long (fully qualified) name somewhere (preferably first) in
335c2aa98e2SPeter Wemmthe /etc/hosts file used to build the NIS database.  For example, the
336c2aa98e2SPeter Wemmline should read
337c2aa98e2SPeter Wemm
338c2aa98e2SPeter Wemm	128.32.149.68   mastodon.CS.Berkeley.EDU mastodon
339c2aa98e2SPeter Wemm
340c2aa98e2SPeter Wemm**** NOT ****
341c2aa98e2SPeter Wemm
342c2aa98e2SPeter Wemm	128.32.149.68   mastodon
343c2aa98e2SPeter Wemm
344c2aa98e2SPeter WemmIf you do not include the long name, sendmail will complain loudly
345c2aa98e2SPeter Wemmabout ``unable to qualify my own domain name (mastodon) -- using
346c2aa98e2SPeter Wemmshort name'' and conclude that your canonical name is the short
347c2aa98e2SPeter Wemmversion and use that in messages.  The name "mastodon" doesn't mean
348c2aa98e2SPeter Wemmmuch outside of Berkeley, and so this creates incorrect and unreplyable
349c2aa98e2SPeter Wemmmessages.
350c2aa98e2SPeter Wemm
351c2aa98e2SPeter Wemm
352c2aa98e2SPeter Wemm+-------------+
353c2aa98e2SPeter Wemm| USE WITH MH |
354c2aa98e2SPeter Wemm+-------------+
355c2aa98e2SPeter Wemm
356c2aa98e2SPeter WemmThis version of sendmail notices and reports certain kinds of SMTP
357c2aa98e2SPeter Wemmprotocol violations that were ignored by older versions.  If you
358c2aa98e2SPeter Wemmare running MH you may wish to install the patch in contrib/mh.patch
359c2aa98e2SPeter Wemmthat will prevent these warning reports.  This patch also works
360c2aa98e2SPeter Wemmwith the old version of sendmail, so it's safe to go ahead and
361c2aa98e2SPeter Wemminstall it.
362c2aa98e2SPeter Wemm
363c2aa98e2SPeter Wemm
364c2aa98e2SPeter Wemm+----------------+
365c2aa98e2SPeter Wemm| USE WITH IDENT |
366c2aa98e2SPeter Wemm+----------------+
367c2aa98e2SPeter Wemm
368c2aa98e2SPeter WemmSendmail 8 supports the IDENT protocol, as defined by RFC 1413.
36906f25ae9SGregory Neil ShapiroNote that the RFC states a client should wait at least 30 seconds
37006f25ae9SGregory Neil Shapirofor a response.  As of 8.10.0, the default Timeout.ident is 5 seconds
37106f25ae9SGregory Neil Shapiroas many sites have adopted the practice of dropping IDENT queries.
37206f25ae9SGregory Neil ShapiroThis has lead to delays processing mail.
373c2aa98e2SPeter Wemm
37406f25ae9SGregory Neil ShapiroNo ident server is included with this distribution.  It is available
37506f25ae9SGregory Neil Shapirofrom:
376c2aa98e2SPeter Wemm
37706f25ae9SGregory Neil Shapiro  ftp://ftp.lysator.liu.se/pub/ident/servers/
37806f25ae9SGregory Neil Shapiro  http://sf.www.lysator.liu.se/~pen/pidentd/
379c2aa98e2SPeter Wemm
3802e43090eSPeter Wemm+-------------------------+
3812e43090eSPeter Wemm| INTEROPERATION PROBLEMS |
3822e43090eSPeter Wemm+-------------------------+
3832e43090eSPeter Wemm
3842e43090eSPeter WemmMicrosoft Exchange Server 5.0
3852e43090eSPeter Wemm	We have had a report that ``about 7% of messages from Sendmail
3862e43090eSPeter Wemm	to Exchange were not being delivered with status messages of
3872e43090eSPeter Wemm	"connection reset" and "I/O error".''  Upgrading Exchange from
3882e43090eSPeter Wemm	Version 5.0 to Version 5.5 Service Pack 2 solved this problem.
3892e43090eSPeter Wemm
39006f25ae9SGregory Neil ShapiroCommuniGate Pro
39106f25ae9SGregory Neil Shapiro	CommuniGate Pro 3.2.4 does not accept the AUTH= -parameter on
39206f25ae9SGregory Neil Shapiro	the MAIL FROM command if the client is not authenticated.  Use
39306f25ae9SGregory Neil Shapiro
39406f25ae9SGregory Neil Shapiro		define(`confAUTH_OPTIONS', `A')
39506f25ae9SGregory Neil Shapiro
39606f25ae9SGregory Neil Shapiro	in .mc file if you have compiled sendmail with Cyrus SASL
39706f25ae9SGregory Neil Shapiro	and you communicate with CommuniGate Pro servers.
3982e43090eSPeter Wemm
399c2aa98e2SPeter Wemm+---------------------+
400c2aa98e2SPeter Wemm| DIRECTORY STRUCTURE |
401c2aa98e2SPeter Wemm+---------------------+
402c2aa98e2SPeter Wemm
403c2aa98e2SPeter WemmThe structure of this directory tree is:
404c2aa98e2SPeter Wemm
405c2aa98e2SPeter Wemmcf		Source for sendmail configuration files.  These are
406c2aa98e2SPeter Wemm		different than what you've seen before.  They are a
407c2aa98e2SPeter Wemm		fairly dramatic rewrite, requiring the new sendmail
408c2aa98e2SPeter Wemm		(since they use new features).
409c2aa98e2SPeter Wemmcontrib		Some contributed tools to help with sendmail.  THESE
410c2aa98e2SPeter Wemm		ARE NOT SUPPORTED by sendmail -- contact the original
411c2aa98e2SPeter Wemm		authors if you have problems.  (This directory is not
412c2aa98e2SPeter Wemm		on the 4.4BSD tape.)
41306f25ae9SGregory Neil Shapirodevtools	Build environment.  See devtools/README.
414c2aa98e2SPeter Wemmdoc		Documentation.  If you are getting source, read
415c2aa98e2SPeter Wemm		op.me -- it's long, but worth it.
41640266059SGregory Neil Shapiroeditmap		A program to edit and query maps that have been created
41740266059SGregory Neil Shapiro		with makemap, e.g., adding and deleting entries.
41806f25ae9SGregory Neil Shapiroinclude		Include files used by multiple programs in the distribution.
41906f25ae9SGregory Neil Shapirolibsmdb		sendmail database library with support for Berkeley DB 1.X,
42006f25ae9SGregory Neil Shapiro		Berkeley DB 2.X, Berkeley DB 3.X, and NDBM.
42106f25ae9SGregory Neil Shapirolibsmutil	sendmail utility library with functions used by different
42206f25ae9SGregory Neil Shapiro		programs.
423c2aa98e2SPeter Wemmmail.local	The source for the local delivery agent used for 4.4BSD.
424c2aa98e2SPeter Wemm		THIS IS NOT PART OF SENDMAIL! and may not compile
425c2aa98e2SPeter Wemm		everywhere, since it depends on some 4.4-isms.  Warning:
426c2aa98e2SPeter Wemm		it does mailbox locking differently than other systems.
42706f25ae9SGregory Neil Shapiromailstats	Statistics printing program.
428c2aa98e2SPeter Wemmmakemap		A program that creates the keyed maps used by the $( ... $)
429c2aa98e2SPeter Wemm		construct in sendmail.  It is primitive but effective.
430c2aa98e2SPeter Wemm		It takes a very simple input format, so you will probably
431c2aa98e2SPeter Wemm		expect to preprocess must human-convenient formats
432c2aa98e2SPeter Wemm		using sed scripts before this program will like them.
433c2aa98e2SPeter Wemm		But it should be functionally complete.
434*5b0945b5SGregory Neil Shapiropraliases	A program to print the map version of the aliases file.
435c2aa98e2SPeter Wemmrmail		Source for rmail(8).  This is used as a delivery
436c2aa98e2SPeter Wemm		agent for for UUCP, and could presumably be used by
437c2aa98e2SPeter Wemm		other non-socket oriented mailers.  Older versions of
438c2aa98e2SPeter Wemm		rmail are probably deficient.  RMAIL IS NOT PART OF
439c2aa98e2SPeter Wemm		SENDMAIL!!!  The 4.4BSD source is included for you to
44006f25ae9SGregory Neil Shapiro		look at or try to port to your system.  There is no
44106f25ae9SGregory Neil Shapiro		guarantee it will even compile on your operating system.
442c2aa98e2SPeter Wemmsmrsh		The "sendmail restricted shell", which can be used as
443c2aa98e2SPeter Wemm		a replacement for /bin/sh in the prog mailer to provide
444c2aa98e2SPeter Wemm		increased security control.  NOT PART OF SENDMAIL!
44506f25ae9SGregory Neil Shapirosendmail	Source for the sendmail program itself.
446c2aa98e2SPeter Wemmtest		Some test scripts (currently only for compilation aids).
44706f25ae9SGregory Neil Shapirovacation	Source for the vacation program.  NOT PART OF SENDMAIL!
44806f25ae9SGregory Neil Shapiro
449