166352Seric			SENDMAIL RELEASE NOTES
2*69913Seric	     @(#)RELEASE_NOTES	8.7.Beta (Berkeley) 06/16/95
366352Seric
466352SericThis listing shows the version of the sendmail binary, the version
566352Sericof the sendmail configuration files, the date of release, and a
666352Sericsummary of the changes in that release.
766352Seric
869632Seric8.7/8.7		95/xx/xx	CURRENTLY IN BETA PRERELEASE!!!
969632Seric	Fix a problem that could cause sendmail to run out of file
1069632Seric		descriptors due to a trashed data structure after a
1169632Seric		vfork.  Fix from Brian Coan of the Institute for
1269632Seric		Global Communications.
1369632Seric	Change the VRFY response if you have disabled VRFY -- some
1469632Seric		people seemed to think that it was too rude.
1569632Seric	Avoid reference to uninitialized file descriptor if HASFLOCK
1669632Seric		was not defined.  This was used "safely" in the sense
1769632Seric		that it only did a stat, but it would have set the
1869632Seric		map modification time improperly.  Problem pointed out
1969632Seric		by Roy Mongiovi of Georgia Tech.
2069632Seric	Clean up the Subject: line on warning messages and return
2169632Seric		receipts so that they don't say "Returned mail:"; this
2269632Seric		can be confusing.
2369632Seric	Move ruleset entry/exit debugging from 21.2 to 21.1 -- this is
2469632Seric		useful enough to make it worthwhile printing on "-d".
2569632Seric	Avoid logging alias statistics every time you read the alias
2669632Seric		file on systems with no database method compiled in.
2769632Seric	If you have a name with a trailing dot, and you try looking it
2869632Seric		up using gethostbyname without the dot (for /etc/hosts
2969632Seric		compatibility), be sure to turn off RES_DEFNAMES and
3069632Seric		RES_DNSRCH to avoid finding the wrong name accidently.
3169632Seric		Problem noted by Charles Amos of the University of
3269632Seric		Maryland.
3369632Seric	Don't do timeouts in collect if you are not running SMTP.
3469632Seric		There is nothing that says you can't have a long
3569632Seric		running program piped into sendmail (possibly via
3669632Seric		/bin/mail, which just execs sendmail).  Problem reported
3769632Seric		by Don "Truck" Lewis of Silicon Systems.
3869632Seric	Try gethostbyname() even if the DNS lookup fails iff option I
3969632Seric		is not set.  This allows you to have hosts listed in
4069632Seric		NIS or /etc/hosts that are not known to DNS.  It's normally
4169632Seric		a bad idea, but can be useful on firewall machines.  This
4269632Seric		should really be broken out on a separate flag, I suppose.
4369632Seric	Avoid compile warnings against BIND 4.9.3, which uses function
4469632Seric		prototypes.  From Don Lewis of Silicon Systems.
4569632Seric	Avoid possible incorrect diagnosis of DNS-related errors caused
4669632Seric		by things like attempts to resolve uucp names using
4769632Seric		$[ ... $] -- the fix is to clear h_errno at appropriate
4869632Seric		times.  From Kyle Jones of UUNET.
4969632Seric	SECURITY: avoid denial-of-service attacks possible by destroying
5069632Seric		the alias database file by setting resource limits low.
5169632Seric		This involves adding two new compile-time options:
5269632Seric		HASSETRLIMIT (indicating that setrlimit(2) support is
5369632Seric		available) and HASULIMIT (indicating that ulimit(2) support
5469632Seric		is available -- the Release 3 form is used).  The former
5569632Seric		is assumed on BSD-based systems, the latter on System
5669632Seric		V-based systems.  Attack noted by Phil Brandenberger of
5769632Seric		Swarthmore University.
5869632Seric	New syntaxes in test (-bt) mode:
5969632Seric		``.Dmvalue'' will define macro "m" to "value".
6069632Seric		``.Ccvalue'' will add "value" to class "c".
6169632Seric		``.Sruleset'' will dump the contents of the indicated
6269632Seric			ruleset.
6369632Seric		``-ddebug-spec'' is equivalent to the command-line
6469632Seric			-d debug flag.
6569632Seric		``$m'' will print the value of macro "m".
6669632Seric		``/mx host'' returns the MX records for ``host''.
6769632Seric		``/try address'' will parse address, returning the value of
6869632Seric			crackaddr (essentially, the comment information)
6969632Seric			and the parsed address (the same as -bv).
7069632Seric	Somewhat better handling of UNIX-domain socket addresses -- it
7169632Seric		should show the pathname rather than hex bytes.
7269632Seric	Restore ``-ba'' mode -- this reads a file from stdin and parses
7369632Seric		the header for envelope sender information and uses
7469632Seric		CR-LF as message terminators.  It was thought to be
7569632Seric		obsolete (used only for Arpanet NCP protocols), but it
7669632Seric		turns out that the UK ``Grey Book'' protocols require
7769632Seric		that functionality.
7869632Seric	Fix a fix in previous release -- if gethostname and gethostbyname
79*69913Seric		return a name without dots, and if an attempt to canonify
80*69913Seric		that name fails, wait one minute and try again.  This can
81*69913Seric		result in an extra 60 second delay on startup if your system
82*69913Seric		hostname (as returned by hostname(1)) has no dot and no names
83*69913Seric		listed in /etc/hosts or your NIS map have a dot.
8469632Seric	Check for proper domain name on HELO and EHLO commands per
8569632Seric		RFC 1123 section 5.2.5.  Problem noted by Thomas Dwyer III
8669632Seric		of Michigan Technological University.
8769632Seric	Relax chownsafe rules slightly -- old version said that if you
8869632Seric		can't tell if _POSIX_CHOWN_RESTRICTED is set (that is,
8969632Seric		if fpathconf returned EINVAL or ENOSYS), assume that
9069632Seric		chown is not safe.  The new version falls back to whether
9169632Seric		you are on a BSD system or not.  This is important for
9269632Seric		SunOS, which apparently always returns one of those
9369632Seric		error codes.  This impacts whether you can mail to files
9469632Seric		or not.
9569632Seric	Syntax errors such as unbalanced parentheses in the configuration
9669632Seric		file could be omitted if you had "Oem" prior to the
9769632Seric		syntax error in the config file.  Change to always print
9869632Seric		the error message.  It was especially wierd because it
9969632Seric		would cause a "warning" message to be sent to the Postmaster
10069632Seric		for every message sent (but with no transcript).  Problem
10169632Seric		noted by Gregory Paris of Motorola.
10269632Seric	Rewrite collect and putbody to handle full 8-bit data, including
10369632Seric		zero bytes.  These changes are internally extensive, but
10469632Seric		should have minimal impact on external function.
10569632Seric	Allow full words for option names -- if the option letter is
10669632Seric		(apparently) a space, then take the word following -- e.g.,
10769632Seric			O MatchGECOS=TRUE
10869632Seric		The full list of old and new names is as follows:
10969632Seric			7	SevenBitInput
11069632Seric			8	EightBitMode
11169632Seric			A	AliasFile
11269632Seric			a	AliasWait
11369632Seric			B	BlankSub
11469632Seric			b	MinFreeBlocks/MaxMessageSize
11569632Seric			C	CheckpointInterval
11669632Seric			c	HoldExpensive
11769632Seric			D	AutoRebuildAliases
11869632Seric			d	DeliveryMode
11969632Seric			E	ErrorHeader
12069632Seric			e	ErrorMode
12169632Seric			f	SaveFromLine
12269632Seric			F	TempFileMode
12369632Seric			G	MatchGECOS
12469632Seric			H	HelpFile
12569632Seric			h	MaxHopCount
12669632Seric			i	IgnoreDots
12769632Seric			I	ResolverOptions
12869632Seric			J	ForwardPath
12969632Seric			j	SendMimeErrors
13069632Seric			k	ConnectionCacheSize
13169632Seric			K	ConnectionCacheTimeout
13269632Seric			L	LogLevel
13369632Seric			l	UseErrorsTo
13469632Seric			m	MeToo
13569632Seric			n	CheckAliases
13669632Seric			O	DaemonPortOptions
13769632Seric			o	OldStyleHeaders
13869632Seric			P	PostmasterCopy
13969632Seric			p	PrivacyOptions
14069632Seric			Q	QueueDirectory
14169632Seric			q	QueueFactor
14269632Seric			R	DontPruneRoutes
14369632Seric			r, T	Timeout
14469632Seric			S	StatusFile
14569632Seric			s	SuperSafe
14669632Seric			t	TimeZoneSpec
14769632Seric			u	DefaultUser
14869632Seric			U	UserDatabaseSpec
14969632Seric			V	FallbackMXhost
15069632Seric			v	Verbose
15169632Seric			w	TryNullMXList
15269632Seric			x	QueueLA
15369632Seric			X	RefuseLA
15469632Seric			Y	ForkEachJob
15569632Seric			y	RecipientFactor
15669632Seric			z	ClassFactor
15769632Seric			Z	RetryFactor
15869632Seric		To avoid possible problems with an older sendmail,
15969632Seric		configuration level 6 is accepted by this version of
16069632Seric		sendmail; any config file using the new names should
16169632Seric		specify "V6" in the configuration.
16269632Seric	Change address parsing to properly note that a phrase before a
16369632Seric		colon and a trailing semicolon are essentially the same
16469632Seric		as text outside of angle brackets (i.e., sendmail should
16569632Seric		treat them as comments).  This is to handle the
16669632Seric		``group name: addr1, addr2, ..., addrN;'' syntax (it will
16769632Seric		assume that ``group name:'' is a comment on the first
16869632Seric		address and the ``;'' is a comment on the last address).
16969632Seric		This requires config file support to get right.  It does
17069632Seric		understand that :: is NOT this syntax, and can be turned
17169632Seric		off completely by setting the ColonOkInAddresses option.
17269632Seric	Level 6 config files added with new mailer flags:
17369632Seric		    A	Addresses are aliasable.
17469632Seric		    i	Do udb rewriting on envelope as well as header
17569632Seric			sender lines.  Applies to the from address mailer
17669632Seric			flags rather than the recipient mailer flags.
17769632Seric		    j	Do udb rewriting on header recipient addresses.
17869632Seric			Applies to the sender mailer flags rather than the
17969632Seric			recipient mailer flags.
18069632Seric		    k	Disable check for loops when doing HELO command.
18169632Seric		    o	Always run as the mail recipient, even on local
18269632Seric			delivery.
18369632Seric		    w	Check for an /etc/passwd entry for this user.
18469632Seric		    5	Pass addresses through ruleset 5.
18569632Seric		    :	Check for :include: on this address.
18669632Seric		    |	Check for |program on this address.
18769632Seric		    /	Check for /file on this address.
18869632Seric		    @	Look up sender header addresses in the user
18969632Seric			database.  Applies to the mailer flags for the
19069632Seric			mailer corresponding to the envelope sender
19169632Seric			address, rather than to recipient mailer flags.
19269632Seric		Pre-level 6 configuration files set A, w, 5, :, |, /, and @
19369632Seric		on the "local" mailer, the o flag on the "prog" and "*file*"
19469632Seric		mailers, and the ColonOkInAddresses option.
19569632Seric	Eight-to-seven bit MIME conversions.  This borrows ideas from
19669632Seric		John Beck of Hewlett-Packard, who generously contributed
19769632Seric		their implementation to me, which I then didn't use (see
19869632Seric		mime.c for an explanation of why).  This adds the
19969632Seric		EightBitMode option (a.k.a. `8') and an F=8 mailer flag
20069632Seric		to control handling of 8-bit data.  These have to cope with
20169632Seric		two types of 8-bit data: unlabelled 8-bit data (that is,
20269632Seric		8-bit data that is entered without declaring it as 8-bit
20369632Seric		MIME -- technically this is illegal according to the
20469632Seric		specs) and labelled 8-bit data (that is, it was declared
20569632Seric		as 8BITMIME in the ESMTP session or by using the
20669632Seric		-B8BITMIME command line flag).  If the F=8 mailer flag is
20769632Seric		set then 8-bit data is sent to non-8BITMIME machines
20869632Seric		instead of converting to 7 bit (essentially using
20969632Seric		just-send-8 semantics).  The values for EightBitMode are:
21069632Seric		    m	convert unlabelled 8-bit input to 8BITMIME, and do
21169632Seric			any necessary conversion of 8BITMIME to 7BIT
21269632Seric			(essentially, the full MIME option).
21369632Seric		    p	pass unlabelled 8-bit input, but convert labelled
21469632Seric			8BITMIME input to 7BIT as required (default).
21569632Seric		    s	strict adherence: reject unlabelled 8-bit input,
21669632Seric			convert 8BITMIME to 7BIT as required.  The F=8
21769632Seric			flag is ignored.
21869632Seric		Unlabelled 8-bit data is rejected in mode `s' regardless of
21969632Seric			the setting of F=8.
22069632Seric	Add new internal class 'n', which is the set of MIME Content-Types
22169632Seric		which can not be 8 to 7 bit encoded because of other
22269632Seric		considerations.  Types "multipart/*" and "message/*" are
22369632Seric		never directly encoded (although their components can be).
22469632Seric	Add new internal class 'e'.  This is the set of MIME
22569632Seric		Content-Transfer-Encodings that can be converted to
22669632Seric		a seven bit format (Quoted-Printable or Base64).  It is
22769632Seric		preinitialized to contain "7bit", "8bit", and "binary".
22869632Seric	Add C=charset mailer parameter and the the DefaultCharSet option (no
22969632Seric		short name) to set the default character set to use in the
23069632Seric		Content-Type: header when doing encoding of an 8-bit message
23169632Seric		which isn't marked as MIME into MIME format.  If the C=
23269632Seric		parameter is set on the Envelope From address, use that as
23369632Seric		the default encoding; else use the DefaultCharSet option.
23469632Seric		If neither is set, it defaults to "unknown-8bit" as
23569632Seric		suggested by RFC 1428 section 3.
23669632Seric	Allow ``U=user:group'' field in mailer definition to set a default
23769632Seric		user and group that a mailer will be executed as.  This
23869632Seric		overrides the 'u' and 'g' options, and if the `F=S' flag is
23969632Seric		also set, it is the uid/gid that will always be used (that
24069632Seric		is, the controlling address is ignored).  The values may be
24169632Seric		numeric or symbolic; if only a symbolic user is given (no
24269632Seric		group) that user's default group in the passwd file is used
24369632Seric		as the group.  Based on code donated by Chip Rosenthal of
24469632Seric		Unicom.
24569632Seric	Allow `u' option to also accept user:group as a value, in the same
24669632Seric		fashion as the U= mailer option.
24769632Seric	Add the symbolic time zone name in the Arpanet format dates (as
24869632Seric		a comment).  This adds a new compile-time configuration
24969632Seric		flag: TZ_TYPE can be set to TZ_TM_NAME (use the value
25069632Seric		of (struct tm *)->tm_name), TZ_TM_ZONE (use the value
25169632Seric		of (struct tm *)->tm_zone), TZ_TZNAME (use extern char
25269632Seric		*tzname[(struct tm *)->tm_isdst]), TZ_TIMEZONE (use
25369632Seric		timezone()), or TZ_NONE (don't include the comment).  Code
25469632Seric		from Chip Rosenthal.
25569632Seric	The "Timeout" option (formerly "r") is extended to allow suboptions.
25669632Seric		For example,
25769632Seric		    O Timeout.helo = 2m
25869632Seric		There are also two new suboptions "queuereturn" and
25969632Seric		"queuewarn"; these subsume the old T option.  Thus, to
26069632Seric		set them both the preferred new syntax is
26169632Seric		    O Timeout.queuereturn = 5d
26269632Seric		    O Timeout.queuewarn = 4h
26369632Seric	Sort queue by host name instead of by message priority if the
26469632Seric		QueueSortOrder option (no short name) is set is set to
26569632Seric		``host''.  This makes better use of the connection cache,
26669632Seric		but may delay more ``interactive'' messages behind large
26769632Seric		backlogs under some circumstances.  This is probably a
26869632Seric		good option if you have high speed links or don't do lots
26969632Seric		of ``batch'' messages, but less good if you are using
27069632Seric		something like PPP on a 14.4 modem.  Based on code
27169632Seric		contributed by Roy Mongiovi of Georgia Tech (my main
27269632Seric		contribution was to make it configurable).
27369632Seric	Save i-number of df file in qf file to simplify rebuilding of queue
27469632Seric		after disasterous disk crash.  Suggested by Kyle Jones of
27569632Seric		UUNET; closely based on code from KJS DECWRL code written
27669632Seric		by Paul Vixie.  NOTA BENE: The qf files produced by 8.7
27769632Seric		are NOT back compatible with 8.6 -- that is, you can convert
27869632Seric		from 8.6 to 8.7, but not the other direction.
27969632Seric	Add ``F=d'' mailer flag to disable all use of angle brackets in
28069632Seric		route-addrs in envelopes; this is because in some cases
28169632Seric		they can be sent to the shell, which interprets them as
28269632Seric		I/O redirection.
28369632Seric	Don't include error file (option E) with return-receipts; this
28469632Seric		can be confusing.
28569632Seric	Don't send "Warning: cannot send" messages to owner-* or
28669632Seric		*-request addresses.  Suggested by Christophe Wolfhugel
28769632Seric		of the Institut Pasteur, Paris.
28869632Seric	Allow -O command line flag to set long form options.
28969632Seric	Add "MinQueueAge" option to set the minimum time between attempts
29069632Seric		to run the queue.  For example, if the queue interval
29169632Seric		(-q value) is five minutes, but the minimum queue age
29269632Seric		is fifteen minutes, jobs won't be tried more often than
29369632Seric		once every fifteen minutes.  This can be used to give
29469632Seric		you more responsiveness if your delivery mode is set to
29569632Seric		queue-only.
29669632Seric	Allow "fileopen" timeout (default: 60 seconds) for opening
29769632Seric		:include: and .forward files.
29869632Seric	Add "-k", "-v", and "-z" flags to map definitions; these set the
29969632Seric		key field name, the value field name, and the field
30069632Seric		delimiter.  The field delimiter can be a single character
30169632Seric		or the sequence "\t" or "\n" for tab or newline.
30269632Seric		These are for use by NIS+ and similar access methods.
30369732Seric	Change maps to always strip quotes before lookups; the -q flag
30469732Seric		turns off this behaviour.  Suggested by Motonori Nakamura.
30569632Seric	Add "nisplus" map class.  Takes -k and -v flags to choose the
30669632Seric		key and value field names respectively.  Code donated by
30769632Seric		Sun Microsystems.
30869632Seric	Add "hesiod" map class.  The "file name" is used as the
30969632Seric		"HesiodNameType" parameter to hes_resolve(3).  Returns the
31069632Seric		first value found for the match.  Code donated by Scott
31169632Seric		Hutton of Indiana University.
31269632Seric	Add "netinfo" (NeXT NetInfo) map class.  Maps can have a -k flag to
31369632Seric		specify the name of the property that is searched as the
31469632Seric		key and a -v flag to specify the name of the property that
31569632Seric		is returned as the value (defaults to "members").  The
31669632Seric		default map is "/aliases".
31769632Seric	Add "text" map class.  This does slow, linear searches through
31869632Seric		text files.  The -z flag specifies a column delimiter
31969632Seric		(defaults to any sequence of white space), the -k flag
32069632Seric		sets the key column number, and the -v flag sets the
32169632Seric		value column number.  Lines beginning with `#' are treated
32269632Seric		as comments.
32369632Seric	Add "program" map class to execute arbitrary programs.  The search
32469632Seric		key is presented as the last argument; the output is one
32569632Seric		line read from the programs standard output.  Exit statuses
32669632Seric		are from sysexits.h.
32769632Seric	Add "sequence" map class -- searches maps in sequence until it
32869632Seric		finds a match.  For example, the declarations:
32969632Seric		    Kmap1 ...
33069632Seric		    Kmap2 ...
33169632Seric		    Kmapseq sequence map1 map2
33269632Seric		defines a map "mapseq" that first searches map1; if the
33369632Seric		value is found it is returned immediately, otherwise
33469632Seric		map2 is searched and the value returned.
33569632Seric	Add "switch" map class.  This is much like "sequence" except that
33669632Seric		the ordering is fetched from an external file, usually
33769632Seric		the system service switch.  The parameter is the name of
33869632Seric		the service to switch on, and the maps that it will use
33969632Seric		are this name followed by ".service_type".  For example,
34069632Seric		if the declaration of the map is
34169632Seric		    Ksample switch hosts
34269632Seric		and the system service switch specifies that hosts are
34369632Seric		looked up using dns and nis in that order, then this is
34469632Seric		equivalent to
34569632Seric		    Ksample sequence hosts.dns hosts.nis
34669632Seric		The subordinate maps must already be defined.
34769632Seric	Add "user" map class -- looks up users using getpwnam.  Takes a
34869632Seric		"-v field" flag on the definition that tells what passwd
34969632Seric		entry to return -- legal values are name, passwd, uid, gid,
35069632Seric		gecos, dir, and shell.  Generally expected to be used with
35169632Seric		the -m (matchonly) flag.
35269632Seric	Add "bestmx" map class -- returns the best MX value for the host
35369632Seric		listed as the value.  If there are several "best" MX records
35469632Seric		for this host, one will be chosen at random.
35569632Seric	Add "userdb" map class -- looks up entries in the user database.
35669632Seric		The "file name" is actually the tag that will be used,
35769632Seric		typically "mailname".  If there are multiple entries
35869632Seric		matching the name, the one chosen is undefined.
35969632Seric	Add multiple queue timeouts (both return and warning).  These are
36069632Seric		set by the Precedence: or Priority: header fields to one of
36169632Seric		three values.  If a Priority: is set and has value "normal",
36269632Seric		"urgent", or "non-urgent" the corresponding timeouts are
36369632Seric		used.  If no priority is set, the Precedence: is consulted;
36469632Seric		if negative, non-urgent timeouts are used; if greater than
36569632Seric		zero, urgent timeouts are used.  Otherwise, normal timeouts
36669632Seric		are used.  The timeouts are set by setting the six timeouts
36769632Seric		queue{warn,return}.{urgent,normal,non-urgent}.
36869632Seric	Fix problem when a mail address is resolved to a $#error mailer
36969632Seric		with a temporary failure indication; it works in SMTP,
37069632Seric		but when delivering locally the mail is silently discarded.
37169632Seric		This patch, from Kyle Jones of UUNET, bounces it instead
37269632Seric		of queueing it (queueing is very hard).
37369632Seric	When using /etc/hosts or NIS-style lookups, don't assume that
37469632Seric		the first name in the list is the best one -- instead,
37569632Seric		search for the first one with a dot.  For example, if
37669632Seric		an /etc/hosts entry reads
37769632Seric		    128.32.149.68	mammoth mammoth.CS.Berkeley.EDU
37869632Seric		this change will use the second name as the canonical
37969632Seric		machine name instead of the initial, unqualified name.
38069632Seric	Change dequote map to replace spaces in quoted text with a value
38169632Seric		indicated by the -s flag on the dequote map definition.
38269632Seric		For example, ``Mdequote dequote -s_'' will change
38369632Seric		"Foo Bar" into an unquoted Foo_Bar instead of leaving it
38469632Seric		quoted (because of the space character).  Suggested by Dan
38569632Seric		Oscarsson for use in X.400 addresses.
38669632Seric	Implement long macro names as ${name}; long class names can
38769632Seric		be similarly referenced as $={name} and $~{name}.
38869632Seric		Definitions are (e.g.) ``D{name}value''.  Names that have
38969632Seric		a leading lower case letter or punctuation characters are
39069632Seric		reserved for internal use by sendmail; i.e., config files
39169632Seric		should use names that begin with a capital letter.  Based
39269632Seric		on code contributed by Dan Oscarsson.
39369632Seric	Fix core dump if getgrgid returns a null group list (as opposed
39469632Seric		to an empty group list, that is, a pointer to a list
39569632Seric		with no members).  Fix from Andrew Chang of Sun Microsystems.
39669632Seric	Fix possible core dump if malloc fails -- if the malloc in xalloc
39769632Seric		failed, it called syserr which called newstr which called
39869632Seric		xalloc....  The newstr is now avoided for "panic" messages.
39969632Seric		Reported by Stuart Kemp of James Cook University.
40069632Seric	Improve connection cache timeouts; previously, they were not even
40169632Seric		checked if you were delivering to anything other than an
40269632Seric		IPC-connected host, so a series of (say) local mail
40369632Seric		deliveries could cause cached connections to be open
40469632Seric		much longer than the specified timeout.
40569632Seric	If an incoming message exceeds the maximum message size, stop
40669632Seric		writing the incoming bytes to the queue data file, since
40769632Seric		this can fill your mqueue partition -- this is a possible
40869632Seric		denial-of-service attack.
40969632Seric	Don't reject all numeric local user names unless HESIOD is
41069632Seric		defined.  It turns out that Posix allows all-numeric
41169632Seric		user names.  Fix from Tony Sanders of BSDI.
41269632Seric	Add service switch support.  If the local OS has a service
41369791Seric		switch (e.g., /etc/nsswitch.conf on Solaris or /etc/svc.conf
41469791Seric		on DEC systems) that will be used; otherwise, it falls back
41569791Seric		to using a local mechanism based on the ServiceSwitchFile
41669791Seric		option (default: /etc/service.switch).  For example, if the
41769632Seric		service switch lists "files" and "nis" for the aliases
41869791Seric		service, that will be the default lookup order.  the "files"
41969791Seric		("local" on DEC) service type expands to any alias files
42069791Seric		you listed in the configuration file, even if they aren't
42169791Seric		actually file lookups.
42269632Seric	Option I (NameServerOptions) no longer sets the "UseNameServer"
42369632Seric		variable which tells whether or not DNS should be considered
42469632Seric		canonical.  This is now determined based on whether or not
42569632Seric		"dns" is in the service list for "hosts".
42669632Seric	Add preliminary support for the ESMTP "DSN" extension (Delivery
42769632Seric		Status Notifications).  This is not yet a standard
42869632Seric		and the implementation is for experimentation only.
42969632Seric		For this reason it only announces itself as "X-DSN-0"
43069632Seric		instead of "DSN".  DSN notifications override
43169632Seric		Return-Receipt-To:.
43269632Seric	Add T=mtstype keyletter to mailer definitions to define the value
43369632Seric		for the Final-MTS-Type: and Remote-MTS-Type: fields in the
43469632Seric		DSN-standard return message.
43569632Seric	Extend heuristic to force running in ESMTP mode to look for the
43669632Seric		six-character string "ESMTP " anywhere in the 220 greeting
43769632Seric		message (not just the second line).  This is to provide
43869632Seric		better compatibility with other ESMTP servers.
43969632Seric	Print sequence number of job when running the queue so you can
44069632Seric		easily see how much progress you have made.  Suggested
44169632Seric		by Peter Wemm of DIALix.
44269632Seric	Map newlines to spaces in logged message-ids; some versions of
44369632Seric		syslog truncate the rest of the line after newlines.
44469632Seric		Suggested by Fletcher Mattox of U. Texas.
44569632Seric	Move up forking for job runs so that if a message is split into
44669632Seric		multiple envelopes you don't get "fork storms" -- this
44769632Seric		also improves the connection cache utilization.
44869632Seric	Accept "<<>>", "<<<>>>", and so forth as equivalent to "<>" for
44969632Seric		the purposes of refusing to send error returns.  Suggested
45069632Seric		by Motonori Nakamura of Ritsumeikan University.
45169632Seric	Relax rules on when a file can be written when referenced from
45269632Seric		the aliases file: use the default uid/gid instead of the
45369632Seric		real uid/gid.  This allows you to create a file owned by
45469632Seric		and writable only by the default uid/gid that will work
45569632Seric		all the time (without having the setuid bit set).  Change
45669632Seric		suggested by Shau-Ping Lo and Andrew Cheng of Sun
45769632Seric		Microsystems.
45869632Seric	Add "DialDelay" option (no short name) to provide an "extra"
45969632Seric		delay for dial on demand systems.  If this is non-zero
46069632Seric		and a connect fails, sendmail will wait this long and
46169632Seric		then try again.  If it takes longer than the kernel
46269632Seric		timeout interval to establish the connection, this
46369632Seric		option can give the network software time to establish
46469632Seric		the link.  The default units are seconds.
46569632Seric	Move logging of sender information to be as early as possible;
46669632Seric		previously, it could be delayed a while for SMTP mail
46769632Seric		sent to aliases.  Suggested by Brad Knowles of the
46869632Seric		Defense Information Systems Agency.
46969632Seric	Call res_init() before setting RES_DEBUG; this is required by
47069632Seric		BIND 4.9.3, or so I'm told.  From Douglas Anderson of
47169632Seric		the National Computer Security Center.
47269632Seric	Add xdelay= field in logs -- this is a transaction delay, telling
47369632Seric		you how long it took to deliver to this address on the
47469632Seric		last try.  It is intended to be used for sorting mailing
47569632Seric		lists to favor "quick" addresses.  Provided for use by
47669632Seric		the mailprio scripts (see below).
47769632Seric	If a map cannot be opened, and that map is non-optional, and
47869632Seric		an address requires that map for resolution, queue the
47969632Seric		map instead of bouncing it.  This involves creating a
48069632Seric		pseudo-class of maps called "bogus-map" -- if a required
48169632Seric		map cannot be opened, the class is changed to bogus-map;
48269632Seric		all queries against bogus-map return "tempfail".  The
48369632Seric		bogus-map class is not directly accessible.  A sample
48469632Seric		implementation was donated by Jem Taylor of Glasgow
48569632Seric		University Computing Service.
48669632Seric	Don't make a bad ``MAIL FROM:'' address on one message blow away
48769632Seric		other messages to the same host later in the queue.
48869632Seric		Problem noted by Eric Prestemon of American University.
48969632Seric	Fix a possible core dump when mailing to a program that talks
49069632Seric		SMTP on its standard input.  Fix from Keith Moore of
49169632Seric		the University of Kentucky.
49269632Seric	Make it possible to resolve filenames to $#local $: @ /filename;
49369632Seric		previously, the "@" would cause it to not be recognized
49469632Seric		as a file.  Problem noted by Brian Hill of U.C. Davis.
49569632Seric	Accept a -1 signal to re-exec the daemon.  This only works if
49669632Seric		argv[0] is a full path to sendmail.
49769632Seric	Fix bug in "addr=..." field in O option on little-endian machines
49869632Seric		-- the network number wasn't being converted to network
49969632Seric		byte order.  Patch from Kurt Lidl of Pix Technologies
50069632Seric		Corporation.
50169632Seric	Pre-initialize the resolver early on; this is to avoid a bug with
50269632Seric		BIND 4.9.3 that can cause the _res.retry field to get
50369632Seric		reset to zero, causing all name server lookups to time
50469632Seric		out.  Fix from Matt Day of Artisoft.
50569632Seric	Restore T line (trusted users) in config file -- but instead of
50669632Seric		locking out the -f flag, they just tell whether or not
50769632Seric		an X-Authentication-Warning: will be added.  This really
50869632Seric		just creates new entries in class 't', so "Ft/file/name"
50969632Seric		can be used to read trusted user names from a file.
510*69913Seric		Trusted users are also allowed to execute programs even
511*69913Seric		if they have a shell that isn't in /etc/shells.
51269632Seric	Improve NEWDB alias file rebuilding so it will create them
51369632Seric		properly if they do not already exist.  This had been
51469632Seric		a MAYBENEXTRELEASE feature in 8.6.9.
51569632Seric	Check for @:@ entry in NIS maps before starting up to avoid
51669632Seric		(but not prevent, sigh) race conditions.  This ought to
51769632Seric		be handled properly in ypserv, but isn't.  Suggested by
51869632Seric		Michael Beirne of Motorola.
51969632Seric	Refuse connections if there isn't enough space on the filesystem
52069632Seric		holding the queue.  Contributed by Robert Dana of Wolf
52169632Seric		Communications.
52269632Seric	Skip checking for directory permissions in the path to a file
52369632Seric		when checking for file permissions iff setreuid()
52469632Seric		succeeded -- it is unnecessary in that case.  This avoids
52569632Seric		significant performance problems when looking for .forward
52669632Seric		files.  Based on a suggestion by Win Bent of USC.
52769632Seric	Allow symbolic ruleset names.  Syntax can be "Sname" to get an
52869632Seric		arbitrary ruleset number assigned or "Sname = integer"
52969632Seric		to assign a specific ruleset number.  Reference is
53069632Seric		$>name_or_number.  Names can be composed of alphas, digits,
53169632Seric		underscore, or hyphen (first character must be non-numeric).
53269632Seric	Allow -o flag on AliasFile lines to make the alias file optional.
53369632Seric		From Bryan Costales of ICSI.
53469632Seric	Add NoRecipientAction option to handle the case where there is
53569632Seric		no legal recipient header in the message.  It can take
53669632Seric		on values:
53769632Seric		  None			Leave the message as is.  The
53869632Seric					message will be passed on even
53969632Seric					though it is in technically
54069632Seric					illegal syntax.
54169632Seric		  Add-To		Add a To: header with any
54269632Seric					recipients that it can find from
54369632Seric					the envelope.  This risks exposing
54469632Seric					Bcc: recipients.
54569632Seric		  Add-Apparently-To	Add an Apparently-To: header.  This
54669632Seric					has almost no redeeming social value,
54769632Seric					and is provided only for back
54869632Seric					compatibility.
54969632Seric		  Add-To-Undisclosed	Add a header reading
55069632Seric					To: undisclosed-recipients:;
55169632Seric					which will have the effect of
55269632Seric					making the message legal without
55369632Seric					exposing Bcc: recipients.
55469632Seric		  Add-Bcc		To add an empty Bcc: header.
55569632Seric					There is a chance that mailers down
55669632Seric					the line will delete this header,
55769632Seric					which could cause exposure of Bcc:
55869632Seric					recipients.
55969632Seric		The default is NoRecipientAction=None.
56069632Seric	Truncate (rather than delete) Bcc: lines in the header.  This
56169632Seric		should prevent later sendmails (at least, those that don't
56269632Seric		themselves delete Bcc:) from considering this message to
56369632Seric		be non-conforming -- although it does imply that non-blind
56469632Seric		recipients can see that a Bcc: was sent, albeit not to whom.
56569632Seric	Add SafeFileEnvironment option.  If declared, files named as delivery
56669632Seric		targets must be regular files in addition to the regular
56769632Seric		checks.  Also, if the option is non-null then it is used as
56869632Seric		the name of a directory that is used as a chroot(2)
56969632Seric		environment for the delivery; the file names listed in an
57069632Seric		alias or forward should include the name of this root.
57169632Seric		For example, if you run with
57269632Seric			O SafeFileEnvironment=/arch
57369632Seric		then aliases should reference "/arch/rest/of/path".  If a
57469632Seric		value is given, sendmail also won't try to save to
57569632Seric		/usr/tmp/dead.letter (instead it just leaves the job in the
57669632Seric		queue as Qfxxxxxx).  Inspired by *Hobbit*'s sendmail patch kit.
57769632Seric	Support -A flag for alias files; this will comma concatenate like
57869632Seric		entries.  For example, given the aliases:
57969632Seric			list: member1
58069632Seric			list: member2
58169632Seric		and an alias file declared as:
58269632Seric			OAhash:-A /etc/aliases
58369632Seric		the final alias inserted will be "list: member1,member2";
58469632Seric		without -A you will get an error on the second and subsequent
58569632Seric		alias for "list".  Contributed by Bryan Costales of ICSI.
58669632Seric	Line-buffer transcript file.  Suggested by Liudvikas Bukys.
58769632Seric	Fix a problem that could cause very long addresses to core dump in
58869632Seric		some special circumstances.  Problem pointed out by Allan
58969632Seric		Johannesen.
59069632Seric	(Internal change.)  Change interface to expand() (macro expansion)
59169632Seric		to be simpler and more consistent.
59269632Seric	Delete check for funny qf file names.  This didn't really give
59369632Seric		any extra security and caused some people some problems.
59469632Seric		(If you -really- want this, define PICKY_QF_NAME_CHECK
59569632Seric		at compile time.)  Suggested by Kyle Jones of UUNET.
59669632Seric	(Internal change.)  Change EF_NORETURN to EF_NO_BODY_RETN and
59769632Seric		merge with DSN code; this is simpler and more consistent.
59869632Seric		This may affect some people who have written their own
59969632Seric		checkcompat() routine.
60069632Seric	(Internal change.)  Eliminate `D' line in qf file.  The df file
60169632Seric		is now assumed to be the same name as the qf file (with
60269632Seric		the `q' changed to a `d', of course).
60369632Seric	Avoid forking for delivery if all recipient mailers are marked as
60469632Seric		"expensive" -- this can be a major cost on some systems.
60569632Seric		Essentially, this forces sendmail into "queue only" mode
60669632Seric		if all it is going to do is queue anyway.
60769632Seric	Avoid sending a null message in some rather unusual circumstances
60869632Seric		(specifically, the RCPT command returns a temporary
60969632Seric		failure but the connection is lost before the DATA
61069632Seric		command).  Fix from Scott Hammond of Secure Computing
61169632Seric		Corporation.
61269632Seric	Change makesendmail to use a somewhat more rational naming scheme:
61369632Seric		Makefiles and obj directories are named $os.$rel.$arch,
61469632Seric		where $os is the operating system (e.g., SunOS), $rel is
61569632Seric		the release number (e.g., 5.3), and $arch is the machine
61669632Seric		architecture (e.g., sun4).  Any of these can be omitted,
61769632Seric		and anything after the first dot in a release number can
61869632Seric		be replaced with "x" (e.g., SunOS.4.x.sun4).  The previous
61969632Seric		version used $os.$arch.$rel and was rather less general.
62069632Seric	Ignore IDENT return value if the OSTYPE field returns "OTHER",
62169632Seric		as indicated by RFC 1413.  Pointed out by Kari Hurtta
62269632Seric		of the Finnish Meteorological Institute.
62369632Seric	Fix problem that could cause multiple responses to DATA command
62469632Seric		on header syntax errors (e.g., lines beginning with colons).
62569632Seric		Problem noted by Jens Thomassen of the University of Oslo.
62669632Seric	Don't let null bytes in headers cause truncation of the rest of
62769632Seric		the header.
62869632Seric	Log Authentication-Warning:s.  Suggested by Motonori Nakamura.
62969632Seric	Increase timeouts on message data puts to allow time for receivers
63069632Seric		to canonify addresses in headers on the fly.  This is still
63169632Seric		a rather ugly heuristic.  From Motonori Nakamura.
63269632Seric	Add "HasWildcardMX" suboption to ResolverOptions; if set, MX
63369632Seric		records are not used when canonifying names.  This is
63469632Seric		useful if you have a wildcard MX record, although it
63569632Seric		may cause other problems.  In general, don't use wildcard
63669632Seric		MX records.  Patch from Motonori Nakamura.
63769632Seric	Eliminate default two-line SMTP greeting message.  Instead of
63869632Seric		adding an extra "ESMTP spoken here" line, the word "ESMTP"
63969632Seric		is added between the first and second word of the first
64069632Seric		line of the greeting message (i.e., immediately after the
64169632Seric		host name).  This eliminates the need for the BROKEN_SMTP_PEERS
64269632Seric		compile flag.  Old sendmails won't see the ESMTP, but that's
64369632Seric		acceptable because SIZE was the only useful extension that
64469632Seric		old sendmails understand.
64569632Seric	Avoid gethostbyname calls on UNIX domain sockets during SIGUSR1
64669632Seric		invoked state dumps.  From Masaharu Onishi.
64769632Seric	Allow on-line comments in .forward and :include: files; they are
64869632Seric		introduced by the string "<LWSP>#@#<LWSP>", where <LWSP>
64969632Seric		is a space or a tab.  This is intended for native
65069632Seric		representation of non-ASCII sets such as Japanese, where
65169632Seric		existing encodings would be unreadable or would lose
65269632Seric		data -- for example,
65369632Seric		 <motonori@cs.ritsumei.ac.jp> NAKAMURA Motonori
65469632Seric					(romanized/less information)
65569632Seric		 <motonori@cs.ritsumei.ac.jp> =?ISO-2022-JP?B?GyRCQ2ZCPBsoQg==?=
65669632Seric					      =?ISO-2022-JP?B?GyRCQUdFNRsoQg==?=
65769632Seric					(with MIME encoding, not human readable)
65869632Seric		 <motonori@cs.ritsumei.ac.jp> #@# ^[$BCfB<^[(B ^[$BAGE5^[(B
65969632Seric					(native encoding with ISO-2022-JP)
66069632Seric		The last form is human readable in the Japanese environment.
66169632Seric		Based on a fix from (surprise!) Motonori Nakamura.
66269632Seric	Don't make SMTP error returns on MAIL FROM: line be "sticky" for all
66369632Seric		messages to that host; these are most frequently associated
66469632Seric		with addresses rather than the host, with the exception of
66569632Seric		421 (service shutting down).  The effect was to cause queues
66669632Seric		to sometimes take an excessive time to flush.  Reported by
66769632Seric		Robert Sargent of Southern Geographics Technologies.
66869632Seric	Add Nice=N mailer option to set the niceness at which a mailer will
66969632Seric		run.
67069632Seric	When looking for a default config file (that is, not specified using
67169632Seric		a -C flag), try a configuration file name extended by the
67269632Seric		binary version number -- e.g., sendmail.8.7.Alpha.9.cf,
67369632Seric		sendmail.8.7.Alpha.cf, sendmail.8.7.cf, sendmail.8.cf, and
67469632Seric		sendmail.cf in that order.  This should make it easier to
67569632Seric		test new versions in a shared environment.
67669632Seric	Log queue runs that are skipped due to high loads.  They are logged
67769632Seric		at LOG_INFO priority iff the log level is > 8.  Contributed
67869632Seric		by Bruce Nagel of Data General.
67969632Seric	Allow the error mailer to accept a DSN-style error status code
68069632Seric		instead of an sysexits status code in the host part.
68169632Seric		Anything with a dot will be interpreted as a DSN-style code.
68269632Seric	Add new mailer flag: F=3 will tell translations to Quoted-Printable
68369632Seric		to encode characters that might be munged by an EBCDIC system
68469632Seric		in addition to the set required by RFC 1521.  The additional
68569632Seric		characters are !, ", #, $, @, [, \, ], ^, `, {, |, }, and ~.
68669632Seric		(Think of "IBM 360" as the mnemonic for this flag.)
68769632Seric	Change check for mailing to files to look for a pathname of [FILE]
68869632Seric		rather than looking for the mailer named *file*.  The mapping
68969632Seric		of leading slashes still goes to the *file* mailer.  This
69069632Seric		allows you to implement the *file* mailer as a separate
69169632Seric		program, for example, to insert a Content-Length: header
69269632Seric		or do special security policy.  However, note that the usual
69369632Seric		initial checking for the file permissions is still done, and
69469632Seric		the program in question needs to be very careful about how
69569632Seric		it does the file write to avoid security problems.
69669632Seric	Be able to read ~root/.forward even if the path isn't accessible to
69769632Seric		regular users.  This is disrecommended because sendmail
69869632Seric		sometimes does not run as root (e.g., when an unsafe option
69969632Seric		is specified on the command line), but should otherwise be
70069632Seric		safe because .forward files must be owned by the user for
70169632Seric		whom mail is being forwarded, and cannot be a symbolic link.
70269632Seric		Suggested by Forrest Aldrich of Wang Laboratories.
70369632Seric	Add new "HostsFile" option that is the pathname to the /etc/hosts
70469632Seric		file.  This is used for canonifying hostnames when the
70569632Seric		service type is "files".
70669632Seric	Implement programs on F (read class from file) line.  The syntax is
70769632Seric		Fc|/path/to/program to read the output from the program
70869632Seric		into class "c".
70969632Seric	Probe the network interfaces to find alternate names for this
71069632Seric		host.  Requires the SIOCGIFCONF ioctl call.  Code
71169632Seric		contributed by SunSoft.
71269632Seric	Add "E" configuration line to set or propogate environment
71369632Seric		variables into children.  "E<envar>" will propogate
71469632Seric		the named variable from the environment when sendmail
71569632Seric		was invoked into any children it calls; "E<envar>=<value>"
71669632Seric		sets the named variable to the indicated value.  Any
71769632Seric		variables not explicitly named will not be in the child
71869632Seric		environment.  However, sendmail still forces an
71969632Seric		"AGENT=sendmail" environment variable, in part to enforce
72069632Seric		at least one environment variable, since many programs and
72169632Seric		libraries die horribly if this is not guaranteed.
72269664Seric	Change heuristic for rebuilding both NEWDB and NDBM versions of
72369664Seric		alias databases -- new algorithm looks for the substring
72469664Seric		"/yp/" in the file name.  This is more portable and involves
72569664Seric		less overhead.  Suggested by Motonori Nakamura.
72669732Seric	Dynamically allocate the queue work list so that you don't lose
72769732Seric		jobs in large queue runs.  The old QUEUESIZE compile parameter
72869732Seric		is replaced by QUEUESEGSIZE (the unit of allocation, which
72969732Seric		should not need to be changed) and the MaxQueueRunSize option,
73069732Seric		which is the absolute maximum number of jobs that will ever
73169732Seric		be handled in a single queue run.  Based on code contributed
73269732Seric		by Brian Coan of the Institute for Global Communications.
73369732Seric	Log message when a message is dropped because it exceeds the maximum
73469732Seric		message size.  Suggested by Leo Bicknell of Virginia Tech.
73569791Seric	Allow trusted users (those on a T line or in $=t) to use -bs without
73669791Seric		an X-Authentication-Warning: added.  Suggested by Mark Thomas
73769791Seric		of Mark G. Thomas Consulting.
73869857Seric	Announce state of compile flags on -d0.1 (-d0.10 throws in the
73969857Seric		OS-dependent defines).  The old semantic of -d0.1 to not
74069857Seric		run the daemon in background has been moved to -d99.100,
74169857Seric		and the old 52.5 flag (to avoid disconnect() from closing
74269857Seric		all output files) has been moved to 52.100.  This makes
74369857Seric		things more consistent (flags below .100 don't change
74469857Seric		semantics) and separates out the backgrounding so that
745*69913Seric		it doesn't happen automatically on other unrelated debugging
746*69913Seric		flags.
74769857Seric	If -t is used but no addresses are found in the header, give an
74869857Seric		error message rather than just doing nothing.  Fix from
74969857Seric		Motonori Nakamura.
75069857Seric	On systems (like SunOS) where the effective gid is not necessarily
75169857Seric		included in the group list returned by getgroups(), the
75269857Seric		`restrictmailq' option could sometimes cause an authorized
75369857Seric		user to not be able to use `mailq'.  Fix from Charles Hannum
75469857Seric		of MIT.
75569857Seric	Allow symbolic service names for [IPC] mailers.  Suggested by
75669857Seric		Gerry Magennis of Logica International.
75769857Seric	Add DontExpandCnames option to prevent $[ ... $] from expanding CNAMEs
75869857Seric		when running DNS.  For example, if the name FTP.Foo.ORG is
75969857Seric		a CNAME for Cruft.Foo.ORG, then when sitting on a machine in
76069857Seric		the Foo.ORG domain a lookup of "FTP" returns "Cruft.Foo.ORG"
76169857Seric		if this option is not set, or "FTP.Foo.ORG" if it is set.
76269857Seric		This is technically illegal under RFC 822 and 1123, but the
76369857Seric		IETF is moving toward legalizing it.  Note that turning on
76469857Seric		this option is not sufficient to guarantee that a downstream
76569857Seric		neighbor won't rewrite the address for you.
76669869Seric	Add "-m" flag to makesendmail script -- this tells you what object
76769869Seric		directory and Makefile it will use, but doesn't actually do
76869869Seric		the make.
769*69913Seric	Do some additional checking on the contents of the qf file to try
770*69913Seric		to detect attacks against the qf file.  In particular,
771*69913Seric		abort on any line beginning "From ", and add an "end of
772*69913Seric		file" line -- any data after that line is prohibited.
773*69913Seric	If /etc/sendmail.cf exists, use it regardless of the compile-time
774*69913Seric		setting of _PATH_SENDMAILCF.  This allows sendmail 8 to
775*69913Seric		have consistent install instructions.
77669632Seric	PORTABILITY FIXES:
77769632Seric		Solaris 2 from Rob McMahon <cudcv@csv.warwick.ac.uk>.
77869632Seric		System V Release 4 from Motonori Nakamura of Ritsumeikan
77969632Seric			University.  This expands the disk size
78069632Seric			checking to include all (?) SVR4 configurations.
78169632Seric		System V Release 4 from Kimmo Suominen -- initgroups(3)
78269632Seric			and setrlimit(2) are both available.
78369632Seric		System V Release 4 from sob@sculley.ffg.com -- some versions
78469632Seric			apparently "have EX_OK defined in other headerfiles."
78569632Seric		Linux Makefile typo.
78669632Seric		Linux getusershell(3) is broken in Slackware 2.0 --
78769632Seric			from Andrew Pam of Xanadu Australia.
78869632Seric		More Linux tweaking from John Kennedy of California State
78969632Seric			University, Chico.
79069632Seric		Cray changes from Eric Wassenaar:  ``On Cray, shorts,
79169632Seric			ints, and longs are all 64 bits, and all structs
79269632Seric			are multiples of 64 bits.  This means that the
79369632Seric			sizeof operator returns only multiples of 8.
79469632Seric			This requires adaptation of code that really
79569632Seric			deals with 32 bit or 16 bit fields, such as IP
79669632Seric			addresses or nameserver fields.''
79769632Seric		DG/UX 5.4.3 from Mark T. Robinson <mtr@ornl.gov>.  To
79869632Seric			get the old behaviour, use -DDGUX_5_4_2.
79969632Seric		DG/UX hack: add _FORCE_MAIL_LOCAL_=yes environment
80069632Seric			variable to fix bogus /bin/mail behaviour.
80169632Seric		Tandem NonStop-UX from Rick McCarty <mccarty@mpd.tandem.com>.
80269632Seric			This also cleans up some System V Release 4 compile
80369632Seric			problems.
80469632Seric		Solaris 2: sendmail.cw file should be in /etc/mail to
80569632Seric			match all the other configuration files.  Fix
80669632Seric			from Glenn Barry of Emory University.
80769632Seric		Solaris 2.3: compile problem in conf.c.  Fix from Alain
80869632Seric			Nissen of the University of Liege, Belgium.
80969632Seric		Ultrix: freespace calculation was incorrect.  Fix from
81069632Seric			Takashi Kizu of Osaka University.
81169632Seric		SVR4: running in background gets a SIGTTOU because the
81269632Seric			emulation code doesn't realize that "getpeername"
81369632Seric			doesn't require reading the file.  Fix from Peter
81469632Seric			Wemm of DIALix.
81569632Seric		Solaris 2.3: due to an apparent bug in the socket emulation
81669632Seric			library, sockets can get into a "wedged" state where
81769632Seric			they just return EPROTO; closing and re-opening the
81869632Seric			socket clears the problem.  Fix from Bob Manson
81969632Seric			of Ohio State University.
82069632Seric		Hitachi 3050R & 3050RX running HI-UX/WE2: portability
82169632Seric			fixes from Akihiro Hashimoto ("Hash") of Chiba
82269632Seric			University.
82369632Seric		AIX changes to allow setproctitle to work from Rainer Sch�pf
82469632Seric			of Zentrum f�r Datenverarbeitung der Universit�t
82569632Seric			Mainz.
82669857Seric		AIX changes for load average from Ed Ravin of NASA/Goddard.
82769632Seric		SCO Unix from Chip Rosenthal of Unicom (code was using the
82869632Seric			wrong statfs call).
82969632Seric		ANSI C fixes from Adam Glass (NetBSD project).
83069632Seric		Stardent Titan/ANSI C fixes from Kate Hedstrom of Rutgers
83169632Seric			University.
83269632Seric		DG-UX fixes from Bruce Nagel of Data General.
83369632Seric		IRIX64 updates from Mark Levinson of the University of
83469632Seric			Rochester Medical Center.
83569632Seric		Altos System V (``the first UNIX/XENIX merge the Altos
83669632Seric			did for their Series 1000 & Series 2000 line;
83769632Seric			their merged code was licenced back to AT&T and
83869632Seric			Microsoft and became System V release 3.2'') from
83969632Seric			Tim Rice <timr@crl.com>.
84069632Seric		OSF/1 running on Intel Paragon from Jeff A. Earickson
84169632Seric			<jeff@ssd.intel.com> of Intel Scalable Systems
84269632Seric			Divison.
84369632Seric		Amdahl UTS System V 2.1.5 (SVr3-based) from Janet Jackson
84469632Seric			<janet@dialix.oz.au>.
84569632Seric		System V Release 4 (statvfs semantic fix) from Alain
84669632Seric			Durand of I.M.A.G.
84769632Seric		HP-UX 10.x multiprocessor load average changes from
84869632Seric			Scott Hutton and Jeff Sumler of Indiana University.
84969632Seric		Cray CSOS from Scott Bolte of Cray Computer Corporation.
85069632Seric		Unicos 8.0 from Douglas K. Rand of the University of North
85169632Seric			Dakota, Scientific Computing Center.
85269632Seric		Solaris 2.4 fixes from Sanjay Dani of Dani Communications.
85369632Seric		ConvexOS 11.0 from Christophe Wolfhugel.
85469632Seric		IRIX 4.0.5 from David Ashton-Reader of CADcentre.
85569632Seric		ISC UNIX from J. J. Bailey.
85669632Seric		HP-UX 9.xx on the 8xx series machines from Remy Giraud
85769632Seric			of Meteo France.
85869632Seric		HP-UX configuration from Tom Lane <tgl@sss.pgh.pa.us>.
85969632Seric		IRIX 5.2 and 5.3 from Kari E. Hurtta.
86069632Seric		FreeBSD 2.0 from Mike Hickey of Federal Data Corporation.
86169632Seric		Sony NEWS-OS 4.2.1R and 6.0.3 from Motonori Nakamura.
86269632Seric		Omron LUNA unios-b, mach from Motonori Nakamura.
86369632Seric		NEC EWS-UX/V 4.2 from Motonori Nakamura.
86469632Seric		NeXT 2.1 from Bryan Costales.
86569632Seric		AUX patch thanks to Mike Erwin of Apple Computer.
86669632Seric		HP-UX 10.0 from John Beck of Hewlett-Packard.
86769632Seric		Ultrix: allow -DBROKEN_RES_SEARCH=0 if you are using a
86869632Seric			non-DEC resolver.  Suggested by Allan Johannesen.
86969857Seric		UnixWare 2.0 fixes from Petr Lampa of the Technical
87069857Seric			University of Brno (Czech Republic).
87169632Seric	MAKEMAP: allow -d flag to allow insertion of duplicate aliases
87269632Seric		in type ``btree'' maps.  The semantics of this are undefined
87369632Seric		for regular maps, but it can be useful for the user database.
87469632Seric	MAKEMAP: lock database file while rebuilding to avoid sendmail
87569632Seric		lookups while the rebuild is going on.  There is a race
87669632Seric		condition between the open(... O_TRUNC ...) and the lock
87769632Seric		on the file, but it should be quite small.
87869632Seric	SMRSH: sendmail restricted shell added to the release.  This can
87969632Seric		be used as an alternative to /bin/sh for the "prog" mailer,
88069632Seric		giving the local administrator more control over what
88169632Seric		programs can be run from sendmail.
88269791Seric	MAIL.LOCAL: add this local mailer to the tape.  It is not really
88369791Seric		part of the release proper, and isn't fully supported; in
88469791Seric		particular, it does not run on System V based systems and
88569791Seric		never will.
88669632Seric	CONTRIB: a patch to rmail.c from Bill Gianopoulos of Raytheon
88769632Seric		to allow rmail to compile on systems that don't have
88869632Seric		function prototypes and systems that don't have snprintf.
88969632Seric	CONTRIB: add the "mailprio" scripts that will help you sort mailing
89069632Seric		lists by transaction delay times so that addresses that
89169632Seric		respond quickly get sent first.  This is to prevent very
89269632Seric		sluggish servers from delaying other peoples' mail.
89369632Seric		Contributed by Tony Sanders of BSDI.
89469632Seric	CONTRIB: add the "bsdi.mc" file as contributed by Tony Sanders
89569632Seric		of BSDI.  This has a lot of comments to help people out.
89669632Seric	CONFIG: fix mail from <> so it will properly convert to
89769632Seric		MAILER-DAEMON on local addresses.
89869632Seric	CONFIG: fix code that was supposed to catch colons in host
89969632Seric		names.  Problem noted by John Gardiner Myers of CMU.
90069632Seric	CONFIG: allow use of SMTP_MAILER_MAX in nullclient configuration.
90169632Seric		From Paul Riddle of the University of Maryland, Baltimore
90269632Seric		County.
90369632Seric	CONFIG: Catch and reject "." as a host address.
90469632Seric	CONFIG: Generalize domaintable to look up all domains, not
90569632Seric		just unqualified ones.
90669632Seric	CONFIG: Delete OLD_SENDMAIL support -- as near as I can tell, it
90769632Seric		was never used and didn't work anyway.
90869632Seric	CONFIG: Set flags A, w, 5, :, /, |, and @ on the "local" mailer
90969632Seric		and d on all mailers in the UUCP class.
91069632Seric	CONFIG: Allow "user+detail" to be aliased specially: it will first
91169632Seric		look for an alias for "user+detail", then for "user+*", and
91269632Seric		finally for "user".  This is intended for forwarding mail
91369632Seric		for system aliases such as root and postmaster to a
91469632Seric		centralized hub.
91569632Seric	CONFIG: add confEIGHT_BIT_HANDLING to set option 8 (see above).
91669632Seric	CONFIG: add smtp8 mailer; this has the F=8 (just-send-8) flag set.
91769632Seric		The F=8 flag is also set on the "relay" mailer, since
91869632Seric		this is expected to be another sendmail.
91969632Seric	CONFIG: avoid qualifying all UUCP addresses sent via SMTP with
92069632Seric		the name of the UUCP_RELAY -- in some cases, this is the
92169632Seric		wrong value (e.g., when we have local UUCP connections),
92269632Seric		and this can create unreplyable addresses.  From Chip
92369632Seric		Rosenthal of Unicom.
92469632Seric	CONFIG: add confRECEIVED_HEADER to change the format of the
92569632Seric		Received: header inserted into all messages. Suggested by
92669632Seric		Gary Mills of the University of Manitoba.
92769632Seric	CONFIG: Make "notsticky" the default; use FEATURE(stickyhost)
92869632Seric		to get the old behaviour.  I did this upon observing
92969632Seric		that almost everyone needed this feature, and that the
93069632Seric		concept I was trying to make happen didn't work with
93169632Seric		some user agents anyway.  FEATURE(notsticky) still works,
93269632Seric		but it is a no-op.
93369632Seric	CONFIG: Add LUSER_RELAY -- the host to which unrecognized user
93469632Seric		names are sent, rather than immediately diagnosing them
93569632Seric		as User Unknown.
93669632Seric	CONFIG: Add SMTP_MAILER_ARGS, ESMTP_MAILER_ARGS, SMTP8_MAILER_ARGS,
93769632Seric		and RELAY_MAILER_ARGS to set the arguments for the
93869632Seric		indicated mailers.  All default to "IPC $h".  Patch from
93969632Seric		Larry Parmelee of Cornell University.
94069632Seric	CONFIG: pop mailer needs F=n flag to avoid "annoying side effects
94169632Seric		on the client side" and F=P to get an appropriate
94269632Seric		return-path.  From Kimmo Suominen.
94369632Seric	CONFIG: add FEATURE(local_procmail) to use the procmail program
94469632Seric		as the local mailer.  For addresses of the form "user+detail"
94569632Seric		the "detail" part is passed to procmail via the -a flag.
94669632Seric		Contributed by Kimmo Suominen.
94769632Seric	CONFIG: add MAILER(procmail) to add an interface to procmail for
94869632Seric		use from mailertables.  This lets you execute arbitrary
94969632Seric		procmail scripts.  Contributed by Kimmo Suominen.
95069632Seric	CONFIG: add T= fields (MTS type) to local, smtp, and uucp mailers.
95169632Seric	CONFIG: add OSTYPE(ptx2) for DYNIX/ptx 2.x from Sequent.  From
95269632Seric		Paul Southworth of CICNet Systems Support.
95369632Seric	CONFIG: use -a$g as default to UUCP mailers, instead of -a$f.
95469632Seric		This causes the null return path to be rewritten as
95569632Seric		MAILER-DAEMON; otherwise UUCP gets horribly confused.
95669632Seric		From Michael Hohmuth of Technische Universitat Dresden.
95769632Seric	CONFIG: Add FEATURE(bestmx_is_local) to cause any hosts that
95869632Seric		list us as the best possible MX record to be treated as
95969632Seric		though they were local (essentially, assume that they
96069632Seric		are included in $=w).  This can cause additional DNS
96169632Seric		traffic, but is easier to administer if this fits your
96269632Seric		local model.  It does not work reliably if there are
96369632Seric		multiple hosts that share the best MX preference.
96469632Seric		Code contributed by John Oleynick of Rutgers.
96569632Seric	CONFIG: Add FEATURE(smrsh) to use smrsh (the SendMail Restricted
96669632Seric		SHell) instead of /bin/sh as the program used for delivery
96769632Seric		to programs.  If an argument is included, it is used as
96869632Seric		the path to smrsh; otherwise, /usr/local/etc/smrsh is
96969632Seric		assumed.
97069632Seric	CONFIG: Add LOCAL_MAILER_MAX and PROCMAILER_MAILER_MAX to limit the
97169632Seric		size of messages to the local and procmail mailers
97269632Seric		respectively.  Contributed by Brad Knowles of the Defense
97369632Seric		Information Systems Agency.
97469632Seric	CONFIG: Handle leading ``phrase:'' and trailing ``;'' as comments
97569632Seric		(just like text outside of angle brackets) in order to
97669632Seric		properly deal with ``group: addr1, ... addrN;'' syntax.
97769632Seric	CONFIG: Require OSTYPE macro (the defaults really don't apply to
97869632Seric		any real systems any more) and tweak the DOMAIN macro
97969632Seric		so that it is less likely that users will accidently use
98069632Seric		the Berkeley defaults.  Also, create some generic files
98169632Seric		that really can be used in the real world.
98269632Seric	CONFIG: Add new configuration macros to set character sets for
98369632Seric		messages _arriving from_ various mailers: LOCAL_MAILER_CHARSET,
98469632Seric		SMTP_MAILER_CHARSET, and UUCP_MAILER_CHARSET.
98569632Seric	CONFIG: Change UUCP_MAX_SIZE to UUCP_MAILER_MAX for consistency.
98669632Seric		The old name will still be accepted for a while at least.
98769632Seric	CONFIG: Implement DECNET_RELAY as spec for host to which DECNET
98869632Seric		mail (.DECNET pseudo-domain or node::user) will be sent.
98969632Seric		As with all relays, it can be ``mailer:hostname''.  Suggested
99069632Seric		by Scott Hutton.
99169632Seric	CONFIG: Add MAILER(mail11) to get DECnet support.  Code contributed
99269632Seric		by Barb Dijker of Labyrinth Computer Services.
99369664Seric	CONFIG: change confCHECK_ALIASES to default to False -- it has poor
99469664Seric		performance for large alias files, and this confused many
99569664Seric		people.
99669857Seric	CONFIG: Add confCF_VERSION to append local information to the
99769857Seric		configuration version number displayed during SMTP startup.
99869857Seric	CONFIG: fix some.newsgroup.usenet@local.host syntax (previously it
99969857Seric		would only work when locally addressed.  Fix from
100069857Seric		Edvard Tuinder of Cistron Internet Services.
100169632Seric	NEW FILES:
100269632Seric		cf/cf/cs-hpux10.mc
100369632Seric		cf/cf/cs-solaris2.mc
100469632Seric		cf/cf/generic-hpux10.mc
100569632Seric		cf/cf/generic-hpux9.mc
100669632Seric		cf/cf/generic-osf1.mc
100769632Seric		cf/cf/generic-solaris2.mc
100869632Seric		cf/cf/generic-sunos4.1.mc
100969632Seric		cf/cf/generic-ultrix4.mc
101069632Seric		cf/cf/huginn.cs.mc
101169632Seric		cf/domain/berkeley-only.m4
101269632Seric		cf/domain/generic.m4
101369632Seric		cf/feature/bestmx_is_local.m4
101469632Seric		cf/feature/local_procmail.m4
101569632Seric		cf/feature/smrsh.m4
101669632Seric		cf/feature/stickydomain.m4
101769664Seric		cf/mailer/mail11.m4
101869632Seric		cf/mailer/procmail.m4
101969632Seric		cf/ostype/amdahl-uts.m4
102069632Seric		cf/ostype/hpux10.m4
1021*69913Seric		cf/ostype/isc4.1.m4
102269632Seric		cf/ostype/ptx2.m4
102369632Seric		cf/ostype/unknown.m4
102469632Seric		contrib/bsdi.mc
102569632Seric		contrib/mailprio
102669632Seric		contrib/rmail.oldsys.patch
102769632Seric		smrsh/README
102869632Seric		smrsh/smrsh.8
102969632Seric		smrsh/smrsh.c
103069632Seric		src/Makefiles/Makefile.CSOS
103169664Seric		src/Makefiles/Makefile.EWS-UX_V
1032*69913Seric		src/Makefiles/Makefile.HP-UX.10
103369632Seric		src/Makefiles/Makefile.IRIX.5.x
103469632Seric		src/Makefiles/Makefile.IRIX64
103569632Seric		src/Makefiles/Makefile.ISC
103669664Seric		src/Makefiles/Makefile.NEWS-OS.4.x
103769664Seric		src/Makefiles/Makefile.NEWS-OS.6.x
103869632Seric		src/Makefiles/Makefile.NonStop-UX
103969632Seric		src/Makefiles/Makefile.Paragon
104069632Seric		src/Makefiles/Makefile.SunOS.5.3
104169632Seric		src/Makefiles/Makefile.SunOS.5.4
104269791Seric		src/Makefiles/Makefile.SunOS.5.5
104369857Seric		src/Makefiles/Makefile.UNIX_SV.4.x.i386
104469632Seric		src/Makefiles/Makefile.uts.systemV
104569632Seric		src/mime.c
104669664Seric		test/t_seteuid.c
104769632Seric	RENAMED FILES:
104869632Seric		cf/cf/alpha.mc =>		cf/cf/s2k-osf1.mc
104969632Seric		cf/cf/chez.mc =>		cf/cf/chez.cs.mc
105069632Seric		cf/cf/hpux-cs-exposed.mc =>	cf/cf/cs-hpux9.mc
105169632Seric		cf/cf/osf1-cs-exposed.mc =>	cf/cf/cs-osf1.mc
105269632Seric		cf/cf/s2k.mc =>			cf/cf/s2k-ultrix4.mc
105369632Seric		cf/cf/sunos4.1-cs-exposed.mc =>	cf/cf/cs-sunos4.1.mc
105469632Seric		cf/cf/ultrix4.1-cs-exposed.mc => cf/cf/cs-ultrix4.mc
105569632Seric		cf/cf/vangogh.mc =>		cf/cf/vangogh.cs.mc
105669632Seric		cf/domain/Berkeley.m4 =>	cf/domain/Berkeley.EDU.m4
105769632Seric		cf/domain/cs-exposed.m4 =>	cf/domain/CS.Berkeley.EDU.m4
105869632Seric		cf/domain/eecs-hidden.m4 =>	cf/domain/EECS.Berkeley.EDU.m4
105969632Seric		cf/domain/s2k.m4 =>		cf/domain/S2K.Berkeley.EDU.m4
106069632Seric		cf/ostype/hpux.m4 =>		cf/ostype/hpux9.m4
106169632Seric		cf/ostype/ultrix4.1.m4 =>	cf/ostype/ultrix4.m4
106269632Seric		src/Makefile.* =>		src/Makefiles/Makefile.*
106369867Seric		src/Makefile.BSDI =>		src/Makefiles/Makefile.BSD-OS
106469678Seric		src/Makefile.SunOS.4.0.3 =>	src/Makefiles/Makefile.SunOS.4.0
106569632Seric	OBSOLETED FILES:
106669632Seric		cf/cf/cogsci.mc
106769632Seric		cf/cf/cs-exposed.mc
106869632Seric		cf/cf/cs-hidden.mc
106969632Seric		cf/cf/hpux-cs-hidden.mc
107069632Seric		cf/cf/knecht.mc
107169632Seric		cf/cf/osf1-cs-hidden.mc
107269632Seric		cf/cf/sunos3.5-cs-exposed.mc
107369632Seric		cf/cf/sunos3.5-cs-hidden.mc
107469632Seric		cf/cf/sunos4.1-cs-hidden.mc
107569632Seric		cf/cf/ultrix4.1-cs-hidden.mc
107669632Seric		cf/domain/cs-hidden.m4
107769632Seric		contrib/rcpt-streaming
107869632Seric		src/Makefiles/Makefile.SunOS.5.x
107969632Seric
108068613Seric8.6.12/8.6.12	95/03/28
108168613Seric	Fix to IDENT code (it was getting the size of the reply buffer
108268613Seric		too small, so nothing was ever accepted).  Fix from several
108368613Seric		people, including Allan Johannesen, Shane Castle of the
108468613Seric		Boulder County Information Services, and Jeff Smith of
108568613Seric		Warwick University (all arrived within a few hours of
108668613Seric		each other!).
108768613Seric	Fix a problem that could cause large jobs to run out of
108868613Seric		file descriptors on systems that use vfork() rather
108968613Seric		than fork().
109068613Seric
109168503Seric8.6.11/8.6.11	95/03/08
109268503Seric	The ``possible attack'' message would be logged more often
109368503Seric		than necessary if you are using Pine as a user agent.
109468503Seric	The wrong host would be reported in the ``possible attack''
109568503Seric		message when attempted from IDENT.
109668503Seric	In some cases the syslog buffer could be overflowed when
109768503Seric		reporting the ``possible attack'' message.  This can
109868503Seric		cause denial of service attacks.  Truncate the message
109968503Seric		to 80 characters to prevent this problem.
110068503Seric	When reading the IDENT response a loop is needed around the
110168503Seric		read from the network to ensure that you don't get
110268503Seric		partial lines.
110368503Seric	Password entries without any shell listed (that is, a null
110468503Seric		shell) wouldn't match as "ok".  Problem noted by
110568503Seric		Rob McMahon.
110668503Seric	When running BIND 4.9.x a problem could occur because the
110768503Seric		_res.options field is initialized differently than it
110868503Seric		was historically -- this requires that sendmail call
110968503Seric		res_init before it tweaks any bits.
111068503Seric	Fix an incompatibility in openxscript() between the file open mode
111168503Seric		and the stdio mode passed to fdopen.  This caused UnixWare
111268503Seric		2.0 to have conniptions.  Fix from Martin Sohnius of
111368503Seric		Novell Labs Europe.
111468503Seric	Fix problem with static linking of local getopt routine when
111568503Seric		using GNU's ld command.  Fix from John Kennedy of
111668503Seric		Cal State Chico.
111768503Seric	It was possible to turn off privacy flags.  Problem noted by
111868503Seric		*Hobbit*.
111968503Seric	Be more paranoid about writing files.  Suggestions by *Hobbit*
112068503Seric		and Liudvikas Bukys.
112168503Seric	MAKEMAP: fixes for 64 bit machines (DEC Alphas in particular)
112268503Seric		from Spider Boardman.
112368503Seric	CONFIG: No changes (version number only, to keep it in sync
112468503Seric		with the binaries).
112568503Seric
112668280Seric8.6.10/8.6.10	95/02/10
112768274Seric	SECURITY: Diagnose bogus values to some command line flags that
112868274Seric		could allow trash to get into headers and qf files.
112968274Seric	Validate the name of the user returned by the IDENT protocol.
113068274Seric		Some systems that really dislike IDENT send intentionally
113168274Seric		bogus information.  Problem pointed out by Michael Bushnell
113268274Seric		of the Free Software Foundation.  Has some security
113368274Seric		implications.
113468274Seric	Fix a problem causing error messages about DNS problems when
113568274Seric		the host name contained a percent sign to act oddly
113668274Seric		because it was passed as a printf-style format string.
113768274Seric		In some cases this could cause core dumps.
113868274Seric	Avoid possible buffer overrun in returntosender() if error
113968274Seric		message is quite ling.  From Fletcher Mattox of the
114068274Seric		University of Texas.
114168274Seric	Fix a problem that would silently drop "too many hops" error
114268274Seric		messages if and only if you were sending to an alias.
114368274Seric		From Jon Giltner of the University of Colorado and
114468274Seric		Dan Harton of Oak Ridge National Laboratory.
114568274Seric	Fix a bug that caused core dumps on some systems if -d11.2 was
114668274Seric		set and e->e_message was null.  Fix from Bruce Nagel of
114768274Seric		Data General.
114868274Seric	Fix problem that can still cause df files to be left around
114968274Seric		after "hop count exceeded" messages.  Fix from Andrew
115068274Seric		Chang and Shau-Ping Lo of SunSoft.
115168274Seric	Fix a problem that can cause buffer overflows on very long
115268274Seric		user names (as might occur if you piped to a program
115368274Seric		with a lot of arguments).
115468274Seric	Avoid returning an error and re-queueing if the host signature
115568274Seric		is null; this can occur on addresses like ``user@.''.
115668274Seric		Problem noted by Wesley Craig and the University of
115768274Seric		Michigan.
115868274Seric	Avoid possible calls to malloc(0) if MCI caching is turned
115968274Seric		off.  Bug fix from Pierre David of the Laboratoire
116068274Seric		Parallelisme, Reseaux, Systemes et Modelisation (PRiSM),
116168274Seric		Universite de Versailles - St Quentin, and Jacky
116268274Seric		Thibault.
116368274Seric	Make a local copy of the line being sent via senttolist() -- in
116468274Seric		some cases, buffers could get trashed by map lookups
116568274Seric		causing it to do unexpected things.  This also simplifies
116668274Seric		some of the map code.
116768503Seric	CONFIG: No changes (version number only, to keep it in sync
116868503Seric		with the binaries).
116968274Seric
117066956Seric8.6.9/8.6.9	94/04/19
117166920Seric	Do all mail delivery completely disconnected from any terminal.
117266920Seric		This provides consistency with daemon delivery and
117366920Seric		may have some security implications.
117466920Seric	Make sure that malloc doesn't get called with zero size,
117566920Seric		since that fails on some systems.  Reported by Ed
117666920Seric		Hill of the University of Iowa.
117766920Seric	Fix multi-line values for $e (SMTP greeting message).  Reported
117866920Seric		by Mike O'Connor of Ford Motor Company.
117966920Seric	Avoid syserr if no NIS domain name is defined, but the map it
118066920Seric		is trying to open is optional.  From Win Bent of USC.
118166920Seric	Changes for picky compilers from Ed Gould of Digital Equipment.
118266920Seric	Hesiod support for UDB from Todd Miller of the University of
118366920Seric		Colorado.  Use "hesiod" as the service name in the U
118466920Seric		option.
118566920Seric	Fix a problem that failed to set the "authentic" host name (that
118666920Seric		is, the one derived from the socket info) if you called
118766920Seric		sendmail -bs from inetd.  Based on code contributed by
118866920Seric		Todd Miller (this problem was also reported by Guy Helmer
118966920Seric		of Dakota State University).  This also fixes a related
119066996Seric		problem reported by Liudvikas Bukys of the University of
119166996Seric		Rochester.
119266920Seric	Parameterize "nroff -h" in all the Makefiles so people with
119366920Seric		variant versions can use them easily.  Suggested by
119466920Seric		Peter Collinson of Hillside Systems.
119566920Seric	SMTP "MAIL" commands with multiple ESMTP parameters required two
119666920Seric		spaces between parameters instead of one.  Reported by
119766920Seric		Valdis Kletnieks of Virginia Tech.
119866920Seric	Reduce the number of system calls during message collection by
119966920Seric		using global timeouts around the collect() loop.  This
120066920Seric		code was contributed by Eric Wassenaar.
120166920Seric	If the initial hostname name gathering results in a name
120266920Seric		without a dot (usually caused by NIS misconfiguration)
120366920Seric		and BIND is compiled in, directly access DNS to get
120466920Seric		the canonical name.  This should make life easier for
120566920Seric		Solaris systems.  If it still can't be resolved, and
120666920Seric		if the name server is listed as "required", try again
120766920Seric		in 30 seconds.  If that also fails, exit immediately to
120866920Seric		avoid bogus "config error: mail loops back to myself"
120966920Seric		messages.
121066920Seric	Improve the "MAIL DELETED BECAUSE OF LACK OF DISK SPACE" error
121166920Seric		message to explain how much space was available and
121266920Seric		sound a bit less threatening.  Suggested by Stan Janet
121366920Seric		of the National Institute of Standards and Technology.
121466920Seric	If mail is delivered to an alias that has an owner, deliver any
121566920Seric		requested return-receipt immediately, and strip the
121666920Seric		Return-Receipt-To: header from the subsequent message.
121766920Seric		This prevents a certain class of denial of service
121866920Seric		attack, arguably gives more reasonable semantics, and
121966920Seric		moves things more towards what will probably become a
122066920Seric		network standard.  Suggested by Christopher Davis of
122166920Seric		Kapor Enterprises.
122266920Seric	Add a "noreceipts" privacy flag to turn off all return receipts
122366920Seric		without recompiling.
122466920Seric	Avoid printing ESMTP parameters as part of the error message
122566920Seric		if there are errors during parsing.  This change is
122666920Seric		purely cosmetic.
122766920Seric	Avoid sending out error messages during the collect phase of
122866920Seric		SMTP; there is an MVS mailer from UCLA that gets
122966920Seric		confused by this.  Of course, I think it's their bug....
123066920Seric	Check for the $j macro getting undefined, losing a dot, or getting
123166920Seric		lost from $=w in the daemon before accepting a connection;
123266920Seric		if it is, it dumps state, prints a LOG_ALERT message,
123366920Seric		and drops core for debugging.  This is an attempt to
123466920Seric		track down a bug that I thought was long since gone.
123566920Seric		If you see this, please forward the log fragment to
123666920Seric		sendmail@CS.Berkeley.EDU.
123766920Seric	Change OLD_NEWDB from a #ifdef to a #if so it can be turned off
123866920Seric		with -DOLD_NEWDB=0 on the command line.  From Christophe
123966920Seric		Wolfhugel.
124066920Seric	Instead of trying to truncate the listen queue for the server
124166920Seric		SMTP port when the load average is too high, just close
124266920Seric		the port completely and reopen it later as needed.
124366920Seric		This ensures that the other end gets a quick "connection
124466920Seric		refused" response, and that the connection can be
124566920Seric		recovered later.  In particular, some socket emulations
124666920Seric		seem to get confused if you tweak the listen queue
124766920Seric		size around and can never start listening to connections
124866920Seric		again.  The down side is that someone could start up
124966920Seric		another daemon process in the interim, so you could
125066920Seric		have multiple daemons all not listening to connections;
125166920Seric		this could in turn cause the sendmail.pid file to be
125266920Seric		incorrect.  A better approach might be to accept the
125366920Seric		connection and give a 421 code, but that could break
125466920Seric		other mailers in mysterious ways and have paging behaviour
125566920Seric		implications.
125666920Seric	Fix a glitch in TCP-level debugging that caused flag 16.101 to
125766920Seric		set debugging on the wrong socket.  From Eric Wassenaar.
125866920Seric	When creating a df* temporary file, be sure you truncate any
125966920Seric		existing data in the file -- otherwise system crashes
126066920Seric		and the like could result in extra data being sent.
126166920Seric	DOC: Replace the CHANGES-R5-R8 readme file with a paper in the
126266920Seric		doc directory.  This includes some additional
126366920Seric		information.
126466920Seric	CONFIG: change UUCP rules to never add $U! or $k! on the front
126566920Seric		of recipient envelope addresses.  This should have been
126666920Seric		handled by the $&h trick, but broke if people were
126766920Seric		mixing domainized and UUCP addresses.  They should
126866920Seric		probably have converted all the way over to uucp-uudom
126966920Seric		instead of uucp-{new,old}, but the failure mode was to
127066920Seric		loop the mail, which was bad news.
127166920Seric	Portability fixes:
127266920Seric		Newer BSDI systems (several people).
127366920Seric		Older BSDI systems from Christophe Wolfhugel.
127466920Seric		Intergraph CLIX, from Paul Southworth of CICNet.
127566920Seric		UnixWare, from Evan Champion.
127666920Seric		NetBSD from Adam Glass.
127766920Seric		Solaris from Quentin Campbell of the University of
127866920Seric			Newcastle upon Tyne.
127966920Seric		IRIX from Dean Cookson and Bill Driscoll of Mitre
128066920Seric			Corporation.
128169632Seric		NCR 3000 from Kevin Darcy of Chrysler Financial Corporation.
128266920Seric		SunOS (it has setsid() and setvbuf() calls) from
128366920Seric			Jonathan Kamens of OpenVision Technologies.
128466920Seric		HP-UX from Tor Lillqvist.
128566920Seric	New Files:
128666920Seric		src/Makefile.CLIX
128766920Seric		src/Makefile.NCR3000
128866920Seric		doc/changes/Makefile
128966920Seric		doc/changes/changes.me
129066920Seric		doc/changes/changes.ps
129166920Seric
129266432Seric8.6.8/8.6.6	94/03/21
129366432Seric	SECURITY: it was possible to read any file as root using the
129466432Seric		E (error message) option.  Reported by Richard Jones;
129566432Seric		fixed by Michael Corrigan and Christophe Wolfhugel.
129666432Seric
129766356Seric8.6.7/8.6.6	94/03/14
129866356Seric	SECURITY: it was possible to get root access by using wierd
129966356Seric		values to the -d flag.  Thanks to Alain Durand of
130066356Seric		INRIA for forwarding me the notice from the bugtraq
130166356Seric		list.
130266356Seric
130366352Seric8.6.6/8.6.6	94/03/13
130466352Seric	SECURITY: the ability to give files away on System V-based
130566352Seric		systems proved dangerous -- don't run as the owner
130666352Seric		of a :include: file on a system that allows giveaways.
130766352Seric		Unfortunately, this also applies to determining a
130866352Seric		valid shell.
130966352Seric	IMPORTANT: Previous versions weren't expiring old connections
131066352Seric		in the connection cache for a long time under some
131166352Seric		circumstances.  This could result in resource exhaustion,
131266352Seric		both at your end and at the other end.  This checks the
131366352Seric		connections for timeouts much more frequently.  From
131466352Seric		Doug Anderson of NCSC.
131566352Seric	Fix a glitch that snuck in that caused programs to be run as
131666352Seric		the sender instead of the recipient if the mail was
131766352Seric		from a local user to another local user.  From
131866352Seric		Motonori Nakamura of Kyoto University.
131966352Seric	Fix "wildcard" on /etc/shell matching -- instead of looking
132066352Seric		for "*", look for "/SENDMAIL/ANY/SHELL/".  From
132166352Seric		Bryan Costales of ICSI.
132266352Seric	Change the method used to declare the "statfs" availability;
132366352Seric		instead of HASSTATFS and/or HASUSTAT with a ton of
132466352Seric		tweaking in conf.c, there is a single #define called
132566352Seric		SFS_TYPE which takes on one of six values (SFS_NONE
132666352Seric		for no statfs availability, SFS_USTAT for the ustat(2)
132766352Seric		syscall, SFS_4ARGS for a four argument statfs(2) call,
132866352Seric		and SFS_VFS, SFS_MOUNT, or SFS_STATFS for a two argument
132966352Seric		statfs(2) call with the declarations in <sys/vfs.h>,
133066352Seric		<sys/mount.h>, or <sys/statfs.h> respectively).
133166352Seric	Fix glitch in NetInfo support that could return garbage if
133266352Seric		there was no "/locations/sendmail" property.  From
133366352Seric		David Meyer of the University of Virginia.
133466352Seric	Change HASFLOCK from defined/not-defined to a 0/1 definition
133566352Seric		to allow Linux to turn it off even though it is a
133666352Seric		BSD-like system.
133766352Seric	Allow setting of "ident" timeout to zero to turn off the ident
133866352Seric		protocol entirely.
133966352Seric	Make 7-bit stripping local to a connection (instead of to a
134066352Seric		mailer); this allows you to specify that SMTP is a
134166352Seric		7-bit channel, but revert to 8-bit should it advertise
134266352Seric		that it supports 8BITMIME.  You still have to specify
134366352Seric		mailer flag 7 to get this stripping at all.
134466352Seric	Improve makesendmail script so it handles more cases automatically.
134566352Seric	Tighten up restrictions on taking ownership of :include: files
134666352Seric		to avoid problems on systems that allow you to give away
134766352Seric		files.
134866352Seric	Fix a problem that made it impossible to rebuild the alias
134966352Seric		file if it was on a read-only file system.  From
135066352Seric		Harry Edmon of the University of Washington.
135166352Seric	Improve MX randomization function.  From John Gardiner Myers
135266352Seric		of CMU.
135366352Seric	Fix a minor glitch causing a bogus message to be printed (used
135466352Seric		%s instead of %d in a printf string for the line number)
135566352Seric		when a bad queue file was read.  From Harry Edmon.
135666352Seric	Allow $s to remain NULL on locally generated mail.  I'm not
135766352Seric		sure this is necessary, but a lot of people have complained
135866352Seric		about it, and there is a legitimate question as to whether
135966352Seric		"localhost" is legal as an 822-style domain.
136066352Seric	Fix a problem with very short line lengths (mailer L= flag) in
136166352Seric		headers.  This causes a leading space to be added onto
136266352Seric		continuation lines (including in the body!), and also
136366352Seric		tries to wrap headers containing addresses (From:, To:,
136466352Seric		etc) intelligently at the shorter line lengths.  Problem
136566352Seric		Reported by Lars-Johan Liman of SUNET Operations Center.
136666352Seric	Log the real user name when logging syserrs, since these can have
136766352Seric		security implications.  Suggested by several people.
136866352Seric	Fix address logging of cached connections -- it used to always
136966352Seric		log the numeric address as zero.  This is a somewhat
137066352Seric		bogus implementation in that it does an extra system
137166352Seric		call, but it should be an inexpensive one.  Fix from
137266352Seric		Motonori Nakamura.
137366352Seric	Tighten up handling of short syslog buffers even more -- there
137466352Seric		were cases where the outgoing relay= name was too long
137566352Seric		to share a line with delay= and mailer= logging.
137666352Seric	Limit the overhead on split envelopes to one open file descriptor
137766352Seric		per envelope -- previously the overhead was three
137866352Seric		descriptors.  This was in response to a problem reported
137966352Seric		by P{r (Pell) Emanuelsson.
138066352Seric	Fixes to better handle the case of unexpected connection closes;
138166352Seric		this redirects the output to the transcript so the info
138266352Seric		is not lost.  From Eric Wassenaar.
138366352Seric	Fix potential string overrun if you macro evaluate a string that
138466352Seric		has a naked $ at the end.  Problem noted by James Matheson
138566352Seric		<jmrm@eng.cam.ac.uk>.
138666352Seric	Make default error number on $#error messages 553 (``Requested
138766352Seric		action not taken: mailbox name not allowed'') instead of
138866352Seric		501 (``Syntax error in parameters or arguments'') to
138966352Seric		avoid bogus "protocol error" messages.
139066352Seric	Strip off any existing trailing dot on names during $[ ... $]
139166352Seric		lookup.  This prevents it from ending up with two dots
139266352Seric		on the end of dot terminated names.  From Wesley Craig
139366352Seric		of the University of Michigan and Bryan Costales of ICSI.
139466352Seric	Clean up file class reading so that the debugging information is
139566352Seric		more informative.  It hadn't been using setclass, so you
139666352Seric		didn't see the class items being added.
139766352Seric	Avoid core dump if you are running a version of sendmail where
139866352Seric		NIS is compiled in, and you specify an NIS map, but
139966352Seric		NIS is not running.  Fix from John Oleynick of
140066352Seric		Rutgers.
140166352Seric	Diagnose bizarre case where res_search returns a failure value,
140266352Seric		but sets h_errno to a success value.
140366352Seric	Make sure that "too many hops" messages are considered important
140466352Seric		enough to send an error to the Postmaster (that is, the
140566352Seric		address specified in the P option).  This fix should
140666352Seric		help problems that cause the df file to be left around
140766352Seric		sometimes -- unfortunately, I can't seem to reproduce
140866352Seric		the problem myself.
140966352Seric	Avoid core dump (null pointer reference) on EXPN command; this
141066352Seric		only occurred if your log level was set to 10 or higher
141166352Seric		and the target account was an alias or had a .forward file.
141266352Seric		Problem noted by Janne Himanka.
141366352Seric	Avoid "denial of service" attacks by someone who is flooding your
141466352Seric		SMTP port with bad commands by shutting the connection
141566352Seric		after 25 bad commands are issued.  From Kyle Jones of
141666352Seric		UUNET.
141766352Seric	Fix core dump on error messages with very long "to" buffers;
141866352Seric		fmtmsg overflows the message buffer.  Fixed by trimming
141966352Seric		the to address to 203 characters.  Problem reported by
142066352Seric		John Oleynick.
142166352Seric	Fix configuration for HASFLOCK -- there were some spots where
142266352Seric		a #ifndef was incorrectly #ifdef.  Pointed out by
142366352Seric		George Baltz of the University of Maryland.
142466352Seric	Fix a typo in savemail() that could cause the error message To:
142566352Seric		lists to be incorrect in some places.  From Motonori
142666352Seric		Nakamura.
142766352Seric	Fix a glitch that can cause duplicate error messages on split
142866352Seric		envelopes where an address on one of the lists has a
142966352Seric		name server failure.  Fix from Voradesh Yenbut of the
143066352Seric		University of Washington.
143166352Seric	Fix possible bogus pointer reference on ESMTP parameters that
143266352Seric		don't have an ``=value'' part.
143366352Seric	CNAME loops caused an error message to be generated, but also
143466352Seric		re-queued the message.  Changed to just re-queue the
143566352Seric		message (it's really hard to just bounce it because
143666352Seric		of the wierd way the name server works in the presence
143766352Seric		of CNAME loops).  Problem noted by James M.R.Matheson
143866352Seric		of Cambridge University.
143966352Seric	Avoid giving ``warning: foo owned process doing -bs'' messages
144066352Seric		if they use ``MAIL FROM:<foo>'' where foo is their true
144166352Seric		user name.  Suggested by Andreas Stolcke of ICSI.
144266352Seric	Change the NAMED_BIND compile flag to be a 0/1 flag so you can
144366352Seric		override it easily in the Makefile -- that is, you can
144466352Seric		turn it off using -DNAMED_BIND=0.
144566352Seric	If a gethostbyname(...) of an address with a trailing dot fails,
144666352Seric		try it without the trailing dot.  This is because if
144766352Seric		you have a version of gethostbyname() that falls back
144866352Seric		to NIS or the /etc/hosts file it will fail to find
144966352Seric		perfectly reasonable names that just don't happen to
145066352Seric		be dot terminated in the hosts file.  You don't want to
145166352Seric		strip the dot first though because we're trying to ensure
145266352Seric		that country names that match one of your subdomains get
145366352Seric		a chance.
145466352Seric	PRALIASES: fix bogus output on non-null-terminated strings.
145566352Seric		From Bill Gianopoulos of Raytheon.
145666352Seric	CONFIG: Avoid rewriting anything that matches $w to be $j.
145766352Seric		This was in code intended to only catch the self-literal
145866352Seric		address (that is, [1.2.3.4], where 1.2.3.4 is your
145966352Seric		IP address), but the code was broken.  However, it will
146066352Seric		still do this if $M is defined; this is necessary to
146166352Seric		get client configurations to work (sigh).  Note that this
146266352Seric		means that $M overrides :mailname entries in the user
146366352Seric		database!  Problem noted by Paul Southworth.
146466352Seric	CONFIG: Fix definition of Solaris help file location.  From
146566352Seric		Steve Cliffe <steve@gorgon.cs.uow.edu.au>.
146666352Seric	CONFIG: Fix bug that broke news.group.USENET mappings.
146766352Seric	CONFIG: Allow declaration of SMTP_MAILER_MAX, FAX_MAILER_MAX,
146866352Seric		and USENET_MAILER_MAX to tweak the maximum message
146966352Seric		size for various mailers.
147066352Seric	CONFIG: Change definition of USENET_MAILER_ARGS to include argv[0]
147166352Seric		instead of assuming that it is "inews" for consistency
147266352Seric		with other mailers.  From Michael Corrigan of UC San Diego.
147366352Seric	CONFIG: When mail is forwarded to a LOCAL_RELAY or a MAIL_HUB,
147466352Seric		qualify the address in the SMTP envelope as user@{relay|hub}
147566352Seric		instead of user@$j.  From Bill Wisner of The Well.
147666352Seric	CONFIG: Fix route-addr syntax in nullrelay configuration set.
147766352Seric	CONFIG: Don't turn off case mapping of user names in the local
147866352Seric		mailer for IRIX.  This was different than most every other
147966352Seric		system.
148066352Seric	CONFIG: Avoid infinite loops on certainly list:; syntaxes in
148166352Seric		envelope.  Noted by Thierry Besancon
148266352Seric		<besancon@excalibur.ens.fr>.
148366352Seric	CONFIG: Don't include -z by default on uux line -- most systems
148466352Seric		don't want it set by default.  Pointed out by Philippe
148566352Seric		Michel of Thomson CSF.
148666352Seric	CONFIG: Fix some bugs with mailertables -- for example, if your
148766352Seric		host name was foo.bar.ray.com and you matched against
148866352Seric		".ray.com", the old implementation bound %1 to "bar"
148966352Seric		instead of "foo.bar".  Also, allow "." in the mailertable
149066352Seric		to match anything -- essentially, take over SMART_HOST.
149166352Seric		This also moves matching of explicit local host names
149266352Seric		before the mailertable so they don't have to be special
149366352Seric		cased in the mailertable data.  Reported by Bill
149466352Seric		Gianopoulos of Raytheon; the fix for the %1 binding
149566352Seric		problem was contributed by Nicholas Comanos of the
149666352Seric		University of Sydney.
149766352Seric	CONFIG: Don't include "root" in class $=L (users to deliver
149866352Seric		locally, even if a hub or relay exists) by default.
149966352Seric		This is because of the known bug where definition of
150066352Seric		both a LOCAL_RELAY and a MAIL_HUB causes $=L to ignore
150166352Seric		both and deliver into the local mailbox.
150266352Seric	CONFIG: Move up bitdomain and uudomain handling so that they
150366352Seric		are done before .UUCP class matching; uudomain was
150466352Seric		reported as ineffective before.  This also frees up
150566352Seric		diversion 8 for future use.  Problem reported by Kimmo
150666352Seric		Suominen.
150766352Seric	CONFIG: Don't try to convert dotted IP address (e.g., [1.2.3.4])
150866352Seric		into host names.  As pointed out by Jonathan Kamens,
150966352Seric		these are often used because either the forward or reverse
151066352Seric		mapping is broken; this translation makes it broken again.
151166352Seric	DOC: Clarify $@ and $: in the Install & Op Guide.  From Kimmo
151266352Seric		Suominen.
151366352Seric	Portability fixes:
151466352Seric		Unicos from David L. Kensiski of Sterling Sofware.
151566352Seric		DomainOS from Don Lewis of Silicon Systems.
151666352Seric		GNU m4 1.0.3 from Karst Koymans of Utrecht University.
151766352Seric		Convex from Kimmo Suominen <kim@tac.nyc.ny.us>.
151866352Seric		NetBSD from Adam Glass <glass@sun-lamp.cs.berkeley.edu>.
151966352Seric		BSD/386 from Tony Sanders of BSDI.
152066352Seric		Apollo from Eric Wassenaar.
152166352Seric		DGUX from Doug Anderson.
152266352Seric		Sequent DYNIX/ptx 2.0 from Tim Wright of Sequent.
152366352Seric	NEW FILES:
152466352Seric		src/Makefile.DomainOS
152566352Seric		src/Makefile.PTX
152666352Seric		src/Makefile.SunOS.5.1
152766352Seric		src/Makefile.SunOS.5.2
152866352Seric		src/Makefile.SunOS.5.x
152966352Seric		src/mailq.1
153066352Seric		cf/ostype/domainos.m4
153166352Seric		doc/op/Makefile
153266352Seric		doc/intro/Makefile
153366352Seric		doc/usenix/Makefile
153466352Seric
153566348Seric8.6.5/8.6.5	94/01/13
153666348Seric	Security fix:  /.forward could be owned by anyone (the test
153766348Seric		to allow root to own any file was backwards).  From
153866348Seric		Bob Campbell at U.C. Berkeley.
153966348Seric	Security fix: group ids were not completely set when programs
154066348Seric		were invoked.  This caused programs to have group
154166348Seric		permissions they should not have had (usually group
154266348Seric		daemon instead of their own group).  In particular,
154366348Seric		Perl scripts would refuse to run.
154466348Seric	Security: check to make sure files that are written are not
154566348Seric		symbolic links (at least under some circumstances).
154666348Seric		Although this does not respond to a specific known
154766348Seric		attack, it's just a good idea.  Suggested by
154866348Seric		Christian Wettergren.
154966348Seric	Security fix: if a user had an NFS mounted home directory on
155066348Seric		a system with a restricted shell listed in their
155166348Seric		/etc/passwd entry, they could still execute any
155266348Seric		program by putting that in their .forward file.
155366348Seric		This fix prevents that by insisting that their shell
155466348Seric		appear in /etc/shells before allowing a .forward to
155566348Seric		execute a program or write a file.  You can disable
155666348Seric		this by putting "*" in /etc/shells.  It also won't
155766348Seric		permit world-writable :include: files to reference
155866348Seric		programs or files (there's no way to disable this).
155966348Seric		These behaviours are only one level deep -- for
156066348Seric		example, it is legal for a world-writable :include:
156166348Seric		file to reference an alias that writes a file, on
156266348Seric		the assumption that the alias file is well controlled.
156366348Seric	Security fix: root was not treated suspiciously enough when
156466348Seric		looking into subdirectories.  This would potentially
156566348Seric		allow a cracker to examine files that were publically
156666348Seric		readable but in a non-publically searchable directory.
156766348Seric	Fix a problem that causes an error on QUIT on a cached
156866348Seric		connection to create problems on the current job.
156966348Seric		These are typically unrelated, so errors occur in
157066348Seric		the wrong place.
157166348Seric	Reset CurrentLA in sendall() -- this makes sendmail queue
157266348Seric		runs more responsive to load average, and fixes a
157366348Seric		problem that ignored the load average in locally
157466348Seric		generated mail.  From Eric Wassenaar.
157566348Seric	Fix possible core dump on aliases with null LHS.  From
157666348Seric		John Orthoefer of BB&N.
157766348Seric	Revert to using flock() whenever possible -- there are just
157866348Seric		too many bugs in fcntl() locking, particularly over
157966348Seric		NFS, that cause sendmail to fail in perverse ways.
158066348Seric	Fix a bug that causes the connection cache to get confused
158166348Seric		when sending error messages.  This resulted in
158266348Seric		"unexpected close" messages.  It should fix itself
158366348Seric		on the following queue run.  Problem noted by
158466996Seric		Liudvikas Bukys of the University of Rochester.
158566348Seric	Include $k in $=k as documented in the Install & Op Guide.
158666348Seric		This seems odd, but it was documented....  From
158766348Seric		Michael Corrigan of UCSD.
158866348Seric	Fix problem that caused :include:s from alias files to be
158966348Seric		forced to be owned by root instead of daemon
159066348Seric		(actually DefUid).  From Tim Irvin.
159166348Seric	Diagnose unrecognized I option values -- from Mortin Forssen
159266348Seric		of the Chalmers University of Technology.
159366348Seric	Make "error" mailer work consistently when there is no error
159466348Seric		code associated with it -- previously it returned OK
159566348Seric		even though there was a real problem.  Now it assumes
159666348Seric		EX_UNAVAILABLE.
159766348Seric	Fix bug that caused the last header line of messages that had
159866348Seric		no body and which were terminated with EOF instead of
159966348Seric		"." to be discarded.  Problem noted by Liudvikas Bukys.
160066348Seric	Fix core dump on SMTP mail to programs that failed -- it tried
160166348Seric		to go to a "next MX host" when none existed, causing
160266348Seric		a core dump.  From der Mouse at McGill University.
160366348Seric	Change IDENTPROTO from a defined/not defined to a 0/1 switch;
160466348Seric		this makes it easier to turn it off (using
160566348Seric		-DIDENTPROTO=0 in the Makefile).  From der Mouse.
160666348Seric	Fix YP_MASTER_NAME store to use the unupdated result of
160766348Seric		gethostname() (instead of myhostname(), which tries
160866348Seric		to fully qualify the name) to be consistent with
160966348Seric		SunOS.  If your hostname is unqualified, this fixes
161066348Seric		transfers to slave servers.  Bug noted by Keith
161166348Seric		McMillan of Ameritech Services, Inc.
161266348Seric	Fix Ultrix problem: gethostbyname() can return a very large
161366348Seric		(> 500) h_length field, which causes the sockaddr
161466348Seric		to be trashed.  Use the size of the sockaddr instead.
161566348Seric		Fix from Bob Manson of Ohio State.
161666348Seric	Don't assume "-a." on host lookups if NAMED_BIND is not
161766348Seric		defined -- this confuses gethostbyname on hosts
161866348Seric		file lookups, which doesn't understand the trailing
161966348Seric		dot convention.
162066348Seric	Log SMTP server subprocesses that die with a signal instead
162166348Seric		of from a clean exit.
162266348Seric	If you don't have option "I" set, don't assume that a DNS
162366348Seric		"host unknown" message is authoritative -- it
162466348Seric		might still be found in /etc/hosts.
162566348Seric	Fix a problem that would cause Deferred: messages to be sent
162666348Seric		as the subject of an error message, even though the
162766348Seric		actual cause of a message was more severe than that.
162866348Seric		Problem noted by Chris Seabrook of OSSI.
162966348Seric	Fix race condition in DBM alias file locking.  From Kyle
163066348Seric		Jones of UUNET.
163166348Seric	Limit delivery syslog line length to avoid bugs in some
163266348Seric		versions of syslog(3).  This adds a new compile time
163366348Seric		variable SYSLOG_BUFSIZE.  From Jay Plett of Princeton
163466348Seric		University, which is in turn derived from IDA.
163566348Seric	Fix quotes inside of comments in addresses -- previously
163666348Seric		it insisted that they be balanced, but the 822 spec
163766348Seric		says that they should be ignored.
163866348Seric	Dump open file state to syslog upon receiving SIGUSR1 (for
163966348Seric		debugging).  This also evaluates ruleset 89, if set
164066348Seric		(with the null input), and logs the result.  This
164166348Seric		should be used sparingly, since the rewrite process
164266348Seric		is not reentrant.
164366348Seric	Change -qI, -qR, and -qS flags to be case-insensitive as
164466348Seric		documented in the Bat Book.
164566348Seric	If the mailer returned EX_IOERR or EX_OSERR, sendmail did not
164666348Seric		return an error message and did not requeue the message.
164766348Seric		Fix based on code from Roland Dirlewanger of
164866348Seric		Reseau Regional Aquarel, Bordeaux, France.
164966348Seric	Fix a problem that caused a seg fault if you got a 421 error
165066348Seric		code during some parts of connection initialization.
165166348Seric		I've only seen this when talking to buggy mailers on
165266348Seric		the other end, but it shouldn't give a seg fault in
165366348Seric		any case.  From Amir Plivatsky.
165466348Seric	Fix core dump caused by a ruleset call that returns null.
165566348Seric		Fix from Bryan Costales of ICSI.
165666348Seric	Full-Name: field was being ignored.  Fix from Motonori Nakamura
165766348Seric		of Kyoto University.
165866348Seric	Fix a possible problem with very long input lines in setproctitle.
165966348Seric		From P{r Emanuelsson.
166066348Seric	Avoid putting "This is a warning message" out on return receipts.
166166348Seric		Suggested by Douglas Anderson.
166266348Seric	Detect loops caused by recursive ruleset calls.  Suggested by
166366348Seric		Bryan Costales.
166466348Seric	Initialize non-alias maps during alias rebuilds -- they may be
166566348Seric		needed for parsing.  Problem noted by Douglas Anderson.
166666348Seric	Log sender address even if no message was collected in SMTP
166766348Seric		(e.g., if all RCPTs failed).  Suggested by Motonori
166866348Seric		Nakamura.
166966348Seric	Don't reflect the owner-list contents into the envelope sender
167066348Seric		address if the value contains ", :, /, or | (to avoid
167166348Seric		illegal addresses appearing there).
167266348Seric	Efficiency hack for toktype macro -- from Craig Partridge of
167366348Seric		BB&N.
167466348Seric	Clean up DNS error printing so that a host name is always
167566348Seric		included.
167666348Seric	Remember to set $i during queue runs.  Reported by Stephen
167766348Seric		Campbell of Dartmouth University.
167866348Seric	If ${HOSTALIASES} is set, use it during canonification so that
167966348Seric		headers are properly mapped.  Reported by Anne Bennett
168066348Seric		of Concordia University.
168166348Seric	Avoid printing misleading error message if SMTP mailer (not
168266348Seric		using [IPC]) should die on a core dump.
168366348Seric	Avoid incorrect diagnosis of "file 1 closed" when it is caused
168466348Seric		by the other end closing the connection.  From
168566348Seric		Dave Morrison of Oracle.
168666348Seric	Improve several of the error messages printed by "mailq"
168766348Seric		to include a host name or other useful information.
168866348Seric	Add NetInfo preliminary support for NeXT systems.  From Vince
168966348Seric		DeMarco.
169066348Seric	Fix a glitch that sometimes caused :include:s that pointed to
169166348Seric		NFS filesystems that were down to give an "aliasing/
169266348Seric		forwarding loop broken" message instead of queueing
169366348Seric		the message for retry.  Noted by William C Fenner of
169466348Seric		the NRL Connection Machine Facility.
169566348Seric	Fix a problem that could cause a core dump if the input sequence
169666348Seric		had (or somehow acquired) a \231 character.
169766348Seric	Make sure that route-addrs always have <angle brackets> around
169866348Seric		them in non-SMTP envelopes (SMTP envelopes already do
169966348Seric		this properly).
170066348Seric	Avoid wierd headers on unbalanced punctuation of the form:
170166348Seric		``Joe User <user)'' -- this caused reference to the
170266348Seric		null macro.  Fix from Rick McCarty of IO.COM.
170366348Seric	Fix a problem that caused an alias "user: user@local.host" to
170466348Seric		not have the QNOTREMOTE bit set; this caused configs
170566348Seric		to act as if FEATURE(notsticky) was defined even when
170666348Seric		it was not.  The effect of the problem was to make it
170766348Seric		very hard to to set up satellite sites that had a few
170866348Seric		local accounts, with everything else forwarded to a
170966348Seric		corporate hub.  Reported by Detlef Drewanz of the
171066348Seric		University of Rostock and Mark Frost of NCD.
171166348Seric	Change queuing to not call rulesets 3, {1 or 2}, 4 on header
171266348Seric		addresses.  This is more efficient (fewer name server
171366348Seric		calls) and fixes certain unusual configurations, such
171466348Seric		as those that have ruleset 4 do something that is
171566348Seric		non-idempotent unless a mailer-specific ruleset did
171666348Seric		something else.  Problem reported by Brian J. Coan
171766348Seric		of the Institute for Global Communications.
171866348Seric	Fix the "obsolete argument" routine in main to better understand
171966348Seric		new arguments.  For example, if you used ``sendmail
172066348Seric		-C config -v -q'' it would choke on the -q because
172166348Seric		the -C would stop looking for old-format arguments.
172266348Seric	Fix the code that was intended to allow two users to forward their
172366348Seric		mail to the same program and have them appear unique.
172466348Seric	Portability fixes for:
172566348Seric		SCO UNIX from Murray Kucherawy.
172666348Seric		SCO Open Server 3.2v4 from Philippe Brand.
172766348Seric		System V Release 4 from Rick Ellis and others.
172866348Seric		OSF/1 from Steve Campbell.
172966348Seric		DG/UX from Ben Mesander of the USGS and Bryan Curnutt
173066348Seric			of Stoner Associates.
173166348Seric		Motorola SysV88 from Kevin Johnson of Motorola.
173266348Seric		Solaris 2.3 from Casper H.S. Dik of the University
173366348Seric			of Amsterdam and John Caruso of University
173466348Seric			of Maryland.
173566348Seric		FreeBSD from Ollivier Robert.
173666348Seric		NetBSD from Adam Glass.
173766348Seric		TitanOS from Kate Hedstrom of Rutgers University.
173866348Seric		Irix from Bryan Curnutt.
173966348Seric		Dynix from Jim Davis of the University of Arizona.
174066348Seric		RISC/os.
174166348Seric		Linux from John Kennedy of California State University
174266348Seric			at Chico.
174366348Seric		Solaris 2.x from Tony Boner of the U.S. Air Force.
174466348Seric		NEXTSTEP 3.x from Vince DeMarco.
174566348Seric		HP-UX from various people.  NOTA BENE:  the location
174666348Seric			of the config file has moved to /usr/lib
174766348Seric			to match the HP-UX version of sendmail.
174866348Seric	CONFIG: Don't do any recipient rewriting on relay mailer;
174966348Seric		since this is intended only for internal use, the
175066348Seric		usual RFC 821/822/1123 rules can be relaxed.  The
175166348Seric		main point of this is to avoid munging (ugh) UUCP
175266348Seric		addresses when relaying internally.
175366348Seric	CONFIG: fix typo in mailer/uucp.m4 that mutilates list:;
175466348Seric		syntax addresses delivered via UUCP.  Solution
175566348Seric		provided by Peter Wemm.
175666348Seric	CONFIG: fix thumb-fumble in default UUCP relaying in ruleset
175766348Seric		zero; it caused double @ signs in addresses.  From
175866348Seric		Irving Reid of the University of Toronto.
175966348Seric	CONFIG: Portability fixes for SCO Unix 3.2 with TCP/IP 1.2.1
176066348Seric		from Markku Toijala of ICL Personal Systems Oy.
176166348Seric	CONFIG: Add trailing "." on pseudo-domains for consistency;
176266348Seric		this fixes a problem (noted by Al Whaley of Sunnyside)
176366348Seric		that made it hard to recognize your own pseudodomain
176466348Seric		names.
176566348Seric	CONFIG: catch "@host" syntax errors (i.e., null local-parts)
176666348Seric		rather than letting them get "local configuration
176766348Seric		error"s.  Problem noted by John Gardiner Myers.
176866348Seric	CONFIG: add uucp-uudom mailer variant, based on code posted
176966348Seric		by Spider Boardman <spider@Orb.Nashua.NH.US>; this
177066348Seric		has uucp-dom semantics but old UUCP syntax.  This
177166348Seric		also permits "uucp-old" as an alias for "uucp" and
177266348Seric		"uucp-new" as a synonym for "suucp" for consistency.
177366348Seric	CONFIG: add POP mailer support (from Kimmo Suominen
177466348Seric		<kim@grendel.lut.fi>).
177566348Seric	CONFIG: drop CSNET_RELAY support -- CSNET is long gone.
177666348Seric	CONFIG: fix bug caused with domain literal addresses (e.g.,
177766348Seric		``[128.32.131.12]'') when FEATURE(allmasquerade)
177866348Seric		was set; it would get an additional @masquerade.host
177966348Seric		added to the address.  Problem noted by Peter Wan
178066348Seric		of Georgia Tech.
178166348Seric	CONFIG: make sure that the local UUCP name is in $=w.  From
178266348Seric		Jim Murray of Stratus.
178366348Seric	CONFIG: changes to UUCP rewriting to simulate IDA-style "V"
178466348Seric		mailer flag.  Briefly, if you are sending to host
178566348Seric		"foo", then it rewrites "foo!...!baz" to "...!baz",
178666348Seric		"foo!baz" remains "foo!baz", and anything else has
178766348Seric		the local name prepended.
178866348Seric	CONFIG: portability fixes for HP-UX.
178966348Seric	DOC: several minor problems fixed in the Install & Op Guide.
179066348Seric	MAKEMAP: fix core dump problem on lines that are too long or
179166348Seric		which lack newline.  From Mark Delany.
179266348Seric	MAILSTATS: print sums of columns (total messages & kbytes
179366348Seric		in and out of the system).  From Tom Ferrin of UC
179466348Seric		San Francisco Computer Graphics Lab.
179566348Seric	SIGNIFICANT USER- OR SYSAD-VISIBLE CHANGES:
179666348Seric		On HP-UX, /etc/sendmail.cf has been moved to
179766348Seric			/usr/lib/sendmail.cf to match HP sendmail.
179866348Seric		Permissions have been tightened up on world-writable
179966348Seric			:include: files and accounts that have shells
180066348Seric			that are not listed in /etc/shells.  This may
180166348Seric			cause some .forward files that have worked
180266348Seric			before to start failing.
180366348Seric		SIGUSR1 dumps some state to the log.
180466348Seric	NEW FILES:
180566348Seric		src/Makefile.DGUX
180666348Seric		src/Makefile.Dynix
180766348Seric		src/Makefile.FreeBSD
180866348Seric		src/Makefile.Mach386
180966348Seric		src/Makefile.NetBSD
181066348Seric		src/Makefile.RISCos
181166348Seric		src/Makefile.SCO
181266348Seric		src/Makefile.SVR4
181366348Seric		src/Makefile.Titan
181466348Seric		cf/mailer/pop.m4
181566348Seric		cf/ostype/bsdi1.0.m4
181666348Seric		cf/ostype/dgux.m4
181766348Seric		cf/ostype/dynix3.2.m4
181866348Seric		cf/ostype/sco3.2.m4
181966348Seric		makemap/Makefile.dist
182066348Seric		praliases/Makefile.dist
182166348Seric
182266347Seric8.6.4/8.6.4	93/10/31
182366347Seric	Repair core-dump problem (write to read-only memory segment)
182466347Seric		if you fall back to the return-to-Postmaster case in
182566347Seric		savemail.  Problem reported by Richard Liu.
182666347Seric	Immediately diagnose bogus sender addresses in SMTP.  This
182766347Seric		makes quite certain that crackers can't use this
182866347Seric		class of attack.
182966347Seric	Reliability Fix:  check return value from fclose() and fsync()
183066347Seric		in a few critical places.
183166347Seric	Minor problem in initsys() that reversed a condition for
183266347Seric		redirecting the output channel on queue runs.  It's
183366347Seric		not clear this code even does anything.  From Eric
183466347Seric		Wassenaar of the Dutch National Institute for Nuclear
183566347Seric		and High-Energy Physics.
183666347Seric	Fix some problems that caused queue runs to do "too much work",
183766347Seric		such as double-reading the Errors-To: header.  From
183866347Seric		Eric Wassenaar.
183966347Seric	Error messages on writing the temporary file (including the
184066347Seric		data file) were getting suppressed in SMTP -- this
184166347Seric		fix causes them to be properly reported.  From Eric
184266347Seric		Wassenaar.
184366347Seric	Some changes to support AF_UNIX sockets -- this will only
184466347Seric		really become relevant in the next release, but some
184566347Seric		people need it for local patches.  From Michael
184666347Seric		Corrigan of UC San Diego.
184766347Seric	Use dynamically allocated memory (instead of static buffers)
184866347Seric		for macros defined in initsys() and settime(); since
184966347Seric		these can have different values depending on which
185066347Seric		envelope they are in.  From Eric Wassenaar.
185166347Seric	Improve logging to show ctladdr on to= logging; this tells you
185266347Seric		what uid/gid processes ran as.
185366347Seric	Fix a problem that caused error messages to be discarded if
185466347Seric		the sender address was unparseable for some reason;
185566347Seric		this was supposed to fall back to the "return to
185666347Seric		postmaster" case.
185766347Seric	Improve aliaswait backoff algorithm.
185866347Seric	Portability patches for Linux (8.6.3 required another header
185966347Seric		file) (from Karl London) and SCO UNIX.
186066347Seric	CONFIG: patch prog mailer to not strip host name off of envelope
186166347Seric		addresses (so that it matches local again).  From
186266347Seric		Christopher Davis.
186366347Seric	CONFIG: change uucp-dom mailer so that "<>" translates to $n;
186466347Seric		this prevents uux from seeing lines with null names like
186566347Seric		``From   Sat Oct 30 14:55:31 1993''.  From Motonori
186666347Seric		Nakamura of Kyoto University.
186766347Seric	CONFIG: handle <list:;> syntax correctly.  This isn't legal, but
186866347Seric		it shouldn't fail miserably.  From Motonori Nakamura.
186966347Seric
187066346Seric8.6.3/8.6.3	93/10/24
187166346Seric	IMPORTANT FIX: Fix several problems that caused open files to
187266346Seric		be "lost" during queue runs; this overflowed the open
187366346Seric		file table on large runs.  An assumption that fdopen
187466346Seric		always succeeds sometimes resulted in core dumps when
187566346Seric		this happens; sometimes the message is delivered twice,
187666346Seric		sometimes (probably) infinite times.  This problem in
187766346Seric		various form was reported by P{r (Pell) Emanuelsson and
187866346Seric		Robert Campbell of U.C. Berkeley.
187966346Seric	Special diagnosis of EMFILE error conditions -- it now prints
188066346Seric		the known open file descriptors so you can figure out
188166346Seric		what is consuming so much resources.
188266346Seric	Fix a couple of problems caused by early address parsing
188366346Seric		errors -- one caused it to return a "this is only a
188466346Seric		warning" when it really wasn't, and the other started
188566346Seric		parsing through a random pointer.  The first was
188666346Seric		noted by Eric Wassenaar.
188766346Seric	Fix an infinite loop problem caused by null components in the
188866346Seric		host signature.  Problem noted by Jan Sorensen.
188966346Seric	Be sure to reset the "current date" when sending an error
189066346Seric		message -- PostMasterCopy messages were being sent
189166346Seric		with an old Date: header.
189266346Seric	Fix a problem that caused duplicated mail when sendmail was
189366346Seric		(1) compiled without HASFLOCK, (2) you are sending to
189466346Seric		an alias that has an owner-* alias, (3) you execute
189566346Seric		sendmail with -t flag, (4) you run in -odb mode, and
189666346Seric		(5) the sender specifies both the alias name and
189766346Seric		another alias [i.e., the envelope is split], then
189866346Seric		duplicate messages are sent.  The problem description
189966346Seric		and one-line fix are from Motonori Nakamura of Kyoto
190066346Seric		University.
190166346Seric	Avoid a problem that causes error messages to be discarded
190266346Seric		in some cases -- this was the result of a "fix" to
190366346Seric		avoid duplicate error messages, but two are better
190466346Seric		than zero.  Reported by Tim Rylance.
190566346Seric	Fix a minor botch in checkfd012() -- fix from Dave Hill of
190666346Seric		Computervision R&D Ltd.
190766346Seric	Remove "X-Authentication-Warning: <user> set sender to <address>
190866346Seric		using -f" entirely -- it is far too eager to include
190966346Seric		this, and it is confusing folks.  I'll try to make it
191066346Seric		work "right" in 8.7.  Problem noted by Yoshitaka
191166346Seric		Tokugawa of dit Co., Ltd.
191266346Seric	Fix a race condition with the errno value in tick() and
191366346Seric		reapchild() -- this caused occasional misdiagnosis
191466346Seric		of problems.  Kyle Jones of UUNET helped this along.
191566346Seric	Repair rule loop-detection code.  From Michael Corrigan of
191666346Seric		U.C. San Diego.
191766346Seric	Fix a problem that caused sender domain addition (C mailer
191866346Seric		flag to be ignored if you use -odq or use -odb with
191966346Seric		a high load average.  Problem reported by Jim Murray
192066346Seric		of Stratus.
192166346Seric	Fix ident protocol on multi-homed machines.  It was not
192266346Seric		always using the correct interface.  Fix from J.R.
192366346Seric		Oldroyd of Opal.
192466346Seric	Previously, sendmail assumed that any SMTP greeting message
192566346Seric		that wasn't 2xx was a temporary failure -- it should
192666346Seric		only take 4xx as a temporary failure, and return a
192766346Seric		solid error message on anything else -- for example,
192866346Seric		to allow you to reject connections on a workstation
192966346Seric		that is MXed to a mail server.
193066346Seric	Portability enhancements for 386BSD/FreeBSD/NetBSD from
193166346Seric		Ollivier Robert.
193266346Seric	CONFIG: FEATURE(always_add_domain) didn't always add the domain;
193366346Seric		in particular, on local mail it modified the header sender
193466346Seric		but not the header recipient address(es).  Reported by
193566346Seric		Jeffrey Honig of Cornell University.  Also, strip
193666346Seric		any host from envelope recipient address(es), since
193766346Seric		local mailers don't understand host names -- this is
193866346Seric		to help mailertable entries.  From Christopher Davis.
193966346Seric	CONFIG: masquerading didn't apply to addresses that already
194066346Seric		had a domain.  This change replaces a local hostname
194166346Seric		by the masquerade name in the SMTP mailer (previously
194266346Seric		it only added the masquerade name if it didn't already
194366346Seric		have a domain name).  Several people complained about
194466346Seric		this.
194566346Seric
194666345Seric8.6.2/8.6.2	93/10/15
194766345Seric	Put a "successful delivery" message in the transcript for
194866345Seric		addresses that get return-receipts.
194966345Seric	Put a prominent "this is only a warning" message in warning
195066345Seric		messages -- some people don't read carefully enough
195166345Seric		and end up sending the message several times.
195266345Seric	Include reason for temporary failure in the "warning" return
195366345Seric		message.  Currently, it just says "cannot send for
195466345Seric		four hours".
195566345Seric	Fix the "Original message received" time generated for
195666345Seric		returntosender messages.  It was previously listed as
195766345Seric		the current time.  Bug reported by Eric Hagberg of
195866345Seric		Cornell University Medical College.
195966345Seric	If there is an error when writing the body of a message,
196066345Seric		don't send the trailing dot and wait for a response
196166345Seric		in sender SMTP, as this could cause the connection to
196266345Seric		hang up under some bizarre circumstances.  From Eric
196366345Seric		Wassenaar.
196466345Seric	Fix some server SMTP synchronization problems caused when
196566345Seric		connections fail during message collection.  From
196666345Seric		Eric Wassenaar.
196766345Seric	Fix a problem that can cause srvrsmtp to reject mail if the
196866345Seric		name server is down -- it accepts the RCPT but rejects
196966345Seric		the DATA command.  Problem reported by Jim Murray of
197066345Seric		Stratus.
197166345Seric	Fix a problem that can cause core dumps if the config file
197266345Seric		incorrectly resolves to a null hostname.  Reported by
197366345Seric		Allan Johannesen of WPI.
197466345Seric	Non-root use of -C flag, dangerous -f flags, and use of -oQ
197566345Seric		by non-root users were not put into
197666345Seric		X-Authentication-Warning:s as intended because the
197766345Seric		config file hadn't set the PrivacyFlags yet.  Fix
197866345Seric		from Sven-Ove Westberg of the University of Lulea.
197966345Seric	Under very odd circumstances, the alias file rebuild code
198066345Seric		could get confused as to whether a database was
198166345Seric		open or not.
198266345Seric	Check "vendor code" on the end of V lines -- this is
198366345Seric		intended to provide a hook for vendor-specific
198466345Seric		configuration syntax.  (This is a "new feature",
198566345Seric		but I've made an exception to my rule in a belief
198666345Seric		that this is a highly exceptional case.)
198766345Seric	Portability fixes for DG/UX (from Douglas Anderson of NCSC),
198866345Seric		SCO Unix (from Murray Kucherawy), A/UX, and OSF/1
198966345Seric		(from Jon Forrest of UC Berkeley)
199066345Seric	CONFIG: fix ``mailer:host'' form of UUCP relay naming.
199166345Seric
199266344Seric8.6.1/8.6	93/10/08
199366344Seric	Portability fixes for A/UX and Encore UMAX V.
199466344Seric	Fix error message handling -- if you had a name server down
199566344Seric		causing an error during parsing, that message was never
199666344Seric		propogated to the queue file.
199766344Seric
199866343Seric8.6/8.6		93/10/05
199966343Seric	Configuration cleanup: make it easier to undo IDENTPROTO in
200066343Seric		conf.h (other systems have the same bug).
200166343Seric	If HASGETDTABLESIZE and _SC_OPEN_MAX are both defined, assume
200266343Seric		getdtablesize() instead of sysconf(); a disturbingly
200366343Seric		large number of systems defined _SC_OPEN_MAX in the
200466343Seric		header files but don't have the syscall.
200566343Seric	Another patch to really truly ignore MX records in getcanonname
200666343Seric		if trymx == FALSE.
200766343Seric	Fix problem that caused the "250 IAA25499 Message accepted for
200866343Seric		delivery" message to be omitted if there was an error
200966343Seric		in the header of the message (e.g., a bad Errors-To:
201066343Seric		line).  Pointed out by Michael Corrigan of UCSD.
201166343Seric	Announce name of host we are chatting when we get errors; this
201266343Seric		is an IDA-ism suggested by Christophe Wolfhugel.
201366343Seric	Portability fixes for Alpha OSF/1 (from Anthony Baxter of the
201466343Seric		Australian Artificial Intelligence Institute), SCO Unix
201566343Seric		(from Murray Kucherawy of Hookup Communication Corp.),
201666343Seric		NeXT (from Vince DeMarco and myself), Linux (from
201766343Seric		Karl London <karl@borg.demon.co.uk>), BSDI (from
201866343Seric		Christophe Wolfhugel, and SVR4 on Dell (from Kimmo
201966343Seric		Suominen), AUX 3.0 on Macintosh, and ANSI C compilers.
202066343Seric	Some changes to get around gcc optimizer bugs.  From Takahiro
202166343Seric		Kanbe.
202266343Seric	Fix error recovery in queueup if another tf file of the same
202366343Seric		name already exists.  Problem stumbled over by Bill
202466343Seric		Wisner of The Well.
202566343Seric	Output YP_MASTER_NAME and YP_LAST_MODIFIED without null bytes.
202666343Seric		Problem noted by Keith McMillan of Ameritech Services.
202766343Seric	Deal with group permissions properly when opening .forward and
202866343Seric		:include: files.  This relaxes the 8.1C restrictions
202966343Seric		slightly more.  This includes proper setting of groups
203066343Seric		when reading :include: files, allowing you to read some
203166343Seric		files that you should be able to read but have previously
203266343Seric		been denied unless you owned them or they had "other"
203366343Seric		read permission.
203466343Seric	Make certain that $j is in $=w (after the .cf is read) so that
203566343Seric		if the user is forced to override some silly system,
203666343Seric		MX suppression will still work.
203766343Seric	Fix a couple of efficiency problems where newstr was double-
203866343Seric		calling expensive routines.  In at least one case, it
203966343Seric		wasn't guaranteed that they would always return the
204066343Seric		same result.  Problem noted by Christophe Wolfhugel.
204166343Seric	Fix null pointer dereference in putoutmsg -- only on an error
204266343Seric		condition from a non-SMTP mailer.  From Motonori
204366343Seric		Nakamura.
204466343Seric	Macro expand "C" line class definitions before scanning so that
204566343Seric		"CX $Z" works.
204666343Seric	Fix problem that caused error message to be sent while still
204766343Seric		trying to send the original message if the connection
204866343Seric		is closed during a DATA command after getting an error
204966343Seric		on an RCPT command (pretty obscure).  Problem reported
205066343Seric		by John Myers of CMU.
205166343Seric	Fix reply to NOOP to be 250 instead of 200 -- this is a long
205266343Seric		term bug.
205366343Seric	Fix a nasty bug causing core dumps when returning the "warning:
205466343Seric		cannot deliver for N hours -- will keep trying" message;
205566343Seric		it only occurred if you had PostMasterCopy set and
205666343Seric		only on some architectures.  Although sendmail would
205766343Seric		keep trying, it would send error messages on each
205866343Seric		queue interval.  This is an important fix.
205966343Seric	Allow u and g options to take user and group names respectively.
206066343Seric	Don't do a chdir into the queue directory in -bt mode to make
206166343Seric		ruleset testing a bit easier.
206266343Seric	Don't allow users to turn off logging (using -oL) on the command
206366343Seric		line -- command line can only raise, not lower, logging
206466343Seric		level.
206566343Seric	Set $u to the original recipient on the SMTP transaction or on
206666343Seric		the command line.  This is only done if there is exactly
206766343Seric		one recipient.  Technically, this does not meet the
206866343Seric		specs, because it does not guarantee a domain on the
206966343Seric		address.
207066343Seric	Fix a problem that dumped error messages on bad addresses if
207166343Seric		you used the -t flag.  Problem noted by Josh Smith of
207266343Seric		Harvey Mudd College.
207366343Seric	Given an address such as ``<foo> <bar>'', auto-quote the first
207466343Seric		``<foo>'' part, giving ``"<foo>" <bar>''.  This is to
207566343Seric		avoid the problem of people who use angle brackets in
207666343Seric		their full name information.
207766343Seric	Fix a null pointer dereference if you set option "l", have
207866343Seric		an Errors-To: header in the message, and have Errors-To:
207966343Seric		defined in the config file H lines.  From J.R. Oldroyd.
208066343Seric	Put YPCOMPAT on #ifdef NIS instead -- it's one less thing to get
208166343Seric		wrong when compiling.  Suggested by Rick McCarty of TI.
208266343Seric	Fix a problem that could pass negative SIZE parameter if the
208366343Seric		df file got lost; this would cause servers to always
208466343Seric		give a temporary failure, making the problem even worse.
208566343Seric		Problem noted by Allan Johannesen of WPI.
208666343Seric	Add "ident" timeout (one of the "r" option selectors) for IDENT
208766343Seric		protocol timeouts (30s default).  Requested by Murray
208866343Seric		Kucherawy of HookUp Communication Corp. to handle bogus
208966343Seric		PC TCP/IP implementations.
209066343Seric	Change $w default definition to be just the first component of
209166343Seric		the domain name on config level 5.  The $j macro defaults
209266343Seric		to the FQDN; $m remains as before.  This lets well-behaved
209366343Seric		config files use any of the short, long, or subdomain
209466343Seric		names.
209566343Seric	Add makesendmail script in src to try to automate multi-architecture
209666343Seric		builds.  I know, this is sub-optimal, but it is still
209766343Seric		helpful.
209866343Seric	Fix very obscure race condition that can cause a queue run to
209966343Seric		get a queue file for an already completed job.  This
210066343Seric		problem has existed for years.  Problem noted by the
210166343Seric		long suffering Allan Johannesen of WPI.
210266343Seric	Fix a problem that caused the raw sender name to be passed to
210366343Seric		udbsender instead of the canonified name -- this caused
210466343Seric		it to sometimes miss records that it should have found.
210566343Seric	Relax check of name on HELO packet so that a program using -bs
210666343Seric		that claims to be itself works properly.
210766343Seric	Restore rewriting of $: part of address through 2, R, 4 in
210866343Seric		buildaddr -- this requires passing a lot of flags to get
210966343Seric		it right.  Unlike old versions, this ONLY rewrites
211066343Seric		recipient addresses, not sender addresses.
211166343Seric	Fix a bug that caused core dumps in config files that cannot
211266343Seric		resolve /file/name style addresses.  Fix from Jonathan
211366343Seric		Kamens of OpenVision Technologies.
211466343Seric	Fix problem with fcntl locking that can cause error returns to
211566343Seric		be lost if the lock is lost; this required fully
211666343Seric		queueing everything, dropping the envelope (so errors
211766343Seric		would get returned), and then re-reading the queue from
211866343Seric		scratch.
211966343Seric	Fix a problem that caused aliases that redefine an otherwise
212066343Seric		true address to still send to the original address
212166343Seric		if and only if the alias failed in certain bizarre
212266343Seric		ways (e.g, if they pointed at a list:; syntax address).
212366343Seric		Problem pointed out by Jonathan Kamens.
212466343Seric	Remove support for frozen configuration files.  They caused
212566343Seric		more trouble than it was worth.
212666343Seric	Fix problem that can cause error messages to get ignored when
212766343Seric		using both -odb and -t flags.  Problem noted by Rob
212866343Seric		McNicholas at U.C. Berkeley.
212966343Seric	Include all "normal" variations on hostname in $=w.  For example,
213066343Seric		if the host name is vangogh.cs.berkeley.edu, $=w will
213166343Seric		contain vangogh, vangogh.cs, and vangogh.cs.berkeley.edu.
213266343Seric	Add "restrictqrun" privacy flag -- without this, anyone can run
213366343Seric		the queue.
213466343Seric	Reset SmtpPhase global on initial connection creation so that
213566343Seric		messages don't come out with stale information.
213666343Seric	Pass an "ext" argument to lockfile so that error/log messages
213766343Seric		will properly reflect the true filename being locked.
213866343Seric	Put all [...] address forms into $=w -- this eliminates the need
213966343Seric		for MAXIPADDR in conf.h.  Suggested by John Gardiner
214066343Seric		Myers of CMU.
214166343Seric	Fix a bug that can cause qf files to be left around even after
214266343Seric		an SMTP RSET command.  Problem and fix from Michael
214366343Seric		Corrigan.
214466343Seric	Don't send a PostMasterCopy to errors when the Precedence: is
214566343Seric		negative.  Error reports still go to the envelope
214666343Seric		sender address.
214766343Seric	Add LA_SHORT for load averages.
214866343Seric	Lock sendmail.st file when posting statistics.
214966343Seric	Add "SendBufSize" and "RcvBufSize" suboptions to "O" option to
215066343Seric		set the size of the TCP send and receive buffers; if you
215166343Seric		run over a slow slip line you may need to set these down
215266343Seric		(although it would be better to fix the SLIP implementation
215366343Seric		so that it's not necessary to recompile every program
215466343Seric		that does bulk data transfer).
215566343Seric	Allow null defaults on $( ... $) lookups.  Problem reported by
215666343Seric		Amir Plivatsky.
215766343Seric	Diagnose crufty S and V config lines.  This resulted from an
215866343Seric		observation that some people were using the SITE macro
215966343Seric		without the SITECONFIG macro first, which was causing
216066343Seric		bogus config files that were not caught.
216166343Seric	Fix makemap -f flag to turn off case folding (it was turning it
216266343Seric		on instead).  THIS IS A USER VISIBLE CHANGE!!!
216366343Seric	Fix a problem that caused multiple error messages to be sent if
216466343Seric		you used "sendmail -t -oem -odb", your system uses fcntl
216566343Seric		locking, and one of the recipient addresses is unknown.
216666343Seric	Reset uid earlier in include() so that recursive .forwards or
216766343Seric		:include:s don't use the wrong uid.
216866343Seric	If file descriptor 0, 1, or 2 was closed when sendmail was
216966343Seric		called, the code to recover the descriptor was broken.
217066343Seric		This sometimes (only sometimes) caused problems with the
217166343Seric		alias file.  Fix from Motonori Nakamura.
217266343Seric	Fix a problem that caused aliaswait to go into infinite recursion
217366343Seric		if the @:@ metasymbol wasn't found in the alias file.
217466343Seric	Improve error message on newaliases if database files cannot be
217566343Seric		opened or if running with no database format defined.
217666343Seric	Do a better estimation of the size of error messages when NoReturn
217766343Seric		is set.  Problem noted by P{r (Pell) Emanuelsson.
217866343Seric	Fix a problem causing the "c" option (don't connect to expensive
217966343Seric		mailers) to be ignored in SMTP.  Problem noted and the
218066343Seric		solution suggested by Robert Elz of Munnari University.
218166343Seric	Improve connection caching algorithm by passing "[host]" to
218266343Seric		hostsignature, which strips the square brackets and
218366343Seric		returns the real name.  This allows mailertable entries
218466343Seric		to match regular entries.
218566343Seric	Re-enable Return-Receipt-To: -- people seem to want this stupid
218666343Seric		feature, even if it doesn't work right.
218766343Seric	Catch and log attempts to try the "wiz" command in server SMTP.
218866343Seric		This also ups the log level from LOG_NOTICE to LOG_CRIT.
218966343Seric	Be more generous at assigning $z to the home directory -- do this
219066343Seric		for programs that are specified through a .forward file.
219166343Seric		Fix from Andrew Chang of Sun Microsystems.
219266343Seric	Always save a fatal error message in preference to a non-fatal
219366343Seric		error message so that the "subject" line of return
219466343Seric		messages is the best possible.
219566343Seric	CONFIG: reduce the number of quotes needed to quote configuration
219666343Seric		parameters with commas: two quotes should work now, e.g.,
219766343Seric		define(ALIAS_FILE, ``/etc/aliases,/etc/aliases.local'').
219866343Seric	CONFIG: class $=Z is a set of UUCP hosts that use uucp-dom
219966343Seric		connections (domain-ized UUCP).
220066343Seric	CONFIG: fix bug in default maps (-o must be before database file
220166343Seric		name).  Pointed out by Christophe Wolfhugel.
220266343Seric	CONFIG: add FEATURE(nodns) to state that we are not relying on
220366343Seric		DNS.  This would presumably be used in UUCP islands.
220466343Seric	CONFIG: add OSTYPE(nextstep) and OSTYPE(linux).
220566343Seric	CONFIG: log $u in Received: line.  This is in technical violation
220666343Seric		of the standards, since it doesn't guarantee a domain
220766343Seric		on the address.
220866343Seric	CONFIG: don't assume "m" in local mailer flags -- this means that
220966343Seric		if you redefine LOCAL_MAILER_FLAGS you will have to include
221066343Seric		the "m" flag should you want it.  Apparently some Solaris 2.2
221166343Seric		installations can't handle multiple local recipients.
221266343Seric		Problem noted by Josh Smith.
221366343Seric	CONFIG: add confDOMAIN_NAME to set $j (if undefined, $j defaults).
221466343Seric	CONFIG: change default version level from 4 to 5.
221566343Seric	CONFIG: add FEATURE(nullclient) to create a config file that
221666343Seric		forwards all mail to a hub without ever looking at the
221766343Seric		addresses in any detail.
221866343Seric	CONFIG: properly strip mailer: information off of relays when
221966343Seric		used to change .BITNET form into %-hack form.
222066343Seric	CONFIG: fix a problem that caused infinite loops if presented
222166343Seric		with an address such as "!foo".
222266343Seric	CONFIG: check for self literal (e.g., [128.32.131.12]) even if
222366343Seric		the reverse "PTR" mapping is broken.  There's a better
222466343Seric		way to do this, but the change is fairly major and I
222566343Seric		want to hold it for another release.  Problem noted by
222666343Seric		Bret Marquis.
222766343Seric
222866342Seric8.5/8.5		93/07/23
222966342Seric	Serious bug: if you used a command line recipient that was unknown
223066342Seric		sendmail would not send a return message (it was treating
223166342Seric		everything as though it had an SMTP-style client that
223266342Seric		would do the return itself).  Problem noted by Josh Smith.
223366342Seric	Change "trymx" option in getcanonname() to ignore all MX data,
223466342Seric		even during a T_ANY query.  This actually didn't break
223566342Seric		anything, because the only time you called getcanonname
223666342Seric		with !trymx was if you already knew there were no MX
223766342Seric		records, but it is somewhat cleaner.  From Motonori
223866342Seric		Nakamura.
223966342Seric	Don't call getcanonname from getmxrr if you already know there
224066342Seric		are no DNS records matching the name.
224166342Seric	Fix a problem causing error messages to always include "The
224266342Seric		original message was received ... from localhost".
224366342Seric		The correct original host information is now included.
224466342Seric	Previous change to cf/sh/makeinfo.sh doesn't port to Ultrix (their
224566342Seric		version of "test" doesn't have the -x flag).  Change it
224666342Seric		to use -f instead.  From John Myers.
224766342Seric	CONFIG: 8.4 mistakenly set the default SMTP-style mailer to
224866342Seric		esmtp -- it should be smtp.
224966342Seric	CONFIG: send all relayed mail using confRELAY_MAILER (defaults
225066342Seric		to "relay" (a variant of "smtp") if MAILER(smtp) is used,
225166342Seric		else "suucp" if MAILER(uucp) is used, else "unknown");
225266342Seric		this cleans up the configs somewhat.  This fixes a serious
225366342Seric		problem that caused route-addrs to get mistaken as relays,
225466342Seric		pointed out by John Myers.  WARNING: this also causes
225566342Seric		the default on SMART_HOST to change from "suucp" to
225666342Seric		"relay" if you have MAILER(smtp) specified.
225766342Seric
225866341Seric8.4/8.4		93/07/22
225966341Seric	Add option `w'.  If you receive a message that comes to you because
226066341Seric		you are the best (lowest preference) target of an MX, and
226166341Seric		you haven't explicitly recognized the source MX host in
226266341Seric		your .cf file, this option will cause you to try the target
226366341Seric		host directly (as if there were no MX for it at all).  If
226466341Seric		`w' is not set, this case is a configuration error.
226566341Seric		Beware: if `w' is set, senders may get bogus errors like
226666341Seric		"message timed out" or "host unknown" for problems that
226766341Seric		are really configuration errors.  This option is
226866341Seric		disrecommended, provided only for compatibility with
226966341Seric		UIUC sendmail.
227066341Seric	Fix a problem that caused the incoming socket to be left open
227166341Seric		when sendmail forks after the DATA command.  This caused
227266341Seric		calling systems to wait in FIN_WAIT_2 state until the
227366341Seric		entire list was processed and the child closed -- a
227466341Seric		potentially prodigious amount of time.  Problem noted
227566341Seric		by Neil Rickert.
227666341Seric	Fix problem (created in 6.64) that caused mail sent to multiple
227766341Seric		addresses, one of which was a bad address, to completely
227866341Seric		suppress the sending of the message.  This changes
227966341Seric		handling of EF_FATALERRS somewhat, and adds an
228066341Seric		EF_GLOBALERRS flag.  This also fixes a potential problem
228166341Seric		with duplicate error messages if there is a syntax error
228266341Seric		in the header of a message that isn't noticed until late
228366341Seric		in processing.  Original problem pointed out by Josh Smith
228466341Seric		of Harvey Mudd College.  This release includes quite a bit
228566341Seric		of dickering with error handling (see below).
228666341Seric	Back out SMTP transaction if MAIL gets nested 501 error.  This
228766341Seric		will only hurt already-broken software and should help
228866341Seric		humans.
228966341Seric	Fix a problem that broke aliases when neither NDBM nor NEWDB were
229066341Seric		compiled in.  It would never read the alias file.
229166341Seric	Repair unbalanced `)' and `>' (the "open" versions are already
229266341Seric		repaired).
229366341Seric	Logging of "done" in dropenvelope() was incorrect: it would
229466341Seric		log this even when the queue file still existed.  Change
229566341Seric		this to only log "done" (at log level 11) when the
229666341Seric		queue file is actually removed.  From John Myers.
229766341Seric	Log "lost connection" in server SMTP at log level 20 if there
229866341Seric		is no pending transaction.  Some senders just close the
229966341Seric		connection rather than sending QUIT.
230066341Seric	Fix a bug causing getmxrr to add a dot to the end of unqualified
230166341Seric		domains that do not have MX records -- this would cause
230266341Seric		the subsequent host name lookup to fail.  The problem
230366341Seric		only occurred if you had FEATURE(nocanonify) set.
230466341Seric		Problem noted by Rick McCarty of Texas Instruments.
230566341Seric	Fix invocation of setvbuf when passed a -X flag -- I had
230666341Seric		unwittingly used an ANSI C extension, and this caused
230766341Seric		core dumps on some machines.
230866341Seric	Diagnose self-destructive alias loops on RCPT as well as EXPN.
230966341Seric		Previously it just gave an empty send queue, which
231066341Seric		then gave either "Need RCPT (recipient)" at the DATA
231166341Seric		(confusing, since you had given an RCPT command which
231266341Seric		returned 250) or just dropped the email, depending on
231366341Seric		whether you were running VERBose mode.  Now it usually
231466341Seric		diagnoses this case as "aliasing/forwarding loop broken".
231566341Seric		Unfortunately, it still doesn't adequately diagnose
231666341Seric		some true error conditions.
231766341Seric	Add internal concept of "warning messages" using 6xx codes.
231866341Seric		These are not reported only to Postmaster.  Unbalanced
231966341Seric		parens, brackets, and quotes are printed as 653 codes.
232066341Seric		They are always mapped to 5xx codes before use in SMTP.
232166341Seric	Clean up error messages to tell both the actual address that
232266341Seric		failed and the alias they arose from.  This makes it
232366341Seric		somewhat easier to diagnose problems.  Difficulty noted
232466341Seric		by Motonori Nakamura.
232566341Seric	Fix a problem that inappropriately added a ctladdr to addresses
232666341Seric		that shouldn't have had one during a queue run.  This
232766341Seric		caused error messages to be handled differently during
232866341Seric		a queue run than a direct run.
232966341Seric	Don't print the qf name and line number if you get errors during
233066341Seric		the direct run of the queue from srvrsmtp -- this was
233166341Seric		just extra stuff for users to crawl through.
233266341Seric	Put command line flags on second line of pid file so you can
233366341Seric		auto-restart the daemon with all appropriate arguments.
233466341Seric		Use "kill `head -1 /etc/sendmail.pid`" to stop the
233566341Seric		daemon, and "eval `tail -1 /etc/sendmail.pid`" to
233666341Seric		restart it.
233766341Seric	Remove the ``setuid(getuid())'' in main -- this caused the
233866341Seric		IDENT daemon to screw up.  This required that I change
233966341Seric		HASSETEUID to HASSETREUID and complicate the mode
234066341Seric		changing somewhat because both Ultrix and SunOS seem
234166341Seric		to have a bug causing seteuid() to set the saved uid
234266341Seric		as well as the effective.  The program test/t_setreuid.c
234366341Seric		will test to see if your implementation of setreuid(2)
234466341Seric		is appropriately functional.
234566341Seric	The FallBackMX (option V) handling failed to properly identify
234666341Seric		fallback to yourself -- most of the code was there,
234766341Seric		but it wasn't being enabled.  Problem noted by Murray
234866341Seric		Kucherawy of the University of Waterloo.
234966341Seric	Change :include: open timeout from ETIMEDOUT to an internal
235066341Seric		code EOPENTIMEOUT; this avoids adding "during SmtpPhase
235166341Seric		with CurHostName" in error messages, which can be
235266341Seric		confusing.  Reported by Jonathan Kamens of OpenVision
235366341Seric		Technologies.
235466341Seric	Back out setpgrp (setpgid on POSIX systems) call to reset the
235566341Seric		process group id.  The original fix was to get around
235666341Seric		some problems with recalcitrant MUAs, but it breaks
235766341Seric		any call from a shell that creates a process group id
235866341Seric		different from the process id.  I could try to fix
235966341Seric		this by diddling the tty owner (using tcsetpgrp or
236066341Seric		equivalent) but this is too likely to break other
236166341Seric		things.
236266341Seric	Portability changes:
236366341Seric		Support -M as equivalent to -oM on Ultrix -- apparently
236466341Seric			DECnet calls sendmail with -MrDECnet -Ms<HOST> -bs
236566341Seric			instead of using standard flags.  Oh joy.  This
236666341Seric			behaviour reported by Jon Giltner of University
236766341Seric			of Colorado.
236866341Seric		SGI IRIX  -- this includes several changes that should
236966341Seric			help other strict ANSI compilers.
237066341Seric		SCO Unix -- from Murray Kucherawy of HookUp Communication
237166341Seric			Corporation.
237266341Seric		Solaris running the Sun C compiler (which despite the
237366341Seric			documentation apparently doesn't define
237466341Seric			__STDC__ by default).
237566341Seric		ConvexOS from Eric Schnoebelen of Convex.
237666341Seric		Sony NEWS workstations and Omron LUNA workstations from
237766341Seric			Motonori Nakamura.
237866341Seric	CONFIG: add confTRY_NULL_MX_LIST to set option `w'.
237966341Seric	CONFIG: delete `C' and `e' from default SMTP mailers flags;
238066341Seric		several people have made a good argument that this
238166341Seric		creates more problems than it solves (although this
238266341Seric		may prove painful in the short run).
238366341Seric	CONFIG: generalize all the relays to accept a "mailer:host"
238466341Seric		format.
238566341Seric	CONFIG: move local processing in ruleset 0 into a new ruleset
238666341Seric		98 (8 on old sendmail).  Domain literal [a.b.c.d]
238766341Seric		addresses are also passed through this ruleset.
238866341Seric	CONFIG: if neither SMART_HOST nor MAILER(smtp) were defined,
238966341Seric		internet-style addresses would "fall off the end" of
239066341Seric		ruleset zero and be interpreted as local -- however,
239166341Seric		the angle brackets confused the recursive call.
239266341Seric		These are now diagnosed as "Unrecognized host name".
239366341Seric	CONFIG: USENET rules weren't included in S0 because of a mistaken
239466341Seric		ifdef(`_MAILER_USENET_') instead of
239566341Seric		ifdef(`_MAILER_usenet_').  Problem found by Rein Tollevik
239666341Seric		of SINTEF RUNIT, Oslo.
239766341Seric	CONFIG: move up LOCAL_RULE_0 processing so that it happens very
239866341Seric		early in ruleset 0; this allows .mc authors to bypass
239966341Seric		things like the "short circuit" code for local addresses.
240066341Seric		Prompted by a comment by Bill Wisner of The Well.
240166341Seric	CONFIG: add confSMTP_MAILER to define the mailer used (smtp or
240266341Seric		esmtp) to send SMTP mail.  This allows you to default
240366341Seric		to esmtp but use a mailertable or other override to
240466341Seric		deal with broken servers.  This logic was pointed out
240566341Seric		to me by Bill Wisner.  Ditto for confLOCAL_MAILER.
240666341Seric	Changes to cf/sh/makeinfo.sh to make it portable to SVR4
240766341Seric		environments.  Ugly as sin.
240866341Seric
240966340Seric8.3/8.3		93/07/13
241066340Seric	Fix setuid problems introduced in 8.2 that caused messages
241166340Seric		like "Cannot create qfXXXXXX: Invalid argument"
241266340Seric		or "Cannot reopen dfXXXXXX: Permission denied".  This
241366340Seric		involved a new compile flag "HASSETEUID" that takes
241466340Seric		the place of the old _POSIX_SAVED_IDS -- it turns out
241566340Seric		that the POSIX interface is broken enough to break
241666340Seric		some systems badly.  This includes some fixes for
241766340Seric		HP-UX.  Also fixes problems where the real uid is
241866340Seric		not reset properly on startup (from Neil Rickert).
241966340Seric	Fix a problem that caused timed out messages to not report the
242066340Seric		addresses that timed out.  Error messages are also more
242166340Seric		"user friendly".
242266340Seric	Drop required bandwidth on connections from 64 bytes/sec to
242366340Seric		16 bytes/sec.
242466340Seric	Further Solaris portability changes -- doesn't require the BSD
242566340Seric		compatibility library.  This also adds a new
242666340Seric		"HASGETDTABLESIZE" compile flag which can be used if
242766340Seric		you want to use getdtablesize(2) instead of sysconf(2).
242866340Seric		These are loosely based on changes from David Meyer at
242966340Seric		University of Oregon.  This now seems to work, at least
243066340Seric		for quick test cases.
243166340Seric	Fix a problem that can cause duplicate error messages to be
243266340Seric		sent if you are in SMTP, you send to multiple addresses,
243366340Seric		and at least one of those addresses is good and points
243466340Seric		to an account that has a .forward file (whew!).
243566340Seric	Fix a problem causing messages to be discarded if checkcompat()
243666340Seric		returned EX_TEMPFAIL (because it didn't properly mark
243766340Seric		the "to" address).  Problem noted by John Myers.
243866340Seric	Fix dfopen to return NULL if the open failed; I was depending
243966340Seric		on fdopen(-1) returning NULL, which isn't the case.  This
244066340Seric		isn't serious, but does result in wierd error diagnoses.
244166340Seric		From Michael Corrigan.
244266340Seric	CONFIG: add UUCP_MAX_SIZE M4 macro to set the maximum size of
244366340Seric		messages sent through UUCP-family mailers.  Suggested
244466340Seric		by Bill Wisner of The Well.
244566340Seric	CONFIG: if both MAILER(uucp) and MAILER(smtp) are specified,
244666340Seric		include a "uucp-dom" mailer that uses domain-style
244766340Seric		addressing.  Suggested by Bill Wisner.
244866340Seric	CONFIG: Add LOCAL_SHELL_FLAGS and LOCAL_SHELL_ARGS to match
244966340Seric		LOCAL_MAILER_FLAGS and LOCAL_MAILER_ARGS.  Suggested by
245066340Seric		Christophe Wolfhugel.
245166340Seric	CONFIG: Add OSTYPE(aix3).  From Christophe Wolfhugel.
245266340Seric
245366339Seric8.2/8.2		93/07/11
245466339Seric	Don't drop out on config file parse errors in -bt mode.
245566339Seric	On older configuration files, assume option "l" (use Errors-To
245666339Seric		header) for back compatibility.  NOTE:  this DOES NOT
245766339Seric		imply an endorsement of the Errors-To: header in any way.
245866339Seric	Accept -x flag on AIX-3 as well as OSF/1.  Why, why, why???
245966339Seric	Don't log errors on EHLO -- it isn't a "real" error for an old
246066339Seric		SMTP server to give an error on this command, and
246166339Seric		logging it in the transcript can be confusing.  Fix
246266339Seric		from Bill Wisner.
246366339Seric	IRIX compatibility changes provided by Dan Rich
246466339Seric		<drich@sandman.lerc.nasa.gov>.
246566339Seric	Solaris 2 compatibility changes.  Provided by Bob Cunningham
246666339Seric		<bob@kahala.soest.hawaii.edu>, John Oleynick
246766339Seric		<juo@klinzhai.rutgers.edu>
246866339Seric	Debugging: -d17 was overloaded (hostsignature and usersmtp.c);
246966339Seric		move usersmtp (smtpinit and smtpmailfrom) to -d18 to
247066339Seric		match the other flags in that file.
247166339Seric	Flush transcript before fork in mailfile().  From Eric Wassenaar.
247266339Seric	Save h_errno in mci struct and improve error message display.
247366339Seric		Changes from Eric Wassenaar.
247466339Seric	Open /dev/null for the transcript if the create of the xf file
247566339Seric		failed; this avoids at least one possible null pointer
247666339Seric		reference in very wierd cases.  From Eric Wassenaar.
247766339Seric	Clean up statistics gathering; it was over-reporting because of
247866339Seric		forks.  From Eric Wassenaar.
247966339Seric	Fix problem that causes old Return-Path: line to override new
248066339Seric		Return-Path: line (conf.c needs H_FORCE to avoid
248166339Seric		re-using old value).  From Motonori Nakamura.
248266339Seric	Fix broken -m flag in K definition -- even if -m (match only)
248366339Seric		was specified, it would still replace the key with the
248466339Seric		value.  Noted by Rick McCarty of Texas Instruments.
248566339Seric	If the name server timed out over several days, no "timed out"
248666339Seric		message would ever be sent back.  The timeout code
248766339Seric		has been moved from markfailure() to dropenvelope()
248866339Seric		so that all such failures should be diagnosted.  Pointed
248966339Seric		out by Christophe Wolfhugel and others.
249066339Seric	Relax safefile() constraints: directories in an include or
249166339Seric		forward path must be readable by self if the controlling
249266339Seric		user owns the entry, readable by all otherwise (e.g.,
249366339Seric		when reading your .forward file, you have to own and
249466339Seric		have X permssion in it; everyone needs X permission in
249566339Seric		the root and directories leading up to your home);
249666339Seric		include files must be readable by anyone, but need not
249766339Seric		be owned by you.
249866339Seric	If _POSIX_SAVED_IDS is defined, setuid to the owner before
249966339Seric		reading a .forward file; this gets around some problems
250066339Seric		on NFS mounts if root permission is not exported and
250166339Seric		the user's home directory isn't x'able.
250266339Seric	Additional NeXT portability enhancements from Axel Zinser.
250366339Seric	Additional HP-UX portability enhancements from Brian Bullen.
250466339Seric	Add a timeout around SMTP message writes; this assumes you can
250566339Seric		get throughput of at least 64 bytes/second.  Note that
250666339Seric		this does not impact the "datafinal" default, which
250766339Seric		is separate; this is just intended to work around
250866339Seric		network clogs that will occur before the final dot
250966339Seric		is sent.  From Eric Wassenaar.
251066339Seric	Change map code to set the "include null" flag adaptively --
251166339Seric		it initially tries both, but if it finds anything
251266339Seric		matching without a null it never tries again with a
251366339Seric		null and vice versa.  If -N is specified, it never
251466339Seric		tries without the null and creates new maps with a
251566339Seric		null byte.  If -O is specified, it never tries with
251666339Seric		the null (for efficiency).  If -N and -O are specified,
251766339Seric		you get -NO (get it?) lookup at all, so this would
251866339Seric		be a bad idea.  If you don't specify either -N or -O,
251966339Seric		it adapts.
252066339Seric	Fix recognition of "same from address" so that MH submissions
252166339Seric		will insert the appropriate full name information;
252266339Seric		this used to work and got broken somewhere along the
252366339Seric		way.
252466339Seric	Some changes to eliminate some unnecessary SYSERRs in the
252566339Seric		log.  For example, if you lost a connection, don't
252666339Seric		bother reporting that fact on the connection you lost.
252766339Seric	Add some "extended debugging" flags to try to track down
252866339Seric		why we get occassional problems with file descriptor
252966339Seric		one being closed when execing a mailer; it seems to
253066339Seric		only happen when there has been another error in the
253166339Seric		same transaction.  This requires XDEBUG, defined
253266339Seric		by default in conf.h.
253366339Seric	Add "-X filename" command line flag, which logs both sides of
253466339Seric		all SMTP transactions.  This is intended ONLY for
253566339Seric		debugging bad implementations of other mailers; start
253666339Seric		it up, send a message from a mailer that is failing,
253766339Seric		and then kill it off and examine the indicated log.
253866339Seric		This output is not intended to be particularly human
253966339Seric		readable.  This also adds the HASSETVBUF compile
254066339Seric		flag, defaulted on if your compiler defines __STDC__.
254166339Seric	CONFIG: change SMART_HOST to override an SMTP mailer.  If you
254266339Seric		have a local net that should get direct connects, you
254366339Seric		will need to use LOCAL_NET_CONFIG to catch these hosts.
254466339Seric		See cf/README for an example.
254566339Seric	CONFIG: add LOCAL_MAILER_ARGS (default: `mail -d $u') to handle
254666339Seric		sites that don't use the -d flag.
254766339Seric	CONFIG: hide recipient addresses as well as sender addresses
254866339Seric		behind $M if FEATURE(allmasquerade) is specified; this
254966339Seric		has been requested by several people, but can break
255066339Seric		local aliases.  For example, if you mail to "localalias"
255166339Seric		this will be rewritten as "localalias@masqueradehost";
255266339Seric		although initial delivery will work, replies will be
255366339Seric		broken.  Use it sparingly.
255466339Seric	CONFIG: add FEATURE(domaintable).  This maps unqualified domains
255566339Seric		to qualified domains in headers.  I believe this is
255666339Seric		largely equivalent to the IDA feature of the same name.
255766339Seric	CONFIG: use $U as UUCP name instead of $k.  This permits you
255866339Seric		to override the "system name" as your UUCP name --
255966339Seric		in particular, to use domain-ized UUCP names.  From
256066339Seric		Bill Wisner of The Well.
256166339Seric	CONFIG: create new mailer "esmtp" that always tries EHLO
256266339Seric		first.  This is currently unused in the config files,
256366339Seric		but could be used in a mailertable entry.
256466339Seric
256566338Seric8.1C/8.1B	93/06/27
256666338Seric	Serious security bug fix: it was possible to read any file on
256766338Seric		the system, regardless of ownership and permissions.
256866338Seric	If a subroutine returns a fully qualified address, return it
256966338Seric		immediately instead of feeding it back into rewriting.
257066338Seric		This fixes a problem with mailertable lookups.
257166338Seric	CONFIG: fix some M4 frotz (concat => CONCAT)
257266338Seric
257366338Seric8.1B/8.1A	93/06/12
257466338Seric	Serious bug fix: pattern matching backup algorithm stepped by
257566338Seric		two tokens in classes instead of one.  Found by Claus
257666338Seric		Assmann at University of Kiel, Germany.
257766338Seric
257866338Seric8.1A/8.1A	93/06/08
257966338Seric	Another mailertable fix....
258066338Seric
258166338Seric8.1/8.1		93/06/07
258266338Seric	4.4BSD freeze.  No semantic changes.
258366338Seric
258466338Seric6.65/6.34	93/06/06
258566338Seric	Fix some lintish problems.
258666338Seric	Fix some cases where server SMTP behaved poorly when handed bogus
258766338Seric		input, pointed out by Eric Wassenaar.
258866338Seric	CONFIG: fix some more (sigh) mailertable bugs -- thanks to
258966338Seric		Motonori Nakamura of Kyoto University (again).
259066338Seric
259166338Seric6.64/6.33	93/06/05
259266338Seric	Don't send 050 (-v) information after the 250 response to a QUIT
259366338Seric		command in srvrsmtp -- clients usually close the connection
259466338Seric		at this point, and it causes bogus error messages.
259566338Seric	Don't send messages that have errors on input (such as unbalanced
259666338Seric		parentheses) during SMTP transactions, since a return
259766338Seric		message has (probably) already been sent.
259866338Seric	Give better diagnostics on timeouts during network reads, including
259966338Seric		information similar to the SMTP phase.
260066338Seric	Fix bug that caused SMTP messages to deliver synchronously; this
260166338Seric		happened after the DATA 250, and hence caused reading the
260266338Seric		next command to be delayed.
260366338Seric	Ignore Errors-To: header unless 'l' (lower case el) header is
260466338Seric		specified.  The Errors-To: header violates RFC 1123.
260566338Seric		Errors-To: was only needed to take the place of the
260666338Seric		envelope sender in the days when most Unix mailers
260766338Seric		didn't understand about the two kinds of senders.
260866338Seric	Don't send warning messages in response to automatically generated
260966338Seric		messages (that is, those From:<>).
261066338Seric	CONFIG: fix some rather stupid typos in the mailertable code
261166338Seric		pointed out by Motonori Nakamura of Kyoto University.
261266338Seric	CONFIG: add confUSE_ERRORS_TO configuration option.
261366338Seric	CONFIG: if ALWAYS_ADD_DOMAIN is selected, try to use $M
261466338Seric		(masquerade name) instead of $j.
261566338Seric	CONFIG: don't add dots to relay names (added in 6.29); it breaks
261666338Seric		several things, and can be simulated by dot terminating
261766338Seric		the names of relays.  For example, use:
261866338Seric			DBbit.net.relay.
261966338Seric		(note the trailing dot).
262066338Seric
262166338Seric6.63/6.32	93/06/01
262266338Seric	Fix prototypes to eliminate chars in argument lists -- some
262366338Seric		compilers are pissy about this.
262466338Seric	Log protocol ($r) and body type if set so we can determine if
262566338Seric		the adaptive algorithms are working.
262666338Seric	Pessimize on locking of database files (particularly for NEWDB
262766338Seric		databases) during opens.  There were problems with
262866338Seric		processes opening the file while it was rebuilt; since
262966338Seric		NEWDB caches heavily, the reader opened an empty file,
263066338Seric		which is an error.  If your system has the ability to
263166338Seric		lock atomically on open, this works properly; otherwise,
263266338Seric		there are race conditions.
263366338Seric	Check mod time on .pag file instead of .dir in NDBM aliases
263466338Seric		because the .dir file doesn't get updated for small
263566338Seric		alias files.  From John Gardiner Myers of CMU.
263666338Seric	More Solaris portability -- it now compiles on Solaris, but
263766338Seric		hangs up in gethostbyname().
263866338Seric	Move setting of RES_DEBUG flag before first myhostname() call
263966338Seric		so we can see name server traffic on that call.
264066338Seric	Fsync() queue files.
264166338Seric	Fix a problem that causes -bi to try to rebuild maps other than
264266338Seric		the alias file(s).
264366338Seric	Fix a problem that caused udb to reject entries from any but
264466338Seric		the first database listed.
264566338Seric	Rearrange doc subdirectory for 4.4BSD release tape.
264666338Seric	CONFIG: put $r into the Received line.  This was an oversight.
264766338Seric	CONFIG: fix typo (call to ruleset 99 should have been rulset 90).
264866338Seric	CONFIG: move "auxiliary" subroutines to be in ruleset 90-99
264966338Seric		range -- in the long run, single digit rulesets may
265066338Seric		become reserved for builtin use by sendmail.
265166338Seric	CONFIG: fix major problem that causes host aliases (that is,
265266338Seric		anything in $=w != $j) to not be recognized.  This has
265366338Seric		been around since 6.30.
265466338Seric
265566338Seric6.62/6.31	93/05/28
265666338Seric	BETA RELEASE
265766338Seric	Fix recursive syserr (if there is an error printing a syserr
265866338Seric		message).  This makes the code much less eager to consider
265966338Seric		a write error as serious.  This also includes some
266066338Seric		heuristics to be clever about closed connections.
266166338Seric	Lock NEWDB files during gets.  This requires version 1.5 or later
266266338Seric		of the db library.  If you have an older version, you
266366338Seric		can use -DOLD_NEWDB.  This will go away in a few weeks.
266466338Seric	Fix problem causing aliases that use host maps to get overwritten.
266566338Seric	Do appropriate byte swapping on port numbers in ident protocol
266666338Seric		code.  Fix from Allan Johannesen of WPI.
266766338Seric	Defer opening of map files to the same time as alias files so that
266866338Seric		the daemon will tend to pick up new versions more promptly.
266966338Seric	Prototype a bunch more functions.
267066338Seric	Some Solaris 2.1 changes (still doesn't link though).
267166338Seric	Try to simplify Makefiles by including more subordinate #defines
267266338Seric		in conf.h (based on OS type).
267366338Seric	CONFIG: check for domains if FEATURE(mailertable) is defined.
267466338Seric		For example, if the host name is "knecht.cs.berkeley.edu"
267566338Seric		it will search the following mailertable keys:
267666338Seric			knecht.cs.berkeley.edu
267766338Seric			.cs.berkeley.edu
267866338Seric			.berkeley.edu
267966338Seric			.edu
268066338Seric		This could be used to replace the special relays for bitnet
268166338Seric		and similar nets.
268266338Seric
268366338Seric6.61/6.30	93/05/24
268466338Seric	Fix problem that prevented appending dots on canonified host
268566338Seric		names.  This breaks tons of config files -- very
268666338Seric		important fix.
268766338Seric	Fix improper pointer dereference in response to HELO command.
268866338Seric	Fix core dump if debugging set in map_rewrite.
268966338Seric	CONFIG: add FEATURE(always_add_domain) to always attach the
269066338Seric		local domain (only impacts local mail).
269166338Seric	CONFIG: try to avoid turning names into $j -- although
269266338Seric		technically a host can only have one "canonical name",
269366338Seric		it seems to be common practice to have several.
269466338Seric
269566338Seric6.60/6.29	93/05/22
269666338Seric	Major change: merge alias databases with maps.  This expands and
269766338Seric		changes the map class interface but fixes a bunch of bugs.
269866338Seric		The important user-visible change is that the file name
269966338Seric		in a K line now does not include the ".db" extension; this
270066338Seric		is added automatically.  Also, the -d (NIS domain) flag is
270166338Seric		missing from the K config line; use @domain instead.
270266338Seric		When compiling, the *_MAP names are gone -- just compile
270366338Seric		in NDBM, NEWDB, and/or NIS support.
270466338Seric	Announce mailer/host/user triple on -bv flag -- from Brian
270566338Seric		Bullen of Stirling University.
270666338Seric	Don't send more than one line in response to HELO -- it confuses
270766338Seric		Pony Express, which then behaves very badly.  However,
270866338Seric		this change does send two line 220 greetings, with the
270966338Seric		second line reading "ESMTP spoken here".  The usersmtp
271066338Seric		module recognizes this and goes into ESMTP mode regardless
271166338Seric		of the setting of the "a" mailer flag.  Thus, "a" means
271266338Seric		"always try EHLO".
271366338Seric	AIX portability changes (thanks to Christophe Wolfhugel of
271466338Seric		Herve Schauer Consultants (Paris) for providing me with
271566338Seric		an INSA account for this purpose).  Lightly tested.  Use
271666338Seric		-D_AIX3.  This probably breaks compatibility with some
271766338Seric		older systems (e.g., 4.2bsd) but still works on SunOS
271866338Seric		4.1.2, Ultrix 4.2A, HP-UX 8.07, OSF/1 T1.3, and AIX 3.2.3.
271966338Seric	Fix a problem causing an error message loop if the output channel
272066338Seric		is hosed.
272166338Seric	Add the Makefiles that I use for various environments -- some are
272266338Seric		Berkeley make versions and some are old make versions.
272366338Seric		My makefile for the NeXT box has gotten lost, alas!
272466338Seric	PRALIASES: support for printing NEWDB databases.  From
272566338Seric		Michael J. Corrigan of U.C. San Diego.
272666338Seric	CONFIG: don't pass pseudo-domains to $[ ... $] (if you have
272766338Seric		a wildcard MX it can have wierd results).  From
272866338Seric		Christophe Wolfhugel.
272966338Seric	CONFIG: dot terminate relay hostnames in S0.  From Christophe
273066338Seric		Wolfhugel.
273166338Seric
273266338Seric6.59/6.28	93/05/13
273366338Seric	Log version with SMTP daemon startup message.
273466338Seric	Adjust setproctitle to work on NetBSD and BSD/386.
273566338Seric	Fix null pointer reference in MX fallback code.
273666338Seric	A bunch of minor fixes from Eric Wassenaar:
273766338Seric		If deliver cannot execv the mailer, return EX_OSERR
273866338Seric			instead of EX_TEMPFAIL (to give better
273966338Seric			error messages).
274066338Seric		Consistently malloc e_message.
274166338Seric		Catch degenerate case of calling returntosender()
274266338Seric			with an empty returnq.
274366338Seric		MIME reformatting.
274466338Seric
274566338Seric6.58/6.28	93/05/13
274666338Seric	Fix bug that can cause incorrect verbose display of user smtp
274766338Seric		messages.
274866338Seric	Disable SMTP VERB command if PRIV_NOEXPN is set (since this
274966338Seric		could reveal the same information.
275066338Seric	Allow failure when reading SMTP greeting message to go on to
275166338Seric		next MX host.
275266338Seric	Add "MIME-Version: 1.0" header if using MIME (this was NOT
275366338Seric		included in RFC 1344, but Bill King of Allan-Bradley
275466338Seric		Company forwarded me email from Nathaniel Borenstein
275566338Seric		claiming that it was an inadvertent omission).
275666338Seric	Don't use Content-Type: X-message-header.  According to John
275766338Seric		Myers of CMU, many MIME readers will completely ignore
275866338Seric		the data if they don't recognize it.  Instead, just
275966338Seric		add a blank line to make it a legal (empty) message.
276066338Seric	Fix problem causing dots to keep getting appended to cached
276166338Seric		hostnames.  This can cause buffer overrun conditions.
276266338Seric		The problem was found by Erik Forsberg of Retix,
276366338Seric		although I used a different bug fix than he provided.
276466338Seric	Fix parsing of split header/envelope rewriting specs -- from
276566338Seric		Eric Forsberg.
276666338Seric	Fix from Eric Wassenaar to correct To: lists in error messages.
276766338Seric
276866338Seric6.57/6.28	93/05/11
276966338Seric	Fix minor glitch causing extra ctladdrs to be output to queue
277066338Seric		file.  Just an annoyance.
277166338Seric	Cache results of name server canonification lookups to avoid
277266338Seric		backed up queue runs.
277366338Seric	Major rewrite of alias.c: considerable cleanup, plus sample
277466338Seric		(untested) support for NIS aliases.  The "A" option
277566338Seric		can now be a comma separated list (or be repeated) --
277666338Seric		that is, you can have multiple alias databases.  Each
277766338Seric		database can have the syntax ``class:file''; if no class
277866338Seric		is specified, the "implicit" class is assumed.  Implicit
277966338Seric		searches through a list of compiled in types -- hash,
278066338Seric		dbm, nis, and stab.  Alias files are searched in the
278166338Seric		order they are listed.  For example:
278266338Seric			OAhash:/etc/aliases.local,/etc/aliases
278366338Seric			OAnis:mail.aliases@my.nis.domain
278466338Seric		first searches the hash database /etc/aliases.local,
278566338Seric		then the regular /etc/aliases database, then the NIS
278666338Seric		map "mail.aliases" in the NIS domain "my.nis.domain".
278766338Seric	If in Verbose mode (probably from VERB command) run SMTP job
278866338Seric		in foreground and don't do RCPT optimizations.
278966338Seric	Add udb :mailsender as equivalent to owner- for regular aliases.
279066338Seric	Delete option 8; add option 7 that means the opposite.  That is,
279166338Seric		default to 8-bit mode; a special option is needed to
279266338Seric		force sendmail into 7 bit mode.
279366338Seric	Send error messages in encapsulated MIME format.
279466338Seric	New compile flag "NIS" that turns on NIS alias and NIS map
279566338Seric		support.
279666338Seric	Add "j" option to send error messages in MIME (RFC 1341)
279766338Seric		encapsulated message format per RFC 1344.  The
279866338Seric		syntax is pretty ugly if you don't have MIME-aware
279966338Seric		user agents.
280066338Seric	Clean up message handling (for display in mailq output).
280166338Seric	New setproctitle implementation for 4.4bsd.
280266338Seric	Create files (such as ~/dead.letter) using mode FileMode (the
280366338Seric		F option value) instead of 0666.
280466338Seric	Fix bug causing output of EXPN command to not be fully qualified.
280566338Seric		This may cause some problems with UUCP addresses that
280666338Seric		will require some config file assistance -- specifically,
280766338Seric		the $: part has to include the host name for this output
280866338Seric		to make sense.
280966338Seric	Fix a problem that sometimes diagnosed errors and still sent the
281066338Seric		message if the header syntax was bad.
281166338Seric	Fix a bug that caused an error message to be emailed when sendmail
281266338Seric		was operating in -bv mode.
281366338Seric	Add "ListenQueueSize" keyword to daemon options option (OO) to
281466338Seric		set the queue size parameter passed to listen().  You
281566338Seric		will normally have to tweak your kernel to up this.
281666338Seric	Strip spaces off of beginning of message-id before logging (in
281766338Seric		case it was folded across lines).
281866338Seric	Tweak compile flags in daemon.c -- there were some cases where
281966338Seric		it wouldn't work without NETINET.
282066338Seric	Change *file* mailer to output all the usual default headers
282166338Seric		(From, Date, Message-Id).  It gets used when sending
282266338Seric		back error messages.
282366338Seric	CONFIG: explicitly catch and diagnose list:; syntax in ruleset
282466338Seric		zero -- this is not a valid recipient syntax according
282566338Seric		to RFC 821.
282666338Seric	CONFIG: add confMIME_FORMAT_ERRORS to send error messages in
282766338Seric		MIME format.  Defaults to on.
282866338Seric	CONFIG: add SMTP_MAILER_FLAGS and UUCP_MAILER_FLAGS to augment
282966338Seric		the flags for those mailers.
283066338Seric
283166338Seric6.56/6.27	93/05/01
283266338Seric	Fix problem that causes the fallback mail to postmaster
283366338Seric		(case ESM_POSTMASTER in savemail()) to not look at
283466338Seric		aliases (ugh).
283566338Seric	Some more HPUX tweaking (compile flag hpux => __hpux so it
283666338Seric		still works in ANSI mode).
283766338Seric	Don't try to flock non-regular files when mailing to a file.
283866338Seric		In particular, this was a problem if you tried to
283966338Seric		send to /dev/null.
284066338Seric	Fix a wierd bug that can cause senders to be queued as
284166338Seric		recipients if the name server is down when the mail
284266338Seric		is initially sent.  This hack just ignores sender
284366338Seric		deletion (essentially, it sets the MeToo flag) if there
284466338Seric		is a TEMPFAIL during processing of the sender address.
284566338Seric		Obscure.
284666338Seric	Fix a dangling else problem -- from Brian Bullen from University
284766338Seric		of Stirling, UK.
284866338Seric	Add the "b" mailer flag to force a blank line on the end of
284966338Seric		messages.  Some brilliant versions of /bin/mail insist
285066338Seric		on this but do not add it themselves.
285166338Seric	Add the "g" mailer flag to prevent user SMTP from sending
285266338Seric		"MAIL From:<>".  This is only intended to be a
285366338Seric		transitional gesture, and should not be used if at
285466338Seric		all possible.  It appears that Berkeley and IDA
285566338Seric		config files have always handled this properly; the
285666338Seric		UK config kit apparently does not.
285766338Seric	Don't lowercase and then capitalize header field names -- leave
285866338Seric		them with original capitalization.  Fixes from Bill
285966338Seric		King of Allen-Bradley Company.
286066338Seric	Further cleanup and improved reporting of error messages,
286166338Seric		particularly conditions that cause messages to be
286266338Seric		requeued for future delivery.
286366338Seric	Tweak syslog priorities in some cases.
286466338Seric	CONFIG: clean up route-addr on UUCP addresses.
286566338Seric
286666338Seric6.55/6.25	93/04/27
286766338Seric	HPUX 8.07 compatibility changes in getla() -- I had to make
286866338Seric		these changes to get it to work at Berkeley, although
286966338Seric		others seem to have been working before (???).
287066338Seric	Various patches to XLA code.
287166338Seric	Fix problem that causes setuid bit on files to be ignored from
287266338Seric		SMTP or in queue runs.  Problem noted by Jason Ornstein
287366338Seric		of Under The Wire, Inc.
287466338Seric	Fix problem that can cause CNAMEs to be ignored.
287566338Seric	Generalize getmxrr to match local host in $=w instead of a
287666338Seric		single name passed in.
287766338Seric	Some cleanup from Eric Wassenaar:
287866338Seric		Use FileMailer instead of ProgMailer in two places.
287966338Seric		Eliminate duplicate 8th-bit stripping in commaize.
288066338Seric		Fix a problem with mis-parsing of backslash escapes
288166338Seric			under some circumstances.
288266338Seric	NIS map fix (was always including trailing null character)
288366338Seric		from Mike Glendinning of Ingres UK.
288466338Seric	Add "a" mailer flag to try using ESMTP.  It tries the EHLO
288566338Seric		command and if that fails falls back to regular SMTP.
288666338Seric		Also parses EHLO option keywords.  If host supports
288766338Seric		SIZE extension, this is added to the MAIL FROM:
288866338Seric		command.
288966338Seric	Extend "b" option to include a second value which is the
289066338Seric		maximum message size this server is willing to accept.
289166338Seric		For example, a value of "10/1000000" says that there
289266338Seric		must be ten blocks free, and sendmail will reject
289366338Seric		any message larger than one megabyte.
289466338Seric	Some portability hooks for NeXT (this could be applicable
289566338Seric		to Mach in general).  You have to create an empty
289666338Seric		file called "unistd.h" to get it to compile.
289766338Seric	Adjust config values (MAXLINE, MAXATOM, and PSBUFSIZE) to
289866338Seric		be more generous.
289966338Seric	Add X400-Received: to the list of headers tagged with H_TRACE
290066338Seric		in conf.c.  From Bill King, Allen-Bradley Co.
290166338Seric
290266338Seric6.54/6.25	93/04/19
290366338Seric	Fix problem that caused redefinition of SMTP and QUEUE compile
290466338Seric		flags.  Pointed out by Jon Forrest of the Sequoia 2000
290566338Seric		project at Berkeley.
290666338Seric	Properly handle \! hack -- it was treating host\!user as one
290766338Seric		token (host!user) instead of three (host, !, user).
290866338Seric		Fix from Eric Wassenaar of NIKHEF-H.
290966338Seric	Fix compilation problem in getauthinfo() if IDENTPROTO is off.
291066338Seric	Turn off DEFNAMES and DNSRCH when getting the hostsignature
291166338Seric		(i.e., MX records) in level 1 configuration files; this
291266338Seric		matches the old behaviour.  From Motonori Nakamura of
291366338Seric		Kyoto University.
291466338Seric	Improve error message printing -- if sent through an alias,
291566338Seric		error messages include the name of the alias in the
291666338Seric		message.  Unfortunately, in order to make this work
291766338Seric		properly in queue runs, this changes the format of the
291866338Seric		C line in the qf file.  The relatively uselessness of
291966338Seric		the previous information was pointed out to me by
292066338Seric		Allan E Johannesen of WPI.
292166338Seric	Add XLA compile flag to add hooks to Christophe Wolfhugel's
292266338Seric		extended load average code.  This is still in very early
292366338Seric		form.  For information regarding the guts of the xla
292466338Seric		code, contact Christophe.Wolfhugel@grasp.insa-lyon.fr.
292566338Seric	Additional hooks for detecting tempfails in rewriting rules
292666338Seric		(that is, in map lookups).
292766338Seric
292866338Seric6.53/6.25	93/04/15
292966338Seric	Properly diagnose ruleset zero returning null (instead of a mailer
293066338Seric		triple).  From Motonori Nakamura of Kyoto University.
293166338Seric	More generalization of socket code for other protocols.
293266338Seric	Shorten timeouts on reverse name lookups -- since they are done
293366338Seric		during connection establishment, long timeouts here can
293466338Seric		cause higher level timeouts.  This mainly serves to accept
293566338Seric		mail from hosts that do not have proper reverse (PTR) DNS
293666338Seric		records set up.
293766338Seric	Reset e_statmsg before each mailer invocation to avoid bogus
293866338Seric		messages in the log.
293966338Seric	Redefine $r, $s, and $_ in error envelopes so you don't get
294066338Seric		incorrect cruft in the error message.  Problem noted by
294166338Seric		Motonori Nakamura of Kyoto University.
294266338Seric	Fix a problem that can cause failure to return errors to Postmaster
294366338Seric		in certain cases.  From Motonori Nakamura.
294466338Seric	Fix a problem that can cause some systems to give duplicate error
294566338Seric		messages when a bad syntax address such as "<a" is presented
294666338Seric		to an SMTP server.   It doesn't seem to occur on all
294766338Seric		machines.  From Motonori Nakamura.
294866338Seric	Default IDENTPROTO off for Ultrix and HPUX, which apparently have
294966338Seric		the interesting "feature" that when they receive a "Host
295066338Seric		unreachable" message they closes all open connections to
295166338Seric		that host.  However, some firewall gateways send this message
295266338Seric		if you try to connect to an unauthorized port, such as the
295366338Seric		IDENT port (113).  Thus, no email can be received from such
295466338Seric		hosts.  There is some evidence that versions of Ultrix before
295566338Seric		4.3 do not have this problem.  Thanks to Tom Ivar Helbekkmo
295666338Seric		for pointing out this behaviour to me and to Michael Corrigan
295766338Seric		of U.C. San Diego for informing me about the HPUX problem.
295866338Seric	Allow IPC mailers to return a colon-separated list of hosts in the
295966338Seric		$@ clause; these are searched in order as though they were
296066338Seric		MX records.
296166338Seric	When sending an error report, print the list of addresses tagged
296266338Seric		as bad.  Requested by Allan E Johannesen of WPI.
296366338Seric	Change map function calls to return a status code.  This gets
296466338Seric		passed back as the result of rewrite.  Parseaddr marks
296566338Seric		the address as a QUEUEUP address if the return code is
296666338Seric		EX_TEMPFAIL.  All this to queue properly if the name
296766338Seric		server is down.  This code is not well tested.  This code
296866338Seric		changes the interface to map lookup functions (a fifth
296966338Seric		parameter, int *statp, is added).  Feature requested by
297066338Seric		Dan Oscarsson.
297166338Seric	Don't delete quotes (in the dequote map) if there are spaces in
297266338Seric		the string, since this would cause them to be replaced by
297366338Seric		the SpaceSub character.
297466338Seric	Accept BODY=8BITMIME on SMTP MAIL command.  This isn't advertised
297566338Seric		because the 8BIT to 7BIT translation doesn't exist yet.
297666338Seric		This does add a "bodytype" field to both envelope and
297766338Seric		queue file and a -B command line flag to pass the type in
297866338Seric		during direct invocations.
297966338Seric	Discard return error messages only on responses to responses to
298066338Seric		responses, not on responses to responses.  That is, the
298166338Seric		algorithm is to try return to sender, then return to
298266338Seric		postmaster, then discard.  Previously it discarded
298366338Seric		immediately if the return to sender pass failed.
298466338Seric	CONFIG: back out change to hide unqualified hostnames behind %-hack.
298566338Seric		This screws up local aliases and .forward files.
298666338Seric	CONFIG: add FEATURE(nocanonify) to turn off calls to $[ ... $];
298766338Seric		some sites only handle completely canonified names.
298866338Seric		Requested by John Gardiner Myers of CMU.
298966338Seric	CONFIG: some UUCP code was still included even if FEATURE(nouucp)
299066338Seric		was specified.
299166338Seric
299266338Seric6.52/6.24	93/04/10
299366338Seric	Clean up some minor glitches on error return messages pointed out
299466338Seric		by Motonori Nakamura of Kyoto University.
299566338Seric	Fix reply() to not reset SmtpReplyBuffer on fatal errors; this
299666338Seric		was supposed to reset SmtpMsg Buffer.  This makes the
299766338Seric		client side code virtually useless.  Reported by Allan
299866338Seric		E Johannesen of WPI and Phil Brandenberger of Swarthmore.
299966338Seric	Better debug messages if fuzzy is disabled, suggested by Allan
300066338Seric		E Johannesen of WPI.
300166338Seric	Offset SmtpReplyBuffer by four in usersmtp when checking for
300266338Seric		loopback.  From Eric Wassenaar.
300366338Seric	Don't set $s until after runinchild in srvrsmtp -- otherwise
300466338Seric		it gets cleared.  From Eric Wassenaar.
300566338Seric	Implement IDA-style $&x for deferred macro expansion.
300666338Seric	More POSIX compatibility.
300766338Seric	CONFIG: Hide unqualified hostnames behind %-hack using $s as the
300866338Seric		actual sender.  This is only done if $r is non-null, that
300966338Seric		is, if this is not locally submitted mail.
301066338Seric	CONFIG: Add FEATURE(bitdomain) allowing mapping of BITNET host
301166338Seric		names to internet domains.  A program contributed by
301266338Seric		John Gardiner Myers of CMU to create the maps is included
301366338Seric		in the contrib directory (in the "misc" tar file).
301466338Seric	CONFIG: Add FEATURE(uucpdomain) for a similar mapping for UUCP
301566338Seric		hosts.  There is currently no tool to create this map.
301666338Seric
301766338Seric6.51/6.23	93/04/04
301866338Seric	Add D= mailer flag to specify a path of possible working directories
301966338Seric		in which to execute the mailer.  This is intended for the
302066338Seric		prog mailer; some shells can get upset if they don't have
302166338Seric		access to the current directory.
302266338Seric	Add RFC 1413 (IDENT) protocol support.  This is only very loosely
302366338Seric		tested.  This adds a $_ macro to be the authenticated
302466338Seric		info (in ``user@domain [address]'' form) and debug flag
302566338Seric		9 to trace the protocol.
302666338Seric	Check for loopbacks in usersmtp instead of srvrsmtp -- there is no
302766338Seric		reason for a local agent to not be talking to the localhost
302866338Seric		(although the inverse is not true).
302966338Seric	Add a few hooks for automated map rebuilding.  This is certainly
303066338Seric		not done yet.
303166338Seric	CONFIG: Have prog mailer specify a path of ``D=$z:/'' -- that is,
303266338Seric		user's home directory then the root.
303366338Seric	CONFIG: Log RFC 1413 identification in Received: line.
303466338Seric
303566338Seric6.50/6.22	93/04/01
303666338Seric	Fixes to requeueing code to make it compute priority, nrcpts,
303766338Seric		and the like properly.
303866338Seric
303966338Seric6.49/6.22	93/04/01
304066338Seric	Diagnose incorrect privacy flags.  Suggested by Bryan Costales
304166338Seric		of ICSI.
304266338Seric	Some ANSI C fixes.
304366338Seric	Arrange to quote backslashes as well as other special characters
304466338Seric		in the phrase part of a route-addr.
304566338Seric	Some fixes to FallBackMX code suggested by Motonori Nakamura of
304666338Seric		Kyoto University.
304766338Seric	More vigorous zeroing of CurHostAddr to avoid logging of bogus
304866338Seric		host addresses when you are actually just printing
304966338Seric		information from the MCI structure; problem noted by
305066338Seric		Michael Corrigan of U.C. San Diego.
305166338Seric	Don't ignore rest of queue if any job is not runnable.  This can
305266338Seric		also cause an incorrect job to be lost.  Fix from
305366338Seric		Eric Wassenaar.
305466338Seric	Always respond "quickly" to RCPT command; do alias expansion and
305566338Seric		the like later.  This also means that mail for lists that
305666338Seric		have errors will be acccepted, and an error sent back
305766338Seric		later.  This is done by instantiating the queue file
305866338Seric		and then immediately running and requeueing it.
305966338Seric
306066338Seric6.48/6.22	93/03/30
306166338Seric	Fix incorrect diagnosis of infinite loop in ruleset.  Problem noted
306266338Seric		by several people.
306366338Seric	Improve information printed when infinite loops are discovered.
306466338Seric	Zero CurHostAddr to fix erroneous internet addresses in log when no
306566338Seric		addresses can be bound.  Pointed out by Motonori Nakamura
306666338Seric		of Kyoto University.
306766338Seric	"Probe" SMTP connections using RSET instead of NOOP "just in case".
306866338Seric		Suggested by John Gardiner Myers of CMU.
306966338Seric	Don't warn about -f if you are setting sender to yourself.
307066338Seric
307166338Seric6.47/6.22	93/03/29
307266338Seric	Fix incompatible call to endmailer in smtpquit which causes core
307366338Seric		dumps.  Noted by Allan E Johannesen of WPI.
307466338Seric	HPUX portability changes from Michael J. Corrigan of UC San Diego.
307566338Seric	Require MAIL before RCPT command in srvrsmtp.c.  This had been
307666338Seric		intentional from the 821 draft days when the order wasn't
307766338Seric		clear, but is silly now.
307866338Seric	Fix bug in nis_magic routine that was initializing parameters
307966338Seric		incorrectly.  Fix from Takahiro Kanbe of Fuji Xerox
308066338Seric		Information Systems Co., Ltd.
308166338Seric	Change default for PrivacyFlags in conf.c to 0 -- since it always
308266338Seric		"or"s in new values, there was no way to turn off the
308366338Seric		AuthWarning stuff.
308466338Seric	Add O option to set SMTP daemon options.
308566338Seric	Add V option to set fallback MX host.  This always sorts at lower
308666338Seric		priority than anything it gets from the name server.  It
308766338Seric		should only be used for environments with very bad network
308866338Seric		connectivity.  Requested by several people.
308966338Seric	Log sending info.  It's not clear this is a good idea.
309066338Seric	CONFIG: fix typo in mailertable code.  Noted by Phil Brandenberger
309166338Seric		of Swarthmore.
309266338Seric	CONFIG: add confDAEMON_OPTIONS and confFALLBACK_MX to set options
309366338Seric		O and V, respectively.
309466338Seric
309566338Seric6.46/6.21	93/03/26
309666338Seric	Fix botch in server SMTP that broke transactions that did not
309766338Seric		use HELO first (like MH).  Fix from Michael Corrigan
309866338Seric		of U.C. San Diego.
309966338Seric	Fall back to other MX records if there is an error anywhere
310066338Seric		in delivery (actually on MAIL or DATA -- RCPT is harder).
310166338Seric		Suggested by John Gardiner Myers and Motonori Nakamura.
310266338Seric	Revert to non-prototypes -- it turns out that our ANSI C
310366338Seric		compiler is more forgiving than most others about
310466338Seric		mixing prototyped extern declarations with non-prototyped
310566338Seric		function definitions.
310666338Seric	Fix a problem with multi-word class matching pointed out by
310766338Seric		Neil Rickert.  Given:
310866338Seric			CX b a.b.c
310966338Seric			R$+ $=X $+	$: $1 < $2 > $3
311066338Seric		the input "user@a.b.c" failed instead of being properly
311166338Seric		rewritten as "user@a.<b>.c".
311266338Seric	Neil also convinced me that it was correct that $~ should match
311366338Seric		only one token -- the problem is that it's always possible
311466338Seric		to add another token, so $~ matches far too eagerly.
311566338Seric
311666338Seric6.45/6.21	93/03/25
311766338Seric	Implement multi-word classes (properly!).
311866338Seric
311966338Seric6.44/6.21	93/03/25
312066338Seric	Add X-Authentication-Warning: headers to clue users into possible
312166338Seric		attempts to forge mail.  This is on the authwarnings
312266338Seric		privacy flag, but is the default.  Suggested by Bryan
312366338Seric		Costales of ICSI.
312466338Seric	Pass default units for convtime in so they can be more reasonable.
312566338Seric	Allow config files to always add a new Comments: header (i.e.,
312666338Seric		they will be added even if an old one already exists).
312766338Seric		Suggested by Bryan Costales of ICSI.
312866338Seric	Allow config files to delete an existing Return-Path: header.
312966338Seric		These should only be added at final delivery.  Suggested
313066338Seric		by Bryan Costales of ICSI.
313166338Seric	Some debugging additions.  Suggested by Bryan Costales of ICSI.
313266338Seric	Clean up logging of Family 0 addresses.  Noted by David Muir
313366338Seric		Sharnoff and others.
313466338Seric	Add a "dequote" map class.  This allows config files to strip
313566338Seric		quotes off of addresses.  Note that this is not a builtin
313666338Seric		map, just a class -- so you have to define the map
313766338Seric		using the K line.
313866338Seric	Fix a bug in the queueup() loop getting a locked tf where in
313966338Seric		very odd cases it can fall off the bottom and core dump.
314066338Seric		Of course, it was P{r Emanuelsson who found it....
314166338Seric	Open a new transcript when splitting an envelope.  Problem found
314266338Seric		by Allan E Johannesen of WPI.
314366338Seric	Improved error output in endmailer if the mailer core dumps.
314466338Seric	CONFIG: Fix typo in UUCP mailer definition.
314566338Seric	CONFIG: Default several of the new options on: eight bit input,
314666338Seric		privacy flags set to "authwarnings", and message warning
314766338Seric		set to 4h.
314866338Seric	CONFIG: Use dequote map.
314966338Seric
315066338Seric6.43/6.20	93/03/23
315166338Seric	Fix problem with assumption of an sa_len field in a generic
315266338Seric		sockaddr -- it turns out that most vendors haven't
315366338Seric		picked up this (very important) fix.
315466338Seric	Change compilation flags for daemon code -- select one or both
315566338Seric		of NETINET or NETISO, but don't ever set DAEMON manually.
315666338Seric	CONFIG: add FEATURE(mailertable) to do IDA-style mailertables.
315766338Seric
315866338Seric6.42/6.19	93/03/19
315966338Seric	Use Postmaster as default fallback return address, not root.
316066338Seric	POSIX changes for file descriptor handling.
316166338Seric	Diagnose errors writing new queue file.
316266338Seric	If you change the owner using an owner- alias, also change the
316366338Seric		error mode to EM_MAIL so that errors don't get dropped
316466338Seric		into an inappropriate directory.  Problem noted by
316566338Seric		Allan E Johannesen of WPI.
316666338Seric	If you are su'ed to root, send email as who you really are, not
316766338Seric		as root.  From Brian Kantor of U.C. San Diego.
316866338Seric	Allow warning messages to be sent after a configurable interval
316966338Seric		has passed without delivery.  The message is sent only
317066338Seric		once per envelope.  This changes the format of the qf
317166338Seric		file to have an F line, and the format of the T option
317266338Seric		to accept take the format "return/warn" (both intervals).
317366338Seric	Don't force all local names to lower case -- this was left over
317466338Seric		from the wierd handling of case mapping on aliases.  It
317566338Seric		is now driven (as expected) by the "u" mailer flag.
317666338Seric		Problem noted by P{r Emanuelsson.
317766338Seric	Fix problem that caused headers on returned email to be trashed;
317866338Seric		they were getting freed, but are still accessible via
317966338Seric		BlankEnvelope.
318066338Seric	Fix problem that caused bogus ids to be created on returned
318166338Seric		mail.
318266338Seric	Add support for ISO and other non-INET networking.  This is by
318366338Seric		no means finished yet.  This does assume a lot of other
318466338Seric		system support, like a version of gethostbyname that
318566338Seric		returns non-AF_INET addresses.
318666338Seric	CONFIG: change default on prog mailer to keep upper case in
318766338Seric		user names (i.e., in the program command line).
318866338Seric	CONFIG: strip trailing dots off of hosts in uucp mailer before
318966338Seric		convert to bang format.
319066338Seric	CONFIG: create new "relay" mailer for $R (LOCAL_RELAY) and $H
319166338Seric		(MAIL_HUB) delivery that doesn't add local domain.  Note
319266338Seric		that this violates 821, but is probably "more correct"
319366338Seric		for what we are trying to do.  Problem pointed out by
319466338Seric		Michael Graff of Iowa State.
319566338Seric
319666338Seric6.41/6.18	93/03/18
319766338Seric	Clean up unnecessary creates of queue ids (i.e., empty qf files)
319866338Seric		when not needed, such as when starting up an SMTP
319966338Seric		connection.
320066338Seric	Fix problem where split envelopes aren't instantiated in the queue.
320166338Seric		This is quite a serious bug.
320266338Seric	Owner- aliases had problems with leading spaces causing a
320366338Seric		premature delimitation.
320466338Seric
320566338Seric6.40/6.18	93/03/18
320666338Seric	Have ending 250 (after DATA) include the id; suggested by
320766338Seric		Brian Kantor of UC San Diego.
320866338Seric	Add logging on envelope splitting.
320966338Seric	Change queue ids to have one more letter encoding the hour of
321066338Seric		the day so that during a single day there is a greater
321166338Seric		likelihood of uniqueness; requested by Brian Kantor.
321266338Seric
321366338Seric6.39/6.18	93/03/18
321466338Seric	Fix minor compile problem if LOCKF is defined.
321566338Seric	Define size of tobuf in conf.h.  Observed by Toshinari Takahashi
321666338Seric		of Toshiba.
321766338Seric	Restore e_sender -- this is equivalent to e_from.q_paddr without
321866338Seric		decorations such as angle brackets and comments.
321966338Seric	OSF/1 on Alpha changes from Allan E Johannesen of WPI.
322066338Seric	CONFIG: fix typo in S3 for list syntax (;: => :;).  Thanks to
322166338Seric		Christopher Hoover for noting the problem.
322266338Seric
322366338Seric6.38/6.17	93/03/17
322466338Seric	Pass envelope to disconnect to avoid another use of CurEnv, which
322566338Seric		can apparently end up being null at inopportune times.
322666338Seric	Log "received from" as "relay=" for consistency (suggested by
322766338Seric		John Gardiner Myers).
322866338Seric	Fix major bug in header handling:  if no From: line existed in
322966338Seric		the header (so sendmail inserts one), and the sender is
323066338Seric		an alias that has an owner, the From: line shows the
323166338Seric		owner (as well as the envelope).  Fixed by early binding
323266338Seric		the headers (which will change debugging output).
323366338Seric	HPUX portability patches from Michael J. Corrigan of UC San Diego.
323466338Seric	Some attempts to adapt better to out of open file conditions.
323566338Seric	Some changes to ctladdr handling in queue files.
323666338Seric
323766338Seric6.37/6.17	93/03/16
323866338Seric	MAJOR CHANGE:  delete e_sender and e_returnpath (why are these
323966338Seric		different from e_from?) and $< macro.
324066338Seric	Log correct IP address in relay= field even if the connection
324166338Seric		times out.
324266338Seric	Log "received from [RESPONSE]" on EF_RESPONSE messages (from
324366338Seric		John Gardiner Myers).
324466338Seric	Fixes to SysExMsg logging (sometimes just got "message: %s"
324566338Seric		instead of "message: error message"), noted by Eric
324666338Seric		Wassenaar.  Also reported by Motonori Nakamura.
324766338Seric	Improvements to MX piggybacking code, from Motonori Nakamura.
324866338Seric	Fix case where CurHostName points to an auto variable that has
324966338Seric		been deallocated (from Motonori Nakamura).
325066338Seric	Fix bug causing newlines to be included in aliases if option
325166338Seric		"n" (check alias RHS) is set; bug noted by David Muir
325266338Seric		Sharnoff.
325366338Seric	Fix problem causing user names that should be mapped to lower
325466338Seric		case to not be mapped if they are sent during a queue
325566338Seric		run.  This greatly simplifies the case mapping code.
325666338Seric		Problem noted by Allan E Johannesen of WPI.
325766338Seric	Don't do recipient address rewriting in buildaddr.  This
325866338Seric		improperly did recipient rewriting on sender addresses,
325966338Seric		and just seems bogus in general -- but the change could
326066338Seric		break some .cf files.
326166338Seric	Pass TZ envariable to child processes for System V.
326266338Seric	CONFIG: allow LOCAL_RULE_1 and LOCAL_RULE_2 if you want to
326366338Seric		define those rulesets.
326466338Seric	KNOWN PROBLEM:  I have seen some problems on SunOS that causes
326566338Seric		the User Data Base to give errors on some addresses.  I
326666338Seric		have tracked the problem back at least as far as 93.02.15
326766338Seric		(version 6.22).  Running with debugging on makes it
326866338Seric		go away, so I conclude that it is referencing uninitialized
326966338Seric		stack data.  I haven't been able to track this down yet.
327066338Seric
327166338Seric6.36/6.16	93/03/08
327266338Seric	Allow local mailer to specify $@host -- this lets you assign the
327366338Seric		"foo" part of jgm+foo to $h for passing in to the local
327466338Seric		mailer.
327566338Seric	Additional debug printing in getcanonname (show query type).
327666338Seric	Don't add the e_fromdomain on sender addresses -- this interacts
327766338Seric		wierdly with the owner- code.
327866338Seric	Improve delivery logging to not log obvious or meaningless stuff.
327966338Seric	Include numeric IP address in Received: lines per RFC 1123 section
328066338Seric		5.2.8.
328166338Seric	Fixed a bug in checking stat() return value if restrictmailq is
328266338Seric		set.  Also, check the entire group set instead of just the
328366338Seric		primary group.  Both from John Gardiner Myers.
328466338Seric	Don't have usrerr automatically print errno, since this is often
328566338Seric		misleading.
328666338Seric	Use transienterror() in makeconnection after connect() fails and
328766338Seric		in openmailer after execve() fails (from Eric Wassenaar).
328866338Seric		Also moved transienterror() from util.c to conf.c.
328966338Seric	Clean up from= logging on response messages.
329066338Seric	Undo patch allowing prescan to return a null vector -- it breaks
329166338Seric		too many things.
329266338Seric	Config: FEATURE(notsticky) lets you use UDB for everything coming
329366338Seric		in to the machine, even if it is specifically targetted
329466338Seric		to this machine.  Without it, UDB is bypassed if the user
329566338Seric		name is fully qualified.
329666338Seric	Config: fix another minor botch with <> (local mailer wasn't
329766338Seric		mapping them properly).
329866338Seric
329966338Seric6.35/6.15	93/03/05
330066338Seric	Fix getrealhostname to return null if sinlen <= 0 -- this can
330166338Seric		occur if stdin is a pipe.
330266338Seric	Avoid infinite loop in getcanonname if name server return
330366338Seric		NO_DATA (for example).
330466338Seric	Config: avoid having C flag qualify list syntax and error syntax.
330566338Seric
330666338Seric6.34/6.14	93/03/05
330766338Seric	Fix logging in deliver to not pass too many parameters to Ultrix
330866338Seric		versions of syslog.
330966338Seric	Don't write the pid file until after the daemon has actually
331066338Seric		opened and conditioned the connection.
331166338Seric	Consider addresses "different" if their q_uids differ (so that
331266338Seric		two users forwarding to the same program will be seen
331366338Seric		as different, rather than the same).
331466338Seric	Fix problem with bad parameters in main() -- they set ExitStat
331566338Seric		but don't exit.
331666338Seric	Fix null pointer references through RealHostName -- painfully
331766338Seric		discovered by Allan E Johannesen of WPI.
331866338Seric	Fix bug causing user@@localhost to core dump (yuch).
331966338Seric	Config: don't put two @host.dom.ain on users in $=E in SMTP
332066338Seric		mailer.  Also, catch user@ (no host) in ruleset 0.
332166338Seric
332266338Seric6.33/6.13	93/03/03
332366338Seric	Config: add confCW_FILE as the name of the cw configuration file
332466338Seric		(defaults to /etc/sendmail.cw).  From P{r Emanuelsson.
332566338Seric	Allow prescan to return a pointer to an empty list -- this is
332666338Seric		not an error.  Also, clean up error reporting to avoid
332766338Seric		double errors (prescan reports once, then the caller
332866338Seric		reports again).
332966338Seric	Changes to avoid trusting T_ANY queries -- run them, but if you
333066338Seric		don't get the info you expected, do T_A and T_MX queries
333166338Seric		anyhow.  This also fixes an oversight where _res.options
333266338Seric		bits were being ignored.
333366338Seric	If PRIV_NOVRFY is set, use 252 response code instead of 502 per
333466338Seric		RFC 1123 section 5.2.3.  It's not 100% clear that this
333566338Seric		is correct, but it probably works better with stupid
333666338Seric		mailers that do a VRFY and only check the first digit.
333766338Seric
333866338Seric6.32/6.12	93/03/02
333966338Seric	Fix uninitialized variable "protocol" in smtp code.
334066338Seric	Include <unistd.h> in sendmail.h -- move towards POSIX/ANSI.
334166338Seric	Additional hooks for RFC 1427 (ESMTP SIZE extension).  This
334266338Seric		includes requiring that enoughspace() know the system
334366338Seric		block size, which will undoubtedly break most ports.
334466338Seric	Trace flag 19 in use for srvrsmtp.c.
334566338Seric	Additional logging -- notably the sending mailer name.  This
334666338Seric		also changes the delivery logging to strict field=value
334766338Seric		syntax.
334866338Seric	Fix some problems with messages getting sent even to addresses
334966338Seric		that had been marked bad -- from Eric Wassenaar.
335066338Seric	More WIDE changes: accept host name inside [...] as non-MXed
335166338Seric		host.  This is intended ONLY for use inside firewalled
335266338Seric		environments, where the MX points at the gateway.
335366338Seric	Change .cf file conventions so that mapping for <> addresses
335466338Seric		don't have an @ in them (to avoid confusing the C mailer
335566338Seric		flag).  Pointed out by Neil Rickert.
335666338Seric	Config extensions for Sam Leffler's FlexFAX software.
335766338Seric
335866338Seric6.31/6.10	93/02/28
335966338Seric	Fix some more bugs in alias owner code -- there were some wierd
336066338Seric		cases where an error in a non-aliased name would override
336166338Seric		the return info in an aliased name with an owner.
336266338Seric	Changes from WIDE Project, forwarded to me by Motonori Nakamura:
336366338Seric		Log actual delivery host (after MX et al); from
336466338Seric			yasuhiro@dcl.co.jp.
336566338Seric		Log daemon startup.
336666338Seric		Deliver Postmaster copies without a body.
336766338Seric		Better logging of SMTP senders.
336866338Seric		Send all program email as daemon even when local.
336966338Seric	As requested in various forms from many people, accept -qIstring
337066338Seric		to limit queue runs to jobs with queue-id matching string.
337166338Seric		Similarly for -qRstring for recipients, -qSstring for
337266338Seric		senders.
337366338Seric	Initial hooks for ESMTP support (see RFC 1425).
337466338Seric	Fixed a syntax error in the UUCP mailer specification that caused
337566338Seric		core dumps on startup.
337666338Seric	Check for missing A= or P= arguments in mailer definitions.
337766338Seric
337866338Seric6.30/6.10	93/02/27
337966338Seric	Require FROZENCONFIG compilation flag to include frozen
338066338Seric		configuration code.  Frozen configuration is really
338166338Seric		not a very good idea any more, particularly in shared
338266338Seric		library environments.
338366338Seric	Do better checking of errno after opens of :include: and .forward
338466338Seric		files to defer delivery on network and other transient
338566338Seric		errors.  Suggestion from Craig Everhart.
338666338Seric	Fix minor botch in read timeout macro processing.
338766338Seric	Add FEATURE(nouucp) to config files for sites that know absolutely
338866338Seric		nothing about UUCP.
338966338Seric	Add built cf files to distribution tape and clarify how to build
339066338Seric		them if you don't have the Berkeley make.
339166338Seric	Some sizeof(long) portability changes for the Alpha, from Allan
339266338Seric		E Johannesen.
339366338Seric	Add "restrictmailq" privacy flag -- if set, only people in the same
339466338Seric		group as your queue directory can print the queue.  If you
339566338Seric		set this, be sure you also restrict access to log files....
339666338Seric	Fix another bug in owner-list stuff that can cause data files to
339766338Seric		be "lost".
339866338Seric	Fix a bug with queue runs that cause forwards to yourself to go
339966338Seric		into alias/forwarding loops.  I'm still iffy about this
340066338Seric		fix.
340166338Seric	Fix from Eric Wassenaar for suppression of return message code.
340266338Seric
340366338Seric6.29/6.9	93/02/24
340466338Seric	Fix yet another problem in alias owner code -- put the wrong return
340566338Seric		address on the enclosed return-to-sender letter.
340666338Seric
340766338Seric6.28/6.9	93/02/24
340866338Seric	Fix botch in alias owner code that caused it to not operate if the
340966338Seric		error was detected locally.
341066338Seric
341166338Seric6.27/6.9	93/02/24
341266338Seric	M_LOCAL => M_LOCALMAILER to avoid conflict with Ultrix include
341366338Seric		file <sys/mount.h>.
341466338Seric	Miscellaneous bug fixes from Eric Wassenaar:
341566338Seric		sendmail -bv -t logs the from line even though in verify
341666338Seric			mode only.
341766338Seric		sendmail -v can go into queue mode if shouldqueue returns
341866338Seric			TRUE.
341966338Seric	Add route-addr pruning per RFC 1123 section 5.3.3.  This can be
342066338Seric		disabled using the "R" option.
342166338Seric	Delete (always undocumented) -R flag (save original recipients);
342266338Seric		there are ways to syslog(3) these now.
342366338Seric	Clean up SMTP reply codes -- specify them as needed in the code,
342466338Seric		instead of in conf.c -- this was needed during the NCP to
342566338Seric		TCP transition, but seems silly now.  This also changes
342666338Seric		parameters to message and nmessage.
342766338Seric	Have mailstats read the .cf file to find the sendmail.st file and
342866338Seric		get text versions of mailer names.  An initial version of
342966338Seric		this code was provided by Tuominen Keijo (although the
343066338Seric		comments indicate the good bits were written by "E.V.").
343166338Seric	Add yet more System V compatibility hacks.
343266338Seric	Fix bug in VRFY code (assumes everything must be a local user).
343366338Seric	Allow specification of any of the hard-wired pathnames in the
343466338Seric		Makefile.
343566338Seric	Delete concept of "trusted users" -- this really didn't provide
343666338Seric		any security anyway, and caused some problems.
343766338Seric	Delete last vestige of support for the word "at" as an equivalent
343866338Seric		to the character "@".
343966338Seric	Propagate owner-foo alias information into the envelope sender.
344066338Seric		Based on code from John Gardiner Myers.  This is a major
344166338Seric		semantic change -- beware!
344266338Seric	Allow $@ on LHS to indicate "match zero" -- this is used to match
344366338Seric		the null expression.
344466338Seric
344566338Seric6.26/6.8	93/02/21
344666338Seric	Don't "lose" queue runs.  Very important fix from (who else?)
344766338Seric		Eric Wassenaar.
344866338Seric	Completely reset state on RSET command -- from Eric Wassenaar.
344966338Seric	Send error messages and return receipts using an envelope sender
345066338Seric		of <> regardless of the setting of $n.  Rewriting rules
345166338Seric		can undo this if they feel the necessity, as might be
345266338Seric		needed for networks that don't understand the syntax.
345366338Seric		This is permitted by RFC 821 section 3.6 and required by
345466338Seric		RFC 1123 section 5.3.3.  THIS REQUIRES VERSION 4 CONFIG
345566338Seric		FILES because the rulesets must be able to parse <>
345666338Seric		properly.
345766338Seric	Don't ever send error messages to "<>" -- they will get sent to
345866338Seric		the local postmaster or dumped in /usr/tmp/dead.letter
345966338Seric		instead.  Per RFC 1123 section 5.3.3.
346066338Seric	Explicitly check for email to yourself as a dotted quad.  You
346166338Seric		have to call $[ [ ... ] $] to get this.
346266338Seric	Up the message timeout to five days per RFC 1123 section 5.3.1.1.
346366338Seric	Make all read timeouts individually configurable, as strongly
346466338Seric		recommended by RFC 1123 section 5.3.2.
346566338Seric	Use f_bavail (blocks available to regular users) instead of f_bfree
346666338Seric		(blocks available to superuser) in free block checks.
346766338Seric	Change $d macro to be the current time, not the origination time,
346866338Seric		since this is consistent with how it is used now.
346966338Seric	Generalization of enoughspace from Eric Wassenaar covering
347066338Seric		SGI, Apollo, HPUX, Ultrix, and SunOS.
347166338Seric	Ignore process group signals -- some front ends can do this if
347266338Seric		you kill a window too quickly.  From Eric Wassenaar.
347366338Seric	Change umask to 022.
347466338Seric
347566338Seric6.25/6.8	93/02/20
347666338Seric	Close all cached connections before calling mailers and after
347766338Seric		forking for delivery (caused double closes which resulted
347866338Seric		in false errors).
347966338Seric	Add FEATURE(redirect) in config files -- this allows you to alias
348066338Seric		old addresses to a pointer to the new address that will
348166338Seric		give a 551 error message, but not deliver the mail.
348266338Seric	Some code changes to make the 551 errors look pretty.
348366338Seric	Names of M4 program paths in config files have changed -- they
348466338Seric		are all XXX_MAILER_PATH now, to match XXX_MAILER_FLAGS.
348566338Seric	Fix a bug in the QSELFREF code having to do with empty .forward
348666338Seric		files, reported by Eric Wassenaar.
348766338Seric	Add option "p" (privacy flags); this allows you to tune how
348866338Seric		picky the SMTP server will be.  This also adds the
348966338Seric		confPRIVACY_FLAGS M4 macro in the config files.
349066338Seric	Add option "b" (minimum blocks free).  If there are fewer than
349166338Seric		this number of blocks free on the filesystem containing
349266338Seric		the queue directory, the SMTP MAIL command will return
349366338Seric		a 452 response and ask you to try again later.  This
349466338Seric		also adds the confMIN_FREE_BLOCKS M4 macro in the config
349566338Seric		files.
349666338Seric	Made VRFY just verify (doesn't expand aliases and .forward files);
349766338Seric		EXPN does full expansion.  RCPT in queue-only mode also
349866338Seric		doesn't chase aliases and .forward.
349966338Seric
350066338Seric6.24/6.7	93/02/19
350166338Seric	Increase the number of domain search entries in domain.c to allow
350266338Seric		for the extra "" entry indicating the root domain.
350366338Seric		Reported by Motonori Nakamura of Kyoto U.
350466338Seric	Add a "SMART_HOST" in the configs for UUCP-connected sites that
350566338Seric		want to forward all mail with extra "@"s to that site.
350666338Seric		Also allows SMART_HOST, LOCAL_RELAY, and MAIL_HUB to
350766338Seric		be specified as ``mailer:hostname'' to use an alternate
350866338Seric		mailer.
350966338Seric	Clarified and updated some wording in the Operations Guide.
351066338Seric	Add the "c" mailer flag -- this suppresses all comment parts of
351166338Seric		addresses (requested by John Curran of NEARnet).
351266338Seric	Have -v print prompts in -bt mode even if stdin is not a terminal
351366338Seric		(default behaviour is to be silent if not reading from
351466338Seric		a terminal).  Suggested by Bryan Costales, ICSI.
351566338Seric	Move the metacharacters from C0 space (\001-\037) into C1 space
351666338Seric		(\201-\237).  This also fixes a bunch of potential bugs
351766338Seric		with G1 characters (\240-\276) in headers relating to
351866338Seric		negative numbers passed to isspace() et al.
351966338Seric	Add YP_LAST_MODIFIED and YP_MASTER_NAME to DBM version of alias
352066338Seric		database if YPCOMPAT is #defined.  Enhancement from
352166338Seric		Takahiro Kanbe of Fuji Xerox Information Systems Co., Ltd.
352266338Seric	Add "list" Precedence (-30); this can be used with old sendmails
352366338Seric		which will map to precedence 0 (which will return error
352466338Seric		messages).  Suggested by Stephen R. van den Berg.
352566338Seric	Many bug fixes from Eric Wassenaar of the National Institute for
352666338Seric			Nuclear and High-Energy Physics, Amsterdam:
352766338Seric		Clear timeouts properly on open failures in include().
352866338Seric		Don't dereference through NULL if no home directory found.
352966338Seric		Re-establish SIGCHLD signal on System 5 in reapchild().
353066338Seric		Avoid NULL pointer reference on -pFOO flag.
353166338Seric		Properly handle backslash escapes in comments.
353266338Seric		Correctly check reply status on SMTP NOOP command.
353366338Seric		Properly save SMTP error message if peer gives
353466338Seric			"Service Shutting Down" message.
353566338Seric		Avoid writing to the transcript if it couldn't be opened.
353666338Seric		Signal errors in SMTP children to parent properly.
353766338Seric	Handle self references in a list more globally (include a
353866338Seric		QSELFREF bit in the address flags).  This enhancement
353966338Seric		was suggested by Eric Wassenaar.
354066338Seric	Use initgroups() in hpux, even though it's System-V based.  The
354166338Seric		HASINITGROUPS compile flag can set this on other systems.
354266338Seric		This HPUX behaviour was pointed out by Eric Wassenaar.
354366338Seric
354466338Seric6.23/6.6	93/02/16
354566338Seric	Clean up handling of LogLevel to make it easier to figure out
354666338Seric		what's on what level.
354766338Seric	Change log levels to have some consistency:
354866338Seric		1    serious system failures, security problems
354966338Seric		2    lost communications, protocol failures
355066338Seric		3    other serious failures
355166338Seric		4    minor errors
355266338Seric		5    message collection
355366338Seric		6    vrfy logging, creation of return-to-sender
355466338Seric		7    delivery failures
355566338Seric		8    delivery successes
355666338Seric		9    delivery tempfails (queue ups)
355766338Seric		10   database expansion
355866338Seric		>64  debugging
355966338Seric	Allow IDA-style separated processing on S= and R= in Mailer
356066338Seric		definition lines.  Note that rulesets 1 and 2 are
356166338Seric		still used for both addresses as before.  Bruce Lilly
356266338Seric		gave a convincing argument that RFC976 insists on
356366338Seric		this behaviour.
356466338Seric	Added some time zones to arpatounix -- they may not be in the
356566338Seric		standards, but they are in use.  However, I may delete
356666338Seric		arpatounix entirely -- there appears to be no reason
356766338Seric		for it to exist.
356866338Seric	Change to UUCP mailer (in cf directory) to try to do a saner job.
356966338Seric		I'm still not certain about this mailer in general.
357066338Seric
357166338Seric6.22/6.5	93/02/15
357266338Seric	Fix bug that prevents saving letters in ~/dead.letter.
357366338Seric	Don't add angle brackets in VRFY command if angle brackets already
357466338Seric		exist in the address.
357566338Seric	Fix bogus error message in udbexpand.
357666338Seric	Null terminate host buffers in buildaddr (broken in 6.21) --
357766338Seric		IMPORTANT FIX!!
357866338Seric
357966338Seric6.21/6.5	93/02/15
358066338Seric	Fix another incorrect error message in alias.c, found by Azuma
358166338Seric		Okamoto.
358266338Seric	Fix a couple of problems in the more-configurable config files,
358366338Seric		found by Tom Ivar Helbekkmo.
358466338Seric	Fix problem with quoted :include: entries.
358566338Seric	Don't duplicate the filename on verbose printing of .forward and
358666338Seric		:include: contents.
358766338Seric	Extend size of prescan buffer (to allow bigger addresses).  Also,
358866338Seric		detect some buffer overflows.
358966338Seric	Log user SMTP protocol errors (log level 4).
359066338Seric
359166338Seric6.20/6.4	93/02/14
359266338Seric	Fix another problem in the MCI state machine caused when there
359366338Seric		were errors generated from the other end to commands
359466338Seric		other than RCPT.
359566338Seric
359666338Seric6.19/6.4	93/02/14
359766338Seric	Include load average support for DEC Alpha running OSF/1.
359866338Seric	Fix multiple-response problem with errors in MAIL From: line.
359966338Seric	Fix SMTP reply codes for invalid address syntaxes (give 501;
360066338Seric		never give multiple error messages for a single message).
360166338Seric	Fix problem where a cached connection timeout rejects all
360266338Seric		later connects to that host.
360366338Seric	Fix incorrect error message if alias.c is compiled with DBM only.
360466338Seric	Additional changes to fix nested conditionals (from Bruce Lilly).
360566338Seric	Recover more gracefully from operating system failures, particularly
360666338Seric		NULL returns from openmailer (from Noritoshi Demizu,
360766338Seric		OMRON Corporation).
360866338Seric	Log forward, alias, and userdb expand operations on log level 10;
360966338Seric		concept suggested by P{r (Pell) Emanuelsson.
361066338Seric	Changes for HPUX 8.07 compatibility.
361166338Seric
361266338Seric6.18/6.4	93/02/12
361366338Seric	Allow any config option to be set using an M4 define.
361466338Seric	Change UNAME compile flag to HASUNAME for IDA compatibility
361566338Seric		(besides, it's a better name).
361666338Seric	Note in README that on SunOS it must be linked -Bstatic.
361766338Seric	Fairly major change in domain.c to handle wildcard MX records
361866338Seric		more rationally.  NOTE: the "w" option (no wildcard MX
361966338Seric		records match local domain) has been eliminated.
362066338Seric	Fix some unset variable references pointed out by Bruce Lilly.
362166338Seric	Fix host name in process titles when using cached connection.
362266338Seric
362366338Seric6.17/6.3	93/01/28
362466338Seric	Fix System 5 compatibility changes to be compatible with the rest
362566338Seric		of the world.
362666338Seric
362766338Seric6.16/6.3	93/01/28
362866338Seric	Experimental fix for problem handling errors in the SMTP
362966338Seric		protocol in conjunction with connection caching.
363066338Seric	System 5 compatibility changes.
363166338Seric
363266338Seric6.15/6.3	93/01/26
363366338Seric	Fix a bug that causes local mail delivered using -odq to be
363466338Seric		eliminated as a duplicate (because it matched the
363566338Seric		ctladdr, now passed in as a C line).  These changes
363666338Seric		are pretty tricky......
363766338Seric
363866338Seric6.14/6.3	93/01/25
363966338Seric	Add debugging for some MCI errors.
364066338Seric
364166338Seric6.13/6.3	93/01/22
364266338Seric	Fix -e compatibility flag to take a value.
364366338Seric	Fix a couple of minor compilation warnings on Sun cc.
364466338Seric	Improve error messages in a few cases to be more self-explanatory.
364566338Seric
364666338Seric6.12/6.3	93/01/21
364766338Seric	Fix yet-another problem with environment handling, pointed out
364866338Seric		by Yoshitaka Tokugawa and Tom Ivar Helbekkmo.
364966338Seric	Some heuristics to try to limit resource exhaustion problems
365066338Seric		if a downstream host has been down for a long time.
365166338Seric	Fix problem with incorrect host name being logged in "Connection
365266338Seric		timed out" messages (from Tom Ivar Helbekkmo).
365366338Seric	Fix some ANSI C problems (from Takahiro Kanbe).
365466338Seric	Properly log message sender on returned mail during queue run.
365566338Seric	Count number of recipients properly.
365666338Seric	Fix a problem in yp map code.
365766338Seric	Diagnose "message timed out" (from Motonori Nakamura).
365866338Seric
365966338Seric6.11/6.3	93/01/20
366066338Seric	Fix problem with address delimitor inside quotes.
366166338Seric	Define $k and $=k to be the UUCP name (from the uname call)
366266338Seric		based on code from Bruce Lilly.
366366338Seric
366466338Seric6.10/6.2	93/01/18
366566338Seric	Implement arpatounix (largely code from Bruce Lilly).
366666338Seric	Log more info (suggested by John Myers).
366766338Seric	Allow nested $?...$|...$. (inspired by code from Bruce Lilly of
366866338Seric		Sony US).
366966338Seric	POSIX compatibility (noted by Keith Bostic).
367066338Seric	Handle SMTP MAIL command errors properly (urged by several people,
367166338Seric		notably John Myers of CMU).
367266338Seric	Do early diagnosis of .cf errors (notably referencing a RHS
367366338Seric		substitution that isn't on the LHS).
367466338Seric	Adjust checkpointing to better handle batched recipients, suggested
367566338Seric		by John Myers.
367666338Seric	Fix miscellaneous bugs.
367766338Seric	(config files:)  Implement MAIL_HUB for all local mail (to handle
367866338Seric		NFS-mounted directories) as urged by Tom Ivar Helbekkmo
367966338Seric		of the Norwegian School of Economics.
368066338Seric
368166338Seric6.9/6.1 	93/01/13
368266338Seric	Environment handling simplification/bug fix -- child processes
368366338Seric		get a minimal, fixed environment.  This avoids different
368466338Seric		behaviour in queue runs.
368566338Seric	Handle commas inside comments properly.
368666338Seric	Properly limit large messages submitted in -obq mode.
368766338Seric
368866338Seric6.8/6.1		93/01/10
368966338Seric	Check mtime of thaw file against .cf and sendmail binary, based on
369066338Seric		code from John Myers.
369166338Seric
369266338Seric6.7/6.1		93/01/10
369366338Seric	MX piggybacking, based on code from John Myers@CMU.
369466338Seric	Allow checkcompat to return -1 to mean tempfail.
369566338Seric	Bug fix in m_mno computation.
369666338Seric
369766338Seric6.6/6.1		93/01/09
369866338Seric	Tuning of queueing functions as recommended by John Gardiner Myers.
369966338Seric	Return mail headers (no body) on messages with negative precedence.
370066338Seric	Minor other bug fixes.
370166338Seric
370266338Seric6.5/6.1		93/01/03
370366338Seric	Fix botch causing queued headers to have ?XX? prefixes.
370466338Seric
370566338Seric6.4/6.1		93/01/02
370666338Seric	Changes to recognize special mailer types (e.g., file) early.
370766338Seric
370866338Seric6.3/6.1		93/01/01
370966338Seric	Pass timeouts to sfgets.
371066338Seric	Check for control characters in addresses.
371166338Seric	Fixed deferred error reporting.
371266338Seric	Report duplicate aliases.
371366338Seric	Handle mixed case recursive aliases.
371466338Seric	Misc bug fixes.
371566338Seric
371666338Seric6.2/6.1		92/12/30
371766338Seric	Put return-receipt-to on a conf.c flag (but don't set it).
371866338Seric	Fix minor syslog problem.
3719