RELEASE_NOTES revision 64562
138032Speter SENDMAIL RELEASE NOTES 264562Sgshapiro $Id: RELEASE_NOTES,v 8.561.2.5.2.80 2000/07/19 20:40:57 gshapiro Exp $ 338032Speter 438032Speter 538032SpeterThis listing shows the version of the sendmail binary, the version 638032Speterof the sendmail configuration files, the date of release, and a 738032Spetersummary of the changes in that release. 838032Speter 964562Sgshapiro8.11.0/8.11.0 2000/07/19 1064562Sgshapiro SECURITY: If sendmail is installed as a non-root set-user-ID binary 1164562Sgshapiro (not the normal case), some operating systems will still 1264562Sgshapiro keep a saved-uid of the effective-uid when sendmail tries 1364562Sgshapiro to drop all of its privileges. If sendmail needs to drop 1464562Sgshapiro these privileges and the operating system doesn't set the 1564562Sgshapiro saved-uid as well, exit with an error. Problem noted by 1664562Sgshapiro Kari Hurtta of the Finnish Meteorological Institute. 1764562Sgshapiro SECURITY: sendmail depends on snprintf() NUL terminating the string 1864562Sgshapiro it populates. It is possible that some broken 1964562Sgshapiro implementations of snprintf() exist that do not do this. 2064562Sgshapiro Systems in this category should compile with 2164562Sgshapiro -DSNPRINTF_IS_BROKEN=1. Use test/t_snprintf.c to test your 2264562Sgshapiro system and report broken implementations to 2364562Sgshapiro sendmail-bugs@sendmail.org and your OS vendor. Problem 2464562Sgshapiro noted by Slawomir Piotrowski of TELSAT GP. 2564562Sgshapiro Support SMTP Service Extension for Secure SMTP (RFC 2487) (STARTTLS). 2664562Sgshapiro Implementation influenced by the example programs of 2764562Sgshapiro OpenSSL and the work of Lutz Jaenicke of TU Cottbus. 2864562Sgshapiro Add new STARTTLS related options CACERTPath, CACERTFile, 2964562Sgshapiro ClientCertFile, ClientKeyFile, DHParameters, RandFile, 3064562Sgshapiro ServerCertFile, and ServerKeyFile. These are documented in 3164562Sgshapiro cf/README and doc/op/op.*. 3264562Sgshapiro New STARTTLS related macros: ${cert_issuer}, ${cert_subject}, 3364562Sgshapiro ${tls_version}, ${cipher}, ${cipher_bits}, ${verify}, 3464562Sgshapiro ${server_name}, and ${server_addr}. These are documented 3564562Sgshapiro in cf/README and doc/op/op.*. 3664562Sgshapiro Add support for the Entropy Gathering Daemon (EGD) for better 3764562Sgshapiro random data. 3864562Sgshapiro New DontBlameSendmail option InsufficientEntropy for systems which 3964562Sgshapiro don't properly seed the PRNG for OpenSSL but want to 4064562Sgshapiro try to use STARTTLS despite the security problems. 4164562Sgshapiro Support the security layer in SMTP AUTH for mechanisms which 4264562Sgshapiro support encryption. Based on code contributed by Tim 4364562Sgshapiro Martin of CMU. 4464562Sgshapiro Add new macro ${auth_ssf} to reflect the SMTP AUTH security 4564562Sgshapiro strength factor. 4664562Sgshapiro LDAP's -1 (single match only) flag was not honored if the -z 4764562Sgshapiro (delimiter) flag was not given. Problem noted by ST Wong of 4864562Sgshapiro the Chinese University of Hong Kong. Fix from Mark Adamson 4964562Sgshapiro of CMU. 5064562Sgshapiro Add more protection from accidentally tripping OpenLDAP 1.X's 5164562Sgshapiro ld_errno == LDAP_DECODING_ERROR hack on ldap_next_attribute(). 5264562Sgshapiro Suggested by Kurt Zeilenga of OpenLDAP. 5364562Sgshapiro Fix the default family selection for DaemonPortOptions. As 5464562Sgshapiro documented, unless a family is specified in a 5564562Sgshapiro DaemonPortOptions option, "inet" is the default. It is 5664562Sgshapiro also the default if no DaemonPortOptions value is set. 5764562Sgshapiro Therefore, IPv6 users should configure additional sockets 5864562Sgshapiro by adding DaemonPortOptions settings with Family=inet6 if 5964562Sgshapiro they wish to also listen on IPv6 interfaces. Problem noted 6064562Sgshapiro by Jun-ichiro itojun Hagino of the KAME Project. 6164562Sgshapiro Set ${if_family} when setting ${if_addr} and ${if_name} to reflect 6264562Sgshapiro the interface information for an outgoing connection. 6364562Sgshapiro Not doing so was creating a mismatch between the socket 6464562Sgshapiro family and address used in subsequent connections if the 6564562Sgshapiro M=b modifier was set in DaemonPortOptions. Problem noted 6664562Sgshapiro by John Beck of Sun Microsystems. 6764562Sgshapiro If DaemonPortOptions modifier M=b is used, determine the socket 6864562Sgshapiro family based on the IP address. ${if_family} is no longer 6964562Sgshapiro persistent (i.e., saved in qf files). Patch from John Beck 7064562Sgshapiro of Sun Microsystems. 7164562Sgshapiro sendmail 8.10 and 8.11 reused the ${if_addr} and ${if_family} 7264562Sgshapiro macros for both the incoming interface address/family and 7364562Sgshapiro the outgoing interface address/family. In order for M=b 7464562Sgshapiro modifier in DaemonPortOptions to work properly, preserve 7564562Sgshapiro the incoming information in the queue file for later 7664562Sgshapiro delivery attempts. 7764562Sgshapiro Use SMTP error code and enhanced status code from check_relay in 7864562Sgshapiro responses to commands. Problem noted by Jeff Wasilko of 7964562Sgshapiro smoe.org. 8064562Sgshapiro Add more vigilance in checking for putc() errors on output streams 8164562Sgshapiro to protect from a bug in Solaris 2.6's putc(). Problem 8264562Sgshapiro noted by Graeme Hewson of Oracle. 8364562Sgshapiro The LDAP map -n option (return attribute names only) wasn't working. 8464562Sgshapiro Problem noted by Ajay Matia. 8564562Sgshapiro Under certain circumstances, an address could be listed as deferred 8664562Sgshapiro but would be bounced back to the sender as failed to be 8764562Sgshapiro delivered when it really should have been queued. Problem 8864562Sgshapiro noted by Allan E Johannesen of Worcester Polytechnic Institute. 8964562Sgshapiro Prevent a segmentation fault in a child SMTP process from getting 9064562Sgshapiro the SMTP transaction out of sync. Problem noted by Per 9164562Sgshapiro Hedeland of Ericsson. 9264562Sgshapiro Turn off RES_DEBUG if SFIO is defined unless SFIO_STDIO_COMPAT 9364562Sgshapiro is defined to avoid a core dump due to incompatibilities 9464562Sgshapiro between sfio and stdio. Problem noted by Neil Rickert 9564562Sgshapiro of Northern Illinois University. 9664562Sgshapiro Don't log useless envelope ID on initial connection log. Problem 9764562Sgshapiro noted by Kari Hurtta of the Finnish Meteorological Institute. 9864562Sgshapiro Convert the free disk space shown in a control socket status query 9964562Sgshapiro to kilobyte units. 10064562Sgshapiro If TryNullMXList is True and there is a temporary DNS failure 10164562Sgshapiro looking up the hostname, requeue the message for a later 10264562Sgshapiro attempt. Problem noted by Ari Heikkinen of Pohjois-Savo 10364562Sgshapiro Polytechnic. 10464562Sgshapiro Under the proper circumstances, failed connections would be recorded 10564562Sgshapiro as "Bad file number" instead of "Connection failed" in the 10664562Sgshapiro queue file and persistent host status. Problem noted by 10764562Sgshapiro Graeme Hewson of Oracle. 10864562Sgshapiro Avoid getting into an endless loop if a non-hoststat directory exists 10964562Sgshapiro within the hoststatus directory (e.g., lost+found). 11064562Sgshapiro Patch from Valdis Kletnieks of Virginia Tech. 11164562Sgshapiro Make sure Timeout.queuereturn=now returns a bounce message to the 11264562Sgshapiro sender. Problem noted by Per Hedeland of Ericsson. 11364562Sgshapiro If a message data file can't be opened at delivery time, panic and 11464562Sgshapiro abort the attempt instead of delivering a message that 11564562Sgshapiro states "<<< No Message Collected >>>". 11664562Sgshapiro Fixup the GID checking code from 8.10.2 as it was overly 11764562Sgshapiro restrictive. Problem noted by Mark G. Thomas of Mark 11864562Sgshapiro G. Thomas Consulting. 11964562Sgshapiro Preserve source port number instead of replacing it with the ident 12064562Sgshapiro port number (113). 12164562Sgshapiro Document the queue status characters in the mailq man page. 12264562Sgshapiro Suggested by Ulrich Windl of the Universitat Regensburg. 12364562Sgshapiro Process queued items in which none of the recipient addresses have 12464562Sgshapiro host portions (or there are no recipients). Problem noted 12564562Sgshapiro by Valdis Kletnieks of Virginia Tech. 12664562Sgshapiro If a cached LDAP connection is used for multiple maps, make sure 12764562Sgshapiro only the first to open the connection is allowed to close 12864562Sgshapiro it so a later map close doesn't break the connection for 12964562Sgshapiro other maps. Problem noted by Wolfgang Hottgenroth of UUNET. 13064562Sgshapiro Netscape's LDAP libraries do not support Kerberos V4 13164562Sgshapiro authentication. Patch from Rainer Schoepf of the 13264562Sgshapiro University of Mainz. 13364562Sgshapiro Provide workaround for inconsistent handling of data passed 13464562Sgshapiro via callbacks to Cyrus SASL prior to version 1.5.23. 13564562Sgshapiro Mention ENHANCEDSTATUSCODES in the SMTP HELP helpfile. Omission 13664562Sgshapiro noted by Ulrich Windl of the Universitat Regensburg. 13764562Sgshapiro Portability: 13864562Sgshapiro Add the ability to read IPv6 interface addresses into class 13964562Sgshapiro 'w' under FreeBSD (and possibly others). From Jun 14064562Sgshapiro Kuriyama of IMG SRC, Inc. and the FreeBSD Project. 14164562Sgshapiro Replace code for finding the number of CPUs on HPUX. 14264562Sgshapiro NCRUNIX MP-RAS 3.02 SO_REUSEADDR socket option does not 14364562Sgshapiro work properly causing problems if the accept() 14464562Sgshapiro fails and the socket needs to be reopened. Patch 14564562Sgshapiro from Tom Moore of NCR. 14664562Sgshapiro NetBSD uses a .0 extension of formatted man pages. From 14764562Sgshapiro Andrew Brown of Graffiti World Wide, Inc. 14864562Sgshapiro Return to using the IPv6 AI_DEFAULT flag instead of AI_V4MAPPED 14964562Sgshapiro for calls to getipnodebyname(). The Linux 15064562Sgshapiro implementation is broken so AI_ADDRCONFIG is stripped 15164562Sgshapiro under Linux. From John Beck of Sun Microsystems and 15264562Sgshapiro John Kennedy of Cal State University, Chico. 15364562Sgshapiro CONFIG: Catch invalid addresses containing a ',' at the wrong place. 15464562Sgshapiro Patch from Neil Rickert of Northern Illinois University. 15564562Sgshapiro CONFIG: New variables for the new sendmail options: 15664562Sgshapiro confCACERT_PATH CACERTPath 15764562Sgshapiro confCACERT CACERTFile 15864562Sgshapiro confCLIENT_CERT ClientCertFile 15964562Sgshapiro confCLIENT_KEY ClientKeyFile 16064562Sgshapiro confDH_PARAMETERS DHParameters 16164562Sgshapiro confRAND_FILE RandFile 16264562Sgshapiro confSERVER_CERT ServerCertFile 16364562Sgshapiro confSERVER_KEY ServerKeyFile 16464562Sgshapiro CONFIG: Provide basic rulesets for TLS policy control and add new 16564562Sgshapiro tags to the access database to support these policies. See 16664562Sgshapiro cf/README for more information. 16764562Sgshapiro CONFIG: Add TLS information to the Received: header. 16864562Sgshapiro CONFIG: Call tls_client ruleset from check_mail in case it wasn't 16964562Sgshapiro called due to a STARTTLS command. 17064562Sgshapiro CONFIG: If TLS_PERM_ERR is defined, TLS related errors are permanent 17164562Sgshapiro instead of temporary. 17264562Sgshapiro CONFIG: FEATURE(`relay_hosts_only') didn't work in combination with 17364562Sgshapiro the access map and relaying to a domain without using a To: 17464562Sgshapiro tag. Problem noted by Mark G. Thomas of Mark G. Thomas 17564562Sgshapiro Consulting. 17664562Sgshapiro CONFIG: Set confEBINDIR to /usr/sbin to match the devtools entry in 17764562Sgshapiro OSTYPE(`linux') and OSTYPE(`mklinux'). From Tim Pierce of 17864562Sgshapiro RootsWeb.com. 17964562Sgshapiro CONFIG: Make sure FEATURE(`nullclient') doesn't use aliasing and 18064562Sgshapiro forwarding to make it as close to the old behavior as 18164562Sgshapiro possible. Problem noted by George W. Baltz of the 18264562Sgshapiro University of Maryland. 18364562Sgshapiro CONFIG: Added OSTYPE(`darwin') for Mac OS X and Darwin users. From 18464562Sgshapiro Wilfredo Sanchez of Apple Computer, Inc. 18564562Sgshapiro CONFIG: Changed the map names used by FEATURE(`ldap_routing') from 18664562Sgshapiro ldap_mailhost and ldap_mailroutingaddress to ldapmh and 18764562Sgshapiro ldapmra as underscores in map names cause problems if 18864562Sgshapiro underscore is in OperatorChars. Problem noted by Bob Zeitz 18964562Sgshapiro of the University of Alberta. 19064562Sgshapiro CONFIG: Apply blacklist_recipients also to hosts in class {w}. 19164562Sgshapiro Patch from Michael Tratz of Esosoft Corporation. 19264562Sgshapiro CONFIG: Use A=TCP ... instead of A=IPC ... in SMTP mailers. 19364562Sgshapiro CONTRIB: Add link_hash.sh to create symbolic links to the hash 19464562Sgshapiro of X.509 certificates. 19564562Sgshapiro CONTRIB: passwd-to-alias.pl: More protection from special characters; 19664562Sgshapiro treat special shells as root aliases; skip entries where the 19764562Sgshapiro GECOS full name and username match. From Ulrich Windl of the 19864562Sgshapiro Universitat Regensburg. 19964562Sgshapiro CONTRIB: qtool.pl: Add missing last_modified_time method and fix a 20064562Sgshapiro typo. Patch from Graeme Hewson of Oracle. 20164562Sgshapiro CONTRIB: re-mqueue.pl: Improve handling of a race between re-mqueue 20264562Sgshapiro and sendmail. Patch from Graeme Hewson of Oracle. 20364562Sgshapiro CONTRIB: re-mqueue.pl: Don't exit(0) at end so can be called as 20464562Sgshapiro subroutine Patch from Graeme Hewson of Oracle. 20564562Sgshapiro CONTRIB: Add movemail.pl (move old mail messages between queues by 20664562Sgshapiro calling re-mqueue.pl) and movemail.conf (configuration 20764562Sgshapiro script for movemail.pl). From Graeme Hewson of Oracle. 20864562Sgshapiro CONTRIB: Add cidrexpand (expands CIDR blocks as a preprocessor to 20964562Sgshapiro makemap). From Derek J. Balling of Yahoo,Inc. 21064562Sgshapiro DEVTOOLS: INSTALL_RAWMAN installation option mistakenly applied any 21164562Sgshapiro extension modifications (e.g., MAN8EXT) to the installation 21264562Sgshapiro target. Patch from James Ralston of Carnegie Mellon 21364562Sgshapiro University. 21464562Sgshapiro DEVTOOLS: Add support for SunOS 5.9. 21564562Sgshapiro DEVTOOLS: New option confLN contains the command used to create 21664562Sgshapiro links. 21764562Sgshapiro LIBSMDB: Berkeley DB 2.X and 3.X errors might be lost and not 21864562Sgshapiro reported. 21964562Sgshapiro MAIL.LOCAL: DG/UX portability. Problem noted by Tim Boyer of 22064562Sgshapiro Denman Tire Corporation. 22164562Sgshapiro MAIL.LOCAL: Prevent a possible DoS attack when compiled with 22264562Sgshapiro -DCONTENTLENGTH. Based on patch from 3APA3A@SECURITY.NNOV.RU. 22364562Sgshapiro MAILSTATS: Fix usage statement (-p and -o are optional). 22464562Sgshapiro MAKEMAP: Change man page layout as workaround for problem with nroff 22564562Sgshapiro and -man on Solaris 7. Patch from Larry Williamson. 22664562Sgshapiro RMAIL: AIX 4.3 has snprintf(). Problem noted by David Hayes of 22764562Sgshapiro Black Diamond Equipment, Limited. 22864562Sgshapiro RMAIL: Prevent a segmentation fault if the incoming message does not 22964562Sgshapiro have a From line. 23064562Sgshapiro VACATION: Read all of the headers before deciding whether or not 23164562Sgshapiro to respond instead of stopping after finding recipient. 23264562Sgshapiro Added Files: 23364562Sgshapiro cf/ostype/darwin.m4 23464562Sgshapiro contrib/cidrexpand 23564562Sgshapiro contrib/link_hash.sh 23664562Sgshapiro contrib/movemail.conf 23764562Sgshapiro contrib/movemail.pl 23864562Sgshapiro devtools/OS/SunOS.5.9 23964562Sgshapiro test/t_snprintf.c 24064562Sgshapiro 24164562Sgshapiro8.10.2/8.10.2 2000/06/07 24264562Sgshapiro SECURITY: Work around broken Linux setuid() implementation. 24364562Sgshapiro On Linux, a normal user process has the ability to subvert 24464562Sgshapiro the setuid() call such that it is impossible for a root 24564562Sgshapiro process to drop its privileges. Problem noted by Wojciech 24664562Sgshapiro Purczynski of elzabsoft.pl. 24764562Sgshapiro SECURITY: Add more vigilance around set*uid(), setgid(), setgroups(), 24864562Sgshapiro initgroups(), and chroot() calls. 24964562Sgshapiro Added Files: 25064562Sgshapiro test/t_setuid.c 25164562Sgshapiro 25264562Sgshapiro8.10.1/8.10.1 2000/04/06 25364562Sgshapiro SECURITY: Limit the choice of outgoing (client-side) SMTP 25464562Sgshapiro Authentication mechanisms to those specified in 25564562Sgshapiro AuthMechanisms to prevent information leakage. We do not 25664562Sgshapiro recommend use of PLAIN for outgoing mail as it sends the 25764562Sgshapiro password in clear text to possibly untrusted servers. See 25864562Sgshapiro cf/README's DefaultAuthInfo section for additional information. 25964562Sgshapiro Copy the ident argument for openlog() to avoid problems on some 26064562Sgshapiro OSs. Based on patch from Rob Bajorek from Webhelp.com. 26164562Sgshapiro Avoid bogus error message when reporting an alias line as too long. 26264562Sgshapiro Avoid bogus socket error message if sendmail.cf version level is 26364562Sgshapiro greater than sendmail binary supported version. Patch 26464562Sgshapiro from John Beck of Sun Microsystems. 26564562Sgshapiro Prevent a malformed ruleset (missing right hand side) from causing 26664562Sgshapiro a segmentation fault when using address test mode. Based on 26764562Sgshapiro patch from John Beck of Sun Microsystems. 26864562Sgshapiro Prevent memory leak from use of NIS maps and yp_match(3). Problem 26964562Sgshapiro noted by Gil Kloepfer of the University of Texas at Austin. 27064562Sgshapiro Fix queue file permission checks to allow for TrustedUser ownership. 27164562Sgshapiro Change logging of errors from the trust_auth ruleset to LogLevel 10 27264562Sgshapiro or higher. 27364562Sgshapiro Avoid simple password cracking attacks against SMTP AUTH by using 27464562Sgshapiro exponential delay after too many tries within one connection. 27564562Sgshapiro Encode an initial empty AUTH challenge as '=', not as empty string. 27664562Sgshapiro Avoid segmentation fault on EX_SOFTWARE internal error logs. 27764562Sgshapiro Problem noted by Allan E Johannesen of Worcester 27864562Sgshapiro Polytechnic Institute. 27964562Sgshapiro Ensure that a header check which resolves to $#discard actually 28064562Sgshapiro discards the message. 28164562Sgshapiro Emit missing value warnings for aliases with no right hand side 28264562Sgshapiro when newaliases is run instead of only when delivery is 28364562Sgshapiro attempted to the alias. 28464562Sgshapiro Remove AuthOptions missing value warning for consistency with other 28564562Sgshapiro flag options. 28664562Sgshapiro Portability: 28764562Sgshapiro SECURITY: Specify a run-time shared library search path for 28864562Sgshapiro AIX 4.X instead of using the dangerous AIX 4.X 28964562Sgshapiro linker semantics. AIX 4.X users should consult 29064562Sgshapiro sendmail/README for further information. Problem 29164562Sgshapiro noted by Valdis Kletnieks of Virginia Tech. 29264562Sgshapiro Avoid use of strerror(3) call. Problem noted by Charles 29364562Sgshapiro Levert of Ecole Polytechnique de Montreal. 29464562Sgshapiro DGUX requires -lsocket -lnsl and has a non-standard install 29564562Sgshapiro program. From Tim Boyer of Denman Tire Corporation. 29664562Sgshapiro HPUX 11.0 has a broken res_search() function. 29764562Sgshapiro Updates to devtools/OS/NeXT.3.X, NeXT.4.X, and NEXTSTEP.4.X 29864562Sgshapiro from J. P. McCann of E I A. 29964562Sgshapiro Digital UNIX/Compaq Tru64 5.0 now includes snprintf(3). 30064562Sgshapiro Problem noted by Michael Long of Info Avenue Internet 30164562Sgshapiro Services, LLC. 30264562Sgshapiro Modern (post-199912) OpenBSD versions include working 30364562Sgshapiro strlc{at,py}(3) functions. From Todd C. Miller of 30464562Sgshapiro Courtesan Consulting. 30564562Sgshapiro SINIX doesn't have random(3). From Gerald Rinske of 30664562Sgshapiro Siemens Business Services. 30764562Sgshapiro CONFIG: Change error message about unresolvable sender domain to 30864562Sgshapiro include the sender address. Proposed by Wolfgang Rupprecht 30964562Sgshapiro of WSRCC. 31064562Sgshapiro CONFIG: Fix usenet mailer calls. 31164562Sgshapiro CONFIG: If RELAY_MAILER_FLAGS is not defined, use SMTP_MAILER_FLAGS 31264562Sgshapiro to be backward compatible with 8.9. 31364562Sgshapiro CONFIG: Change handling of default case @domain for virtusertable 31464562Sgshapiro to allow for +*@domain to deal with +detail. 31564562Sgshapiro CONTRIB: Remove converting.sun.configs -- it is obsolete. 31664562Sgshapiro DEVTOOLS: confUBINMODE was being ignored. Fix from KITAZIMA, Tuneki 31764562Sgshapiro of NEC. 31864562Sgshapiro DEVTOOLS: Add to NCR platform list and include the architecture 31964562Sgshapiro (i486). From Tom J. Moore of NCR. 32064562Sgshapiro DEVTOOLS: SECURITY: Change method of linking with sendmail utility 32164562Sgshapiro libraries to work around the AIX 4.X and SunOS 4.X linker's 32264562Sgshapiro overloaded -L option. Problem noted by Valdis Kletnieks of 32364562Sgshapiro Virginia Tech. 32464562Sgshapiro DEVTOOLS: configure.sh was overriding the user's choice for 32564562Sgshapiro confNROFF. Problem noted by Glenn A. Malling of Syracuse 32664562Sgshapiro University. 32764562Sgshapiro DEVTOOLS: New variables conf_prog_LIB_POST and confBLDVARIANT added 32864562Sgshapiro for other internal projects but included in the open source 32964562Sgshapiro release. 33064562Sgshapiro LIBSMDB: Check for ".db" instead of simply "db" at the end of the 33164562Sgshapiro map name to determine whether or not to add the extension. 33264562Sgshapiro This fixes makemap when building the userdb file. Problem 33364562Sgshapiro noted by Andrew J Cole of the University of Leeds. 33464562Sgshapiro LIBSMDB: Allow a database to be opened for updating and created if 33564562Sgshapiro it doesn't already exist. Problem noted by Rand Wacker of 33664562Sgshapiro Sendmail. 33764562Sgshapiro LIBSMDB: If type is SMDB_TYPE_DEFAULT and both NEWDB and NDBM are 33864562Sgshapiro available, fall back to NDBM if NEWDB open fails. This 33964562Sgshapiro fixes praliases. Patch from John Beck of Sun Microsystems. 34064562Sgshapiro LIBSMUTIL: safefile()'s SFF_NOTEXCL check was being misinterpreted 34164562Sgshapiro as SFF_NOWRFILES. 34264562Sgshapiro OP.ME: Clarify some issues regarding mailer flags. Suggested by 34364562Sgshapiro Martin Mokrejs of The Charles University and Neil Rickert of 34464562Sgshapiro Northern Illinois University. 34564562Sgshapiro PRALIASES: Restore 8.9.X functionality of being able to search for 34664562Sgshapiro particular keys in a database by specifying the keys on the 34764562Sgshapiro command line. Man page updated accordingly. Patch from 34864562Sgshapiro John Beck of Sun Microsystems. 34964562Sgshapiro VACATION: SunOS 4.X portability from Charles Levert of Ecole 35064562Sgshapiro Polytechnique de Montreal. 35164562Sgshapiro VACATION: Fix -t option which is ignored but available for 35264562Sgshapiro compatibility with Sun's version, based on patch from 35364562Sgshapiro Volker Dobler of Infratest Burke. 35464562Sgshapiro Added Files: 35564562Sgshapiro devtools/M4/UNIX/smlib.m4 35664562Sgshapiro devtools/OS/OSF1.V5.0 35764562Sgshapiro Deleted Files: 35864562Sgshapiro contrib/converting.sun.configs 35964562Sgshapiro Deleted Directories (already done in 8.10.0 but not listed): 36064562Sgshapiro doc/intro 36164562Sgshapiro doc/usenix 36264562Sgshapiro doc/changes 36364562Sgshapiro 36464562Sgshapiro8.10.0/8.10.0 2000/03/01 36564562Sgshapiro ************************************************************* 36664562Sgshapiro * The engineering department at Sendmail, Inc. has suffered * 36764562Sgshapiro * the tragic loss of a key member of our engineering team. * 36864562Sgshapiro * Julie Van Bourg was the Vice President of Engineering * 36964562Sgshapiro * at Sendmail, Inc. during the development and deployment * 37064562Sgshapiro * of this release. It was her vision, dedication, and * 37164562Sgshapiro * support that has made this release a success. Julie died * 37264562Sgshapiro * on October 26, 1999 of cancer. We have lost a leader, a * 37364562Sgshapiro * coach, and a friend. * 37464562Sgshapiro * * 37564562Sgshapiro * This release is dedicated to her memory and to the joy, * 37664562Sgshapiro * strength, ideals, and hope that she brought to all of us. * 37764562Sgshapiro * Julie, we miss you! * 37864562Sgshapiro ************************************************************* 37964562Sgshapiro SECURITY: The safe file checks now back track through symbolic 38064562Sgshapiro links to make sure the files can't be compromised due 38164562Sgshapiro to poor permissions on the parent directories of the 38264562Sgshapiro symbolic link target. 38364562Sgshapiro SECURITY: Only root, TrustedUser, and users in class t can rebuild 38464562Sgshapiro the alias map. Problem noted by Michal Zalewski of the 38564562Sgshapiro "Internet for Schools" project (IdS). 38664562Sgshapiro SECURITY: There is a potential for a denial of service attack if 38764562Sgshapiro the AutoRebuildAliases option is set as a user can kill the 38864562Sgshapiro sendmail process while it is rebuilding the aliases file 38964562Sgshapiro (leaving it in an inconsistent state). This option and 39064562Sgshapiro its use is deprecated and will be removed from a future 39164562Sgshapiro version of sendmail. 39264562Sgshapiro SECURITY: Make sure all file descriptors (besides stdin, stdout, and 39364562Sgshapiro stderr) are closed before restarting sendmail. Problem noted 39464562Sgshapiro by Michal Zalewski of the "Internet for Schools" project 39564562Sgshapiro (IdS). 39664562Sgshapiro Begin using /etc/mail/ for sendmail related files. This affects 39764562Sgshapiro a large number of files. See cf/README for more details. 39864562Sgshapiro The directory structure of the distribution has changed slightly 39964562Sgshapiro for easier code sharing among the programs. 40064562Sgshapiro Support SMTP AUTH (see RFC 2554). New macros for this purpose 40164562Sgshapiro are ${auth_authen}, ${auth_type}, and ${auth_author} 40264562Sgshapiro which hold the client's authentication credentials, 40364562Sgshapiro the mechanism used for authentication, and the 40464562Sgshapiro authorization identity (i.e., the AUTH= parameter if 40564562Sgshapiro supplied). Based on code contributed by Tim Martin of CMU. 40664562Sgshapiro On systems which use the Torek stdio library (all of the BSD 40764562Sgshapiro distributions), use memory-buffered files to reduce 40864562Sgshapiro file system overhead by not creating temporary files on 40964562Sgshapiro disk. Contributed by Exactis.com, Inc. 41064562Sgshapiro New option DataFileBufferSize to control the maximum size of a 41164562Sgshapiro memory-buffered data (df) file before a disk-based file is 41264562Sgshapiro used. Contributed by Exactis.com, Inc. 41364562Sgshapiro New option XscriptFileBufferSize to control the maximum size of a 41464562Sgshapiro memory-buffered transcript (xf) file before a disk-based 41564562Sgshapiro file is used. Contributed by Exactis.com, Inc. 41664562Sgshapiro sendmail implements RFC 2476 (Message Submission), e.g., it can 41764562Sgshapiro now listen on several different ports. Use: 41864562Sgshapiro O DaemonPortOptions=Name=MSA, Port=587, M=E 41964562Sgshapiro to run a Message Submission Agent (MSA); this is turned 42064562Sgshapiro on by default in m4-generated .cf files; it can be turned 42164562Sgshapiro off with FEATURE(`no_default_msa'). 42264562Sgshapiro The 'XUSR' SMTP command is deprecated. Mail user agents should 42364562Sgshapiro begin using RFC 2476 Message Submission for initial user 42464562Sgshapiro message submission. XUSR may disappear from a future release. 42564562Sgshapiro The new '-G' (relay (gateway) submission) command line option 42664562Sgshapiro indicates that the message being submitted from the command 42764562Sgshapiro line is for relaying, not initial submission. This means 42864562Sgshapiro the message will be rejected if the addresses are not fully 42964562Sgshapiro qualified and no canonicalization will be done. Future 43064562Sgshapiro releases may even reject improperly formed messages. 43164562Sgshapiro The '-U' (initial user submission) command line option is 43264562Sgshapiro deprecated and may be removed from a future release. 43364562Sgshapiro Mail user agents should begin using '-G' to indicate that 43464562Sgshapiro this is a relay submission (the inverse of -U). 43564562Sgshapiro The next release of sendmail will assume that any message submitted 43664562Sgshapiro from the command line is an initial user submission and act 43764562Sgshapiro accordingly. 43864562Sgshapiro If sendmail doesn't have enough privileges to run a .forward 43964562Sgshapiro program or deliver to file as the owner of that file, the 44064562Sgshapiro address is marked as unsafe. This means if RunAsUser is 44164562Sgshapiro set, users won't be able to use programs or delivery to 44264562Sgshapiro files in their .forward files. Administrators can override 44364562Sgshapiro this by setting the DontBlameSendmail option to the new 44464562Sgshapiro setting NonRootSafeAddr. 44564562Sgshapiro Allow group or world writable directories if the sticky bit is set 44664562Sgshapiro on the directory and DontBlameSendmail is set to 44764562Sgshapiro TrustStickyBit. Based on patch from Chris Metcalf of 44864562Sgshapiro InCert Software. 44964562Sgshapiro Prevent logging of unsafe directory paths for non-existent forward 45064562Sgshapiro files if the new DontWarnForwardFileInUnsafeDirPath bit is 45164562Sgshapiro set in the DontBlameSendmail option. Requested by many. 45264562Sgshapiro New Timeout.control option to limit the total time spent satisfying 45364562Sgshapiro a control socket request. 45464562Sgshapiro New Timeout.resolver options for controlling BIND resolver 45564562Sgshapiro settings: 45664562Sgshapiro Timeout.resolver.retrans 45764562Sgshapiro Sets the resolver's retransmission time interval (in 45864562Sgshapiro seconds). Sets both Timeout.resolver.retrans.first 45964562Sgshapiro and Timeout.resolver.retrans.normal. 46064562Sgshapiro Timeout.resolver.retrans.first 46164562Sgshapiro Sets the resolver's retransmission time interval (in 46264562Sgshapiro seconds) for the first attempt to deliver a message. 46364562Sgshapiro Timeout.resolver.retrans.normal 46464562Sgshapiro Sets the resolver's retransmission time interval (in 46564562Sgshapiro seconds) for all resolver lookups except the first 46664562Sgshapiro delivery attempt. 46764562Sgshapiro Timeout.resolver.retry 46864562Sgshapiro Sets the number of times to retransmit a resolver 46964562Sgshapiro query. Sets both Timeout.resolver.retry.first 47064562Sgshapiro and Timeout.resolver.retry.normal. 47164562Sgshapiro Timeout.resolver.retry.first 47264562Sgshapiro Sets the number of times to retransmit a resolver 47364562Sgshapiro query for the first attempt to deliver a message. 47464562Sgshapiro Timeout.resolver.retry.normal 47564562Sgshapiro Sets the number of times to retransmit a resolver 47664562Sgshapiro query for all resolver lookups except the first 47764562Sgshapiro delivery attempt. 47864562Sgshapiro Contributed by Exactis.com, Inc. 47964562Sgshapiro Support multiple queue directories. To use multiple queues, supply 48064562Sgshapiro a QueueDirectory option value ending with an asterisk. For 48164562Sgshapiro example, /var/spool/mqueue/q* will use all of the 48264562Sgshapiro directories or symbolic links to directories beginning with 48364562Sgshapiro 'q' in /var/spool/mqueue as queue directories. Keep in 48464562Sgshapiro mind, the queue directory structure should not be changed 48564562Sgshapiro while sendmail is running. Queue runs create a separate 48664562Sgshapiro process for running each queue unless the verbose flag is 48764562Sgshapiro given on a non-daemon queue run. New items are randomly 48864562Sgshapiro assigned to a queue. Contributed by Exactis.com, Inc. 48964562Sgshapiro Support different directories for qf, df, and xf queue files; if 49064562Sgshapiro subdirectories or symbolic links to directories of those names 49164562Sgshapiro exist in the queue directories, they are used for the 49264562Sgshapiro corresponding queue files. Keep in mind, the queue 49364562Sgshapiro directory structure should not be changed while sendmail is 49464562Sgshapiro running. Proposed by Mathias Koerber of Singapore 49564562Sgshapiro Telecommunications Ltd. 49664562Sgshapiro New queue file naming system which uses a filename guaranteed to be 49764562Sgshapiro unique for 60 years. This allows queue IDs to be assigned 49864562Sgshapiro without fancy file system locking. Queued items can be 49964562Sgshapiro moved between queues easily. Contributed by Exactis.com, 50064562Sgshapiro Inc. 50164562Sgshapiro Messages which are undeliverable due to temporary address failures 50264562Sgshapiro (e.g., DNS failure) will now go to the FallBackMX host, if 50364562Sgshapiro set. Contributed by Exactis.com, Inc. 50464562Sgshapiro New command line option '-L tag' which sets the identifier used for 50564562Sgshapiro syslog. Contributed by Exactis.com, Inc. 50664562Sgshapiro QueueSortOrder=Filename will sort the queue by filename. This 50764562Sgshapiro avoids opening and reading each queue file when preparing 50864562Sgshapiro to run the queue. Contributed by Exactis.com, Inc. 50964562Sgshapiro Shared memory counters and microtimers functionality has been 51064562Sgshapiro donated by Exactis.com, Inc. 51164562Sgshapiro The SCCS ID tags have been replaced with RCS ID tags. 51264562Sgshapiro Allow trusted users (those on a T line or in $=t) to set the 51364562Sgshapiro QueueDirectory (Q) option without an X-Authentication-Warning: 51464562Sgshapiro being added. Suggested by Michael K. Sanders. 51564562Sgshapiro IPv6 support based on patches from John Kennedy of Cal State 51664562Sgshapiro University, Chico, Motonori Nakamura of Kyoto University, 51764562Sgshapiro and John Beck of Sun Microsystems. 51864562Sgshapiro In low-disk space situations, where sendmail would previously refuse 51964562Sgshapiro connections, still accept them, but only allow ETRN commands. 52064562Sgshapiro Suggested by Mathias Koerber of Singapore Telecommunications 52164562Sgshapiro Ltd. 52264562Sgshapiro The [IPC] builtin mailer now allows delivery to a UNIX domain socket 52364562Sgshapiro on systems which support them. This can be used with LMTP 52464562Sgshapiro local delivery agents which listen on a named socket. An 52564562Sgshapiro example mailer might be: 52664562Sgshapiro Mexecmail, P=[IPC], F=lsDFMmnqSXzA5@/:|, E=\r\n, 52764562Sgshapiro S=10, R=20/40, T=DNS/RFC822/X-Unix, 52864562Sgshapiro A=FILE /var/run/lmtpd 52964562Sgshapiro Code contributed by Lyndon Nerenberg of Messaging Direct. 53064562Sgshapiro The [TCP] builtin mailer name is now deprecated. Use [IPC] 53164562Sgshapiro instead. 53264562Sgshapiro The first mailer argument in the [IPC] mailer is now checked for a 53364562Sgshapiro legitimate value. Possible values are TCP (for TCP/IP 53464562Sgshapiro connections), IPC (which will be deprecated in a future 53564562Sgshapiro version), and FILE (for UNIX domain socket delivery). 53664562Sgshapiro PrivacyOptions=goaway no longer includes the noetrn and the noreceipts 53764562Sgshapiro flags. 53864562Sgshapiro PrivacyOptions=nobodyreturn instructs sendmail not to include the 53964562Sgshapiro body of the original message on delivery status 54064562Sgshapiro notifications. 54164562Sgshapiro Don't announce DSN if PrivacyOptions=noreceipts is set. Problem noted 54264562Sgshapiro by Dan Bernstein, fix from Robert Harker of Harker Systems. 54364562Sgshapiro Accept the SMTP RSET command even when rejecting commands due to TCP 54464562Sgshapiro Wrappers or the check_relay ruleset. Problem noted by 54564562Sgshapiro Steve Schweinhart of America Online. 54664562Sgshapiro Warn if OperatorChars is set multiple times. OperatorChars should 54764562Sgshapiro not be set after rulesets are defined. Suggested by 54864562Sgshapiro Mitchell Blank Jr of Exec-PC. 54964562Sgshapiro Do not report temporary failure on delivery to files. In 55064562Sgshapiro interactive delivery mode, this would result in two SMTP 55164562Sgshapiro responses after the DATA command. Problem noted by 55264562Sgshapiro Nik Conwell of Boston University. 55364562Sgshapiro Check file close when mailing to files. Problem noted by Nik 55464562Sgshapiro Conwell of Boston University. 55564562Sgshapiro Avoid a segmentation fault when using the LDAP map. Patch from 55664562Sgshapiro Curtis W. Hillegas of Princeton University. 55764562Sgshapiro Always bind to the LDAP server regardless of whether you are using 55864562Sgshapiro ldap_open() or ldap_init(). Fix from Raj Kunjithapadam of 55964562Sgshapiro @Home Network. 56064562Sgshapiro New ruleset trust_auth to determine whether a given AUTH= 56164562Sgshapiro parameter of the MAIL command should be trusted. See SMTP 56264562Sgshapiro AUTH, cf/README, and doc/op/op.ps. 56364562Sgshapiro Allow new named config file rules check_vrfy, check_expn, and 56464562Sgshapiro check_etrn for VRFY, EXPN, and ETRN commands, respectively, 56564562Sgshapiro similar to check_rcpt etc. 56664562Sgshapiro Introduce new macros ${rcpt_mailer}, ${rcpt_host}, ${rcpt_addr}, 56764562Sgshapiro ${mail_mailer}, ${mail_host}, ${mail_addr} that hold 56864562Sgshapiro the results of parsing the RCPT and MAIL arguments, i.e. 56964562Sgshapiro the resolved triplet from $#mailer $@host $:addr. 57064562Sgshapiro From Kari Hurtta of the Finnish Meteorological Institute. 57164562Sgshapiro New macro ${client_resolve} which holds the result of the resolve 57264562Sgshapiro call for ${client_name}: OK, FAIL, FORGED, TEMP. Proposed 57364562Sgshapiro by Kari Hurtta of the Finnish Meteorological Institute. 57464562Sgshapiro New macros ${dsn_notify}, ${dsn_envid}, and ${dsn_ret} that hold 57564562Sgshapiro the corresponding DSN parameter values. Proposed by 57664562Sgshapiro Mathias Herberts. 57764562Sgshapiro New macro ${msg_size} which holds the value of the SIZE= parameter, 57864562Sgshapiro i.e., usually the size of the message (in an ESMTP dialogue), 57964562Sgshapiro before the message has been collected, thereafter it holds 58064562Sgshapiro the message size as computed by sendmail (and can be used 58164562Sgshapiro in check_compat). 58264562Sgshapiro The macro ${deliveryMode} now specifies the current delivery mode 58364562Sgshapiro sendmail is using instead of the value of the DeliveryMode 58464562Sgshapiro option. 58564562Sgshapiro New macro ${ntries} holds the number of delivery attempts. 58664562Sgshapiro Drop explicit From: if same as what would be generated only if it is 58764562Sgshapiro a local address. From Motonori Nakamura of Kyoto University. 58864562Sgshapiro Write pid to file also if sendmail only processes the queue. 58964562Sgshapiro Proposed by Roy J. Mongiovi of Georgia Tech. 59064562Sgshapiro Log "low on disk space" only when necessary. 59164562Sgshapiro New macro ${load_avg} can be used to check the current load average. 59264562Sgshapiro Suggested by Scott Gifford of The Internet Ramp. 59364562Sgshapiro Return-Receipt-To: header implies DSN request if option RrtImpliesDsn 59464562Sgshapiro is set. 59564562Sgshapiro Flag -S for maps to specify the character which is substituted 59664562Sgshapiro for spaces (instead of the default given by O BlankSub). 59764562Sgshapiro Flag -D for maps: perform no lookup in deferred delivery mode. 59864562Sgshapiro This flag is set by default for the host map. Based on a 59964562Sgshapiro proposal from Ian MacPhedran of the University of Saskatchewan. 60064562Sgshapiro Open maps only on demand, not at startup. 60164562Sgshapiro Log warning about unsupported IP address families. 60264562Sgshapiro New option MaxHeadersLength allows to specify a maximum length 60364562Sgshapiro of the sum of all headers. This can be used to prevent 60464562Sgshapiro a denial-of-service attack. 60564562Sgshapiro New option MaxMimeHeaderLength which limits the size of MIME 60664562Sgshapiro headers and parameters within those headers. This option 60764562Sgshapiro is intended to protect mail user agents from buffer 60864562Sgshapiro overflow attacks. 60964562Sgshapiro Added option MaxAliasRecursion to specify the maximum depth of 61064562Sgshapiro alias recursion. 61164562Sgshapiro New flag F=6 for mailers to strip headers to seven bit. 61264562Sgshapiro Map type syslog to log the key via syslogd. 61364562Sgshapiro Entries in the alias file can be continued by putting a backslash 61464562Sgshapiro directly before the newline. 61564562Sgshapiro New option DeadLetterDrop to define the location of the system-wide 61664562Sgshapiro dead.letter file, formerly hardcoded to 61764562Sgshapiro /usr/tmp/dead.letter. If this option is not set (the 61864562Sgshapiro default), sendmail will not attempt to save to a 61964562Sgshapiro system-wide dead.letter file if it can not bounce the mail 62064562Sgshapiro to the user nor postmaster. Instead, it will rename the qf 62164562Sgshapiro file as it has in the past when the dead.letter file 62264562Sgshapiro could not be opened. 62364562Sgshapiro New option PidFile to define the location of the pid file. The 62464562Sgshapiro value of this option is macro expanded. 62564562Sgshapiro New option ProcessTitlePrefix specifies a prefix string for the 62664562Sgshapiro process title shown in 'ps' listings. 62764562Sgshapiro New macros for use with the PidFile and ProcessTitlePrefix options 62864562Sgshapiro (along with the already existing macros): 62964562Sgshapiro ${daemon_info} Daemon information, e.g. 63064562Sgshapiro SMTP+queueing@00:30:00 63164562Sgshapiro ${daemon_addr} Daemon address, e.g., 0.0.0.0 63264562Sgshapiro ${daemon_family} Daemon family, e.g., inet, inet6, etc. 63364562Sgshapiro ${daemon_name} Daemon name, e.g., MSA. 63464562Sgshapiro ${daemon_port} Daemon port, e.g., 25 63564562Sgshapiro ${queue_interval} Queue run interval, e.g., 00:30:00 63664562Sgshapiro New macros especially for virtual hosting: 63764562Sgshapiro ${if_name} hostname of interface of incoming connection. 63864562Sgshapiro ${if_addr} address of interface of incoming connection. 63964562Sgshapiro The latter is only set if the interface does not belong to the 64064562Sgshapiro loopback net. 64164562Sgshapiro If a message being accepted via a method other than SMTP and 64264562Sgshapiro would be rejected by a header check, do not send the message. 64364562Sgshapiro Suggested by Phil Homewood of Mincom Pty Ltd. 64464562Sgshapiro Don't strip comments for header checks if $>+ is used instead of $>. 64564562Sgshapiro Provide header value as quoted string in the macro 64664562Sgshapiro ${currHeader} (possibly truncated to MAXNAME). Suggested by 64764562Sgshapiro Jan Krueger of Unix-AG of University of Hannover. 64864562Sgshapiro The length of the header value is stored in ${hdrlen}. 64964562Sgshapiro H*: allows to specify a default ruleset for header checks. This 65064562Sgshapiro ruleset will only be called if the individual header does 65164562Sgshapiro not have its own ruleset assigned. Suggested by Jan 65264562Sgshapiro Krueger of Unix-AG of University of Hannover. 65364562Sgshapiro The name of the header field stored in ${hdr_name}. 65464562Sgshapiro Comments (i.e., text within parentheses) in rulesets are not 65564562Sgshapiro removed if the config file version is greater than or equal 65664562Sgshapiro to 9. For example, "R$+ ( 1 ) $@ 1" matches the 65764562Sgshapiro input "token (1)" but does not match "token". 65864562Sgshapiro Avoid removing the Content-Transfer-Encoding MIME header on 65964562Sgshapiro MIME messages. Problem noted by Sigurbjorn B. Larusson of 66064562Sgshapiro Multimedia Consumer Services. Fix from Per Hedeland of 66164562Sgshapiro Ericsson. 66264562Sgshapiro Avoid duplicate Content-Transfer-Encoding MIME header on 66364562Sgshapiro messages with 8-bit text in headers. Problem noted by 66464562Sgshapiro Per Steinar Iversen of Oslo College. Fix from Per Hedeland 66564562Sgshapiro of Ericsson. 66664562Sgshapiro Avoid keeping maps locked longer than necessary when re-opening a 66764562Sgshapiro modified database map file. Problem noted by Chris Adams 66864562Sgshapiro of Renaissance Internet Services. 66964562Sgshapiro Resolving to the $#error mailer with a temporary failure code (e.g., 67064562Sgshapiro $#error $@ tempfail $: "400 Temporary failure") will now 67164562Sgshapiro queue up the message instead of bouncing it. 67264562Sgshapiro Be more liberal in acceptable responses to an SMTP RSET command as 67364562Sgshapiro standard does not provide any indication of what to do when 67464562Sgshapiro something other than 250 is received. Based on a patch 67564562Sgshapiro from Steve Schweinhart of America Online. 67664562Sgshapiro New option TrustedUser allows to specify a user who can own 67764562Sgshapiro important files instead of root. This requires HASFCHOWN. 67864562Sgshapiro Fix USERDB conditional so compiling with NEWDB or HESIOD and 67964562Sgshapiro setting USERDB=0 works. Fix from Jorg Zanger of Schock. 68064562Sgshapiro Fix another instance (similar to one in 8.9.3) of a network failure 68164562Sgshapiro being mis-logged as "Illegal Seek" instead of whatever 68264562Sgshapiro really went wrong. From John Beck of Sun Microsystems. 68364562Sgshapiro $? tests also whether the macro is non-null. 68464562Sgshapiro Print an error message if a mailer definition contains an invalid 68564562Sgshapiro equate name. 68664562Sgshapiro New mailer equate /= to specify a directory to chroot() into before 68764562Sgshapiro executing the mailer program. Suggested by Igor Vinokurov. 68864562Sgshapiro New mailer equate W= to specify the maximum time to wait for the 68964562Sgshapiro mailer to return after sending all data to it. 69064562Sgshapiro Only free memory from the process list when adding a new process 69164562Sgshapiro into a previously filled slot. Previously, the memory was 69264562Sgshapiro freed at removal time. Since removal can happen in a 69364562Sgshapiro signal handler, this may leave the memory map in an 69464562Sgshapiro inconsistent state. Problem noted by Jeff A. Earickson and 69564562Sgshapiro David Cooley of Colby College. 69664562Sgshapiro When using the UserDB @hostname catch-all, do not try to lookup 69764562Sgshapiro local users in the passwd file. The UserDB code has 69864562Sgshapiro already decided the message will be passed to another host 69964562Sgshapiro for processing. Fix from Tony Landells of Burdett 70064562Sgshapiro Buckeridge Young Limited. 70164562Sgshapiro Support LDAP authorization via either a file containing the 70264562Sgshapiro password or Kerberos V4 using the new map options 70364562Sgshapiro '-ddistinguished_name', '-Mmethod', and '-Pfilename'. The 70464562Sgshapiro distinguished_name is who to login as. The method can be 70564562Sgshapiro one of LDAP_AUTH_NONE, LDAP_AUTH_SIMPLE, or 70664562Sgshapiro LDAP_AUTH_KRBV4. The filename is the file containing the 70764562Sgshapiro secret key for LDAP_AUTH_SIMPLE or the name of the Kerberos 70864562Sgshapiro ticket file for LDAP_AUTH_KRBV4. Patch from Booker Bense 70964562Sgshapiro of Stanford University. 71064562Sgshapiro The ldapx map has been renamed to ldap. The use of ldapx is 71164562Sgshapiro deprecated and will be removed in a future version. 71264562Sgshapiro If the result of an LDAP search returns a multi-valued attribute 71364562Sgshapiro and the map has the column delimiter set, it turns that 71464562Sgshapiro response into a delimiter separated string. The LDAP map 71564562Sgshapiro will traverse multiple entries as well. LDAP alias maps 71664562Sgshapiro automatically set the column delimiter to the comma. 71764562Sgshapiro Based on patch from Booker Bense of Stanford University and 71864562Sgshapiro idea from Philip A. Prindeville of Mirapoint, Inc. 71964562Sgshapiro Support return of multiple values for a single LDAP lookup. The 72064562Sgshapiro values to be returned should be in a comma separated string. 72164562Sgshapiro For example, `-v "email,emailother"'. Patch from 72264562Sgshapiro Curtis W. Hillegas of Princeton University. 72364562Sgshapiro Allow the use of LDAP for alias maps. 72464562Sgshapiro If no LDAP attributes are specified in an LDAP map declaration, all 72564562Sgshapiro attributes found in the match will be returned. 72664562Sgshapiro Prevent commas in quoted strings in the AliasFile value from 72764562Sgshapiro breaking up a single entry into multiple entries. This is 72864562Sgshapiro needed for LDAP alias file specifications to allow for 72964562Sgshapiro comma separated key and value strings. 73064562Sgshapiro Keep connections to LDAP server open instead of opening and closing 73164562Sgshapiro for each lookup. To reduce overhead, sendmail will cache 73264562Sgshapiro connections such that multiple maps which use the same 73364562Sgshapiro host, port, bind DN, and authentication will only result in 73464562Sgshapiro a single connection to that host. 73564562Sgshapiro Put timeout in the proper place for USE_LDAP_INIT. 73664562Sgshapiro Be more careful about checking for errors and freeing memory on 73764562Sgshapiro LDAP lookups. 73864562Sgshapiro Use asynchronous LDAP searches to save memory and network 73964562Sgshapiro resources. 74064562Sgshapiro Do not copy LDAP query results if the map's match only flag is set. 74164562Sgshapiro Increase portability to the Netscape LDAP libraries. 74264562Sgshapiro Change the parsing of the LDAP filter specification. '%s' is still 74364562Sgshapiro replaced with the literal contents of the map lookup key -- 74464562Sgshapiro note that this means a lookup can be done using the LDAP 74564562Sgshapiro special characters. The new '%0' token can be used instead 74664562Sgshapiro of '%s' to encode the key buffer according to RFC 2254. 74764562Sgshapiro For example, if the LDAP map specification contains '-k 74864562Sgshapiro "(user=%s)"' and a lookup is done on "*", this would be 74964562Sgshapiro equivalent to '-k "(user=*)"' -- matching ANY record with a 75064562Sgshapiro user attribute. Instead, if the LDAP map specification 75164562Sgshapiro contains '-k "(user=%0)"' and a lookup is done on "*", this 75264562Sgshapiro would be equivalent to '-k "(user=\2A)"' -- matching a user 75364562Sgshapiro with the name "*". 75464562Sgshapiro New LDAP map flags: "-1" requires a single match to be returned, if 75564562Sgshapiro more than one is returned, it is equivalent to no records 75664562Sgshapiro being found; "-r never|always|search|find" sets the LDAP 75764562Sgshapiro alias dereference option; "-Z size" limits the number of 75864562Sgshapiro matches to return. 75964562Sgshapiro New option LDAPDefaultSpec allows a default map specification for 76064562Sgshapiro LDAP maps. The value should only contain LDAP specific 76164562Sgshapiro settings such as "-h host -p port -d bindDN", etc. The 76264562Sgshapiro settings will be used for all LDAP maps unless they are 76364562Sgshapiro specified in the individual map specification ('K' 76464562Sgshapiro command). This option should be set before any LDAP maps 76564562Sgshapiro are defined. 76664562Sgshapiro Prevent an NDBM alias file opening loop when the NDBM open 76764562Sgshapiro continually fails. Fix from Roy J. Mongiovi of Georgia 76864562Sgshapiro Tech. 76964562Sgshapiro Reduce memory utilization for smaller symbol table entries. In 77064562Sgshapiro particular, class entries get much smaller, which can be 77164562Sgshapiro important if you have large classes. 77264562Sgshapiro On network-related temporary failures, record the hostname which 77364562Sgshapiro gave error in the queued status message. Requested by 77464562Sgshapiro Ulrich Windl of the Universitat Regensburg. 77564562Sgshapiro Add new F=% mailer flag to allow for a store and forward 77664562Sgshapiro configuration. Mailers which have this flag will not attempt 77764562Sgshapiro delivery on initial recipient of a message or on queue runs 77864562Sgshapiro unless the queued message is selected using one of the 77964562Sgshapiro -qI/-qR/-qS queue run modifiers or an ETRN request. Code 78064562Sgshapiro provided by Philip Guenther of Gustavus Adolphus College. 78164562Sgshapiro New option ControlSocketName which, when set, creates a daemon 78264562Sgshapiro control socket. This socket allows an external program to 78364562Sgshapiro control and query status from the running sendmail daemon 78464562Sgshapiro via a named socket, similar to the ctlinnd interface to the 78564562Sgshapiro INN news server. Access to this interface is controlled by 78664562Sgshapiro the UNIX file permissions on the named socket on most UNIX 78764562Sgshapiro systems (see sendmail/README for more information). An 78864562Sgshapiro example control program is provided as contrib/smcontrol.pl. 78964562Sgshapiro Change the default values of QueueLA from 8 to (8 * numproc) and 79064562Sgshapiro RefuseLA from 12 to (12 * numproc) where numproc is the 79164562Sgshapiro number of processors online on the system (if that can be 79264562Sgshapiro determined). For single processor machines, this change 79364562Sgshapiro has no effect. 79464562Sgshapiro Don't return body of message to postmaster on "Too many hops" bounces. 79564562Sgshapiro Based on fix from Motonori Nakamura of Kyoto University. 79664562Sgshapiro Give more detailed DSN descriptions for some cases. Patch from 79764562Sgshapiro Motonori Nakamura of Kyoto University. 79864562Sgshapiro Logging of alias, forward file, and UserDB expansion now happens 79964562Sgshapiro at LogLevel 11 or higher instead of 10 or higher. 80064562Sgshapiro Logging of an envelope's complete delivery (the "done" message) now 80164562Sgshapiro happens at LogLevel 10 or higher instead of 11 or higher. 80264562Sgshapiro Logging of TCP/IP or UNIX standard input connections now happens at 80364562Sgshapiro LogLevel 10 or higher. Previously, only TCP/IP connections 80464562Sgshapiro were logged, and on at LogLevel 12 or higher. Setting 80564562Sgshapiro LogLevel to 10 will now assist users in tracking frequent 80664562Sgshapiro connection-based denial of service attacks. 80764562Sgshapiro Log basic information about authenticated connections at LogLevel 80864562Sgshapiro 10 or higher. 80964562Sgshapiro Log SMTP Authentication mechanism and author when logging the sender 81064562Sgshapiro information (from= syslog line). 81164562Sgshapiro Log the DSN code for each recipient if one is available as a new 81264562Sgshapiro equate (dsn=). 81364562Sgshapiro Macro expand PostmasterCopy and DoubleBounceAddress options. 81464562Sgshapiro New "ph" map for performing ph queries in rulesets. More 81564562Sgshapiro information is available at 81664562Sgshapiro http://www-wsg.cso.uiuc.edu/sendmail/patches/. 81764562Sgshapiro Contributed by Mark Roth of the University of Illinois at 81864562Sgshapiro Urbana-Champaign. 81964562Sgshapiro Detect temporary lookup failures in the host map if looking up a 82064562Sgshapiro bracketed IP address. Problem noted by Kari Hurtta of the 82164562Sgshapiro Finnish Meteorological Institute. 82264562Sgshapiro Do not report a Remote-MTA on local deliveries. Problem noted by 82364562Sgshapiro Kari Hurtta of the Finnish Meteorological Institute. 82464562Sgshapiro When a forward file points to an alias which runs a program, run 82564562Sgshapiro the program as the default user and the default group, not 82664562Sgshapiro the forward file user. This change also assures the 82764562Sgshapiro :include: directives in aliases are also processed using 82864562Sgshapiro the default user and group. Problem noted by Sergiu 82964562Sgshapiro Popovici of DNT Romania. 83064562Sgshapiro Prevent attempts to save a dead.letter file for a user with 83164562Sgshapiro no home directory (/no/such/directory). Problem noted by 83264562Sgshapiro Michael Brown of Finnigan FT/MS. 83364562Sgshapiro Include message delay and number of tries when logging that a 83464562Sgshapiro message has been completely delivered (LogLevel of 10 or 83564562Sgshapiro above). Suggested by Nick Hilliard of Ireland Online. 83664562Sgshapiro Log the sender of a message even if none of the recipients were 83764562Sgshapiro accepted. If some of the recipients were rejected, it is 83864562Sgshapiro helpful to know the sender of the message. 83964562Sgshapiro Check the root directory (/) when checking a path for safety. 84064562Sgshapiro Problem noted by John Beck of Sun Microsystems. 84164562Sgshapiro Prevent multiple responses to the DATA command if DeliveryMode is 84264562Sgshapiro interactive and delivering to an alias which resolves to 84364562Sgshapiro multiple files. 84464562Sgshapiro Macros in the helpfile are expanded if the helpfile version is 2 or 84564562Sgshapiro greater (see below); the help function doesn't print the 84664562Sgshapiro version of sendmail any longer, instead it is placed in 84764562Sgshapiro the helpfile ($v). Suggested by Chuck Foster of UUNET 84864562Sgshapiro PIPEX. Additionally, comment lines (starting with #) are 84964562Sgshapiro skipped and a version line (#vers) is introduced. The 85064562Sgshapiro helpfile version for 8.10.0 is 2, if no version or an older 85164562Sgshapiro version is found, a warning is logged. The '#vers' 85264562Sgshapiro directive should be placed at the top of the help file. 85364562Sgshapiro Use fsync() when delivering to a file to guarantee the delivery to 85464562Sgshapiro disk succeeded. Suggested by Nick Christenson. 85564562Sgshapiro If delivery to a file is unsuccessful, truncate the file back to its 85664562Sgshapiro length before the attempt. 85764562Sgshapiro If a forward points to a filename for delivery, change to the 85864562Sgshapiro user's uid before checking permissions on the file. This 85964562Sgshapiro allows delivery to files on NFS mounted directories where 86064562Sgshapiro root is remapped to nobody. Problem noted by Harald 86164562Sgshapiro Daeubler of Universitaet Ulm. 86264562Sgshapiro purgestat and sendmail -bH purge only expired (Timeout.hoststatus) 86364562Sgshapiro host status files, not all files. 86464562Sgshapiro Any macros stored in the class $={persistentMacros} will be saved 86564562Sgshapiro in the queue file for the message and set when delivery 86664562Sgshapiro is attempted on the queued item. Suggested by Kyle Jones of 86764562Sgshapiro Wonderworks Inc. 86864562Sgshapiro Add support for storing information between rulesets using the new 86964562Sgshapiro macro map class. This can be used to store information 87064562Sgshapiro between queue runs as well using $={persistentMacros}. 87164562Sgshapiro Based on an idea from Jan Krueger of Unix-AG of University 87264562Sgshapiro of Hannover. 87364562Sgshapiro New map class arith to allow for computations in rules. The 87464562Sgshapiro operation (+, -, *, /, l (for less than), and =) is given 87564562Sgshapiro as key. The two operands are specified as arguments; the 87664562Sgshapiro lookup returns the result of the computation. For example, 87764562Sgshapiro "$(arith l $@ 4 $@ 2 $)" will return "FALSE" and 87864562Sgshapiro "$(arith + $@ 4 $@ 2 $)" will return "6". 87964562Sgshapiro Add new syntax for header declarations which decide whether to 88064562Sgshapiro include the header based on a macro rather than a mailer 88164562Sgshapiro flag: 88264562Sgshapiro H?${MyMacro}?X-My-Header: ${MyMacro} 88364562Sgshapiro This should be used along with $={persistentMacros}. 88464562Sgshapiro It can be used for adding headers to a message based on 88564562Sgshapiro the results of check_* and header check rulesets. 88664562Sgshapiro Allow new named config file rule check_eoh which is called after 88764562Sgshapiro all of the headers have been collected. The input to the 88864562Sgshapiro ruleset the number of headers and the size of all of the 88964562Sgshapiro headers in bytes separated by $|. This ruleset along with 89064562Sgshapiro the macro storage map can be used to correlate information 89164562Sgshapiro gathered between headers and to check for missing headers. 89264562Sgshapiro See cf/README or doc/op/op.ps for an example. 89364562Sgshapiro Change the default for the MeToo option to True to correspond 89464562Sgshapiro to the clarification in the DRUMS SMTP Update spec. This 89564562Sgshapiro option is deprecated and will be removed from a future 89664562Sgshapiro version. 89764562Sgshapiro Change the sendmail binary default for SendMimeErrors to True. 89864562Sgshapiro Change the sendmail binary default for SuperSafe to True. 89964562Sgshapiro Display ruleset names in debug and address test mode output 90064562Sgshapiro if referencing a named ruleset. 90164562Sgshapiro New mailer equate m= which will limit the number of messages 90264562Sgshapiro delivered per connection on an SMTP or LMTP mailer. 90364562Sgshapiro Improve QueueSortOrder=Host by reversing the hostname before 90464562Sgshapiro using it to sort. Now all the same domains are really run 90564562Sgshapiro through the queue together. If they have the same MX host, 90664562Sgshapiro then they will have a much better opportunity to use the 90764562Sgshapiro connection cache if available. This should be a reasonable 90864562Sgshapiro performance improvement. Patch from Randall Winchester of 90964562Sgshapiro the University of Maryland. 91064562Sgshapiro If a message is rejected by a header check ruleset, log who would 91164562Sgshapiro have received the message if it had not been rejected. 91264562Sgshapiro New "now" value for Timeout.queuereturn to bounce entries from the 91364562Sgshapiro queue immediately. No delivery attempt is made. 91464562Sgshapiro Increase sleeping time exponentially after too many "bad" commands 91564562Sgshapiro up to 4 minutes delay (compare MAX{BAD,NOOP,HELO,VRFY,ETRN}- 91664562Sgshapiro COMMANDS). 91764562Sgshapiro New option ClientPortOptions similar to DaemonPortOptions 91864562Sgshapiro but for outgoing connections. 91964562Sgshapiro New suboptions for DaemonPortOptions: Name (a name used for 92064562Sgshapiro error messages and logging) and Modifiers, i.e. 92164562Sgshapiro a require authentication 92264562Sgshapiro b bind to interface through which mail has 92364562Sgshapiro been received 92464562Sgshapiro c perform hostname canonification 92564562Sgshapiro f require fully qualified hostname 92664562Sgshapiro h use name of interface for outgoing HELO 92764562Sgshapiro command 92864562Sgshapiro C don't perform hostname canonification 92964562Sgshapiro E disallow ETRN (see RFC 2476) 93064562Sgshapiro New suboption for ClientPortOptions: Modifiers, i.e. 93164562Sgshapiro h use name of interface for HELO command 93264562Sgshapiro The version number for queue files (qf) has been incremented to 4. 93364562Sgshapiro Log unacceptable HELO/EHLO domain name attempts if LogLevel is set 93464562Sgshapiro to 10 or higher. Suggested by Rick Troxel of the National 93564562Sgshapiro Institutes of Health. 93664562Sgshapiro If a mailer dies, print the status in decimal instead of octal 93764562Sgshapiro format. Suggested by Michael Shapiro of Sun Microsystems. 93864562Sgshapiro Limit the length of all MX records considered for delivery to 8k. 93964562Sgshapiro Move message priority from sender to recipient logging. Suggested by 94064562Sgshapiro Ulrich Windl of the Universitat Regensburg. 94164562Sgshapiro Add support for Berkeley DB 3.X. 94264562Sgshapiro Add fix for Berkeley DB 2.X fcntl() locking race condition. 94364562Sgshapiro Requires a post-2.7.5 version of Berkeley DB. 94464562Sgshapiro Support writing traffic log (sendmail -X option) to a FIFO. 94564562Sgshapiro Patch submitted by Rick Heaton of Network Associates, Inc. 94664562Sgshapiro Do not ignore Timeout settings in the .cf file when a Timeout 94764562Sgshapiro sub-options is set on the command line. Problem noted by 94864562Sgshapiro Graeme Hewson of Oracle. 94964562Sgshapiro Randomize equal preference MX records each time delivery is 95064562Sgshapiro attempted via a new connection to a host instead of once per 95164562Sgshapiro session. Suggested by Scott Salvidio of Compaq. 95264562Sgshapiro Implement enhanced status codes as defined by RFC 2034. 95364562Sgshapiro Add [hostname] to class w for the names of all interfaces unless 95464562Sgshapiro DontProbeInterfaces is set. This is useful for sending mails 95564562Sgshapiro to hosts which have dynamically assigned names. 95664562Sgshapiro If a message is bounced due to bad MIME conformance, avoid bouncing 95764562Sgshapiro the bounce for the same reason. If the body is not 8-bit 95864562Sgshapiro clean, and EightBitMode isn't set to pass8, the body will 95964562Sgshapiro not be included in the bounce. Problem noted by Valdis 96064562Sgshapiro Kletnieks of Virginia Tech. 96164562Sgshapiro The timeout for sending a message via SMTP has been changed from 96264562Sgshapiro '${msgsize} / 16 + (${nrcpts} * 300)' to a timeout which 96364562Sgshapiro simply checks for progress on sending data every 5 minutes. 96464562Sgshapiro This will detect the inability to send information quicker 96564562Sgshapiro and reduce the number of processes simply waiting to 96664562Sgshapiro timeout. 96764562Sgshapiro Prevent a segmentation fault on systems which give a partial filled 96864562Sgshapiro interface address structure when loading the system network 96964562Sgshapiro interface addresses. Fix from Reinier Bezuidenhout of 97064562Sgshapiro Nanoteq. 97164562Sgshapiro Add a compile-time configuration macro, MAXINTERFACES, which 97264562Sgshapiro indicates the number of interfaces to read when probing 97364562Sgshapiro for hostnames and IP addresses for class w ($=w). The 97464562Sgshapiro default value is 512. Based on idea from Reinier 97564562Sgshapiro Bezuidenhout of Nanoteq. 97664562Sgshapiro If the RefuseLA option is set to 0, do not reject connections based 97764562Sgshapiro on load average. 97864562Sgshapiro Allow ruleset 0 to have a name. Problem noted by Neil Rickert of 97964562Sgshapiro Northern Illinois University. 98064562Sgshapiro Expand the Return-Path: header at delivery time, after "owner-" 98164562Sgshapiro envelope splitting has occurred. 98264562Sgshapiro Don't try to sort the queue if there are no entries. Patch from 98364562Sgshapiro Luke Mewburn from RMIT University. 98464562Sgshapiro Add a "/quit" command to address test mode. 98564562Sgshapiro Include the proper sender in the UNIX "From " line and Return-Path: 98664562Sgshapiro header when undeliverable mail is saved to ~/dead.letter. 98764562Sgshapiro Problem noted by Kari Hurtta of the Finnish Meteorological 98864562Sgshapiro Institute. 98964562Sgshapiro The contents of a class can now be copied to another class using 99064562Sgshapiro the syntax: "C{Dest} $={Source}". This would copy all of 99164562Sgshapiro the items in class $={Source} into the class $={Dest}. 99264562Sgshapiro Include original envelope's error transcript in bounces created for 99364562Sgshapiro split (owner-) envelopes to see the original errors when 99464562Sgshapiro the recipients were added. Based on fix from Motonori 99564562Sgshapiro Nakamura of Kyoto University. 99664562Sgshapiro Show reason for permanent delivery errors directly after the 99764562Sgshapiro addresses. From Motonori Nakamura of Kyoto University. 99864562Sgshapiro Prevent a segmentation fault when bouncing a split-envelope 99964562Sgshapiro message. Patch from Motonori Nakamura of Kyoto University. 100064562Sgshapiro If the specification for the queue run interval (-q###) has a 100164562Sgshapiro syntax error, consider the error fatal and exit. 100264562Sgshapiro Pay attention to CheckpointInterval during LMTP delivery. Problem 100364562Sgshapiro noted by Motonori Nakamura of Kyoto University. 100464562Sgshapiro On operating systems which have setlogin(2), use it to set the 100564562Sgshapiro login name to the RunAsUserName when starting as a daemon. 100664562Sgshapiro This is for delivery to programs which use getlogin(). 100764562Sgshapiro Based on fix from Motonori Nakamura of Kyoto University. 100864562Sgshapiro Differentiate between "command not implemented" and "command 100964562Sgshapiro unrecognized" in the SMTP dialogue. 101064562Sgshapiro Strip returns from forward and include files. Problem noted by 101164562Sgshapiro Allan E Johannesen of Worcester Polytechnic Institute. 101264562Sgshapiro Prevent a core dump when using 'sendmail -bv' on an address which 101364562Sgshapiro resolves to the $#error mailer with a temporary failure. 101464562Sgshapiro Based on fix from Neil Rickert of Northern Illinois 101564562Sgshapiro University. 101664562Sgshapiro Prevent multiple deliveries of a message with a "non-local alias" 101764562Sgshapiro pointing to a local user, if canonicalization fails 101864562Sgshapiro the message was requeued *and* delivered to the alias. 101964562Sgshapiro If an invalid ruleset is declared, the ruleset name could be 102064562Sgshapiro ignored and its rules added to S0. Instead, ignore the 102164562Sgshapiro ruleset lines as well. 102264562Sgshapiro Avoid incorrect Final-Recipient, Action, and X-Actual-Recipient 102364562Sgshapiro success DSN fields as well as duplicate entries for a 102464562Sgshapiro single address due to S5 and UserDB processing. Problems 102564562Sgshapiro noted by Kari Hurtta of the Finnish Meteorological 102664562Sgshapiro Institute. 102764562Sgshapiro Turn off timeouts when exiting sendmail due to an interrupt signal 102864562Sgshapiro to prevent the timeout from firing during the exit process. 102964562Sgshapiro Problem noted by Michael Shapiro of Sun Microsystems. 103064562Sgshapiro Do not append @MyHostName to non-RFC822 addresses output by the EXPN 103164562Sgshapiro command or on Final-Recipient: and X-Actual-Recipient: DSN 103264562Sgshapiro headers. Non-RFC822 addresses include deliveries to 103364562Sgshapiro programs, file, DECnet, etc. 103464562Sgshapiro Fix logic for determining if a local user is using -f or -bs to 103564562Sgshapiro spoof their return address. Based on idea from Neil Rickert 103664562Sgshapiro of Northern Illinois University and patch from Per Hedeland 103764562Sgshapiro of Ericsson. 103864562Sgshapiro Report the proper UID in the bounce message if an :include: file is 103964562Sgshapiro owned by a uid that doesn't map to a username and the 104064562Sgshapiro :include: file contains delivery to a file or program. 104164562Sgshapiro Problem noted by John Beck of Sun Microsystems. 104264562Sgshapiro Avoid the attempt of trying to send a second SMTP QUIT command if 104364562Sgshapiro the remote server responds to the first QUIT with a 4xx 104464562Sgshapiro response code and drops the connection. This behavior was 104564562Sgshapiro noted by Ulrich Windl of the Universitat Regensburg when 104664562Sgshapiro sendmail was talking to the Mercury 1.43 MTA. 104764562Sgshapiro If a hostname lookup times out and ServiceSwitchFile is set but the 104864562Sgshapiro file is not present, the lookup failure would be marked as 104964562Sgshapiro a permanent failure instead of a temporary failure. Fix 105064562Sgshapiro from Russell King of the ARM Linux Project. 105164562Sgshapiro Handle aliases or forwards which deliver to programs using tabs 105264562Sgshapiro instead of spaces between arguments. Problem noted by Randy 105364562Sgshapiro Wormser. Fix from Neil Rickert of Northern Illinois 105464562Sgshapiro University. 105564562Sgshapiro Allow MaxRecipientsPerMessage option to be set on the command line 105664562Sgshapiro by normal users (e.g., sendmail won't drop its root 105764562Sgshapiro privileges) to allow overrides for message submission via 105864562Sgshapiro 'sendmail -bs'. 105964562Sgshapiro Set the names for help file and statistics file to "helpfile" and 106064562Sgshapiro "statistics", respectively, if no parameters are given for 106164562Sgshapiro them in the .cf file. 106264562Sgshapiro Avoid bogus 'errbody: I/O Error -7' log messages when sending 106364562Sgshapiro success DSN messages for messages relayed to non-DSN aware 106464562Sgshapiro systems. Problem noted by Juergen Georgi of RUS University 106564562Sgshapiro of Stuttgart and Kyle Tucker of Parexel International. 106664562Sgshapiro Prevent +detail information from interfering with local delivery to 106764562Sgshapiro multiple users in the same transaction (F=m). 106864562Sgshapiro Add H_FORCE flag for the X-Authentication-Warning: header, so it 106964562Sgshapiro will be added even if one already exists. Problem noted 107064562Sgshapiro by Michal Zalewski of Marchew Industries. 107164562Sgshapiro Stop processing SMTP commands if the SMTP connection is dropped. 107264562Sgshapiro This prevents a remote system from flooding the connection 107364562Sgshapiro with commands and then disconnecting. Previously, the 107464562Sgshapiro server would process all of the buffered commands. Problem 107564562Sgshapiro noted by Michal Zalewski of Marchew Industries. 107664562Sgshapiro Properly process user-supplied headers beginning with '?'. Problem 107764562Sgshapiro noted by Michal Zalewski of Marchew Industries. 107864562Sgshapiro If multiple header checks resolve to the $#error mailer, use the 107964562Sgshapiro last permanent (5XX) failure if any exist. Otherwise, use 108064562Sgshapiro the last temporary (4XX) failure. 108164562Sgshapiro RFC 1891 requires "hexchar" in a "xtext" to be upper case. Patch 108264562Sgshapiro from Ronald F. Guilmette of Infinite Monkeys & Co. 108364562Sgshapiro Timeout.ident now defaults to 5 seconds instead of 30 seconds to 108464562Sgshapiro prevent the now common delays associated with mailing to a 108564562Sgshapiro site which drops IDENT packets. Suggested by many. 108664562Sgshapiro Persistent host status data is not reloaded disk when current data 108764562Sgshapiro is available in the in-memory cache. Problem noted by Per 108864562Sgshapiro Hedeland of Ericsson. 108964562Sgshapiro mailq displays unprintable characters in addresses as their octal 109064562Sgshapiro representation and a leading backslash. This avoids problems 109164562Sgshapiro with "unprintable" characters. Problem noted by Michal 109264562Sgshapiro Zalewski of the "Internet for Schools" project (IdS). 109364562Sgshapiro The mail line length limit (L= equate) was adding the '!' indicator 109464562Sgshapiro one character past the limit. This would cause subsequent 109564562Sgshapiro hops to break the line again. The '!' is now placed in 109664562Sgshapiro the last column of the limit if the line needs to be broken. 109764562Sgshapiro Problem noted by Joe Pruett of Q7 Enterprises. Based on fix 109864562Sgshapiro from Per Hedeland of Ericsson. 109964562Sgshapiro If a resolver ANY query is larger than the UDP packet size, the 110064562Sgshapiro resolver will fall back to TCP. However, some 110164562Sgshapiro misconfigured firewalls black 53/TCP so the ANY lookup 110264562Sgshapiro fails whereas an MX or A record might succeed. Therefore, 110364562Sgshapiro don't fail on ANY queries. 110464562Sgshapiro If an SMTP recipient is rejected due to syntax errors in the 110564562Sgshapiro address, do not send an empty postmaster notification DSN 110664562Sgshapiro to the postmaster. Problem noted by Neil Rickert of 110764562Sgshapiro Northern Illinois University. 110864562Sgshapiro Allow '_' and '.' in map names when parsing a sequence map 110964562Sgshapiro specification. Patch from William Setzer of North Carolina 111064562Sgshapiro State University. 111164562Sgshapiro Fix hostname in logging of read timeouts for the QUIT command on 111264562Sgshapiro cached connections. Problem noted by Neil Rickert of 111364562Sgshapiro Northern Illinois University. 111464562Sgshapiro Use a more descriptive entry to log "null" connections, i.e., 111564562Sgshapiro "host did not issue MAIL/EXPN/VRFY/ETRN during connection". 111664562Sgshapiro Fix a file descriptor leak in ONEX mode. 111764562Sgshapiro Portability: 111864562Sgshapiro Reverse signal handling logic such that sigaction(2) with 111964562Sgshapiro the SA_RESTART flag is the preferred method and the 112064562Sgshapiro other signal methods are only tried if SA_RESTART 112164562Sgshapiro is not available. Problem noted by Allan E 112264562Sgshapiro Johannesen of Worcester Polytechnic Institute. 112364562Sgshapiro AIX 4.x supports the sa_len member of struct sockaddr. 112464562Sgshapiro This allows network interface probing to work 112564562Sgshapiro properly. Fix from David Bronder of the 112664562Sgshapiro University of Iowa. 112764562Sgshapiro AIX 4.3 has snprintf() support. 112864562Sgshapiro Use "PPC" as the architecture name when building under 112964562Sgshapiro AIX. This will be reflected in the obj.* directory 113064562Sgshapiro name. 113164562Sgshapiro Apple Darwin support based on Apple Rhapsody port. 113264562Sgshapiro Fixed AIX 'make depend' method from Valdis Kletnieks of 113364562Sgshapiro Virginia Tech. 113464562Sgshapiro Digital UNIX has uname(2). 113564562Sgshapiro GNU Hurd updates from Mark Kettenis of the University of 113664562Sgshapiro Amsterdam. 113764562Sgshapiro Improved HPUX 11.0 portability. 113864562Sgshapiro Properly determine the number of CPUs on FreeBSD 2.X, 113964562Sgshapiro FreeBSD 3.X, HP/UX 10.X and HP/UX 11.X. 114064562Sgshapiro Remove special IRIX ABI cases from Build script and the OS 114164562Sgshapiro files. Use the standard 'cc' options used by SGI 114264562Sgshapiro in building the operating system. Users can 114364562Sgshapiro override the defaults by setting confCC and 114464562Sgshapiro confLIBSEARCHPATH appropriately. 114564562Sgshapiro IRIX nsd map support from Bob Mende of SGI. 114664562Sgshapiro Minor devtools fixes for IRIX from Bob Mende of SGI. 114764562Sgshapiro Linux patch for IP_SRCROUTE support from Joerg Dorchain 114864562Sgshapiro of MW EDV & ELECTRONIC. 114964562Sgshapiro Linux now uses /usr/sbin for confEBINDIR in the build 115064562Sgshapiro system. From MATSUURA Takanori of Osaka University. 115164562Sgshapiro Remove special treatment for Linux PPC in the build 115264562Sgshapiro system. From MATSUURA Takanori of Osaka University. 115364562Sgshapiro Motorolla UNIX SYSTEM V/88 Release 4.0 support from 115464562Sgshapiro Sergey Rusanov of the Republic of Udmurtia. 115564562Sgshapiro NCR MP-RAS 3.x includes regular expression support. From 115664562Sgshapiro Tom J. Moore of NCR. 115764562Sgshapiro NEC EWS-UX/V series settings for _PATH_VENDOR_CF and 115864562Sgshapiro _PATH_SENDMAILPID from Oota Toshiya of 115964562Sgshapiro NEC Computers Group Planning Division. 116064562Sgshapiro Minor NetBSD owner/group tweaks from Ayamura Kikuchi, M.D. 116164562Sgshapiro NEWS-OS 6.X listed SYSLOG_BUFSIZE as 256 in confENVDEF and 116264562Sgshapiro 1024 in conf.h. Since confENVDEF would be used, 116364562Sgshapiro use that value in conf.h. 116464562Sgshapiro Use NeXT's NETINFO to get domain name. From Gerd Knops of 116564562Sgshapiro BITart Consulting. 116664562Sgshapiro Use NeXT's NETINFO for alias and hostname resolution if 116764562Sgshapiro AUTO_NETINFO_ALIASES and AUTO_NETINFO_HOSTS are 116864562Sgshapiro defined. Patch from Wilfredo Sanchez of Apple 116964562Sgshapiro Computer, Inc. 117064562Sgshapiro NeXT portability tweaks. Problems reported by Dragan 117164562Sgshapiro Milicic of the University of Utah and J. P. McCann 117264562Sgshapiro of E I A. 117364562Sgshapiro New compile flag FAST_PID_RECYCLE: set this if your system 117464562Sgshapiro can reuse the same PID in the same second. 117564562Sgshapiro New compile flag HASFCHOWN: set this if your OS has 117664562Sgshapiro fchown(2). 117764562Sgshapiro New compile flag HASRANDOM: set this to 0 if your OS does 117864562Sgshapiro not have random(3). rand() will be used instead. 117964562Sgshapiro New compile flag HASSRANDOMDEV: set this if your OS has 118064562Sgshapiro srandomdev(3). 118164562Sgshapiro New compile flag HASSETLOGIN: set this if your OS has 118264562Sgshapiro setlogin(2). 118364562Sgshapiro Replace SINIX and ReliantUNIX support with version 118464562Sgshapiro specific SINIX files. From Gerald Rinske of 118564562Sgshapiro Siemens Business Services. 118664562Sgshapiro Use the 60-second load average instead of the 5 second load 118764562Sgshapiro average on Compaq Tru64 UNIX (formerly Digital 118864562Sgshapiro UNIX). From Chris Teakle of the University of Qld. 118964562Sgshapiro Use ANSI C by default for Compaq Tru64 UNIX. Suggested by 119064562Sgshapiro Randall Winchester of Swales Aerospace. 119164562Sgshapiro Correct setgroups() prototype for Compaq Tru64 UNIX. 119264562Sgshapiro Problem noted by Randall Winchester of Swales 119364562Sgshapiro Aerospace. 119464562Sgshapiro Hitachi 3050R/3050RX and 3500 Workstations running 119564562Sgshapiro HI-UX/WE2 4.02, 6.10 and 7.10 from Motonori 119664562Sgshapiro NAKAMURA of Kyoto University. 119764562Sgshapiro New compile flag NO_GETSERVBYNAME: set this to disable 119864562Sgshapiro use of getservbyname() on systems which can 119964562Sgshapiro not lookup a service by name over NIS, such as 120064562Sgshapiro HI-UX. Patch from Motonori NAKAMURA of Kyoto 120164562Sgshapiro University. 120264562Sgshapiro Use devtools/bin/install.sh on SCO 5.x. Problem noted 120364562Sgshapiro by Sun Wenbing of the China Engineering and 120464562Sgshapiro Technology Information Network. 120564562Sgshapiro make depend didn't work properly on UNIXWARE 4.2. Problem 120664562Sgshapiro noted by Ariel Malik of Netology, Ltd. 120764562Sgshapiro Use /usr/lbin as confEBINDIR for Compaq Tru64 (Digital UNIX). 120864562Sgshapiro Set confSTDIO_TYPE to torek for BSD-OS, FreeBSD, NetBSD, 120964562Sgshapiro and OpenBSD. 121064562Sgshapiro A recent Compaq Ultrix 4.5 Y2K patch has broken detection 121164562Sgshapiro of local_hostname_length(). See sendmail/README 121264562Sgshapiro for more details. Problem noted by Allan E 121364562Sgshapiro Johannesen of Worcester Polytechnic Institute. 121464562Sgshapiro CONFIG: Begin using /etc/mail/ for sendmail related files. This 121564562Sgshapiro affects a large number of files. See cf/README for more 121664562Sgshapiro details. 121764562Sgshapiro CONFIG: New macro MAIL_SETTINGS_DIR contains the path (including 121864562Sgshapiro trailing slash) for the mail settings directory. 121964562Sgshapiro CONFIG: Increment version number of config file to 9. 122064562Sgshapiro CONFIG: OSTYPE(`bsdi1.0') and OSTYPE(`bsdi2.0') have been 122164562Sgshapiro deprecated and may be removed from a future release. 122264562Sgshapiro BSD/OS users should begin using OSTYPE(`bsdi'). 122364562Sgshapiro CONFIG: OpenBSD 2.4 installs mail.local non-setuid root. This 122464562Sgshapiro requires a new OSTYPE(`openbsd'). From Todd C. Miller of 122564562Sgshapiro Courtesan Consulting. 122664562Sgshapiro CONFIG: New OSTYPE(`hpux11') for HP/UX 11.X. 122764562Sgshapiro CONFIG: A syntax error in check_mail would cause fake top-level 122864562Sgshapiro domains (.BITNET, .DECNET, .FAX, .USENET, and .UUCP) to 122964562Sgshapiro be improperly rejected as unresolvable. 123064562Sgshapiro CONFIG: New FEATURE(`dnsbl') takes up to two arguments (name of 123164562Sgshapiro DNS server, rejection message) and can be included 123264562Sgshapiro multiple times. 123364562Sgshapiro CONFIG: New FEATURE(`relay_mail_from') allows relaying if the 123464562Sgshapiro mail sender is listed as RELAY in the access map (and tagged 123564562Sgshapiro with From:). 123664562Sgshapiro CONFIG: Optional tagging of LHS in the access map (Connect:, 123764562Sgshapiro From:, To:) to enable finer control. 123864562Sgshapiro CONFIG: New FEATURE(`ldap_routing') implements LDAP address 123964562Sgshapiro routing. See cf/README for a complete description of the 124064562Sgshapiro new functionality. 124164562Sgshapiro CONFIG: New variables for the new sendmail options: 124264562Sgshapiro confAUTH_MECHANISMS AuthMechanisms 124364562Sgshapiro confAUTH_OPTIONS AuthOptions 124464562Sgshapiro confCLIENT_OPTIONS ClientPortOptions 124564562Sgshapiro confCONTROL_SOCKET_NAME ControlSocketName 124664562Sgshapiro confDEAD_LETTER_DROP DeadLetterDrop 124764562Sgshapiro confDEF_AUTH_INFO DefaultAuthInfo 124864562Sgshapiro confDF_BUFFER_SIZE DataFileBufferSize 124964562Sgshapiro confLDAP_DEFAULT_SPEC LDAPDefaultSpec 125064562Sgshapiro confMAX_ALIAS_RECURSION MaxAliasRecursion 125164562Sgshapiro confMAX_HEADERS_LENGTH MaxHeadersLength 125264562Sgshapiro confMAX_MIME_HEADER_LENGTH MaxMimeHeaderLength 125364562Sgshapiro confPID_FILE PidFile 125464562Sgshapiro confPROCESS_TITLE_PREFIX ProcessTitlePrefix 125564562Sgshapiro confRRT_IMPLIES_DSN RrtImpliesDsn 125664562Sgshapiro confTO_CONTROL Timeout.control 125764562Sgshapiro confTO_RESOLVER_RETRANS Timeout.resolver.retrans 125864562Sgshapiro confTO_RESOLVER_RETRANS_FIRST Timeout.resolver.retrans.first 125964562Sgshapiro confTO_RESOLVER_RETRANS_NORMAL Timeout.resolver.retrans.normal 126064562Sgshapiro confTO_RESOLVER_RETRY Timeout.resolver.retry 126164562Sgshapiro confTO_RESOLVER_RETRY_FIRST Timeout.resolver.retry.first 126264562Sgshapiro confTO_RESOLVER_RETRY_NORMAL Timeout.resolver.retry.normal 126364562Sgshapiro confTRUSTED_USER TrustedUser 126464562Sgshapiro confXF_BUFFER_SIZE XscriptFileBufferSize 126564562Sgshapiro CONFIG: confDAEMON_OPTIONS has been replaced by DAEMON_OPTIONS(), 126664562Sgshapiro which takes the options as argument and can be used 126764562Sgshapiro multiple times; see cf/README for details. 126864562Sgshapiro CONFIG: Add a fifth mailer definition to MAILER(`smtp') called 126964562Sgshapiro "dsmtp". This mail provides on-demand delivery using the 127064562Sgshapiro F=% mailer flag described above. The "dsmtp" mailer 127164562Sgshapiro definition uses the new DSMTP_MAILER_ARGS which defaults 127264562Sgshapiro to "IPC $h". 127364562Sgshapiro CONFIG: New variables LOCAL_MAILER_MAXMSGS, SMTP_MAILER_MAXMSGS, 127464562Sgshapiro and RELAY_MAILER_MAXMSGS for setting the m= equate for the 127564562Sgshapiro local, smtp, and relay mailers respectively. 127664562Sgshapiro CONFIG: New variable LOCAL_MAILER_DSN_DIAGNOSTIC_CODE for setting 127764562Sgshapiro the DSN Diagnostic-Code type for the local mailer. The 127864562Sgshapiro value should be changed with care. 127964562Sgshapiro CONFIG: FEATURE(`local_lmtp') now sets the DSN Diagnostic-Code type 128064562Sgshapiro for the local mailer to the proper value of "SMTP". 128164562Sgshapiro CONFIG: All included maps are no longer optional by default; if 128264562Sgshapiro there there is a problem with a map, sendmail will 128364562Sgshapiro complain. 128464562Sgshapiro CONFIG: Removed root from class E; use EXPOSED_USER(`root') 128564562Sgshapiro to get the old behavior. Suggested by Joe Pruett 128664562Sgshapiro of Q7 Enterprises. 128764562Sgshapiro CONFIG: MASQUERADE_EXCEPTION() defines hosts/subdomains which 128864562Sgshapiro will not be masqueraded. Proposed by Arne Wichmann 128964562Sgshapiro of MPI Saarbruecken, Griff Miller of PGS Tensor, 129064562Sgshapiro Jayme Cox of Broderbund Software Inc. 129164562Sgshapiro CONFIG: A list of exceptions for FEATURE(`nocanonify') can be 129264562Sgshapiro specified by CANONIFY_DOMAIN or CANONIFY_DOMAIN_FILE, 129364562Sgshapiro i.e., a list of domains which are passed to $[ ... $] 129464562Sgshapiro for canonification. Based on an idea from Neil Rickert 129564562Sgshapiro of Northern Illinois University. 129664562Sgshapiro CONFIG: If `canonify_hosts' is specified as parameter for 129764562Sgshapiro FEATURE(`nocanonify') then addresses which have only 129864562Sgshapiro a hostname, e.g., <user@host>, will be canonified. 129964562Sgshapiro CONFIG: If FEATURE(`nocanonify') is turned on, a trailing dot is 130064562Sgshapiro nevertheless added to addresses with more than one component 130164562Sgshapiro in it. 130264562Sgshapiro CONFIG: Canonification is no longer attempted for any host or domain 130364562Sgshapiro in class 'P' ($=P). 130464562Sgshapiro CONFIG: New class for matching virtusertable entries $={VirtHost} that 130564562Sgshapiro can be populated by VIRTUSER_DOMAIN or VIRTUSER_DOMAIN_FILE. 130664562Sgshapiro FEATURE(`virtuser_entire_domain') can be used to apply this 130764562Sgshapiro class also to entire subdomains. Hosts in this class are 130864562Sgshapiro treated as canonical in SCanonify2, i.e., a trailing dot 130964562Sgshapiro is added. 131064562Sgshapiro CONFIG: If VIRTUSER_DOMAIN() or VIRTUSER_DOMAIN_FILE() are used, 131164562Sgshapiro include $={VirtHost} in $=R (hosts allowed to relay). 131264562Sgshapiro CONFIG: FEATURE(`generics_entire_domain') can be used to apply the 131364562Sgshapiro genericstable also to subdomains of $=G. 131464562Sgshapiro CONFIG: Pass "+detail" as %2 for virtusertable lookups. 131564562Sgshapiro Patch from Noam Freedman from University of Chicago. 131664562Sgshapiro CONFIG: Pass "+detail" as %1 for genericstable lookups. Suggested 131764562Sgshapiro by Raymond S Brand of rsbx.net. 131864562Sgshapiro CONFIG: Allow @domain in genericstable to override masquerading. 131964562Sgshapiro Suggested by Owen Duffy from Owen Duffy & Associates. 132064562Sgshapiro CONFIG: LOCAL_DOMAIN() adds entries to class w. Suggested by Steve 132164562Sgshapiro Hubert of University of Washington. 132264562Sgshapiro CONFIG: OSTYPE(`gnuhurd') has been replaced by OSTYPE(`gnu') as 132364562Sgshapiro GNU is now the canonical system name. From Mark 132464562Sgshapiro Kettenis of the University of Amsterdam. 132564562Sgshapiro CONFIG: OSTYPE(`unixware7') updates from Larry Rosenman. 132664562Sgshapiro CONFIG: Do not include '=' in option expansion if there is no value 132764562Sgshapiro associated with the option. From Andrew Brown of 132864562Sgshapiro Graffiti World Wide, Inc. 132964562Sgshapiro CONFIG: Add MAILER(`qpage') to define a new pager mailer. Contributed 133064562Sgshapiro by Philip A. Prindeville of Enteka Enterprise Technology 133164562Sgshapiro Services. 133264562Sgshapiro CONFIG: MAILER(`cyrus') was not preserving case for mail folder 133364562Sgshapiro names. Problem noted by Randall Winchester of Swales 133464562Sgshapiro Aerospace. 133564562Sgshapiro CONFIG: RELAY_MAILER_FLAGS can be used to define additional flags 133664562Sgshapiro for the relay mailer. Suggested by Doug Hughes of Auburn 133764562Sgshapiro University and Brian Candler. 133864562Sgshapiro CONFIG: LOCAL_MAILER_FLAGS now includes 'P' (Add Return-Path: 133964562Sgshapiro header) by default. Suggested by Per Hedeland of Ericsson. 134064562Sgshapiro CONFIG: Use SMART_HOST for bracketed addresses, e.g., user@[host]. 134164562Sgshapiro Suggested by Kari Hurtta of the Finnish Meteorological 134264562Sgshapiro Institute. 134364562Sgshapiro CONFIG: New macro MODIFY_MAILER_FLAGS to tweak *_MAILER_FLAGS; 134464562Sgshapiro i.e., to set, add, or delete flags. 134564562Sgshapiro CONFIG: If SMTP AUTH is used then relaying is allowed for any user 134664562Sgshapiro who authenticated via a "trusted" mechanism, i.e., one that 134764562Sgshapiro is defined via TRUST_AUTH_MECH(`list of mechanisms'). 134864562Sgshapiro CONFIG: FEATURE(`delay_checks') delays check_mail and check_relay 134964562Sgshapiro after check_rcpt and allows for exceptions from the checks. 135064562Sgshapiro CONFIG: Map declarations have been moved into their associated 135164562Sgshapiro feature files to allow greater flexibility in use of 135264562Sgshapiro sequence maps. Suggested by Per Hedeland of Ericsson. 135364562Sgshapiro CONFIG: New macro LOCAL_MAILER_EOL to override the default end of 135464562Sgshapiro line string for the local mailer. Requested by Il Oh of 135564562Sgshapiro Willamette Industries, Inc. 135664562Sgshapiro CONFIG: Route addresses are stripped, i.e., <@a,@b,@c:user@d> is 135764562Sgshapiro converted to <user@d> 135864562Sgshapiro CONFIG: Reject bogus return address of <@@hostname>, generated by 135964562Sgshapiro Sun's older, broken configuration files. 136064562Sgshapiro CONFIG: FEATURE(`nullclient') now provides the full rulesets of a 136164562Sgshapiro normal configuration, allowing anti-spam checks to be 136264562Sgshapiro performed. 136364562Sgshapiro CONFIG: Don't return a permanent error (Relaying denied) if 136464562Sgshapiro ${client_name} can't be resolved just temporarily. 136564562Sgshapiro Suggested by Kari Hurtta of the Finnish Meteorological 136664562Sgshapiro Institute. 136764562Sgshapiro CONFIG: Change numbered rulesets into named (which still can 136864562Sgshapiro be accessed by their numbers). 136964562Sgshapiro CONFIG: FEATURE(`nouucp') takes one parameter: reject or nospecial 137064562Sgshapiro which describes whether to disallow "!" in the local part 137164562Sgshapiro of an address. 137264562Sgshapiro CONFIG: Call Local_localaddr from localaddr (S5) which can be used 137364562Sgshapiro to rewrite an address from a mailer which has the F=5 flag 137464562Sgshapiro set. If the ruleset returns a mailer, the appropriate 137564562Sgshapiro action is taken, otherwise the returned tokens are ignored. 137664562Sgshapiro CONFIG: cf/ostype/solaris.m4 has been renamed to solaris2.pre5.m4 137764562Sgshapiro and cf/ostype/solaris2.m4 is now a copy of solaris2.ml.m4. 137864562Sgshapiro The latter is kept around for backward compatibility. 137964562Sgshapiro CONFIG: Allow ":D.S.N:" for mailer/virtusertable "error:" entries, 138064562Sgshapiro where "D.S.N" is an RFC 1893 compliant error code. 138164562Sgshapiro CONFIG: Use /usr/lbin as confEBINDIR for Compaq Tru64 (Digital UNIX). 138264562Sgshapiro CONFIG: Remove second space between username and date in UNIX From_ 138364562Sgshapiro line. Noted by Allan E Johannesen of Worcester Polytechnic 138464562Sgshapiro Institute. 138564562Sgshapiro CONFIG: Make sure all of the mailers have complete T= equates. 138664562Sgshapiro CONFIG: Extend FEATURE(`local_procmail') so it can now take 138764562Sgshapiro arguments overriding the mailer program, arguments, and 138864562Sgshapiro mailer definition flags. This makes it possible to use 138964562Sgshapiro other programs such as maildrop for local delivery. 139064562Sgshapiro CONFIG: Emit warning if FEATURE(`local_lmtp') or 139164562Sgshapiro FEATURE(`local_procmail') is given after MAILER(`local'). 139264562Sgshapiro Patch from Richard A. Nelson of IBM. 139364562Sgshapiro CONFIG: Add SMTP Authentication information to Received: header 139464562Sgshapiro default value (confRECEIVED_HEADER). 139564562Sgshapiro CONFIG: Remove `l' flag from USENET_MAILER_FLAGS as it is not a 139664562Sgshapiro local mailer. Problem noted by Per Hedeland of Ericsson. 139764562Sgshapiro CONTRIB: Added bounce-resender.pl from Brian R. Gaeke of the 139864562Sgshapiro University of California at Berkeley. 139964562Sgshapiro CONTRIB: Added domainmap.m4 from Mark D. Roth of the University of 140064562Sgshapiro Illinois at Urbana-Champaign. 140164562Sgshapiro CONTRIB: etrn.pl now recognizes bogus host names. Patch from 140264562Sgshapiro Bruce Barnett of GE's R&D Lab. 140364562Sgshapiro CONTRIB: Patches for re-mqueue.pl by Graeme Hewson of Oracle 140464562Sgshapiro Corporation UK. 140564562Sgshapiro CONTRIB: Added qtool.pl to assist in managing the queues. 140664562Sgshapiro DEVTOOLS: Prevent user environment variables from interfering with 140764562Sgshapiro the Build scripts. Problem noted by Ezequiel H. Panepucci of 140864562Sgshapiro Yale University. 140964562Sgshapiro DEVTOOLS: 'Build -M' will display the obj.* directory which will 141064562Sgshapiro be used for building. 141164562Sgshapiro DEVTOOLS: 'Build -A' will display the architecture that would be 141264562Sgshapiro used for a fresh build. 141364562Sgshapiro DEVTOOLS: New variable confRANLIB, set automatically by configure.sh. 141464562Sgshapiro DEVTOOLS: New variable confRANLIBOPTS for the options to send to 141564562Sgshapiro ranlib. 141664562Sgshapiro DEVTOOLS: 'Build -O <path>' will have the object files build in 141764562Sgshapiro <path>/obj.*. Suggested by Bryan Costales of Exactis. 141864562Sgshapiro DEVTOOLS: New variable confNO_MAN_BUILD which will prevent the 141964562Sgshapiro building of the man pages when defined. Suggested by Bryan 142064562Sgshapiro Costales. 142164562Sgshapiro DEVTOOLS: New variables confNO_HELPFILE_INSTALL and 142264562Sgshapiro confNO_STATISTICS_INSTALL which will prevent the 142364562Sgshapiro installation of the sendmail helpfile and statistics file 142464562Sgshapiro respectively. Suggested by Bryan Costales. 142564562Sgshapiro DEVTOOLS: Recognize ReliantUNIX as SINIX. Patch from Gerald Rinske 142664562Sgshapiro of Siemens Business Services. 142764562Sgshapiro DEVTOOLS: New variable confSTDIO_TYPE which defines the type of 142864562Sgshapiro stdio library. The new buffered file I/O depends on the 142964562Sgshapiro Torek stdio library. This option can be either portable or 143064562Sgshapiro torek. 143164562Sgshapiro DEVTOOLS: New variables confSRCADD and confSMSRCADD which 143264562Sgshapiro correspond to confOBJADD and confSMOBJADD respectively. 143364562Sgshapiro They should contain the C source files for the object files 143464562Sgshapiro listed in confOBJADD and confSMOBJADD. These file names 143564562Sgshapiro will be passed to the 'make depend' stage of compilation. 143664562Sgshapiro DEVTOOLS: New program specific variables for each of the programs 143764562Sgshapiro in the sendmail distribution. Each has the form 143864562Sgshapiro `conf_prog_ENVDEF', for example, `conf_sendmail_ENVDEF'. 143964562Sgshapiro The new variables are conf_prog_ENVDEF, conf_prog_LIBS, 144064562Sgshapiro conf_prog_SRCADD, and conf_prog_OBJADD. 144164562Sgshapiro DEVTOOLS: Build system redesign. This should have little affect on 144264562Sgshapiro building the distribution, but documentation on the changes 144364562Sgshapiro are in devtools/README. 144464562Sgshapiro DEVTOOLS: Don't allow 'Build -f file' if an object directory already 144564562Sgshapiro exists. Suggested by Valdis Kletnieks of Virginia Tech. 144664562Sgshapiro DEVTOOLS: Rename confSRCDIR to confSMSRCDIR since it only identifies 144764562Sgshapiro the path to the sendmail source directory. confSRCDIR is a 144864562Sgshapiro new variable which identifies the root of the source 144964562Sgshapiro directories for all of the programs in the distribution. 145064562Sgshapiro DEVTOOLS: confSRCDIR and confSMSRCDIR are now determined at Build 145164562Sgshapiro time. They can both still be overridden by setting the m4 145264562Sgshapiro macro. 145364562Sgshapiro DEVTOOLS: confSBINGRP now defaults to bin instead of kmem. 145464562Sgshapiro DEVTOOLS: 'Build -Q prefix' uses devtools/Site/prefix.*.m4 for 145564562Sgshapiro build configurations, and places objects in obj.prefix.*/. 145664562Sgshapiro Complains as 'Build -f file' does for existing object 145764562Sgshapiro directories. Suggested by Tom Smith of Digital Equipment 145864562Sgshapiro Corporation. 145964562Sgshapiro DEVTOOLS: Setting confINSTALL_RAWMAN will install unformatted 146064562Sgshapiro manual pages in the directory tree specified by 146164562Sgshapiro confMANROOTMAN. 146264562Sgshapiro DEVTOOLS: If formatting the manual pages fails, copy in the 146364562Sgshapiro preformatted pages from the distribution. The new variable 146464562Sgshapiro confCOPY specifies the copying program. 146564562Sgshapiro DEVTOOLS: Defining confFORCE_RMAIL will install rmail without 146664562Sgshapiro question. Suggested by Terry Lambert of Whistle 146764562Sgshapiro Communications. 146864562Sgshapiro DEVTOOLS: confSTFILE and confHFFILE can be used to change the names 146964562Sgshapiro of the installed statistics and help files, respectively. 147064562Sgshapiro DEVTOOLS: Remove spaces in `uname -r` output when determining 147164562Sgshapiro operating system identity. Problem noted by Erik 147264562Sgshapiro Wachtenheim of Dartmouth College. 147364562Sgshapiro DEVTOOLS: New variable confLIBSEARCHPATH to specify the paths that 147464562Sgshapiro will be search for the libraries specified in confLIBSEARCH. 147564562Sgshapiro Defaults to "/lib /usr/lib /usr/shlib". 147664562Sgshapiro DEVTOOLS: New variables confSTRIP and confSTRIPOPTS for specifying 147764562Sgshapiro how to strip binaries. These are used by the new 147864562Sgshapiro install-strip target. 147964562Sgshapiro DEVTOOLS: New config file site.post.m4 which is included after 148064562Sgshapiro the others (if it exists). 148164562Sgshapiro DEVTOOLS: Change order of LIBS: first product specific libraries 148264562Sgshapiro then the default ones. 148364562Sgshapiro MAIL.LOCAL: Will not be installed setuid root. To use mail.local 148464562Sgshapiro as local delivery agent without LMTP mode, use 148564562Sgshapiro MODIFY_MAILER_FLAGS(`LOCAL', `+S') 148664562Sgshapiro to set the S flag. 148764562Sgshapiro MAIL.LOCAL: Do not reject addresses which would otherwise be 148864562Sgshapiro accepted by sendmail. Suggested by Neil Rickert of 148964562Sgshapiro Northern Illinois University. 149064562Sgshapiro MAIL.LOCAL: New -7 option which causes LMTP mode not to advertise 149164562Sgshapiro 8BITMIME in the LHLO response. Suggested by Kari Hurtta of 149264562Sgshapiro the Finnish Meteorological Institute. 149364562Sgshapiro MAIL.LOCAL: Add support for the maillock() routines by defining 149464562Sgshapiro MAILLOCK when compiling. Also requires linking with 149564562Sgshapiro -lmail. Patch from Neil Rickert of Northern Illinois 149664562Sgshapiro University. 149764562Sgshapiro MAIL.LOCAL: Create a Content-Length: header if CONTENTLENGTH is 149864562Sgshapiro defined when compiling. Automatically set for Solaris 2.3 149964562Sgshapiro and later. Patch from Neil Rickert of Northern Illinois 150064562Sgshapiro University. 150164562Sgshapiro MAIL.LOCAL: Move the initialization of the 'notifybiff' address 150264562Sgshapiro structure to the beginning of the program. This ensures that 150364562Sgshapiro the getservbyname() is done before any seteuid to a possibly 150464562Sgshapiro unauthenticated user. If you are using NIS+ and secure RPC 150564562Sgshapiro on a Solaris system, this avoids syslog messages such as, 150664562Sgshapiro "authdes_refresh: keyserv(1m) is unable to encrypt session 150764562Sgshapiro key." Patch from Neil Rickert of Northern Illinois 150864562Sgshapiro University. 150964562Sgshapiro MAIL.LOCAL: Support group writable mail spool files when MAILGID is 151064562Sgshapiro set to the gid to use (-DMAILGID=6) when compiling. 151164562Sgshapiro Patch from Neil Rickert of Northern Illinois University. 151264562Sgshapiro MAIL.LOCAL: When a mail message included lines longer than 2046 151364562Sgshapiro characters (in LMTP mode), mail.local split the incoming 151464562Sgshapiro line up into 2046-character output lines (excluding the 151564562Sgshapiro newline). If an input line was 2047 characters long 151664562Sgshapiro (excluding CR-LF) and the last character was a '.', 151764562Sgshapiro mail.local saw it as the end of input, transfered it to the 151864562Sgshapiro user mailbox and tried to write an `ok' back to sendmail. 151964562Sgshapiro If the message was much longer, both sendmail and 152064562Sgshapiro mail.local would deadlock waiting for each other to read 152164562Sgshapiro what they have written. Problem noted by Peter Jeremy of 152264562Sgshapiro Alcatel Australia Limited. 152364562Sgshapiro MAIL.LOCAL: New option -b to return a permanent error instead of a 152464562Sgshapiro temporary error if a mailbox exceeds quota. Suggested by 152564562Sgshapiro Neil Rickert of Northern Illinois University. 152664562Sgshapiro MAIL.LOCAL: The creation of a lockfile is subject to a global 152764562Sgshapiro timeout to avoid starvation. 152864562Sgshapiro MAIL.LOCAL: Properly parse addresses with multiple quoted 152964562Sgshapiro local-parts. Problem noted by Ronald F. Guilmette of 153064562Sgshapiro Infinite Monkeys & Co. 153164562Sgshapiro MAIL.LOCAL: NCR MP/RAS 3.X portability from Tom J. Moore of NCR. 153264562Sgshapiro MAILSTATS: New -p option to invoke program mode in which stats are 153364562Sgshapiro printed in a machine readable fashion and the stats file 153464562Sgshapiro is reset. Patch from Kevin Hildebrand of the University 153564562Sgshapiro of Maryland. 153664562Sgshapiro MAKEMAP: If running as root, automatically change the ownership of 153764562Sgshapiro generated maps to the TrustedUser as specified in the 153864562Sgshapiro sendmail configuration file. 153964562Sgshapiro MAKEMAP: New -C option to accept an alternate sendmail 154064562Sgshapiro configuration file to use for finding the TrustedUser 154164562Sgshapiro option. 154264562Sgshapiro MAKEMAP: New -u option to dump (unmap) a database. Based on 154364562Sgshapiro code contributed by Roy Mongiovi of Georgia Tech. 154464562Sgshapiro MAKEMAP: New -e option to allow empty values. Suggested by Philip 154564562Sgshapiro A. Prindeville of Enteka Enterprise Technology Services. 154664562Sgshapiro MAKEMAP: Compile cleanly on 64-bit operating systems. Problem 154764562Sgshapiro noted by Gerald Rinske of Siemens Business Services. 154864562Sgshapiro OP.ME: Correctly document interaction between F=S and U= mailer 154964562Sgshapiro equates. Problem noted by Bob Halley of Internet Engines. 155064562Sgshapiro OP.ME: Fixup Timeout documentation. From Graeme Hewson of Oracle 155164562Sgshapiro Corporation UK. 155264562Sgshapiro OP.ME: The Timeout [r] option was incorrectly listed as "safe" 155364562Sgshapiro (e.g., sendmail would not drop root privileges if the 155464562Sgshapiro option was specified on the command line). Problem noted 155564562Sgshapiro by Todd C. Miller of Courtesan Consulting. 155664562Sgshapiro PRALIASES: Handle the hash and btree map specifications for 155764562Sgshapiro Berkeley DB. Patch from Brian J. Coan of the 155864562Sgshapiro Institute for Global Communications. 155964562Sgshapiro PRALIASES: Read the sendmail.cf file for the location(s) of the 156064562Sgshapiro alias file(s) if the -f option is not used. Patch from 156164562Sgshapiro John Beck of Sun Microsystems. 156264562Sgshapiro PRALIASES: New -C option to specify an alternate sendmail 156364562Sgshapiro configuration file to use for finding alias file(s). Patch 156464562Sgshapiro from John Beck of Sun Microsystems. 156564562Sgshapiro SMRSH: allow shell commands echo, exec, and exit. Allow command 156664562Sgshapiro lists using || and &&. Based on patch from Brian J. Coan 156764562Sgshapiro of the Institute for Global Communications. 156864562Sgshapiro SMRSH: Update README for the new Build system. From Tim Pierce 156964562Sgshapiro of RootsWeb Genealogical Data Cooperative. 157064562Sgshapiro VACATION: Added vacation auto-responder to sendmail distribution. 157164562Sgshapiro LIBSMDB: Added abstracted database library. Works with Berkeley 157264562Sgshapiro DB 1.85, Berkeley DB 2.X, Berkeley DB 3.X, and NDBM. 157364562Sgshapiro Changed Files: 157464562Sgshapiro The Build script in the various program subdirectories are 157564562Sgshapiro no longer symbolic links. They are now scripts 157664562Sgshapiro which execute the actual Build script in 157764562Sgshapiro devtools/bin. 157864562Sgshapiro All the manual pages are now written against -man and not 157964562Sgshapiro -mandoc as they were previously. 158064562Sgshapiro Add a simple Makefile to every directory so make instead 158164562Sgshapiro of Build will work (unless parameters are 158264562Sgshapiro required for Build). 158364562Sgshapiro New Directories: 158464562Sgshapiro devtools/M4/UNIX 158564562Sgshapiro include 158664562Sgshapiro libmilter 158764562Sgshapiro libsmdb 158864562Sgshapiro libsmutil 158964562Sgshapiro vacation 159064562Sgshapiro Renamed Directories: 159164562Sgshapiro BuildTools => devtools 159264562Sgshapiro src => sendmail 159364562Sgshapiro Deleted Files: 159464562Sgshapiro cf/m4/nullrelay.m4 159564562Sgshapiro devtools/OS/Linux.ppc 159664562Sgshapiro devtools/OS/ReliantUNIX 159764562Sgshapiro devtools/OS/SINIX 159864562Sgshapiro sendmail/ldap_map.h 159964562Sgshapiro New Files: 160064562Sgshapiro INSTALL 160164562Sgshapiro PGPKEYS 160264562Sgshapiro cf/cf/generic-linux.cf 160364562Sgshapiro cf/cf/generic-linux.mc 160464562Sgshapiro cf/feature/delay_checks.m4 160564562Sgshapiro cf/feature/dnsbl.m4 160664562Sgshapiro cf/feature/generics_entire_domain.m4 160764562Sgshapiro cf/feature/no_default_msa.m4 160864562Sgshapiro cf/feature/relay_mail_from.m4 160964562Sgshapiro cf/feature/virtuser_entire_domain.m4 161064562Sgshapiro cf/mailer/qpage.m4 161164562Sgshapiro cf/ostype/bsdi.m4 161264562Sgshapiro cf/ostype/hpux11.m4 161364562Sgshapiro cf/ostype/openbsd.m4 161464562Sgshapiro contrib/bounce-resender.pl 161564562Sgshapiro contrib/domainmap.m4 161664562Sgshapiro contrib/qtool.8 161764562Sgshapiro contrib/qtool.pl 161864562Sgshapiro devtools/M4/depend/AIX.m4 161964562Sgshapiro devtools/M4/list.m4 162064562Sgshapiro devtools/M4/string.m4 162164562Sgshapiro devtools/M4/subst_ext.m4 162264562Sgshapiro devtools/M4/switch.m4 162364562Sgshapiro devtools/OS/Darwin 162464562Sgshapiro devtools/OS/GNU 162564562Sgshapiro devtools/OS/SINIX.5.43 162664562Sgshapiro devtools/OS/SINIX.5.44 162764562Sgshapiro devtools/OS/m88k 162864562Sgshapiro devtools/bin/find_in_path.sh 162964562Sgshapiro mail.local/Makefile 163064562Sgshapiro mailstats/Makefile 163164562Sgshapiro makemap/Makefile 163264562Sgshapiro praliases/Makefile 163364562Sgshapiro rmail/Makefile 163464562Sgshapiro sendmail/Makefile 163564562Sgshapiro sendmail/bf.h 163664562Sgshapiro sendmail/bf_portable.c 163764562Sgshapiro sendmail/bf_portable.h 163864562Sgshapiro sendmail/bf_torek.c 163964562Sgshapiro sendmail/bf_torek.h 164064562Sgshapiro sendmail/shmticklib.c 164164562Sgshapiro sendmail/statusd_shm.h 164264562Sgshapiro sendmail/timers.c 164364562Sgshapiro sendmail/timers.h 164464562Sgshapiro smrsh/Makefile 164564562Sgshapiro vacation/Makefile 164664562Sgshapiro Renamed Files: 164764562Sgshapiro cf/ostype/gnuhurd.m4 => cf/ostype/gnu.m4 164864562Sgshapiro sendmail/cdefs.h => include/sendmail/cdefs.h 164964562Sgshapiro sendmail/sendmail.hf => sendmail/helpfile 165064562Sgshapiro sendmail/mailstats.h => include/sendmail/mailstats.h 165164562Sgshapiro sendmail/pathnames.h => include/sendmail/pathnames.h 165264562Sgshapiro sendmail/safefile.c => libsmutil/safefile.c 165364562Sgshapiro sendmail/snprintf.c => libsmutil/snprintf.c 165464562Sgshapiro sendmail/useful.h => include/sendmail/useful.h 165564562Sgshapiro cf/ostype/solaris2.m4 => cf/ostype/solaris2.pre5.m4 165664562Sgshapiro Copied Files: 165764562Sgshapiro cf/ostype/solaris2.ml.m4 => cf/ostype/solaris2.m4 165864562Sgshapiro 165964562Sgshapiro8.9.3/8.9.3 1999/02/04 166043730Speter SECURITY: Limit message headers to a maximum of 32K bytes (total 166143730Speter of all headers in a single message) to prevent a denial of 166243730Speter service attack. This limit will be configurable in 8.10. 166343730Speter Problem noted by Michal Zalewski of the "Internet for 166443730Speter Schools" project (IdS). 166543730Speter Prevent segmentation fault on an LDAP lookup if the LDAP map 166643730Speter was closed due to an earlier failure. Problem noted by 166743730Speter Jeff Wasilko of smoe.org. Fix from Booker Bense of 166843730Speter Stanford University and Per Hedeland of Ericsson. 166943730Speter Preserve the order of the MIME headers in multipart messages 167043730Speter when performing the MIME header length check. This 167143730Speter will allow PGP signatures to function properly. Problem 167243730Speter noted by Lars Hecking of University College, Cork, Ireland. 167343730Speter If ruleset 5 rewrote the local address to an :include: directive, 167443730Speter the delivery would fail with an "aliasing/forwarding loop 167543730Speter broken" error. Problem noted by Eric C Hagberg of Morgan 167643730Speter Stanley. Fix from Per Hedeland of Ericsson. 167743730Speter Allow -T to work for bestmx maps. Fix from Aaron Schrab of 167843730Speter ExecPC Internet Systems. 167943730Speter During the transfer of a message in an SMTP transaction, if a 168043730Speter TCP timeout occurs, the message would be properly queued 168143730Speter for later retry but the failure would be logged as 168243730Speter "Illegal Seek" instead of a timeout. Problem noted by 168343730Speter Piotr Kucharski of the Warsaw School of Economics (SGH) 168443730Speter and Carles Xavier Munyoz Baldo of CTV Internet. 168543730Speter Prevent multiple deliveries on a self-referencing alias if the 168643730Speter F=w mailer flag is not set. Problem noted by Murray S. 168743730Speter Kucherawy of Concentric Network Corporation and Per 168843730Speter Hedeland of Ericsson. 168943730Speter Do not strip empty headers but if there is no value and a 169043730Speter default is defined in sendmail.cf, use the default. 169143730Speter Problem noted by Philip Guenther of Gustavus Adolphus 169243730Speter College and Christopher McCrory of Netus, Inc. 169343730Speter Don't inherit information about the sender (notably the full name) 169443730Speter in SMTP (-bs) mode, since this might be called from inetd. 169543730Speter Accept any 3xx reply code in response to DATA command instead of 169643730Speter requiring 354. This change will match the wording to be 169743730Speter published in the updated SMTP specification from the DRUMS 169843730Speter group of the IETF. 169943730Speter Portability: 170064562Sgshapiro AIX 4.2.0 or 4.2.1 may become updated by the fileset 170164562Sgshapiro bos.rte.net level 4.2.0.2. This introduces the 170264562Sgshapiro softlink /usr/lib/libbind.a which should 170343730Speter not be used. It conflicts with the resolver 170443730Speter built into libc.a. "bind" has been removed 170543730Speter from the confLIBSEARCH BuildTools variable. 170643730Speter Users who have installed BIND 8.X will have 170743730Speter to add it back in their site.config.m4 file. 170843730Speter Problem noted by Ole Holm Nielsen of the 170943730Speter Technical University of Denmark. 171043730Speter CRAY TS 10.0.x from Sven Nielsen of San Diego 171143730Speter Supercomputer Center. 171243730Speter Improved LDAP version 3 integration based on input 171343730Speter from Kurt D. Zeilenga of the OpenLDAP Foundation, 171443730Speter John Beck of Sun Microsystems, and Booker Bense 171543730Speter of Stanford University. 171643730Speter Linux doesn't have a standard way to get the timezone 171743730Speter between different releases. Back out the 171843730Speter change in 8.9.2 and don't attempt to derive 171943730Speter a timezone. Problem reported by Igor S. Livshits 172043730Speter of the University of Illinois at Urbana-Champaign 172143730Speter and Michael Dickens of Tetranet Communications. 172243730Speter Reliant UNIX, the new name for SINIX, from Gert-Jan Looy 172343730Speter of Siemens/SNI. 172443730Speter SunOS 5.8 from John Beck of Sun Microsystems. 172543730Speter CONFIG: SCO UnixWare 2.1 and 7.0 need TZ to get the proper 172643730Speter timezone. Problem noted by Petr Lampa of Technical 172743730Speter University of Brno. 172843730Speter CONFIG: Handle <@bestmx-host:user@otherhost> addressing properly 172943730Speter when using FEATURE(bestmx_is_local). Patch from Neil W. 173043730Speter Rickert of Northern Illinois University. 173143730Speter CONFIG: Properly handle source routed and %-hack addresses on 173243730Speter hosts which the mailertable remaps to local:. Patch from 173343730Speter Neil W. Rickert of Northern Illinois University. 173443730Speter CONFIG: Internal fixup of mailertable local: map value. Patch from 173543730Speter Larry Parmelee of Cornell University. 173643730Speter CONFIG: Only add back +detail from host portion of mailer triplet 173743730Speter on local mailer triplets if it was originally +detail. 173843730Speter Patch from Neil W. Rickert of Northern Illinois University. 173943730Speter CONFIG: The bestmx_is_local checking done in check_rcpt would 174043730Speter cause later checks to fail. Patch from Paul J Murphy of 174143730Speter MIDS Europe. 174264562Sgshapiro New Files: 174343730Speter BuildTools/OS/CRAYTS.10.0.x 174443730Speter BuildTools/OS/ReliantUNIX 174543730Speter BuildTools/OS/SunOS.5.8 174643730Speter 174764562Sgshapiro8.9.2/8.9.2 1998/12/30 174842575Speter SECURITY: Remove five second sleep on accepting daemon connections 174942575Speter due to an accept() failure. This sleep could be used 175042575Speter for a denial of service attack. 175142575Speter Do not silently ignore queue files with names which are too long. 175242575Speter Patch from Bryan Costales of InfoBeat, Inc. 175342575Speter Do not store failures closing an SMTP session in persistent 175442575Speter host status. Reported by Graeme Hewson of Oracle 175542575Speter Corporation UK. 175642575Speter Allow symbolic link forward files if they are in safe directories. 175742575Speter Problem noted by Andreas Schott of the Max Planck Society. 175842575Speter Missing columns in a text map could cause a segmentation fault. 175942575Speter Fix from David Lee of the University of Durham. 176043730Speter Note that for 8.9.X, PrivacyOptions=goaway also includes the 176142575Speter noetrn flag. This is scheduled to change in a future 176242575Speter version of sendmail. Problem noted by Theo Van Dinter of 176342575Speter Chrysalis Symbolic Designa and Alan Brown of Manawatu 176442575Speter Internet Services. 176542575Speter When trying to do host canonification in a Wildcard MX 176642575Speter environment, try an MX lookup of the hostname without the 176742575Speter default domain appended. Problem noted by Olaf Seibert of 176842575Speter Polderland Language & Speech Technology. 176942575Speter Reject SMTP RCPT To: commands with only comments (i.e. 177042575Speter 'RCPT TO: (comment)'. Problem noted by Earle Ake of 177142575Speter Hassler Communication Systems Technology, Inc. 177242575Speter Handle any number of %s in the LDAP filter spec. Patch from 177342575Speter Per Hedeland of Ericsson. 177442575Speter Clear ldapx open timeouts even if the map open failed to prevent 177542575Speter a segmentation fault. Patch from Wayne Knowles of the 177642575Speter National Institute of Water & Atmospheric Research Ltd. 177742575Speter Do not syslog envelope clone messages when using address 177842575Speter verification (-bv). Problem noted by Kari Hurtta of the 177942575Speter Finnish Meteorological Institute. 178042575Speter Continue to perform queue runs while in daemon mode even if the 178142575Speter daemon is rejecting connections due to a disk full 178242575Speter condition. Problem noted by JR Oldroyd of TerraNet 178342575Speter Internet Services. 178442575Speter Include full filename on installation of the sendmail.hf file 178542575Speter in case the $HFDIR directory does not exist. Problem 178642575Speter noted by Josef Svitak of Montana State University. 178742575Speter Close all maps when exiting the process with one exception. 178864562Sgshapiro Berkeley DB can use internal shared memory locking for 178964562Sgshapiro its memory pool. Closing a map opened by another process 179064562Sgshapiro will interfere with the shared memory and locks of the 179164562Sgshapiro parent process leaving things in a bad state. For 179242575Speter Berkeley DB, only close the map if the current process 179342575Speter is also the one that opened the map, otherwise only close 179442575Speter the map file descriptor. Thanks to Yoseff Francus of 179542575Speter Collective Technologies for volunteering his system for 179642575Speter extended testing. 179742575Speter Avoid null pointer dereference on XDEBUG output for SMTP reply 179842575Speter failures. Problem noted by Carlos Canau of EUnet Portugal. 179942575Speter On mailq and hoststat listings being piped to another program, such 180064562Sgshapiro as more, if the pipe closes (i.e., the user quits more), 180142575Speter stop sending output and exit. Patch from Allan E Johannesen 180242575Speter of Worcester Polytechnic Institute. 180342575Speter In accordance with the documentation, LDAP map lookup failures 180442575Speter are now considered temporary failures instead of permanent 180542575Speter failures unless the -t flag is used in the map definition. 180642575Speter Problem noted by Booker Bense of Stanford University and 180742575Speter Eric C. Hagberg of Morgan Stanley. 180842575Speter Fix by one error reporting on long alias names. Problem noted by 180942575Speter H. Paul Hammann of the Missouri Research and Education 181042575Speter Network. 181142575Speter Fix DontBlameSendmail=IncludeFileInUnsafeDirPath behavior. Problem 181242575Speter noted by Barry S. Finkel of Argonne National Laboratory. 181342575Speter When automatically converting from 8 bit to quoted printable MIME, 181442575Speter be careful not to miss a multi-part boundary if that 181542575Speter boundary is preceded by a boundary-like line. Problem 181642575Speter noted by Andreas Raschle of Ansid Inc. Fix from 181742575Speter Kari Hurtta of the Finnish Meteorological Institute. 181842575Speter Avoid bogus reporting of "LMTP tobuf overflow" when the buffer 181942575Speter has enough space for the additional address. Problem 182042575Speter noted by Steve Cliffe of the University of Wollongong. 182143730Speter Fix DontBlameSendmail=FileDeliveryToSymlink behavior. Problem 182242575Speter noted by Alex Vorobiev of Swarthmore College. 182342575Speter If the check_compat ruleset resolves to the $#discard mailer, 182442575Speter discard the current recipient. Unlike check_relay, 182542575Speter check_mail, and check_rcpt, the entire envelope is not 182642575Speter discarded. Problem noted by RZ D. Rahlfs. Fix from 182742575Speter Claus Assmann of Christian-Albrechts-University of Kiel. 182843730Speter Avoid segmentation fault when reading ServiceSwitchFile files with 182942575Speter bogus formatting. Patch from Kari Hurtta of the Finnish 183042575Speter Meteorological Institute. 183142575Speter Support Berkeley DB 2.6.4 API change. 183242575Speter OP.ME: Pages weren't properly output on duplexed printers. Fix 183342575Speter from Matthew Black of CSU Long Beach. 183442575Speter Portability: 183542575Speter Apple Rhapsody from Wilfredo Sanchez of Apple Computer, Inc. 183642575Speter Avoid a clash with IRIX 6.2 getopt.h and the UserDatabase 183742575Speter option structure. Problem noted by Ashley M. 183842575Speter Kirchner of Photo Craft Laboratories, Inc. 183942575Speter Break out IP address to hostname translation for 184042575Speter reading network interface addresses into 184142575Speter class 'w'. Patch from John Kennedy of 184242575Speter Cal State University, Chico. 184342575Speter AIX 4.x use -qstrict with -O3 to prevent the optimized 184442575Speter from changing the semantics of the compiled 184542575Speter program. From Simon Travaglia of the 184642575Speter University of Waikato, New Zealand. 184742575Speter FreeBSD 2.2.2 and later support setusercontext(). From 184842575Speter Peter Wemm of DIALix. 184942575Speter FreeBSD 3.x fix from Peter Wemm of DIALix. 185042575Speter IRIX 5.x has a syslog buffer size of 512 bytes. From 185142575Speter Nao NINOMIYA of Utsunomiya University. 185242575Speter IRIX 6.5 64-bit Build support. 185342575Speter LDAP Version 3 support from John Beck and Ravi Iyer 185442575Speter of Sun Microsystems. 185542575Speter Linux does not implement seteuid() properly. From 185642575Speter John Kennedy of Cal State University, Chico. 185742575Speter Linux timezone type was set improperly. From Takeshi Itoh 185842575Speter of Bits Co., Ltd. 185942575Speter NCR MP-RAS 3.x needs -lresolv for confLIBS. From 186042575Speter Tom J. Moore of NCR. 186142575Speter NeXT 4.x correction to man page path. From J. P. McCann 186242575Speter of E I A. 186343730Speter System V Rel 5.x (a.k.a UnixWare7 w/o BSD-Compatibility Libs) 186442575Speter from Paul Gampe of the Asia Pacific Network 186542575Speter Information Center. 186642575Speter ULTRIX now requires an optimization limit of 970 from 186742575Speter Allan E Johannesen of Worcester Polytechnic 186842575Speter Institute. 186942575Speter Fix extern declaration for sm_dopr(). Fix from Henk 187042575Speter van Oers of Algemeen Nederlands Persbureau. 187142575Speter CONFIG: Catch @hostname,user@anotherhost.domain as relaying. 187242575Speter Problem noted by Mark Rogov of AirMedia, Inc. Fix from 187342575Speter Claus Assmann of Christian-Albrechts-University of Kiel. 187442575Speter CONFIG: Do not refer to http://maps.vix.com/ on RBL rejections as 187542575Speter there are multiple RBL's available and the MAPS RBL may 187642575Speter not be the one in use. Suggested by Alan Brown of 187742575Speter Manawatu Internet Services. 187864562Sgshapiro CONFIG: Properly strip route addresses (i.e., @host1:user@host2) 187942575Speter when stripping down a recipient address to check for 188042575Speter relaying. Patch from Claus Assmann of 188142575Speter Christian-Albrechts-University of Kiel and Neil W Rickert 188242575Speter of Northern Illinois University. 188342575Speter CONFIG: Allow the access database to override RBL lookups. Patch 188442575Speter from Claus Assmann of Christian-Albrechts-University of 188542575Speter Kiel. 188642575Speter CONFIG: UnixWare 7 support from Phillip P. Porch of The Porch 188742575Speter Dot Com. 188842575Speter CONFIG: Fixed check for deferred delivery mode warning. Patch 188942575Speter from Claus Assmann of Christian-Albrechts-University of 189064562Sgshapiro Kiel and Per Hedeland of Ericsson. 189142575Speter CONFIG: If a recipient using % addressing is used, e.g. 189242575Speter user%site@othersite, and othersite's MX records are now 189342575Speter checked for local hosts if FEATURE(relay_based_on_MX) is 189442575Speter used. Problem noted by Alexander Litvin of Lucky Net Ltd. 189542575Speter Patch from Alexander Litvin of Lucky Net Ltd and 189642575Speter Claus Assmann of Christian-Albrechts-University of Kiel. 189742575Speter MAIL.LOCAL: Prevent warning messages from appearing in the LMTP 189842575Speter stream. Do not allow more than one response per recipient. 189942575Speter MAIL.LOCAL: Handle routed addresses properly when using LMTP. Fix 190042575Speter from John Beck of Sun Microsystems. 190142575Speter MAIL.LOCAL: Properly check for CRLF when using LMTP. Fix from 190242575Speter John Beck of Sun Microsystems. 190342575Speter MAIL.LOCAL: Substitute MAILER-DAEMON for the LMTP empty sender in 190442575Speter the envelope From header. 190542575Speter MAIL.LOCAL: Accept underscores in hostnames in LMTP mode. 190642575Speter Problem noted by Glenn A. Malling of Syracuse University. 190742575Speter MAILSTATS: Document msgsrej and msgsdis fields in the man page. 190842575Speter Problem noted by Richard Wong of Princeton University. 190942575Speter MAKEMAP: Build group list so group writable files are allowed with 191042575Speter the -s flag. Problem noted by Curt Sampson of Internet 191142575Speter Portal Services, Inc. 191242575Speter PRALIASES: Automatically handle alias files created without the 191342575Speter NULL byte at the end of the key. Patch from John Beck of 191442575Speter Sun Microsystems. 191542575Speter PRALIASES: Support Berkeley DB 2.6.4 API change. 191642575Speter New Files: 191742575Speter BuildTools/OS/IRIX64.6.5 191842575Speter BuildTools/OS/UnixWare.5.i386 191964562Sgshapiro cf/ostype/unixware7.m4 192042575Speter contrib/smcontrol.pl 192142575Speter src/control.c 192242575Speter 192364562Sgshapiro8.9.1/8.9.1 1998/07/02 192438032Speter If both an OS specific site configuration file and a generic 192538032Speter site.config.m4 file existed, only the latter was used 192638032Speter instead of both. Problem noted by Geir Johannessen of 192738032Speter the Norwegian University of Science and Technology. 192838032Speter Fix segmentation fault while converting 8 bit to 7 bit MIME 192938032Speter multipart messages by trying to write to an unopened 193038032Speter file descriptor. Fix from Kari Hurtta of the Finnish 193138032Speter Meteorological Institute. 193238032Speter Do not assume Message: and Text: headers indicate the end of 193338032Speter the header area when parsing MIME headers. Problem noted 193438032Speter by Kari Hurtta of the Finnish Meteorological Institute. 193538032Speter Setting the confMAN#SRC Build variable would only effect the 193638032Speter installation commands. The man pages would still be 193738032Speter built with .0 extensions. Problem noted by Bryan 193838032Speter Costales of InfoBeat, Inc. 193938032Speter Installation of manual pages didn't honor the DESTDIR environment 194038032Speter variable. Problem noted by Bryan Costales of InfoBeat, Inc. 194138032Speter If the check_relay ruleset resolved to the discard mailer, messages 194238032Speter were still delivered. Problem noted by Mirek Luc of NASK. 194338032Speter Mail delivery to files would fail with an Operating System Error 194464562Sgshapiro if sendmail was not running as root, i.e., RunAsUser was set. 194538032Speter Problem noted by Leonard N. Zubkoff of Dandelion Digital. 194638032Speter Prevent MinQueueAge from interfering from queued items created 194764562Sgshapiro in the future, i.e., if the system clock was set ahead 194838032Speter and then back. Problem noted by Michael Miller of the 194938032Speter University of Natal, Pietermaritzburg. 195038032Speter Do not advertise ETRN support in ESTMP EHLO reply if noetrn is 195143730Speter set in the PrivacyOptions option. Fix from Ted Rule of 195238032Speter Flextech TV. 195338032Speter Log invalid persistent host status file lines instead of 195438032Speter bouncing the message. Problem noted by David Lindes of 195538032Speter DaveLtd Enterprises. 195638032Speter Move creation of empty sendmail.st file from installation to 195738032Speter compilation. Installation may be done from a read-only 195838032Speter mount. Fix from Bryan Costales of InfoBeat, Inc. and Ric 195938032Speter Anderson of the Oasis Research Center, Inc. 196038032Speter Enforce the maximum number of User Database entries limit. Problem 196138032Speter noted by Gary Buchanan of Credence Systems Inc. 196238032Speter Allow dead.letter files in root's home directory. Problem noted 196338032Speter by Anna Ullman of Sun Microsystems. 196438032Speter Program deliveries in forward files could be marked unsafe if 196538032Speter any directory listed in the ForwardPath option did not 196638032Speter exist. Problem noted by Jorg Bielak of Coastal Web Online. 196738032Speter Do not trust the length of the address structure returned by 196838032Speter gethostbyname(). Problem noted by Chris Evans of Oxford 196938032Speter University. 197038032Speter If the SIZE= MAIL From: ESMTP parameter is too large, use the 197138032Speter 5.3.4 DSN status code instead of 5.2.2. Similarly, for 197238032Speter non-local deliveries, if the message is larger than the 197338032Speter mailer maximum message size, use 5.3.4 instead of 5.2.3. 197438032Speter Suggested by Antony Bowesman of 197538032Speter Fujitsu/TeaWARE Mail/MIME System. 197638032Speter Portability: 197738032Speter Fix the check for an IP address reverse lookup for 197838032Speter use in $&{client_name} on 64 bit platforms. 197938032Speter From Gilles Gallot of Institut for Development 198038032Speter and Resources in Intensive Scientific computing. 198138032Speter BSD-OS uses .0 for man page extensions. From Jeff Polk 198238032Speter of BSDI. 198338032Speter DomainOS detection for Build. Also, version 10.4 and later 198438032Speter ship a unistd.h. Fixes from Takanobu Ishimura of 198538032Speter PICT Inc. 198638032Speter NeXT 4.x uses /usr/lib/man/cat for its man pages. From 198738032Speter J. P. McCann of E I A. 198838032Speter SCO 4.X and 5.X include NDBM support. From Vlado Potisk 198938032Speter of TEMPEST, Ltd. 199038032Speter CONFIG: Do not pass spoofed PTR results through resolver for 199138032Speter qualification. Problem noted by Michiel Boland of 199238032Speter Digital Valley Internet Professionals; fix from 199338032Speter Kari Hurtta of the Finnish Meteorological Institute. 199438032Speter CONFIG: Do not try to resolve non-DNS hostnames such as UUCP, 199538032Speter BITNET, and DECNET addresses for resolvable senders. 199638032Speter Problem noted by Alexander Litvin of Lucky Net Ltd. 199738032Speter CONFIG: Work around Sun's broken configuration which sends bounce 199838032Speter messages as coming from @@hostname instead of <>. LMTP 199938032Speter would not accept @@hostname. 200038032Speter OP.ME: Corrections to complex sendmail startup script from Rick 200138032Speter Troxel of the National Institutes of Health. 200238032Speter RMAIL: Do not install rmail by default, require 'make force-install' 200338032Speter as this rmail isn't the same as others. Suggested by 200438032Speter Kari Hurtta of the Finnish Meteorological Institute. 200542575Speter New Files: 200642575Speter BuildTools/OS/DomainOS.10.4 200738032Speter 200864562Sgshapiro8.9.0/8.9.0 1998/05/19 200938032Speter SECURITY: To prevent users from reading files not normally 201038032Speter readable, sendmail will no longer open forward, :include:, 201138032Speter class, ErrorHeader, or HelpFile files located in unsafe 201264562Sgshapiro (i.e., group or world writable) directory paths. Sites 201338032Speter which need the ability to override security can use the 201438032Speter DontBlameSendmail option. See the README file for more 201538032Speter information. 201638032Speter SECURITY: Problems can occur on poorly managed systems, specifically, 201738032Speter if maps or alias files are in world writable directories. 201838032Speter This fixes the change added to 8.8.6 to prevent links in these 201938032Speter world writable directories. 202038032Speter SECURITY: Make sure ServiceSwitchFile option file is not a link if 202138032Speter it is in a world writable directory. 202238032Speter SECURITY: Never pass a tty to a mailer -- if a mailer can get at the 202338032Speter tty it may be able to push bytes back to the senders input. 202438032Speter Unfortunately this breaks -v mode. Problem noted by 202538032Speter Wietse Venema of the Global Security Analysis Lab at 202638032Speter IBM T.J. Watson Research. 202738032Speter SECURITY: Empty group list if DontInitGroups is set to true to 202838032Speter prevent program deliveries from picking up extra group 202938032Speter privileges. Problem reported by Wolfgang Ley of DFN-CERT. 203038032Speter SECURITY: The default value for DefaultUser is now set to the uid and 203138032Speter gid of the first existing user mailnull, sendmail, or daemon 203238032Speter that has a non-zero uid. If none of these exist, sendmail 203338032Speter reverts back to the old behavior of using uid 1 and gid 1. 203438032Speter This is a security problem for Linux which has chosen that 203538032Speter uid and gid for user bin instead of daemon. If DefaultUser 203638032Speter is set in the configuration file, that value overrides this 203738032Speter default. 203838032Speter SECURITY: Since 8.8.7, the check for non-setuid binaries 203938032Speter interfered with setting an alternate group id for the 204038032Speter RunAsUser option. Problem noted by Randall Winchester of 204138032Speter the University of Maryland. 204238032Speter Add support for Berkeley DB 2.X. Based on patch from John Kennedy 204338032Speter of Cal State University, Chico. 204438032Speter Remove support for OLD_NEWDB (pre-1.5 version of Berkeley DB). Users 204538032Speter which previously defined OLD_NEWDB=1 must now upgrade to the 204638032Speter current version of Berkeley DB. 204738032Speter Added support for regular expressions using the new map class regex. 204838032Speter From Jan Krueger of Unix-AG of University of Hannover. 204938032Speter Support for BIND 8.1.1's hesiod for hesiod maps and hesiod 205038032Speter UserDatabases from Randall Winchester of the University 205138032Speter of Maryland. 205238032Speter Allow any shell for user shell on program deliveries on V1 205338032Speter configurations for backwards compatibility on machines which 205438032Speter do not have getusershell(). Fix from John Beck of Sun 205538032Speter Microsystems. 205638032Speter On operating systems which change the process title by reusing the 205738032Speter argument vector memory, sendmail could corrupt memory if the 205838032Speter last argument was either "-q" or "-d". Problem noted by 205938032Speter Frank Langbein of the University of Stuttgart. 206038032Speter Support Local Mail Transfer Protocol (LMTP) between sendmail and 206138032Speter mail.local on the F=z flag. 206238032Speter Macro-expand the contents of the ErrMsgFile. Previously this was 206338032Speter only done if you had magic characters (0x81) to indicate 206438032Speter macro expansion. Now $x will be expanded. This means that 206538032Speter real dollar signs have to be backslash escaped. 206664562Sgshapiro TCP Wrappers expects "unknown" in the hostname argument if the 206738032Speter reverse DNS lookup for the incoming connection fails. 206838032Speter Problem noted by Randy Grimshaw of Syracuse University and 206938032Speter Wietse Venema of the Global Security Analysis Lab at 207038032Speter IBM T.J. Watson Research. 207138032Speter DSN success bounces generated from an invocation of sendmail -t 207238032Speter would be sent to both the sender and MAILER-DAEMON. 207338032Speter Problem noted by Claus Assmann of 207438032Speter Christian-Albrechts-University of Kiel. 207538032Speter Avoid "Error 0" messages on delivery mailers which exit with a 207638032Speter valid exit value such as EX_NOPERM. Fix from Andreas Luik 207738032Speter of ISA Informationssysteme GmbH. 207838032Speter Tokenize $&x expansions on right hand side of rules. This eliminates 207938032Speter the need to use tricks like $(dequote "" $&{client_name} $) 208038032Speter to cause the ${client_name} macro to be properly tokenized. 208138032Speter Add the MaxRecipientsPerMessage option: this limits the number of 208238032Speter recipients that will be accepted in a single SMTP 208338032Speter transaction. After this number is reached, sendmail 208438032Speter starts returning "452 Too many recipients" to all RCPT 208538032Speter commands. This can be used to limit the number of recipients 208638032Speter per envelope (in particular, to discourage use of the server 208738032Speter for spamming). Note: a better approach is to restrict 208838032Speter relaying entirely. 208938032Speter Fixed pointer initialization for LDAP lmap struct, fixed -s option 209038032Speter to ldapx map and added timeout for ldap_open call to 209138032Speter avoid hanging sendmail in the event of hung LDAP servers. 209238032Speter Patch from Booker Bense of Stanford University. 209338032Speter Allow multiple -qI, -qR, or -qS queue run limiters. For example, 209438032Speter '-qRfoo -qRbar' would deliver mail to recipients with foo or 209538032Speter bar in their address. Patch from Allan E Johannesen of 209638032Speter Worcester Polytechnic Institute. 209738032Speter The bestmx map will now return a list of the MX servers for a host if 209838032Speter passed a column delimiter via the -z map flag. This can be 209938032Speter used to check if the server is an MX server for the recipient 210038032Speter of a message. This can be used to help prevent relaying. 210138032Speter Patch from Mitchell Blank Jr of Exec-PC. 210238032Speter Mark failures for the *file* mailer and return bounce messages to the 210338032Speter sender for those failures. 210438032Speter Prevent bogus syslog timestamps on errors in sendmail.cf by 210538032Speter preserving the TZ environment variable until TimeZoneSpec 210638032Speter has been determined. Problem noted by Ralf Hildebrandt of 210738032Speter Technical University of Braunschweig. Patch from Per Hedeland 210838032Speter of Ericsson. 210938032Speter Print test input in address test mode when input is not from the tty 211064562Sgshapiro when the -v flag is given (i.e., sendmail -bt -v) to make 211138032Speter output easier to decipher. Problem noted by Aidan Nichol 211238032Speter of Procter & Gamble. 211338032Speter The LDAP map -s flag was not properly parsed and the error message 211464562Sgshapiro given included the remainder of the arguments instead of 211538032Speter solely the argument in error. Problem noted by Aidan Nichol 211638032Speter of Procter & Gamble. 211738032Speter New DontBlameSendmail option. This option allows administrators to 211838032Speter bypass some of sendmail's file security checks at the expense 211938032Speter of system security. This should only be used if you are 212038032Speter absolutely sure you know the consequences. The available 212138032Speter DontBlameSendmail options are: 212238032Speter Safe 212338032Speter AssumeSafeChown 212438032Speter ClassFileInUnsafeDirPath 212538032Speter ErrorHeaderInUnsafeDirPath 212638032Speter GroupWritableDirPathSafe 212738032Speter GroupWritableForwardFileSafe 212838032Speter GroupWritableIncludeFileSafe 212938032Speter GroupWritableAliasFile 213038032Speter HelpFileinUnsafeDirPath 213138032Speter WorldWritableAliasFile 213238032Speter ForwardFileInGroupWritableDirPath 213338032Speter IncludeFileInGroupWritableDirPath 213438032Speter ForwardFileInUnsafeDirPath 213538032Speter IncludeFileInUnsafeDirPath 213638032Speter ForwardFileInUnsafeDirPathSafe 213738032Speter IncludeFileInUnsafeDirPathSafe 213838032Speter MapInUnsafeDirPath 213938032Speter LinkedAliasFileInWritableDir 214038032Speter LinkedClassFileInWritableDir 214138032Speter LinkedForwardFileInWritableDir 214238032Speter LinkedIncludeFileInWritableDir 214338032Speter LinkedMapInWritableDir 214438032Speter LinkedServiceSwitchFileInWritableDir 214538032Speter FileDeliveryToHardLink 214638032Speter FileDeliveryToSymLink 214738032Speter WriteMapToHardLink 214838032Speter WriteMapToSymLink 214938032Speter WriteStatsToHardLink 215038032Speter WriteStatsToSymLink 215138032Speter RunProgramInUnsafeDirPath 215238032Speter RunWritableProgram 215338032Speter New DontProbeInterfaces option to turn off the inclusion of all the 215438032Speter interface names in $=w on startup. In particular, if you 215538032Speter have lots of virtual interfaces, this option will speed up 215638032Speter startup. However, unless you make other arrangements, mail 215738032Speter sent to those addresses will be bounced. 215838032Speter Automatically create alias databases if they don't exist and 215938032Speter AutoRebuildAliases is set. 216038032Speter Add PrivacyOptions=noetrn flag to disable the SMTP ETRN command. 216138032Speter Suggested by Christophe Wolfhugel of the Institut Pasteur. 216238032Speter Add PrivacyOptions=noverb flag to disable the SMTP VERB command. 216338032Speter When determining the client host name ($&{client_name} macro), do 216438032Speter a forward (A) DNS lookup on the result of the PTR lookup 216538032Speter and compare results. If they differ or if the PTR lookup 216638032Speter fails, &{client_name} will contain the IP address 216764562Sgshapiro surrounded by square brackets (e.g., [127.0.0.1]). 216838032Speter New map flag: -Tx appends "x" to lookups that return temporary failure 216938032Speter (i.e, it is like -ax for the temporary failure case, in 217038032Speter contrast to the success case). 217138032Speter New syntax to do limited checking of header syntax. A config line 217238032Speter of the form: 217338032Speter HHeader: $>Ruleset 217438032Speter causes the indicated Ruleset to be invoked on the Header 217538032Speter when read. This ruleset works like the check_* rulesets -- 217638032Speter that is, it can reject mail on the basis of the contents. 217738032Speter Limit the size of the HELO/EHLO parameter to prevent spammers 217838032Speter from hiding their connection information in Received: 217938032Speter headers. 218038032Speter When SingleThreadDelivery is active, deliveries to locked hosts 218138032Speter are skipped. This will cause the delivering process to 218238032Speter try the next MX host or queue the message if no other MX 218338032Speter hosts are available. Suggested by Alexander Litvin. 218438032Speter The [FILE] mailer type now delivers to the file specified in the 218538032Speter A= equate of the mailer definition instead of $u. It also 218638032Speter obeys all of the F= mailer flags such as the MIME 218738032Speter 7/8 bit conversion flags. This is useful for defining 218838032Speter a mailer which delivers to the same file regardless of the 218964562Sgshapiro recipient (e.g., 'A=FILE /dev/null' to discard unwanted mail). 219038032Speter Do not assume the identity of a remote connection is root@localhost 219138032Speter if the remote connection closes the socket before the 219238032Speter remote identity can be queried. 219338032Speter Change semantics of the F=S mailer flag back to 8.7.5 behavior. 219438032Speter Some mailers, including procmail, require that the real 219538032Speter uid is left unchanged by sendmail. Problem noted by Per 219638032Speter Hedeland of Ericsson. 219738032Speter No longer is the src/obj*/Makefile selected from a large list -- it 219838032Speter is now generated using the information in BuildTools/OS/ -- 219938032Speter some of the details are determined dynamically via 220038032Speter BuildTools/bin/configure.sh. 220138032Speter The other programs in the sendmail distribution -- mail.local, 220238032Speter mailstats, makemap, praliases, rmail, and smrsh -- now use 220338032Speter the new Build method which creates an operating system 220438032Speter specific Makefile using the information in BuildTools. 220538032Speter Make 4xx reply codes to the SMTP MAIL command be non-sticky (i.e., 220638032Speter a failure on one message won't affect future messages to the 220738032Speter same host). This is necessary if the remote host sends 220838032Speter a 451 error if the domain of the sender does not resolve 220938032Speter as is common in anti-spam configurations. Problem noted 221038032Speter by Mitchell Blank Jr of Exec-PC. 221138032Speter New "discard" mailer for check_* rulesets and header checking 221238032Speter rulesets. If one of the above rulesets resolves to the 221338032Speter $#discard mailer, the commands will be accepted but the 221438032Speter message will be completely discarded after it is accepting. 221538032Speter This means that even if only one of the recipients 221638032Speter resolves to the $#discard mailer, none of the recipients 221738032Speter will receive the mail. Suggested by Brian Kantor. 221838032Speter All but the last cloned envelope of a split envelope were queued 221938032Speter instead of being delivered. Problem noted by John Caruso 222038032Speter of CNET: The Computer Network. 222138032Speter Fix deadlock situation in persistent host status file locking. 222238032Speter Syslog an error if a user forward file could not be read due to 222338032Speter an error. Patch from John Beck of Sun Microsystems. 222438032Speter Use the first name returned on machine lookups when canonifying a 222538032Speter hostname via NetInfo. Patch from Timm Wetzel of GWDG. 222638032Speter Clear the $&{client_addr}, $&{client_name}, and $&{client_port} 222738032Speter macros when delivering a bounce message to prevent 222838032Speter rejection by a check_compat ruleset which uses these macros. 222938032Speter Problem noted by Jens Hamisch of AgiX Internetservices GmbH. 223038032Speter If the check_relay ruleset resolves to the the error mailer, the 223138032Speter error in the $: portion of the resolved triplet is used 223238032Speter in the rejection message given to the remote machine. 223338032Speter Suggested by Scott Gifford of The Internet Ramp. 223438032Speter Set the $&{client_addr}, $&{client_name}, and $&{client_port} macros 223538032Speter before calling the check_relay ruleset. Suggested by Scott 223638032Speter Gifford of The Internet Ramp. 223738032Speter Sendmail would get a segmentation fault if a mailer exited with an 223838032Speter exit code of 79. Problem noted by Aaron Schrab of ExecPC 223938032Speter Internet. Fix from Christophe Wolfhugel of the Pasteur 224038032Speter Institute. 224138032Speter Separate snprintf/vsnprintf routines into separate file for use by 224238032Speter mail.local. 224338032Speter Allow multiple map lookups on right hand side, e.g., 224438032Speter R$* $( host $1 $) $| $( passwd $1 $). Patch from 224538032Speter Christophe Wolfhugel of the Pasteur Institute. 224638032Speter Properly generate success DSN messages if requested for aliases 224738032Speter which have owner- aliases. Problem noted by Kari Hurtta 224838032Speter of the Finnish Meteorological Institute. 224938032Speter Properly display delayed-expansion macros ($&{macroname}) in 225038032Speter address test mode (-bt). Problem noted by Bryan Costales 225138032Speter of InfoBeat, Inc. 225238032Speter -qR could sometimes match names incorrectly. Problem noted by 225338032Speter Lutz Euler of Lavielle EDV Systemberatung GmbH & Co. 225438032Speter Include a magic number and version in the StatusFile for the 225538032Speter mailstats command. 225638032Speter Record the number of rejected and discarded messages in the 225738032Speter StatusFile for display by the mailstats command. Patch 225838032Speter from Randall Winchester of the University of Maryland. 225938032Speter IDENT returns where the OSTYPE field equals "OTHER" now list the 226038032Speter user portion as IDENT:username@site instead of 226138032Speter username@site to differentiate the two. Suggested by 226238032Speter Kari Hurtta of the Finnish Meteorological Institute. 226338032Speter Enforce timeout for LDAP queries. Patch from Per Hedeland of 226438032Speter Ericsson. 226538032Speter Change persistent host status filename substitution so '/' is 226638032Speter replaced by ':' instead of '|' to avoid clashes. Also 226738032Speter avoid clashes with hostnames with leading dots. Fix from 226838032Speter Mitchell Blank Jr. of Exec-PC. 226938032Speter If the system lock table is full, only attempt to create a new 227038032Speter queue entry five times before giving up. Previously, it 227138032Speter was attempted indefinitely which could cause the partition 227238032Speter to run out of inodes. Problem noted by Suzie Weigand of 227338032Speter Stratus Computer, Inc. 227438032Speter In verbose mode, warn if the sendmail.cf version is less than the 227538032Speter currently supported version. 227638032Speter Sorting for QueueSortOrder=host is now case insensitive. Patch 227738032Speter from Randall S. Winchester of the University of Maryland. 227838032Speter Properly quote a full name passed via the -F command line option, 227938032Speter the Full-Name: header, or the NAME environment variable if 228038032Speter it contains characters which must be quoted. Problem noted 228138032Speter by Kari Hurtta of the Finnish Meteorological Institute. 228238032Speter Avoid possible race condition that unlocked a mail job before 228338032Speter releasing the transcript file on systems that use flock(2). 228438032Speter In some cases, this might result in a "Transcript Unavailable" 228538032Speter message in error bounces. 228638032Speter Accept SMTP replies which contain only a reply code and no 228738032Speter accompanying text. Problem noted by Fernando Fraticelli of 228838032Speter Digital Equipment Corporation. 228938032Speter Portability: 229038032Speter AIX 4.1 uses int for SOCKADDR_LEN_T from Motonori Nakamura 229138032Speter of Kyoto University. 229238032Speter AIX 4.2 requires <userpw.h> before <usersec.h>. Patch from 229338032Speter Randall S. Winchester of the University of 229438032Speter Maryland. 229538032Speter AIX 4.3 from Valdis Kletnieks of Virginia Tech CNS. 229638032Speter CRAY T3E from Manu Mahonen of Center for Scientific Computing 229738032Speter in Finland. 229838032Speter Digital UNIX now uses statvfs for determining free 229938032Speter disk space. Patch from Randall S. Winchester of 230038032Speter the University of Maryland. 230138032Speter HP-UX 11.x from Richard Allen of Opin Kerfi HF and 230238032Speter Regis McEwen of Progress Software Corporation. 230338032Speter IRIX 64 bit fixes from Kari Hurtta of the Finnish 230438032Speter Meteorological Institute. 230538032Speter IRIX 6.2 configuration fix for mail.local from Michael Kyle 230638032Speter of CIC/Advanced Computing Laboratory. 230738032Speter IRIX 6.5 from Thomas H Jones II of SGI. 230838032Speter IRIX 6.X load average code from Bob Mende of SGI. 230938032Speter QNX from Glen McCready <glen@qnx.com>. 231038032Speter SCO 4.2 and 5.x use /usr/bin instead of /usr/ucb for links 231138032Speter to sendmail. Install with group bin instead of kmem 231238032Speter as kmem does not exist. From Guillermo Freige of 231338032Speter Gobernacion de la Pcia de Buenos Aires and Paul 231438032Speter Fischer of BTG, Inc. 231538032Speter SunOS 4.X does not include memmove(). Patch from 231638032Speter Per Hedeland of Ericsson. 231738032Speter SunOS 5.7 includes getloadavg() function for determining 231838032Speter load average. Patch from John Beck of Sun 231938032Speter Microsystems. 232038032Speter CONFIG: Increment version number of config file. 232138032Speter CONFIG: add DATABASE_MAP_TYPE to set the default type of database 232238032Speter map for the various maps. The default is hash. Patch from 232338032Speter Robert Harker of Harker Systems. 232438032Speter CONFIG: new confEBINDIR m4 variable for defining the executable 232538032Speter directory for certain programs. 232638032Speter CONFIG: new FEATURE(local_lmtp) to use the new LMTP support for 232738032Speter local mail delivery. By the default, /usr/libexec/mail.local 232838032Speter is used. This is expected to be the mail.local shipped 232938032Speter with 8.9 which is LMTP capable. The path is based on the 233038032Speter new confEBINDIR m4 variable. 233138032Speter CONFIG: Use confEBINDIR in determining path to smrsh for 233238032Speter FEATURE(smrsh). Note that this changes the default from 233338032Speter /usr/local/etc/smrsh to /usr/libexec/smrsh. To obtain the 233438032Speter old path for smrsh, use FEATURE(smrsh, /usr/local/etc/smrsh). 233538032Speter CONFIG: DOMAIN(generic) changes the default confFORWARD_PATH to 233638032Speter include $z/.forward.$w+$h and $z/.forward+$h which allow 233738032Speter the user to setup different .forward files for 233838032Speter user+detail addressing. 233938032Speter CONFIG: add confMAX_RCPTS_PER_MESSAGE, confDONT_PROBE_INTERFACES, 234038032Speter and confDONT_BLAME_SENDMAIL to set MaxRecipientsPerMessage, 234138032Speter DontProbeInterfaces, and DontBlameSendmail options. 234238032Speter CONFIG: by default do not allow relaying (that is, accepting mail 234338032Speter from outside your domain and sending it to another host 234438032Speter outside your domain). 234538032Speter CONFIG: new FEATURE(promiscuous_relay) to allow mail relaying from 234638032Speter any site to any site. 234738032Speter CONFIG: new FEATURE(relay_entire_domain) allows any host in your 234838032Speter domain as defined by the 'm' class ($=m) to relay. 234938032Speter CONFIG: new FEATURE(relay_based_on_MX) to allow relaying based on 235038032Speter the MX records of the host portion of an incoming recipient. 235138032Speter CONFIG: new FEATURE(access_db) which turns on the access database 235238032Speter feature. This database give you the ability to allow 235338032Speter or refuse to accept mail from specified domains for 235438032Speter administrative reasons. By default, names that are listed 235538032Speter as "OK" in the access db are domain names, not host names. 235638032Speter CONFIG: new confCR_FILE m4 variable for defining the name of the file 235738032Speter used for class 'R'. Defaults to /etc/mail/relay-domains. 235838032Speter CONFIG: new command RELAY_DOMAIN(domain) and RELAY_DOMAIN_FILE(file) 235938032Speter to add items to class 'R' ($=R) for hosts allowed to relay. 236038032Speter CONFIG: new FEATURE(relay_hosts_only) to change the behavior 236138032Speter of FEATURE(access_db) and class 'R' to lookup individual 236238032Speter host names only. 236338032Speter CONFIG: new FEATURE(loose_relay_check). Normally, if a recipient 236438032Speter using % addressing is used, e.g. user%site@othersite, 236538032Speter and othersite is in class 'R', the check_rcpt ruleset 236638032Speter will strip @othersite and recheck user@site for relaying. 236738032Speter This feature changes that behavior. It should not be 236838032Speter needed for most installations. 236938032Speter CONFIG: new FEATURE(relay_local_from) to allow relaying if the 237038032Speter domain portion of the mail sender is a local host. This 237138032Speter should only be used if absolutely necessary as it opens 237238032Speter a window for spammers. Patch from Randall S. Winchester of 237338032Speter the University of Maryland. 237438032Speter CONFIG: new FEATURE(blacklist_recipients) turns on the ability to 237538032Speter block incoming mail destined for certain recipient 237638032Speter usernames, hostnames, or addresses. 237738032Speter CONFIG: By default, MAIL FROM: commands in the SMTP session will be 237838032Speter refused if the host part of the argument to MAIL FROM: cannot 237938032Speter be located in the host name service (e.g., DNS). 238038032Speter CONFIG: new FEATURE(accept_unresolvable_domains) accepts 238138032Speter unresolvable hostnames in MAIL FROM: SMTP commands. 238238032Speter CONFIG: new FEATURE(accept_unqualified_senders) accepts 238338032Speter MAIL FROM: senders which do not include a domain. 238438032Speter CONFIG: new FEATURE(rbl) Turns on rejection of hosts found in the 238538032Speter Realtime Blackhole List. You can specify the RBL name 238638032Speter server to contact by specifying it as an optional argument. 238738032Speter The default is rbl.maps.vix.com. For details, see 238838032Speter http://maps.vix.com/rbl/. 238938032Speter CONFIG: Call Local_check_relay, Local_check_mail, and 239038032Speter Local_check_rcpt from check_relay, check_mail, and 239138032Speter check_rcpt. Users with local rulesets should place the 239238032Speter rules using LOCAL_RULESETS. If a Local_check_* ruleset 239338032Speter returns $#OK, the message is accepted. If the ruleset 239438032Speter returns a mailer, the appropriate action is taken, else 239538032Speter the return of the ruleset is ignored. 239638032Speter CONFIG: CYRUS_MAILER_FLAGS now includes the /:| mailer flags by 239738032Speter default to support file, :include:, and program deliveries. 239838032Speter CONFIG: Remove the default for confDEF_USER_ID so the binary can 239938032Speter pick the proper default value. See the SECURITY note 240038032Speter above for more information. 240138032Speter CONFIG: FEATURE(nodns) now warns the user that the feature is a 240238032Speter no-op. Patch from Kari Hurtta of the Finnish 240338032Speter Meteorological Institute. 240438032Speter CONFIG: OSTYPE(osf1) now sets DefaultUserID (confDEF_USER_ID) to 240538032Speter daemon since DEC's /bin/mail will drop the envelope 240638032Speter sender if run as mailnull. See the Digital UNIX section 240738032Speter of src/README for more information. Problem noted by 240838032Speter Kari Hurtta of the Finnish Meteorological Institute. 240938032Speter CONFIG: .cf files are now stored in the same directory with the 241038032Speter .mc files instead of in the obj directory. 241164562Sgshapiro CONFIG: New options confSINGLE_LINE_FROM_HEADER, 241238032Speter confALLOW_BOGUS_HELO, and confMUST_QUOTE_CHARS for 241338032Speter setting SingleLineFromHeader, AllowBogusHELO, and 241438032Speter MustQuoteChars respectively. 241538032Speter MAIL.LOCAL: support -l flag to run LMTP on stdin/stdout. This 241638032Speter SMTP-like protocol allows detailed reporting of delivery 241738032Speter status on a per-user basis. Code donated by John Myers of 241838032Speter CMU (now of Netscape). 241938032Speter MAIL.LOCAL: HP-UX support from Randall S. Winchester of the 242064562Sgshapiro University of Maryland. NOTE: mail.local is not 242138032Speter compatible with the stock HP-UX mail format. Be sure to 242238032Speter read mail.local/README. 242338032Speter MAIL.LOCAL: Prevent other mail delivery agents from stealing a 242438032Speter mailbox lock. Patch from Randall S. Winchester of the 242538032Speter University of Maryland. 242638032Speter MAIL.LOCAL: glibc portability from John Kennedy of Cal State 242738032Speter University, Chico. 242838032Speter MAIL.LOCAL: IRIX portability from Kari Hurtta of the Finnish 242938032Speter Meteorological Institute. 243038032Speter MAILSTATS: Display the number of rejected and discarded messages 243138032Speter in the StatusFile. Patch from Randall Winchester of the 243238032Speter University of Maryland. 243338032Speter MAKEMAP: New -s flag to ignore safety checks on database map files 243438032Speter such as linked files in world writable directories. 243538032Speter MAKEMAP: Add support for Berkeley DB 2.X. Remove OLD_NEWDB support. 243638032Speter PRALIASES: Add support for Berkeley DB 2.X. 243738032Speter PRALIASES: Do not automatically include NDBM support. Problem 243838032Speter noted by Ralf Hildebrandt of the Technical University of 243938032Speter Braunschweig. 244038032Speter RMAIL: Improve portability for other platforms. Patches from 244138032Speter Randall S. Winchester of the University of Maryland and 244238032Speter Kari Hurtta of the Finnish Meteorological Institute. 244338032Speter Changed Files: 244438032Speter src/Makefiles/Makefile.* files have been modified to use 244538032Speter the new build mechanism and are now BuildTools/OS/*. 244638032Speter src/makesendmail changed to symbolic link to src/Build. 244738032Speter New Files: 244838032Speter BuildTools/M4/header.m4 244938032Speter BuildTools/M4/depend/BSD.m4 245038032Speter BuildTools/M4/depend/CC-M.m4 245138032Speter BuildTools/M4/depend/NCR.m4 245238032Speter BuildTools/M4/depend/Solaris.m4 245338032Speter BuildTools/M4/depend/X11.m4 245438032Speter BuildTools/M4/depend/generic.m4 245538032Speter BuildTools/OS/AIX.4.2 245638032Speter BuildTools/OS/AIX.4.x 245738032Speter BuildTools/OS/CRAYT3E.2.0.x 245838032Speter BuildTools/OS/HP-UX.11.x 245938032Speter BuildTools/OS/IRIX.6.5 246038032Speter BuildTools/OS/NEXTSTEP.4.x 246138032Speter BuildTools/OS/NeXT.4.x 246238032Speter BuildTools/OS/NetBSD.8.3 246338032Speter BuildTools/OS/QNX 246438032Speter BuildTools/OS/SunOS.5.7 246538032Speter BuildTools/OS/dcosx.1.x.NILE 246638032Speter BuildTools/README 246738032Speter BuildTools/Site/README 246838032Speter BuildTools/bin/Build 246938032Speter BuildTools/bin/configure.sh 247038032Speter BuildTools/bin/find_m4.sh 247138032Speter BuildTools/bin/install.sh 247238032Speter Makefile 247338032Speter cf/cf/Build 247438032Speter cf/cf/generic-hpux10.cf 247538032Speter cf/feature/accept_unqualified_senders.m4 247638032Speter cf/feature/accept_unresolvable_domains.m4 247738032Speter cf/feature/access_db.m4 247838032Speter cf/feature/blacklist_recipients.m4 247938032Speter cf/feature/loose_relay_check.m4 248038032Speter cf/feature/local_lmtp.m4 248138032Speter cf/feature/promiscuous_relay.m4 248238032Speter cf/feature/rbl.m4 248338032Speter cf/feature/relay_based_on_MX.m4 248438032Speter cf/feature/relay_entire_domain.m4 248538032Speter cf/feature/relay_hosts_only.m4 248638032Speter cf/feature/relay_local_from.m4 248738032Speter cf/ostype/qnx.m4 248838032Speter contrib/doublebounce.pl 248938032Speter mail.local/Build 249038032Speter mail.local/Makefile.m4 249138032Speter mail.local/README 249238032Speter mailstats/Build 249338032Speter mailstats/Makefile.m4 249438032Speter makemap/Build 249538032Speter makemap/Makefile.m4 249638032Speter praliases/Build 249738032Speter praliases/Makefile.m4 249838032Speter rmail/Build 249938032Speter rmail/Makefile.m4 250038032Speter rmail/rmail.0 250138032Speter smrsh/Build 250238032Speter smrsh/Makefile.m4 250338032Speter src/Build 250438032Speter src/Makefile.m4 250538032Speter src/snprintf.c 250638032Speter Deleted Files: 250738032Speter cf/cf/Makefile (replaced by Makefile.dist) 250838032Speter mail.local/Makefile 250938032Speter mail.local/Makefile.dist 251038032Speter mailstats/Makefile 251138032Speter mailstats/Makefile.dist 251238032Speter makemap/Makefile 251338032Speter makemap/Makefile.dist 251438032Speter praliases/Makefile 251538032Speter praliases/Makefile.dist 251638032Speter rmail/Makefile 251738032Speter smrsh/Makefile 251838032Speter smrsh/Makefile.dist 251938032Speter src/Makefile 252038032Speter src/Makefiles/Makefile.AIX.4 (split into AIX.4.x and AIX.4.2) 252138032Speter src/Makefiles/Makefile.SMP_DC.OSx.NILE 252238032Speter (renamed BuildTools/OS/dcosx.1.x.NILE) 252338032Speter src/Makefiles/Makefile.Utah (obsolete platform) 252438032Speter Renamed Files: 252538032Speter READ_ME => README 252638032Speter cf/cf/Makefile.dist => Makefile 252738032Speter cf/cf/obj/* => cf/cf/* 252838032Speter src/READ_ME => src/README 252938032Speter 253064562Sgshapiro8.8.8/8.8.8 1997/10/24 253138032Speter If the check_relay ruleset failed, the relay= field was logged 253238032Speter incorrectly. Problem noted by Kari Hurtta of the Finnish 253338032Speter Meteorological Institute. 253438032Speter If /usr/tmp/dead.letter already existed, sendmail could not 253538032Speter add additional bounces to it. Problem noted by Thomas J. 253638032Speter Arseneault of SRI International. 253738032Speter If an SMTP mailer used a non-standard port number for the outgoing 253838032Speter connection, it would be displayed incorrectly in verbose mode. 253938032Speter Problem noted by John Kennedy of Cal State University, Chico. 254038032Speter Log the ETRN parameter specified by the client before altering them 254138032Speter to internal form. Suggested by Bob Kupiec of GES-Verio. 254238032Speter EXPN and VRFY SMTP commands on malformed addresses were logging as 254338032Speter User unknown with bogus delay= values. Change them to log 254438032Speter the same as compliant addresses. Problem noted by Kari E. 254538032Speter Hurtta of the Finnish Meteorological Institute. 254638032Speter Ignore the debug resolver option unless using sendmail debug trace 254738032Speter option for resolver. Problem noted by Greg Nichols of Wind 254838032Speter River Systems. 254938032Speter If SingleThreadDelivery was enabled and the remote server returned a 255038032Speter protocol error on the DATA command, the connection would be 255138032Speter closed but the persistent host status file would not be 255238032Speter unlocked so other sendmail processes could not deliver to 255338032Speter that host. Problem noted by Peter Wemm of DIALix. 255438032Speter If queueing up a message due to an expensive mailer, don't increment 255538032Speter the number of delivery attempts or set the last delivery 255638032Speter attempt time so the message will be delivered on the next 255738032Speter queue run regardless of MinQueueAge. Problem noted by 255838032Speter Brian J. Coan of the Institute for Global Communications. 255938032Speter Authentication warnings of "Processed from queue _directory_" and 256038032Speter "Processed by _username_ with -C _filename_" would be logged 256138032Speter with the incorrect timestamp. Problem noted by Kari E. Hurtta 256238032Speter of the Finnish Meteorological Institute. 256338032Speter Use a better heuristic for detecting GDBM. 256438032Speter Log null connections on dropped connections. Problem noted by 256538032Speter Jon Lewis of Florida Digital Turnpike. 256638032Speter If class dbm maps are rebuilt, sendmail will now detect this and 256738032Speter reopen the map. Previously, they could give stale 256838032Speter results during a single message processing (but would 256938032Speter recover when the next message was received). Fix from 257038032Speter Joe Pruett of Q7 Enterprises. 257138032Speter Do not log failures such as "User unknown" on -bv or SMTP VRFY 257238032Speter requests. Problem noted by Kari E. Hurtta of the 257338032Speter Finnish Meteorological Institute. 257438032Speter Do not send a bounce message back to the sender regarding bad 257538032Speter recipients if the SMTP connection is dropped before the 257638032Speter message is accepted. Problem noted by Kari E. Hurtta of the 257738032Speter Finnish Meteorological Institute. 257838032Speter Use "localhost" instead of "[UNIX: localhost]" when connecting to 257938032Speter sendmail via a UNIX pipe. This will allow rulesets using 258038032Speter $&{client_name} to process without sending the string through 258138032Speter dequote. Problem noted by Alan Barrett of Internet Africa. 258238032Speter A combination of deferred delivery mode, a double bounce situation, 258338032Speter and the inability to save a bounce message to 258438032Speter /var/tmp/dead.letter would cause sendmail to send a bounce 258538032Speter to postmaster but not remove the offending envelope from the 258638032Speter queue causing it to create a new bounce message each time the 258738032Speter queue was run. Problem noted by Brad Doctor of Net Daemons 258838032Speter Associates. 258938032Speter Remove newlines from hostname information returned via DNS. There are 259038032Speter no known security implications of newlines in hostnames as 259138032Speter sendmail filters newlines in all vital areas; however, this 259238032Speter could cause confusing error messages. 259338032Speter Starting with sendmail 8.8.6, mail sent with the '-t' option would be 259438032Speter rejected if any of the specified addresses were bad. This 259538032Speter behavior was modified to only reject the bad addresses and not 259638032Speter the entire message. Problem noted by Jozsef Hollosi of 259738032Speter SuperNet, Inc. 259838032Speter Use Timeout.fileopen when delivering mail to a file. Suggested by 259938032Speter Bryan Costales of InfoBeat, Inc. 260038032Speter Display the proper Final-Recipient on DSN messages for non-SMTP 260138032Speter mailers. Problem noted by Kari E. Hurtta of the 260238032Speter Finnish Meteorological Institute. 260338032Speter An error in calculating the available space in the list of addresses 260438032Speter for logging deliveries could cause an address to be silently 260538032Speter dropped. 260638032Speter Include the initial user environment if sendmail is restarted via 260738032Speter a HUP signal. This will give room for the process title. 260838032Speter Problem noted by Jon Lewis of Florida Digital Turnpike. 260938032Speter Mail could be delivered without a body if the machine does not 261038032Speter support flock locking and runs out of processes during 261138032Speter delivery. Fix from Chuck Lever of the University of Michigan. 261238032Speter Drop recipient address from 251 and 551 SMTP responses per RFC 821. 261338032Speter Problem noted by Kari E. Hurtta of the Finnish Meteorological 261438032Speter Institute. 261538032Speter Make sure non-rebuildable database maps are opened before the 261664562Sgshapiro rebuildable maps (i.e., alias files) in case the database maps 261738032Speter are needed for verifying the left hand side of the aliases. 261838032Speter Problem noted by Lloyd Parkes of Victoria University. 261938032Speter Make sure sender RFC822 source route addresses are alias expanded for 262038032Speter bounce messages. Problem noted by Juergen Georgi of 262138032Speter RUS University of Stuttgart. 262238032Speter Minor lint fixes. 262338032Speter Return a temporary error instead of a permanent error if an LDAP map 262438032Speter search returns an error. This will allow sequenced maps which 262538032Speter use other LDAP servers to be checked. Fix from Booker Bense 262638032Speter of Stanford University. 262738032Speter When automatically converting from quoted printable to 8bit text do 262838032Speter not pad bare linefeeds with a space. Problem noted by Theo 262938032Speter Nolte of the University of Technology Aachen, Germany. 263038032Speter Portability: 263138032Speter Non-standard C compilers may have had a problem compiling 263238032Speter conf.c due to a standard C external declaration of 263338032Speter setproctitle(). Problem noted by Ted Roberts of 263438032Speter Electronic Data Systems. 263538032Speter AUX: has a broken O_EXCL implementation. Reported by Jim 263638032Speter Jagielski of jaguNET Access Services. 263738032Speter BSD/OS: didn't compile if HASSETUSERCONTEXT was defined. 263838032Speter Digital UNIX: Digital UNIX (and possibly others) moves 263938032Speter loader environment variables into the loader memory 264038032Speter area. If one of these environment variables (such as 264138032Speter LD_LIBRARY_PATH) was the last environment variable, 264238032Speter an invalid memory address would be used by the process 264338032Speter title routine causing memory corruption. Problem 264438032Speter noted by Sam Hartman of Mesa Internet Systems. 264538032Speter GNU libc: uses an enum for _PC_CHOWN_RESTRICTED which caused 264638032Speter chownsafe() to always return 0 even if the OS does 264738032Speter not permit file giveaways. Problem noted by 264838032Speter Yasutaka Sumi of The University of Tokyo. 264964562Sgshapiro IRIX6: Syslog buffer size set to 512 bytes. Reported by 265038032Speter Gerald Rinske of Siemens Business Services VAS. 265138032Speter Linux: Pad process title with NULLs. Problem noted by 265238032Speter Jon Lewis of Florida Digital Turnpike. 265338032Speter SCO OpenServer 5.0: SIOCGIFCONF ioctl call returns an 265438032Speter incorrect value for the number of interfaces. 265538032Speter Problem noted by Chris Loelke of JetStream Internet 265638032Speter Services. 265738032Speter SINIX: Update for Makefile and syslog buffer size from Gerald 265838032Speter Rinske of Siemens Business Services VAS. 265938032Speter Solaris: Make sure HASGETUSERSHELL setting for SunOS is not 266038032Speter used on a Solaris machine. Problem noted by 266138032Speter Stephen Ma of Jtec Pty Limited. 266238032Speter CONFIG: SINIX: Update from Gerald Rinske of Siemens Business 266338032Speter Services VAS. 266438032Speter MAKEMAP: Use a better heuristic for detecting GDBM. 266538032Speter CONTRIB: expn.pl: Updated version from the author, David Muir Sharnoff. 266638032Speter OP.ME: Document the F=i mailer flag. Problem noted by Per Hedeland of 266738032Speter Ericsson. 266838032Speter 266964562Sgshapiro8.8.7/8.8.7 1997/08/03 267038032Speter If using Berkeley DB on systems without O_EXLOCK (open a file with 267138032Speter an exclusive lock already set -- i.e., almost all systems 267238032Speter except 4.4-BSD derived systems), the initial attempt at 267338032Speter rebuilding aliases file if the database didn't already 267438032Speter exist would fail. Patch from Raymund Will of LST Software 267538032Speter GmbH. 267638032Speter Bogus incoming SMTP commands would reset the SMTP conversation. 267738032Speter Problem noted by Fredrik J�nsson of the Royal Institute 267838032Speter of Technology, Stockholm. 267938032Speter Since TCP Wrappers includes setenv(), unsetenv(), and putenv(), 268038032Speter some environments could give "multiple definitions" for these 268138032Speter routines during compilation. If using TCP Wrappers, assume 268238032Speter that these routines are included as though they were in the 268338032Speter C library. Patch from Robert La Ferla. 268438032Speter When a NEWDB database map was rebuilt at the same time it was being 268538032Speter used by a queue run, the maps could be left locked for the 268638032Speter duration of the queue run, causing other processes to hang. 268738032Speter Problem noted by Kendall Libby of Shore.NET. 268838032Speter In some cases, NoRecipientAction=add-bcc was being ignored, so the 268938032Speter mail was passed on without any recipient header. This could 269038032Speter cause problems downstream. Problem noted by Xander Jansen 269138032Speter of SURFnet ExpertiseCentrum. 269238032Speter Give error when GDBM is used with sendmail. GDBM's locking and 269338032Speter linking of the .dir and .pag files interferes with sendmail's 269438032Speter locking and security checks. Problems noted by Fyodor 269538032Speter Yarochkin of the Kyrgyz Republic FreeNet. 269638032Speter Don't fsync qf files if SuperSafe option is not set. 269738032Speter Avoid extra calls to gethostbyname for addresses for which a 269838032Speter gethostbyaddr found no value. Also, ignore any returns 269938032Speter from gethostbyaddr that look like a dotted quad. 270038032Speter If PTR lookup fails when looking up an SMTP peer, don't tag it as 270138032Speter "may be forged", since at the network level we pretty much 270238032Speter have to assume that the information is good. 270338032Speter In some cases, errors during an SMTP session could leave files 270438032Speter open or locked. 270538032Speter Better handling of missing file descriptors (0, 1, 2) on startup. 270638032Speter Better handling of non-setuid binaries -- avoids certain obnoxious 270738032Speter errors during testing. 270838032Speter Errors in file locking of NEWDB maps had the incorrect file name 270938032Speter printed in the error message. 271038032Speter If the AllowBogusHELO option were set and an EHLO with a bad or 271138032Speter missing parameter were issued, the EHLO behaved like a HELO. 271238032Speter Load limiting never kicked in for incoming SMTP transactions if the 271343730Speter DeliveryMode=background and any recipient was an alias or 271438032Speter had a .forward file. From Nik Conwell of Boston University. 271538032Speter On some non-Posix systems, the decision of whether chown(2) permits 271638032Speter file giveaway was undefined. From Tetsu Ushijima of the 271738032Speter Tokyo Institute of Technology. 271838032Speter Fix race condition that could cause the body of a message to be 271938032Speter lost (so only the header was delivered). This only occurs 272038032Speter on systems that do not use flock(2), and only when a queue 272138032Speter runner runs during a critical section in another message 272238032Speter delivery. Based on a patch from Steve Schweinhart of 272338032Speter Results Computing. 272438032Speter If a qf file was found in a mail queue directory that had a problem 272538032Speter (wrong ownership, bad format, etc.) and the file name was 272638032Speter exactly MAXQFNAME bytes long, then instead of being tried 272738032Speter once, it would be tried on every queue run. Problem noted 272838032Speter by Bryan Costales of Mercury Mail. 272938032Speter If the system supports an st_gen field in the status structure, 273038032Speter include it when reporting that a file has changed after open. 273138032Speter This adds a new compile flag, HAS_ST_GEN (0/1 option). 273238032Speter This out to be checked as well as reported, since it is 273338032Speter theoretically possible for an attacker to remove a file after 273438032Speter it is opened and replace it with another file that has the 273538032Speter same i-number, but some filesystems (notably AFS) return 273638032Speter garbage in this field, and hence always look like the file 273738032Speter has changed. As a practical matter this is not a security 273838032Speter problem, since the files can be neither hard nor soft links, 273938032Speter and on no filesystem (that I am aware of) is it possible to 274038032Speter have two files on the same filesystem with the same i-number 274138032Speter simultaneously. 274238032Speter Delete the root Makefile from the distribution -- it is only for 274338032Speter use internally, and does not work at customer sites. 274438032Speter Fix botch that caused the second MAIL FROM: command in a single 274538032Speter transaction to clear the entire transaction. Problem 274638032Speter noted by John Kennedy of Cal State University, Chico. 274738032Speter Work properly on machines that have _PATH_VARTMP defined without 274838032Speter a trailing slash. (And a pox on vendors that decide to 274938032Speter ignore the established conventions!) Problem noted by 275038032Speter Gregory Neil Shapiro of WPI. 275138032Speter Internal changes to make it easier to add another protocol family 275238032Speter (intended for IPv6). Patches are from John Kennedy of 275338032Speter CSU Chico. 275438032Speter In certain cases, 7->8 bit MIME decoding of Base64 text could leave 275538032Speter an extra space at the beginning of some lines. Problem 275638032Speter noted by Charles Karney of Princeton University; fix based 275738032Speter on a patch from Christophe Wolfhugel. 275838032Speter Portability: 275938032Speter Allow _PATH_VENDOR_CF to be set in Makefile for consistency 276038032Speter with the _Sendmail_ book, 2nd edition. Note that 276138032Speter the book is actually wrong: _PATH_SENDMAILCF should 276238032Speter be used instead. 276338032Speter AIX 3.x: Include <sys/select.h>. Patch from Gene Rackow 276438032Speter of Argonne National Laboratory. 276538032Speter OpenBSD from from Paul DuBois of the University of Wisconsin. 276638032Speter RISC/os 4.0 from Paul DuBois of the University of Wisconsin. 276738032Speter SunOS: Include <memory.h> to fix warning from util.c. From 276838032Speter James Aldridge of EUnet Ltd. 276938032Speter Solaris: Change STDIR (location of status file) to /etc/mail 277038032Speter in Makefiles. 277138032Speter Linux, Dynix, UNICOS: Remove -DNDBM and -lgdbm from 277238032Speter Makefiles. Use NEWDB on Linux instead. 277338032Speter NCR MP-RAS 3.x with STREAMware TCP/IP: SIOCGIFNUM ioctl 277438032Speter exists but behaves differently than other OSes. 277538032Speter Add SIOCGIFNUM_IS_BROKEN compile flag to get 277638032Speter around the problem. Problem noted by Tom Moore of 277738032Speter NCR Corp. 277838032Speter HP-UX 9.x: fix compile warnings for old select API. Problem 277938032Speter noted by Tom Smith of Digital Equipment Corp. 278038032Speter UnixWare 2.x: compile warnings on offsetof macro. Problem 278138032Speter noted by Tom Good of the Community Access Information 278238032Speter Resource Network 278338032Speter SCO 4.2: compile problems caused by a change in the type of 278438032Speter the "length" parameters passed to accept, getpeername, 278538032Speter getsockname, and getsockopt. Adds new compile flags 278638032Speter SOCKADDR_SIZE_T and SOCKOPT_SIZE_T. Problem reported 278738032Speter by Tom Good of St. Vincent's North Richmond Community 278838032Speter Mental Health Center Residential Services. 278938032Speter AIX 4: Use size_t for SOCKADDR_SIZE_T and SOCKOPT_SIZE_T. 279038032Speter Suggested by Brett Hogden of Rochester Gas & Electric 279138032Speter Corp. 279238032Speter Linux: avoid compile problem for versions of <setjmp.h> that 279338032Speter #define both setjmp and longjmp. Problem pointed out 279438032Speter by J.R. Oldroyd of TerraNet. 279538032Speter CONFIG: SCO UnixWare 2.1: Support for OSTYPE(sco-uw-2.1) 279638032Speter from Christopher Durham of SCO. 279738032Speter CONFIG: NEXTSTEP: define confCW_FILE to 279838032Speter /etc/sendmail/sendmail.cw to match the usual 279938032Speter configuration. Patch from Dennis Glatting of 280038032Speter PlainTalk. 280138032Speter CONFIG: MAILER(fax) called a program that hasn't existed for a long 280238032Speter time. Convert to use the HylaFAX 4.0 conventions. Suggested 280338032Speter by Harry Styron. 280438032Speter CONFIG: Improve sample anti-spam rulesets in cf/cf/knecht.mc. These 280538032Speter are the rulesets in use on sendmail.org. 280638032Speter MAKEMAP: give error on GDBM files. 280738032Speter MAIL.LOCAL: Make error messages a bit more explicit, for example, 280838032Speter telling more details on what actually changed when "file 280938032Speter changed after open". 281038032Speter CONTRIB: etrn.pl: Ignore comments in Fw files. Support multiple Fw 281138032Speter files. 281238032Speter CONTRIB: passwd-to-alias.pl: Handle 8 bit characters and '-'. 281338032Speter NEW FILES: 281438032Speter src/Makefiles/Makefile.OpenBSD 281538032Speter src/Makefiles/Makefile.RISCos.4_0 281638032Speter test/t_exclopen.c 281738032Speter cf/ostype/sco-uw-2.1.m4 281838032Speter DELETED FILES: 281938032Speter Makefile 282038032Speter 282164562Sgshapiro8.8.6/8.8.6 1997/06/14 282238032Speter ************************************************************* 282338032Speter * The extensive assistance of Gregory Neil Shapiro of WPI * 282438032Speter * in preparing this release is gratefully appreciated. * 282538032Speter * Sun Microsystems has also provided resources toward * 282638032Speter * continued sendmail development. * 282738032Speter ************************************************************* 282838032Speter SECURITY: A few systems allow an open with the O_EXCL|O_CREAT open 282938032Speter mode bits set to create a file that is a symbolic link that 283038032Speter points nowhere. This makes it possible to create a root 283138032Speter owned file in an arbitrary directory by inserting the symlink 283238032Speter into a writable directory after the initial lstat(2) check 283338032Speter determined that the file did not exist. The only verified 283438032Speter example of a system having these odd semantics for O_EXCL 283538032Speter and symbolic links was HP-UX prior to version 9.07. Most 283638032Speter systems do not have the problem, since a exclusive create 283738032Speter of a file disallows symbolic links. Systems that have been 283838032Speter verified to NOT have the problem include AIX 3.x, *BSD, 283938032Speter DEC OSF/1, HP-UX 9.07 and higher, Linux, SunOS, Solaris, 284038032Speter and Ultrix. This is a potential exposure on systems that 284138032Speter have this bug and which do not have a MAILER-DAEMON alias 284238032Speter pointing at a legitimate account, since this will cause old 284338032Speter mail to be dropped in /var/tmp/dead.letter. 284438032Speter SECURITY: Problems can occur on poorly managed systems, specifically, 284538032Speter if maps or alias files are in world writable directories. 284638032Speter If your system has alias maps in writable directories, it 284738032Speter is potentially possible for an attacker to replace the .db 284838032Speter (or .dir and .pag) files by symbolic links pointing at 284938032Speter another database; this can be used either to expose 285038032Speter information (e.g., by pointing an alias file at /etc/spwd.db 285138032Speter and probing for accounts), or as a denial-of-service attack 285238032Speter (by trashing the password database). The fix disallows 285338032Speter symbolic links entirely when rebuilding alias files or on 285438032Speter maps that are in writable directories, and always warns on 285538032Speter writable directories; 8.9 will probably consider writable 285638032Speter directories to be fatal errors. This does not represent an 285738032Speter exposure on systems that have alias files in unwritable 285838032Speter system directories. 285938032Speter SECURITY: disallow .forward or :include: files that are links (hard 286038032Speter or soft) if the parent directory (or any directory in the 286138032Speter path) is writable by anyone other than the owner. This is 286238032Speter similar to the previous case for user files. This change 286338032Speter should not affect most systems, but is necessary to prevent 286438032Speter an attacker who can write the directory from pointing such 286538032Speter files at other files that are readable only by the owner. 286638032Speter SECURITY: Tighten safechown rules: many systems will say that they 286738032Speter have a safe (restricted to root) chown even on files that 286838032Speter are mounted from another system that allows owners to give 286938032Speter away files. The new rules are very strict, trusting file 287038032Speter ownership only in those few cases where the system has 287138032Speter been verified to be at least as paranoid as necessary. 287238032Speter However, it is possible to relax the rules to partially 287338032Speter trust the ownership if the directory path is not world or 287438032Speter group writable. This might allow someone who has a legitimate 287538032Speter :include: file (referenced directly from /etc/aliases) to 287638032Speter become another non-root user if the :include: file is in a 287738032Speter non-writable directory on an NFS-mounted filesystem where 287838032Speter the local system says that giveaway is denied but it is 287938032Speter actually permitted. I believe this to be a very small set 288038032Speter of cases. If in doubt, do not point :include: aliases at 288138032Speter NFS-mounted filesystems. 288238032Speter SECURITY: When setting a numeric group id using the RunAsUser option 288338032Speter (e.g., "O RunAsUser=10:20", the group id would not be set. 288438032Speter Implicit group ids (e.g., "O RunAsUser=mailnull") or alpha 288538032Speter group ids (e.g., "O RunAsUser=mailuser:mailgrp") worked fine. 288638032Speter The user id was still set properly. Problem noted by Uli 288738032Speter Pralle of the Technical University of Berlin. 288838032Speter Save the initial gid set for use when checking for if the 288938032Speter PrivacyOptions=restrictmailq option is set. Problem reported 289038032Speter by Wolfgang Ley of DFN-CERT. 289138032Speter Make 55x reply codes to the SMTP DATA-"." be non-sticky (i.e., a 289238032Speter failure on one message won't affect future messages to the 289338032Speter same host). 289438032Speter IP source route printing had an "off by one" error that would 289538032Speter affect any options that came after the route option. Patch 289638032Speter from Theo de Raadt. 289738032Speter The "Message is too large" error didn't successfully bounce the error 289838032Speter back to the sender. Problem reported by Stephen More of 289938032Speter PSI; patch from Gregory Neil Shapiro of WPI. 290038032Speter Change SMTP status code 553 to map into Extended code 5.1.0 (instead 290138032Speter of 5.1.3); it apparently gets used in multiple ways. 290238032Speter Suggested by John Myers of Portola Communications. 290338032Speter Fix possible extra null byte generated during collection if errors 290438032Speter occur at the beginning of the stream. Patch contributed by 290538032Speter Andrey A. Chernov and Gregory Neil Shapiro. 290638032Speter Code changes to avoid possible reentrant call of malloc/free within 290738032Speter a signal handler. Problem noted by John Beck of Sun 290838032Speter Microsystems. 290938032Speter Move map initialization to be earlier so that check_relay ruleset 291038032Speter will have the latest version of the map data. Problem noted 291138032Speter by Paul Forgey of Metainfo; patch from Gregory Neil Shapiro. 291238032Speter If there are fatal errors during the collection phase (e.g., message 291338032Speter too large) don't send the bogus message. 291438032Speter Avoid "cannot open xfAAA00000" messages when sending to aliases that 291538032Speter have errors and have owner- aliases. Problem noted by Michael 291638032Speter Barber of MTU; fix from Gregory Neil Shapiro of WPI. 291738032Speter Avoid null pointer dereference on illegal Boundary= parameters in 291838032Speter multipart/mixed Content-Type: header. Problem noted by 291938032Speter Richard Muirden of RMIT University. 292038032Speter Always print error messages during newaliases (-bi) even if the 292138032Speter ErrorMode is not set to "print". Fix from Gregory Neil 292238032Speter Shapiro. 292338032Speter Test mode could core dump if you did a /map lookup in an optional map 292438032Speter that could not be opened. Based on a fix from John Beck of 292538032Speter Sun Microsystems. 292638032Speter If DNS is misconfigured so that the last MX record tried points to 292738032Speter a host that does not have an A record, but other MX records 292838032Speter pointed to something reasonable, don't bounce the message 292938032Speter with a "host unknown" error. Note that this should really 293038032Speter be fixed in the zone file for the domain. Problem noted by 293138032Speter Joe Rhett of Navigist, Inc. 293238032Speter If a map fails (e.g., DNS times out) on all recipient addresses, mark 293338032Speter the message as having been tried; otherwise the next queue 293438032Speter run will not realize that this is a second attempt and will 293538032Speter retry immediately. Problem noted by Bryan Costales of 293638032Speter Mercury Mail. 293738032Speter If the clock is set backwards, and a MinQueueAge is set, no jobs 293838032Speter will be run until the later setting of the clock is reached. 293938032Speter "Problem" (I use the term loosely) noted by Eric Hagberg of 294038032Speter Morgan Stanley. 294138032Speter If the load average rises above the cutoff threshold (above which 294238032Speter sendmail will not process the queue at all) during a queue 294338032Speter run, abort the queue run immediately. Problem noted by 294438032Speter Bryan Costales of Mercury Mail. 294538032Speter The variable queue processing algorithm (based on the message size, 294638032Speter number of recipients, message precedence, and job age) was 294738032Speter non-functional -- either the entire queue was processed or 294838032Speter none of the queue was processed. The updated algorithm 294938032Speter does no queue run if a single recipient zero size job will 295038032Speter not be run. 295138032Speter If there is a fatal ("panic") message that will cause sendmail to 295238032Speter die immediately, never hold the error message for future 295338032Speter printing. 295438032Speter Force ErrorMode=print in -bt mode so that all errors are printed 295538032Speter regardless of the setting of the ErrorMode option in the 295638032Speter configuration file. Patch from Gregory Neil Shapiro. 295738032Speter New compile flag HASSTRERROR says that this OS has the strerror(3) 295838032Speter routine available in one of the libraries. Use it in conf.h. 295938032Speter The -m (match only) flag now works on host class maps. 296038032Speter If class hash or btree maps are rebuilt, sendmail will now detect 296138032Speter this and reopen the map. Previously, they could give 296238032Speter erroneous results during a single message processing 296338032Speter (but would recover when the next message was received). 296438032Speter Don't delete zero length queue files when doing queue runs until the 296538032Speter files are at least ten minutes old. This avoids a potential 296638032Speter race condition: the creator creates the qf file, getting back 296738032Speter a file descriptor. The queue runner locks it and deletes it 296838032Speter because it is zero length. The creator then writes the 296938032Speter descriptor that is now for a disconnected file, and the 297038032Speter job goes away. Based on a suggestion by Bryan Costales. 297138032Speter When determining the "validated" host name ($_ macro), do a forward 297238032Speter (A) DNS lookup on the result of the PTR lookup and compare 297338032Speter results. If they differ or if the PTR lookup fails, tag the 297438032Speter address as "may be forged". 297538032Speter Log null connections (i.e., hosts that connect but do not do any 297638032Speter substantive activity on the connection before disconnecting; 297738032Speter "substantive" is defined to be MAIL, EXPN, VRFY, or ETRN. 297838032Speter Always permit "writes" to /dev/null regardless of the link count. 297938032Speter This is safe because /dev/null is special cased, and no open 298038032Speter or write is ever actually attempted. Patch from Villy Kruse 298138032Speter of TwinCom. 298238032Speter If a message cannot be sent because of a 552 (exceeded storage 298338032Speter allocation) response to the MAIL FROM:<>, and a SIZE= parameter 298438032Speter was given, don't return the body in the bounce, since there 298538032Speter is a very good chance that the message will double-bounce. 298638032Speter Fix possible line truncation if a quoted-printable had an =00 escape 298738032Speter in the body. Problem noted by Charles Karney of the Princeton 298838032Speter Plasma Physics Laboratory. 298938032Speter Notify flags (e.g., -NSUCCESS) were lost on user+detail addresses. 299038032Speter Problem noted by Kari Hurtta of the Finnish Meteorological 299138032Speter Institute. 299238032Speter The MaxDaemonChildren option wasn't applying to queue runs as 299338032Speter documented. Note that this increases the potential denial 299438032Speter of service problems with this option: an attacker can 299538032Speter connect many times, and thereby lock out queue runs as well 299638032Speter as incoming connections. If you use this option, you should 299738032Speter run the "sendmail -bd" and "sendmail -q30m" jobs separately 299838032Speter to avoid this attack. Failure to limit noted by Matthew 299938032Speter Dillon of BEST Internet Communications. 300038032Speter Always give a message in newaliases if alias files cannot be 300138032Speter opened instead of failing silently. Suggested by Gregory 300238032Speter Neil Shapiro. This change makes the code match the O'Reilly 300338032Speter book (2nd edition). 300438032Speter Some older versions of the resolver could return with h_errno == -1 300538032Speter if no name server could be reached, causing mail to bounce 300638032Speter instead of queueing. Treat this like TRY_AGAIN. Fix from 300738032Speter John Beck of SunSoft. 300838032Speter If a :include: file is owned by a user that does not have an entry 300938032Speter in the passwd file, sendmail could dereference a null pointer. 301038032Speter Problem noted by Satish Mynam of Sun Microsystems. 301138032Speter Take precautions to make sure that the SMTP protocol cannot get out 301238032Speter of sync if (for example) an alias file cannot be opened. 301338032Speter Fix a possible race condition that can cause a SIGALRM to come in 301438032Speter immediately after a SIGHUP, causing the new sendmail to die. 301538032Speter Avoid possible hang on SVr3 systems when doing child reaping. Patch 301638032Speter from Villy Kruse of TwinCom. 301738032Speter Ignore improperly formatted SMTP reply codes. Previously these were 301838032Speter partially processed, which could cause confusing error 301938032Speter returns. 302038032Speter Fix possible bogus pointer dereference when doing ldapx map lookups 302138032Speter on some architectures. 302238032Speter Portability: 302338032Speter A/UX: from Jim Jagielski of NASA/GSFC. 302438032Speter glibc: SOCK_STREAM was changed from a #define to an enum, 302538032Speter thus breaking #ifdef SOCK_STREAM. Only option seems 302638032Speter to be to assume SOCK_STREAM if __GNU_LIBRARY__ is 302738032Speter defined. Problem reported by A Sun of the University 302838032Speter of Washington. 302938032Speter Solaris: use SIOCGIFNUM to get the number of interfaces on 303038032Speter the system rather than guessing at compile time. 303138032Speter Patch contributed by John Beck of Sun Microsystems. 303238032Speter Intel Paragon: from Wendy Lin of Purdue University. 303338032Speter GNU Hurd: from Miles Bader of the GNU project. 303438032Speter RISC/os 4.50 from Harlan Stenn of PFCS Corporation. 303538032Speter ISC Unix: wait never returns if SIGCLD signals are blocked. 303638032Speter Unfortunately releasing them opens a race condition, 303738032Speter but there appears to be no fix for this. Patch from 303838032Speter Gregory Neil Shapiro. 303938032Speter BIND 8.1 for IPv6 compatibility from John Kennedy. 304038032Speter Solaris: a bug in strcasecmp caused characters with the 304138032Speter high order bit set to apparently randomly match 304238032Speter letters -- for example, $| (0233) matches "i" and "I". 304338032Speter Problem noted by John Gregson of the University of 304438032Speter Cambridge. 304538032Speter IRIX 6.x: make Makefile.IRIX.6.2 apply to all 6.x. From 304638032Speter Kari Hurtta. 304738032Speter IRIX 6.x: Create Makefiles for systems that claim to be 304838032Speter IRIX64 but are 6.2 or higher (so use the regular 304938032Speter IRIX Makefile). 305038032Speter IRIX 6.x: Fix load average computation on 64 bit kernels. 305138032Speter Problem noted by Eric Hagberg of Morgan Stanley. 305238032Speter CONFIG: Some canonification was still done for UUCP-like addresses 305338032Speter even if FEATURE(nocanonify) was set. Problem pointed out by 305438032Speter Brian Candler. 305538032Speter CONFIG: In some cases UUCP mailers wouldn't properly recognize all 305638032Speter local names as local. Problem noted by Jeff Polk of BSDI; 305738032Speter fix provided by Gregory Neil Shapiro. 305838032Speter CONFIG: The "local:user" syntax entries in mailertables and other 305938032Speter "mailer:user" syntax locations returned an incorrect value 306038032Speter for the $h macro. Problem noted by Gregory Neil Shapiro. 306138032Speter CONFIG: Retain "+detail" information when forwarding mail to a 306238032Speter MAIL_HUB, LUSER_RELAY, or LOCAL_RELAY. Patch from Philip 306338032Speter Guenther of Gustavus Adolphus College. 306438032Speter CONFIG: Make sure user+detail works for FEATURE(virtusertable); 306538032Speter rules are the same as for aliasing. Based on a patch from 306638032Speter Gregory Neil Shapiro. 306738032Speter CONFIG: Break up parsing rules into several pieces; this should 306838032Speter have no functional change in this release, but makes it 306938032Speter possible to have better anti-spam rulesets in the future. 307038032Speter CONFIG: Disallow double dots in host names to avoid having the 307138032Speter HostStatusDirectory store status under the wrong name. 307238032Speter In some cases this can be used as a denial-of-service attack. 307338032Speter Problem noted by Ron Jarrell of Virginia Tech, patch from 307438032Speter Gregory Neil Shapiro. 307538032Speter CONFIG: Don't use F=m (multiple recipients per invocation) for 307638032Speter MAILER(procmail), but do pass F=Pn9 (include Return-Path:, 307738032Speter don't include From_, and convert to 8-bit). Suggestions 307838032Speter from Kimmo Suominen and Roderick Schertler. 307964562Sgshapiro CONFIG: Domains under $=M (specified with MASQUERADE_DOMAIN) were 308038032Speter being masqueraded as though FEATURE(masquerade_entire_domain) 308138032Speter was specified, even when it wasn't. 308238032Speter MAIL.LOCAL: Solaris 2.6 has snprintf. From John Beck of SunSoft. 308338032Speter MAIL.LOCAL: SECURITY: check to make sure that an attacker doesn't 308438032Speter "slip in" a symbolic link between the lstat(2) call and the 308538032Speter exclusive open. This is only a problem on System V derived 308638032Speter systems that allow an exclusive create on files that are 308738032Speter symbolic links pointing nowhere. 308838032Speter MAIL.LOCAL: If the final mailbox close() failed, the user id was 308938032Speter not reset back to root, which on some systems would cause 309038032Speter later mailboxes to fail. Also, any partial message would 309138032Speter not be truncated, which could result in repeated deliveries. 309238032Speter Problem noted by Bruce Evans via Peter Wemm (FreeBSD 309338032Speter developers). 309438032Speter MAKEMAP: Handle cases where O_EXLOCK is #defined to be 0. A similar 309538032Speter change to the sendmail map code was made in 8.8.3. Problem 309638032Speter noted by Gregory Neil Shapiro. 309738032Speter MAKEMAP: Give warnings on file problems such as map files that are 309838032Speter symbolic links; although makemap is not setuid root, it is 309938032Speter often run as root and hence has the potential for the same 310038032Speter sorts of problems as alias rebuilds. 310138032Speter MAKEMAP: Change compilation so that it will link properly on 310238032Speter NEXTSTEP. 310338032Speter CONTRIB: etrn.pl: search for Cw as well as Fw lines in sendmail.cf. 310438032Speter Accept an optional list of arguments following the server 310538032Speter name for the ETRN arguments to use (instead of $=w). Other 310638032Speter miscellaneous bug fixes. From Christian von Roques via 310738032Speter John Beck of Sun Microsystems. 310838032Speter CONTRIB: Add passwd-to-alias.pl, contributed by Kari Hurtta. This 310938032Speter Perl script converts GECOS information in the /etc/passwd 311038032Speter file into aliases, allowing for faster access to full name 311138032Speter lookups; it is also clever about adding aliases (to root) 311238032Speter for system accounts. 311338032Speter NEW FILES: 311438032Speter src/safefile.c 311538032Speter cf/ostype/gnuhurd.m4 311638032Speter cf/ostype/irix6.m4 311738032Speter contrib/passwd-to-alias.pl 311838032Speter src/Makefiles/Makefile.IRIX64.6.1 311938032Speter src/Makefiles/Makefile.IRIX64.6.x 312038032Speter RENAMED FILES: 312138032Speter src/Makefiles/Makefile.IRIX.6.2 => Makefile.IRIX.6.x 312238032Speter src/Makefiles/Makefile.IRIX64 => Makefile.IRIX64.6.0 312338032Speter 312464562Sgshapiro8.8.5/8.8.5 1997/01/21 312538032Speter SECURITY: Clear out group list during startup. Without this, sendmail 312638032Speter will continue to run with the group permissions of the caller, 312738032Speter even if RunAsUser is specified. 312838032Speter SECURITY: Make purgestat (-bH) be root-only. This is not in response 312938032Speter to any known attack, but it's best to be conservative. 313038032Speter Suggested by Peter Wemm of DIALix. 313138032Speter SECURITY: Fix buffer overrun problem in MIME code that has possible 313238032Speter security implications. Patch from Alex Garthwaite of the 313338032Speter University of Pennsylvania. 313438032Speter Use of a -f flag with a phrase attached (e.g., "-f 'Full Name <addr>'") 313538032Speter would truncate the address after "Full". Although the -f 313638032Speter syntax is incorrect (since it is in the envelope, it 313738032Speter shouldn't have comments and full names), the failure mode 313838032Speter was unnecessarily awful. 313938032Speter Fix a possible null pointer dereference when converting 8-bit data 314038032Speter to a 7-bit format. Problem noted by Jim Hutchins of 314138032Speter Sandia National Labs and David James of British Telecom. 314238032Speter Clear out stale state that affected F=9 on SMTP mailers in queue 314338032Speter runs. Although this really shouldn't be used (F=9 is for 314438032Speter final delivery only, and using it on an SMTP mailer makes 314538032Speter it possible for a message to be converted from 8->7->8->7 314638032Speter bits several times), it shouldn't have failed with a syserr. 314738032Speter Problem noted by Eric Hagberg of Morgan Stanley. 314838032Speter _Really_ fix the multiple :maildrop code in the user database 314938032Speter module. Patch from Roy Mongiovi of Georgia Tech. 315038032Speter Let F lines in the configuration file actually read root-only 315138032Speter files if the configuration file is safe. Based on a 315238032Speter patch from Keith Reynolds of SCO. 315338032Speter ETRN followed by QUIT would hold the connection open until the queue 315438032Speter run completed. Problem noted by Truck Lewis of TDK 315538032Speter Semiconductor Corp. 315638032Speter It turns out that despite the documentation, the TCP wrappers library 315738032Speter does _not_ log rejected connections. Do the logging ourselves. 315838032Speter Problem noted by Fletcher Mattox of the University of Texas 315938032Speter at Austin. 316038032Speter If sendmail finds a qf file in its queue directory that is an unknown 316138032Speter version (e.g., when backing out to an old version), the 316238032Speter error is reported on every queue run. Change it to only 316338032Speter give the error once (and rename the qf => Qf). Patch from 316438032Speter William A. Gianopoulos of Raytheon Company. 316538032Speter Start a new session when doing background delivery; currently it 316638032Speter ignored signals but didn't start a new signal, that caused 316738032Speter some problems if a background process tried to send mail 316838032Speter under certain circumstances. Problem noted by Eric Hagberg 316938032Speter of Morgan Stanley; fix from Kari Hurtta. 317038032Speter Simplify test for skipping a queue run to just check if the current 317138032Speter load average is >= the queueing load average. Previously 317238032Speter the check factored in some other parameters that caused it 317338032Speter to essentially never skip the queue run. Patch from Bryan 317438032Speter Costales. 317538032Speter If the SMTP server is running in "nullserver" mode (that is, it is 317638032Speter rejecting all commands), start sleeping after MAXBADCOMMAND 317738032Speter (25) commands; this helps prevent a bad guy from putting 317838032Speter you into a tight loop as a denial-of-service attack. Based 317938032Speter on an e-mail conversation with Brad Knowles of AOL. 318038032Speter Slow down when too many "light weight" commands have been issued; 318138032Speter this helps prevent a class of denial-of-service attacks. 318238032Speter The current values and defaults are: 318338032Speter MAXNOOPCOMMANDS 20 NOOP, VERB, ONEX, XUSR 318438032Speter MAXHELOCOMMANDS 3 HELO, EHLO 318538032Speter MAXVRFYCOMMANDS 6 VRFY, EXPN 318638032Speter MAXETRNCOMMANDS 8 ETRN 318738032Speter These will probably be configurable in a future release. 318838032Speter On systems that have uid_t typedefed to be an unsigned short, programs 318938032Speter that had the F=S flag and no U= equate would be invoked with 319038032Speter the real uid set to 65535 rather than being left unchanged. 319138032Speter In some cases, NOTIFY=NEVER was not being honored. Problem noted 319238032Speter by Steve Hubert of the University of Washington, Seattle. 319338032Speter Mail that was Quoted-Printable encoded and had a soft line break on 319438032Speter the last line (i.e., an incomplete continuation) had the last 319538032Speter line dropped. Since this appears to be illegal it isn't 319638032Speter clear what to do with it, but flushing the last line seems 319738032Speter to be a better "fail soft" approach. Based on a patch from 319838032Speter Eric Hagberg. 319938032Speter If AllowBogusHELO and PrivacyOptions=needmailhelo are both set, a 320038032Speter bogus HELO command still causes the "Polite people say HELO 320138032Speter first" error message. Problem pointed out by Chris Thomas 320238032Speter of UCLA; patch from John Beck of SunSoft. 320338032Speter Handle "sendmail -bp -qSfoobar" properly if restrictqrun is set 320443730Speter in PrivacyOptions. The -q shouldn't turn this command off. 320538032Speter Problem noted by Murray Kucherawy of Pacific Bell Internet; 320638032Speter based on a patch from Gregory Neil Shapiro of WPI. 320738032Speter Don't consider SMTP reply codes 452 or 552 (exceeded storage allocation) 320838032Speter in a DATA transaction to be sticky; these can occur because 320938032Speter a message is too large, and smaller messages should still go 321038032Speter through. Problem noted by Matt Dillon of Best Internet 321138032Speter Communications. 321238032Speter In some cases bounces were saved in /var/tmp/dead.letter even if they 321338032Speter had been successfully delivered to the envelope sender. 321438032Speter Problem noted Eric Hagberg of Morgan Stanley; solution from 321538032Speter Gregory Neil Shapiro of WPI. 321638032Speter Give better diagnostics on long alias lines. Based on code contributed 321738032Speter by Patrick Gosling of the University of Cambridge. 321838032Speter Increase the number of virtual interfaces that will be probed for 321938032Speter alternate names. Problem noted by Amy Rich of Shore.Net. 322038032Speter PORTABILITY: 322138032Speter UXP/DS V20L10 for Fujitsu DS/90: Makefile patches from 322238032Speter Toshiaki Nomura of Fujitsu Limited. 322338032Speter SunOS with LDAP support: compile problems with struct timeval. 322438032Speter Patch from Nick Cuccia of TCSI Corporation. 322538032Speter SCO: from Keith Reynolds of SCO. 322638032Speter Solaris: kstat load average computation wasn't being used. 322738032Speter Fixes from Michael Ju. Tokarev of Telecom Service, JSC 322838032Speter (Moscow). 322938032Speter OpenBSD: from Jason Downs of teeny.org. 323038032Speter Altos System V: from Tim Rice. 323138032Speter Solaris 2.5: from Alan Perry of SunSoft. 323238032Speter Solaris 2.6: from John Beck of SunSoft. 323338032Speter Harris Nighthawk PowerUX (mh6000 box): from Bob Miorelli 323438032Speter of Pratt & Whitney <miorelli@pweh.com>. 323538032Speter CONFIG: It seems that I hadn't gotten the Received: line syntax 323638032Speter _just_right_ yet. Tweak it again. I'll omit the names 323738032Speter of the "contributors" (quantity two) in this one case. 323838032Speter As of now, NO MORE DISCUSSION about the syntax of the 323938032Speter Received: line. 324038032Speter CONFIG: Although FEATURE(nullclient) uses EXPOSED_USER (class $=E), 324138032Speter it never inserts that class into the output file. Fix it 324238032Speter so it will honor EXPOSED_USER but will _not_ include root 324338032Speter automatically in this class. Problem noted by Ronan KERYELL 324438032Speter of Centre de Recherche en Informatique de l'�cole Nationale 324538032Speter Sup�rieure des Mines de Paris (CRI-ENSMP). 324638032Speter CONFIG: Clean up handling of "local:" syntax in relay specifications 324738032Speter such as LUSER_RELAY. This change permits the following 324838032Speter syntaxes: ``local:'' will send to the same user on the 324938032Speter local machine (e.g., in a mailertable entry for "host", 325038032Speter ``local:'' will cause an address addressed to user@host to 325138032Speter go to user on the local machone). ``local:user'' will send 325238032Speter to the named user on the local machine. ``local:user@host'' 325338032Speter is equivalent to ``local:user'' (the host is ignored). In 325438032Speter all cases, the original user@host is passed in $@ (i.e., the 325538032Speter detail information). Inspired by a report from Michael Fuhr. 325638032Speter CONFIG: Strip quotes from the first word of an "error:" host 325738032Speter indication. This lets you set (for example) the LUSER_RELAY 325838032Speter to be ``error:\"5.1.1\" Your Message Here''. Note the use 325938032Speter of the \" so that the resulting string is properly quoted. 326038032Speter Problem noted by Gregory Neil Shapiro of WPI. 326138032Speter OP.ME: documentation was inconsistent about whether sendmail did a 326238032Speter NOOP or a RSET to probe the connection (it does a RSET). 326338032Speter Inconsistency noted by Deeran Peethamparam. 326438032Speter OP.ME: insert additional blank pages so it will print properly on 326538032Speter a duplex printer. From Matthew Black of Cal State University, 326638032Speter Long Beach. 326738032Speter 326864562Sgshapiro8.8.4/8.8.4 1996/12/02 326938032Speter SECURITY: under some circumstances, an attacker could get additional 327038032Speter permissions by hard linking to files that were group 327138032Speter writable by the attacker. The solution is to disallow any 327238032Speter files that have hard links -- this will affect .forward, 327338032Speter :include:, and output files. Problem noted by Terry 327438032Speter Kyriacopoulos of Interlog Internet Services. As a 327538032Speter workaround, set UnsafeGroupWrites -- always a good idea. 327638032Speter SECURITY: the TryNullMXList (w) option should not be safe -- if it 327738032Speter is, it is possible to do a denial-of-service attack on 327838032Speter MX hosts that rely on the use of the null MX list. There 327938032Speter is no danger if you have this option turned off (the default). 328038032Speter Problem noted by Dan Bernstein. Also, make the DontInitGroups 328138032Speter unsafe. I know of no specific attack against this, although 328238032Speter a denial-of-service attack is probably possible, but in theory 328338032Speter you should not be able to safely tweak anything that affects 328438032Speter the permissions that are used when mail is delivered. 328538032Speter Purgestat could go into an infinite loop if one of the host status 328638032Speter directories somehow became empty. Problem noted by Roy 328738032Speter Mongiovi of Georgia Tech. 328838032Speter Processes got "lost" when counting children due to a race condition. 328938032Speter This caused "proc_list_probe: lost pid" messages to be logged. 329038032Speter Problem noted by several people. 329138032Speter On systems with System V SIGCLD child signal semantics (notably AIX 329238032Speter and HP-UX), mail transactions would print the message "451 329338032Speter SMTP-MAIL: lost child: No child processes". Problem noted 329438032Speter by several people. 329538032Speter Miscellaneous compiler warnings on picky compilers (or when setting 329638032Speter gcc to high warning levels). From Tom Moore of NCR Corp. 329738032Speter SMTP protocol errors, and most errors on MAIL FROM: lines should 329838032Speter not be persistent between runs, since they are based on the 329938032Speter message rather than the host. Problem noted by Matt Dillon 330038032Speter of Best Internet Communications. 330138032Speter The F=7 flag was ignored on SMTP mailers. Problem noted by Tom Moore 330238032Speter of NCR (a.k.a., AT&T Global Information Solutions). 330338032Speter Avoid the possibility of having a child daemon run to completion 330438032Speter (including closing the SMTP socket) before the parent has 330538032Speter had a chance to close the socket; this can cause the parent 330638032Speter to hang for a long time waiting for the socket to drain. 330738032Speter Patch from Don Lewis of TDK Semiconductor. 330838032Speter If the fork() failed in a queue run, the queue runners would not be 330938032Speter rescheduled (so queue runs would stop). Patch from Don Lewis. 331038032Speter Some error conditions in ETRN could cause output without an SMTP 331138032Speter status code. Problem noted by Don Lewis. 331238032Speter Multiple :maildrop addresses in the user database didn't work properly. 331338032Speter Patch from Roy Mongiovi of Georgia Tech. 331438032Speter Add ".db" automatically onto any user database spec that does not 331538032Speter already have it; this is for consistency with makemap, the 331638032Speter K line, and the documentation. Inconsistency pointed out 331738032Speter by Roy Mongiovi. 331838032Speter Allow sendmail to be properly called in nohup mode. Patch from 331938032Speter Kyle Jones of UUNET. 332038032Speter Change ETRN to ignore but still update host status files; previously 332138032Speter it would ignore them and not save the updated status, which 332238032Speter caused stale information to be maintained. Based on a patch 332338032Speter from Christopher Davis of Kapor Enterprises Inc. Also, have 332438032Speter ETRN ignore the MinQueueAge option. 332538032Speter Patch long term host status to recover more gracefully from an empty 332638032Speter host status file condition. Patch from NAKAMURA Motonori 332738032Speter of Kyoto University. 332838032Speter Several patches to signal handling code to fix potential race 332938032Speter conditions from Don Lewis. 333038032Speter Make it possible to compile with -DDAEMON=0 (previously it had some 333138032Speter compile errors). This turns DAEMON, QUEUE, and SMTP into 333238032Speter 0/1 compilation flags. Note that DAEMON is an obsolete 333338032Speter compile flag; use NETINET instead. Solution based on a 333438032Speter patch from Bryan Costales. 333538032Speter PORTABILITY FIXES: 333638032Speter AIX4: getpwnam() and getpwuid() do a sequential scan of the 333738032Speter /etc/security/passwd file when called as root. This 333838032Speter is very slow on some systems. To speed it up, use the 333938032Speter (undocumented) _getpw{nam,uid}_shadow() routines. 334038032Speter Patch from Chris Thomas of UCLA/OAC Systems Group. 334138032Speter SCO 5.x: include -lprot in the Makefile. Patch from Bill 334238032Speter Glicker of Burrelle's Information Service. 334338032Speter NEWS-OS 4.x: need a definition for MODE_T to compile. Patch 334438032Speter from Makoto MATSUSHITA of Osaka University. 334538032Speter SunOS 4.0.3: compile problems. Patches from Andrew Cole of 334638032Speter Leeds University and SASABE Tetsuro of the University 334738032Speter of Tokyo. 334838032Speter DG/UX 5.4.4.11 from Brian J. Murrell of InterLinx Support 334938032Speter Services, Inc. 335038032Speter Domain/OS from Don (Truck) Lewis of TDK Semiconductor Corp. 335138032Speter I believe this to have only been a problem if you 335238032Speter compiled with -DUSE_VENDOR_CF_PATH -- another reason 335338032Speter to stick with /etc/sendmail.cf as your One True Path. 335438032Speter Digital UNIX (OSF/1 on Alpha) load average computation from 335538032Speter Martin Laubach of the Technischen Universit�t Wien. 335638032Speter CONFIG: change default Received: line to be multiple lines rather 335738032Speter than one long one. By popular demand. 335838032Speter MAIL.LOCAL: warnings weren't being logged on some systems. Patch 335938032Speter from Jerome Berkman of U.C. Berkeley. 336038032Speter MAKEMAP: be sure to zero hinfo to avoid cruft that can cause runs 336138032Speter to take a very long time. Problem noted by Yoshiro YONEYA 336238032Speter of NTT Software Corporation. 336338032Speter CONTRIB: add etrn.pl, contributed by John Beck. 336438032Speter NEW FILES: 336538032Speter contrib/etrn.pl 336638032Speter 336764562Sgshapiro8.8.3/8.8.3 1996/11/17 336838032Speter SECURITY: it was possible to get a root shell by lying to sendmail 336938032Speter about argv[0] and then sending it a signal. Problem noted 337038032Speter by Leshka Zakharoff <leshka@leshka.chuvashia.su> on the 337138032Speter best-of-security list. 337238032Speter Log sendmail binary version number in "Warning: .cf version level 337338032Speter (%d) exceeds program functionality (%d) message" -- this 337438032Speter should make it clearer to people that they are running 337538032Speter the wrong binary. 337638032Speter Fix a problem that occurs when you open an SMTP connection and then 337738032Speter do one or more ETRN commands followed by a MAIL command; at 337838032Speter the end of the DATA phase sendmail would incorrectly report 337938032Speter "451 SMTP-MAIL: lost child: No child processes". Problem 338038032Speter noted by Eric Bishop of Virginia Tech. 338138032Speter When doing text-based host canonification (typically /etc/hosts 338238032Speter lookup), a null host name would match any /etc/hosts entry 338338032Speter with space at the end of the line. Problem noted by Steve 338438032Speter Hubert of the University of Washington, Seattle. 338538032Speter 7 to 8 bit BASE64 MIME conversions could duplicate bits of text. 338638032Speter Problem reported by Tom Smith of Digital Equipment Corp. 338738032Speter Increase the size of the DNS answer buffer -- the standard UDP packet 338838032Speter size PACKETSZ (512) is not sufficient for some nameserver 338938032Speter answers containing very many resource records. The resolver 339038032Speter may also switch to TCP and retry if it detects UDP packet 339138032Speter overflow. Also, allow for the fact that the resolver 339238032Speter routines res_query and res_search return the size of the 339338032Speter *un*truncated answer in case the supplied answer buffer it 339438032Speter not big enough to accommodate the entire answer. Patch from 339538032Speter Eric Wassenaar. 339638032Speter Improvements to MaxDaemonChildren code. If you think you have too 339738032Speter many children, probe the ones you have to verify that they 339838032Speter are still around. Suggested by Jared Mauch of CICnet, Inc. 339938032Speter Also, do this probe before growing the vector of children 340038032Speter pids; this previously caused the vector to grow indefinitely 340138032Speter due to a race condition. Problem reported by Kyle Jones of 340238032Speter UUNET. 340338032Speter On some architectures, <db.h> (from the Berkeley DB library) defines 340438032Speter O_EXLOCK to zero; this fools the map compilation code into 340538032Speter thinking that it can avoid race conditions by locking on open. 340638032Speter Change it to check for O_EXLOCK non-zero. Problem noted by 340738032Speter Leif Erlingsson of Data Lege. 340838032Speter Always call res_init() on startup (if compiled in, of course) to 340938032Speter allow the sendmail.cf file to tweak resolver flags; without 341038032Speter it, flag tweaks in ResolverOptions are ignored. Patch from 341138032Speter Andrew Sun of Merrill Lynch. 341238032Speter Improvements to host status printing code. Suggested by Steve Hubert 341338032Speter of the University of Washington, Seattle. 341438032Speter Change MinQueueAge option processing to do the check for the job age 341538032Speter when reading the queue file, rather than at the end; this 341638032Speter avoids parsing the addresses, which can do DNS lookups. 341738032Speter Problem noted by John Beck of InReference, Inc. 341838032Speter When MIME was being 7->8 bit decoded, "From " lines weren't being 341938032Speter properly escaped. Problem noted by Peter Nilsson of the 342038032Speter University of Linkoping. 342138032Speter In some cases, sendmail would retain root permissions during queue 342238032Speter runs even if RunAsUser was set. Problem noted by Mark 342338032Speter Thomas of Mark G. Thomas Consulting. 342438032Speter If the F=l flag was set on an SMTP mailer to indicate that it is 342538032Speter actually local delivery, and NOTIFY=SUCCESS is specified in 342638032Speter the envelope, and the receiving SMTP server speaks DSN, then 342738032Speter the DSN would be both generated locally and propagated to the 342838032Speter other end. 342938032Speter The U= mailer field didn't correctly extract the group id if the 343038032Speter user id was numeric. Problem noted by Kenneth Herron of 343138032Speter MCI Telecommunications Communications. 343238032Speter If a message exceeded the fixed maximum size on input, the body of 343338032Speter the message was included in the bounce. Note that this did 343438032Speter not occur if it exceeded the maximum _output_ size. Problem 343538032Speter reported by Kyle Jones of UUNET. 343638032Speter PORTABILITY FIXES: 343738032Speter AIX4: 4.1 doesn't have a working setreuid(2); change the 343838032Speter AIX4 defines to use seteuid(2) instead, which 343938032Speter works on 4.1 as well as 4.2. Problem noted by 344038032Speter H�kan Lindholm of interAF, Sweden. 344138032Speter AIX4: use tzname[] vector to determine time zone name. 344238032Speter Patch from NAKAMURA Motonori of Kyoto University. 344338032Speter MkLinux: add Makefile.Linux.ppc and OSTYPE(mklinux) support. 344438032Speter Contributed by Paul DuBois <dubois@primate.wisc.edu>. 344538032Speter Solaris: kstat(3k) support for retrieving the load average. 344638032Speter This adds the LA_KSTAT definition for LA_TYPE. 344738032Speter The outline of the implementation was contributed 344838032Speter by Michael Tokarev of Telecom Service, JSC, Moscow. 344938032Speter HP-UX 10.0 gripes about the (perfectly legal!) forward 345038032Speter declaration of struct rusage at the top of conf.h; 345138032Speter change it to only be included if you are using gcc, 345238032Speter which is apparently the only compiler that requires 345338032Speter it in the first place. Problem noted by Jeff 345438032Speter Earickson of Colby College. 345538032Speter IRIX: don't default to using gcc. IRIX is a civilized 345638032Speter operating system that comes with a decent compiler 345738032Speter by default. Problem noted by Barry Bouwsma and 345838032Speter Kari Hurtta. 345938032Speter CONFIG: specify F=9 as default in FEATURE(local_procmail) for 346038032Speter consistency with other local mailers. Inconsistency 346138032Speter pointed out by Teddy Hogeborn <teddy@fukt.hk-r.se>. 346238032Speter CONFIG: if the "limited best mx" feature is used (to reduce DNS 346338032Speter overhead) as part of the bestmx_is_local feature, the 346438032Speter domain part was dropped from the name. Patch from Steve 346538032Speter Hubert of the University of Washington, Seattle. 346638032Speter CONFIG: catch addresses of the form "user@.dom.ain"; these could 346738032Speter end up being translated to the null host name, which would 346838032Speter return any entry in /etc/hosts that had a space at the end 346938032Speter of the line. Problem noted by Steve Hubert of the 347038032Speter University of Washington, Seattle. 347138032Speter CONFIG: add OSTYPE(aix4). From Michael Sofka of Rensselaer 347238032Speter Polytechnic Institute. 347338032Speter MAKEMAP: tweak hash and btree parameters for better performance. 347438032Speter Patch from Matt Dillon of Best Internet Communications. 347538032Speter NEW FILES: 347638032Speter src/Makefiles/Makefile.Linux.ppc 347738032Speter cf/ostype/aix4.m4 347838032Speter cf/ostype/mklinux.m4 347938032Speter 348064562Sgshapiro8.8.2/8.8.2 1996/10/18 348138032Speter SECURITY: fix a botch in the 7-bit MIME patch; the previous patch 348238032Speter changed the code but didn't fix the problem. 348338032Speter PORTABILITY FIXES: 348438032Speter Solaris: Don't use the system getusershell(3); it can 348538032Speter apparently corrupt the heap in some circumstances. 348638032Speter Problem found by Ken Pizzini of Spry, Inc. 348738032Speter OP.ME: document several mailer flags that were accidentally omitted 348838032Speter from this document. These flags were F=d, F=j, F=R, and F=9. 348938032Speter CONFIG: no changes. 349038032Speter 349164562Sgshapiro8.8.1/8.8.1 1996/10/17 349238032Speter SECURITY: unset all environment variables that the resolver will 349338032Speter examine during queue runs and daemon mode. Problem noted 349438032Speter by Dan Bernstein of the University of Illinois at Chicago. 349538032Speter SECURITY: in some cases an illegal 7-bit MIME-encoded text/plain 349638032Speter message could overflow a buffer if it was converted back 349738032Speter to 8 bits. This caused core dumps and has the potential 349838032Speter for a remote attack. Problem first noted by Gregory Shapiro 349938032Speter of WPI. 350038032Speter Avoid duplicate deliveries of error messages on systems that don't 350138032Speter have flock(2) support. Patch from Motonori Nakamura of 350238032Speter Kyoto University. 350338032Speter Ignore null FallBackMX (V) options. If this option is null (as 350438032Speter opposed to undefined) it can cause "null signature" syserrs 350538032Speter on illegal host names. 350638032Speter If a Base64 encoded text/plain message has no trailing newline in 350738032Speter the encoded text, conversion back to 8 bits will drop the 350838032Speter final line. Problem noted by Pierre David. 350938032Speter If running with a RunAsUser, sendmail would give bogus "cannot 351038032Speter setuid" (or seteuid, or setreuid) messages on some systems. 351138032Speter Problem pointed out by Jordan Mendelson of Web Services, Inc. 351238032Speter Always print error messages in -bv mode -- previously, -bv would 351338032Speter be absolutely silent on errors if the error mode was sent 351438032Speter to (say) mail-back. Problem noted by Kyle Jones of UUNET. 351538032Speter If -qI/R/S is set (or the ETRN command is used), ignore all long 351638032Speter term host status. This is necessary because it is common 351738032Speter to do this when you know a host has just come back up. 351838032Speter Disallow duplicate HELO/EHLO commands as required by RFC 1651 section 351938032Speter 4.2. Excessive permissiveness noted by Lee Flight of the 352038032Speter University of Leicester. 352138032Speter If a service (such as NIS) is specified as the last entry in the 352238032Speter service switch, but that service is not compiled in, sendmail 352338032Speter would return a temporary failure when an entry was not found 352438032Speter in the map. This caused the message to be queued instead of 352538032Speter bouncing immediately. Problem noted by Harry Edmon of the 352638032Speter University of Washington. 352738032Speter PORTABILITY FIXES: 352838032Speter Solaris 2.3 had compilation problems in conf.c. Several 352938032Speter people pointed this out. 353038032Speter NetBSD from Charles Hannum of MIT. 353138032Speter AIX4 improvements based on info from Steve Bauer of South 353238032Speter Dakota School of Mines & Technology. 353338032Speter CONFIG: ``error:code message'' syntax was broken in virtusertable. 353438032Speter Patch from Gil Kloepfer Jr. 353538032Speter CONFIG: if FEATURE(nocanonify) was specified, hosts in $=M (set 353638032Speter using MASQUERADE_DOMAIN) were not masqueraded unless they 353738032Speter were also in $=w. Problem noted by Zoltan Basti of 353838032Speter Softec. 353938032Speter MAIL.LOCAL: patches to compile and link cleanly on AIX. Based 354038032Speter on a patch from Eric Hagberg of Morgan Stanley. 354138032Speter MAIL.LOCAL: patches to compile on NEXTSTEP. From Patrick Nolan 354238032Speter of Stanford via Robert La Ferla. 354338032Speter 354464562Sgshapiro8.8.0/8.8.0 1996/09/26 354538032Speter Under some circumstances, Bcc: headers would not be properly 354638032Speter deleted. Pointed out by Jonathan Kamens of OpenVision. 354738032Speter Log a warning if the sendmail daemon is invoked without a full 354838032Speter pathname, which prevents "kill -1" from working. I was 354938032Speter urged to put this in by Andrey A. Chernov of DEMOS (Russia). 355038032Speter Fix small buffer overflow. Since the data in this buffer was not 355138032Speter read externally, there was no security problem (and in fact 355238032Speter probably wouldn't really overflow on most compilers). Pointed 355338032Speter out by KIZU takashi of Osaka University. 355438032Speter Fix problem causing domain literals such as [1.2.3.4] to be ignored 355538032Speter if a FallbackMXHost was specified in the configuration file 355638032Speter -- all mail would be sent to the fallback even if the original 355738032Speter host was accessible. Pointed out by Munenari Hirayama of 355838032Speter NSC (Japan). 355938032Speter A message that didn't terminate with a newline would (sometimes) not 356038032Speter have the trailing "." added properly in the SMTP dialogue, 356138032Speter causing SMTP to hang. Patch from Per Hedeland of Ericsson. 356238032Speter The DaemonPortOptions suboption to bind to a particular address was 356338032Speter incorrect and nonfunctional due to a misunderstanding of the 356438032Speter semantics of binding on a passive socket. Patch from 356538032Speter NIIBE Yutaka of Mitsubishi Research Institute. 356638032Speter Increase the number of MX hosts for a single name to 100 to better 356738032Speter handle the truly huge service providers such as AOL, which 356838032Speter has 13 at the moment (and climbing). In order to avoid 356938032Speter trashing memory, the buffer for all names has only been 357038032Speter slightly increased in size, to 12.8K from 10.2K -- this means 357138032Speter that if a single name had 100 MX records, the average size 357238032Speter of those records could not exceed 128 bytes. Requested by 357338032Speter Brad Knowles of America On Line. 357438032Speter Restore use of IDENT returns where the OSTYPE field equals "OTHER". 357538032Speter Urged by Dan Bernstein of U.C. Berkeley. 357638032Speter Print q_statdate and q_specificity in address structure debugging 357738032Speter printout. 357838032Speter Expand MCI structure flag bits for debugging output. 357938032Speter Support IPv6-style domain literals, which can have colons between 358038032Speter square braces. 358138032Speter Log open file descriptors for the "cannot dup" messages in deliver(); 358238032Speter this is an attempt to track down a bug that one person seems 358338032Speter to be having (it may be a Solaris bug!). 358438032Speter DSN NOTIFY parameters were not properly propagated across queue runs; 358538032Speter this caused the NOTIFY info to sometimes be lost. Problem 358638032Speter pointed out by Claus Assmann of the 358738032Speter Christian-Albrechts-University of Kiel. 358838032Speter The statistics gathered in the sendmail.st file were too high; in 358938032Speter some cases failures (e.g., user unknown or temporary failure) 359038032Speter would count as a delivery as far as the statistics were 359138032Speter concerned. Problem noted by Tom Moore of AT&T GIS. 359238032Speter Systems that don't have flock() would not send split envelopes in 359338032Speter the initial run. Problem pointed out by Leonard Zubkoff of 359438032Speter Dandelion Digital. 359538032Speter Move buffer overflow checking -- these primarily involve distrusting 359638032Speter results that may come from NIS and DNS. 359738032Speter 4.4-BSD-derived systems, including FreeBSD, NetBSD, and BSD/OS didn't 359838032Speter include <paths.h> and hence had the wrong pathnames for a few 359938032Speter things like /var/tmp. Reported by Matthew Green. 360038032Speter Conditions were reversed for the Priority: header, resulting in all 360138032Speter values being interpreted as non-urgent except for non-urgent, 360238032Speter which was interpreted as normal. Patch from Bryan Costales. 360338032Speter The -o (optional) flag was being ignored on hash and btree maps 360438032Speter since 8.7.2. Fix from Bryan Costales. 360538032Speter Content-Types listed in class "q" will always be encoded as 360638032Speter Quoted-Printable (or more accurately, will never be encoded 360738032Speter as base64). The class can have primary types (e.g., "text") 360838032Speter or full types (e.g., "text/plain"). Based on a suggestion by 360938032Speter Marius Olafsson of the University of Iceland. 361038032Speter Define ${envid} to be the original envelope id (from the ESMTP DSN 361138032Speter dialogue) so it can be passed to programs in mailers. 361238032Speter Define ${bodytype} to be the body type (from the -B flag or the 361338032Speter BODY= ESMTP parameter) so it can be passed to programs in 361438032Speter mailers. 361538032Speter Cause the VRFY command to return 252 instead of 250 unless the F=q 361638032Speter flag is set in the mailer descriptor. Suggested by John 361738032Speter Myers of CMU. 361838032Speter Implement ESMTP ETRN command to flush the queue for a specific host. 361938032Speter The command takes a host name; data for that host is 362038032Speter immediately (and asynchronously) flushed. Because this shares 362138032Speter the -qR implementation, other hosts may be attempted, but 362238032Speter there should be no security implications. Implementation 362338032Speter from John Beck of InReference, Inc. See RFC 1985 for details. 362438032Speter Add three new command line flags to pass in DSN parameters: -V envid 362538032Speter (equivalent to ENVID=envid on the MAIL command), -R ret 362638032Speter (equivalent to RET=ret on the MAIL command), and -Nnotify 362738032Speter (equivalent to NOTIFY=notify on the RCPT command). Note 362838032Speter that the -N flag applies to all recipients; there is no way 362938032Speter to specify per-address notifications on the command line, 363038032Speter nor is there an equivalent for the ORCPT= per-address 363138032Speter parameter. 363238032Speter Restore LogLevel option to be safe (it can only be increased); 363338032Speter apparently I went into paranoid mode between 8.6 and 8.7 363438032Speter and made it unsafe. Pointed out by Dabe Murphy of the 363538032Speter University of Maryland. 363638032Speter New logging on log level 15: all SMTP traffic. Patches from 363738032Speter Andrew Gross of San Diego Supercomputer Center. 363838032Speter NetInfo property value searching code wasn't stopping when it found 363938032Speter a match. This was causing the wrong values to be found (and 364038032Speter had a memory leak). Found by Bastian Schleuter of TU-Berlin. 364138032Speter Add new F=0 (zero) mailer flag to turn off MX lookups. It was pointed 364238032Speter out by Bill Wisner of Electronics for Imaging that you can't 364338032Speter use the bracket address form for the MAIL_HUB macro, since 364438032Speter that causes the brackets to remain in the envelope recipient 364538032Speter address used for delivery. The simple fix (stripping off the 364638032Speter brackets in the config file) breaks the use of IP literal 364738032Speter addresses. This flag will solve that problem. 364838032Speter Add MustQuoteChars option. This is a list of characters that must 364938032Speter be quoted if they are found in the phrase part of an address 365038032Speter (that is, the full name part). The characters @,;:\()[] are 365138032Speter always in this list and cannot be removed. The default is 365238032Speter this list plus . and ' to match RFC 822. 365338032Speter Add AllowBogusHELO option; if set, sendmail will allow HELO commands 365438032Speter that do not include a host name for back compatibility with 365538032Speter some stupid SMTP clients. Setting this violates RFC 1123 365638032Speter section 5.2.5. 365738032Speter Add MaxDaemonChildren option; if this is set, sendmail will start 365838032Speter rejecting connections if it has more than this many 365938032Speter outstanding children accepting mail. Note that you may 366038032Speter see more processes than this because of outgoing mail; this 366138032Speter is for incoming connections only. 366238032Speter Add ConnectionRateThrottle option. If set to a positive value, the 366338032Speter number of incoming SMTP connections that will be permitted 366438032Speter in a single second is limited to this number. Connections are 366538032Speter not refused during this time, just deferred. The intent is to 366638032Speter flatten out demand so that load average limiting can kick in. 366738032Speter It is less radical than MaxDaemonChildren, which will stop 366838032Speter accepting connections even if all the connections are idle 366938032Speter (e.g., due to connection caching). 367038032Speter Add Timeout.hoststatus option. This interval (defaulting to 30m) 367138032Speter specifies how long cached information about the state of a 367238032Speter host will be kept before they are considered stale and the 367338032Speter host is retried. If you are using persistent host status 367438032Speter (i.e., the HostStatusDirectory option is set) this will apply 367538032Speter between runs; otherwise, it applies only within a single queue 367638032Speter run and hence is useful only for hosts that have large queues 367738032Speter that take a very long time to run. 367838032Speter Add SingleLineFromHeader option. If set, From: headers are coerced 367938032Speter into being a single line even if they had newlines in them 368038032Speter when read. This is to get around a botch in Lotus Notes. 368138032Speter Text class maps were totally broken -- if you ever retrieved the last 368238032Speter item in a table it would be truncated. Problem noted by 368338032Speter Gregory Neil Shapiro of WPI. 368438032Speter Extend the lines printed by the mailq command (== the -bp flag) when 368538032Speter -v is given to 120 characters; this allows more information 368638032Speter to be displayed. Suggested by Gregory Neil Shapiro of WPI. 368738032Speter Allow macro definitions (`D' lines) with unquoted commas; previously 368838032Speter this was treated as end-of-input. Problem noted by Bryan 368938032Speter Costales. 369038032Speter The RET= envelope parameter (used for DSNs) wasn't properly written 369138032Speter to the queue file. Fix from John Hughes of Atlantic 369238032Speter Technologies, Inc. 369338032Speter Close /var/tmp/dead.letter after a successful write -- otherwise 369438032Speter if this happens in a queue run it can cause nasty delays. 369538032Speter Problem noted by Mark Horton of AT&T. 369638032Speter If userdb entries pointed to userdb entries, and there were multiple 369738032Speter values for a given key, the database cursor would get 369838032Speter trashed by the recursive call. Problem noted by Roy Mongiovi 369938032Speter of Georgia Tech. Fixed by reading all the values and creating 370038032Speter a comma-separated list; thus, the -v output will be somewhat 370138032Speter different for this case. 370238032Speter Fix buffer allocation problem with Hesiod-based userdb maps when 370338032Speter HES_GETMAILHOST is defined. Based on a patch by Betty Lee 370438032Speter of Stanford University. 370538032Speter When envelopes were split due to aliases with owner- aliases, and 370638032Speter there was some error on one of the lists, more than one of 370738032Speter the owners would get the message. Problem pointed out by 370838032Speter Roy Mongiovi of Georgia Tech. 370938032Speter Detect excessive recursion in macro expansions, e.g., $X defined 371038032Speter in terms of $Y which is defined in terms of $X. Problem 371138032Speter noted by Bryan Costales; patch from Eric Wassenaar. 371238032Speter When using F=U to get "ugly UUCP" From_ lines, a buffer could in 371338032Speter some cases get trashed causing bogus From_ lines. Fix from 371438032Speter Kyle Jones of UUNET. 371538032Speter When doing load average initialization, if the nlist call for avenrun 371638032Speter failed, the second and subsequent lookups wouldn't notice 371738032Speter that fact causing bogus load averages to be returned. Noted 371838032Speter by Casper Dik of Sun Holland. 371938032Speter Fix problem with incompatibility with some versions of inet_aton that 372038032Speter have changed the return value to unsigned, so a check for an 372138032Speter error return of -1 doesn't work. Use INADDR_NONE instead. 372238032Speter This could cause mail to addresses such as [foo.com] to bounce 372338032Speter or get dropped. Problem noted by Christophe Wolfhugel of the 372438032Speter Pasteur Institute. 372538032Speter DSNs were inconsistent if a failure occurred during the DATA phase 372638032Speter rather than the RCPT phase: the Action: would be correct, but 372738032Speter the detailed status information would be wrong. Problem noted 372838032Speter by Bob Snyder of General Electric Company. 372938032Speter Add -U command line flag and the XUSR ESMTP extension, both indicating 373038032Speter that this is the initial MUA->MTA submission. The flag current 373138032Speter does nothing, but in future releases (when MUAs start using 373238032Speter these flags) it will probably turn on things like DNS 373338032Speter canonification. 373438032Speter Default end-of-line string (E= specification on mailer [M] lines) 373538032Speter to \r\n on SMTP mailers. Default remains \n on non-SMTP 373638032Speter mailers. 373738032Speter Change the internal definition for the *file* and *include* mailers 373838032Speter to have $u in the argument vectors so that they aren't 373938032Speter misinterpreted as SMTP mailers and thus use \r\n line 374038032Speter termination. This will affect anyone who has redefined 374138032Speter either of these in their configuration file. 374238032Speter Don't assume that IDENT servers close the connection after a query; 374338032Speter responses can be newline terminated. From Terry Kennedy of 374438032Speter St. Peter's College. 374538032Speter Avoid core dumps on erroneous configuration files that have 374638032Speter $#mailer with nothing following. From Bryan Costales. 374738032Speter Avoid null pointer dereference with high debug values in unlockqueue. 374838032Speter Fix from Randy Martin of Clemson University. 374938032Speter Fix possible buffer overrun when expanding very large macros. Fix 375038032Speter from Kyle Jones of UUNET. 375138032Speter After 25 EXPN or VRFY commands, start pausing for a second before 375238032Speter processing each one. This avoids a certain form of denial 375338032Speter of service attack. Potential attack pointed out by Bryan 375438032Speter Costales. 375538032Speter Allow new named (not numbered!) config file rules to do validity 375638032Speter checking on SMTP arguments: check_mail for MAIL commands and 375738032Speter check_rcpt for RCPT commands. These rulesets can do anything 375838032Speter they want; their result is ignored unless they resolve to the 375938032Speter $#error mailer, in which case the indicated message is printed 376038032Speter and the command is rejected. Similarly, the check_compat 376138032Speter ruleset is called before delivery with "from_addr $| to_addr" 376238032Speter (the $| is a meta-symbol used to separate the two addresses); 376338032Speter it can give a "this sender can't send to this recipient" 376438032Speter notification. Note that this patch allows $| to stand alone 376538032Speter in rulesets. 376638032Speter Define new macros ${client_name}, ${client_addr}, and ${client_port} 376738032Speter that have the name, IP address, and port number (respectively) 376838032Speter of the SMTP client (that is, the entity at the other end of 376938032Speter the connection. These can be used in (e.g.) check_rcpt to 377038032Speter verify that someone isn't trying to relay mail through your 377138032Speter host inappropriately. Be sure to use the deferred evaluation 377238032Speter form, for example $&{client_name}, to avoid having these bound 377338032Speter when sendmail reads the configuration file. 377438032Speter Add new config file rule check_relay to check the incoming connection 377538032Speter information. Like check_compat, it is passed the host name 377638032Speter and host address separated by $| and can reject connections 377738032Speter on that basis. 377838032Speter Allow IDA-style recursive function calls. Code contributed by Mark 377938032Speter Lovell and Paul Vixie. 378038032Speter Eliminate the "No ! in UUCP From address!" message" -- instead, create 378138032Speter a virtual UUCP address using either a domain address or the $k 378238032Speter macro. Based on code contributed by Mark Lovell and Paul 378338032Speter Vixie. 378438032Speter Add Stanford LDAP map. Requires special libraries that are not 378538032Speter included with sendmail. Contributed by Booker C. Bense 378638032Speter <bbense@networking.stanford.edu>; contact him for support. 378738032Speter See also the src/READ_ME file. 378838032Speter Allow -dANSI to turn on ANSI escape sequences in debug output; this 378938032Speter puts metasymbols (e.g., $+) in reverse video. Really useful 379038032Speter only for debugging deep bits of code where it is important to 379138032Speter distinguish between the single-character metasymbol $+ and the 379238032Speter two characters $, +. 379338032Speter Changed ruleset 89 (executed in dumpstate()) to a named ruleset, 379438032Speter debug_dumpstate. 379538032Speter Add new UnsafeGroupWrites option; if set, .forward and :include: 379638032Speter files that are group writable are considered "unsafe" -- that 379738032Speter is, programs and files referenced from such files are not 379838032Speter valid recipients. 379938032Speter Delete bogosity test for FallBackMX host; this prevented it to be a 380038032Speter name that was not in DNS or was a domain-literal. Problem 380138032Speter noted by Tom May. 380238032Speter Change the introduction to error messages to more clearly delineate 380338032Speter permanent from temporary failures; if both existed in a 380438032Speter single message it could be confusing. Suggested by John 380538032Speter Beck of InReference, Inc. 380638032Speter The IngoreDot (i) option didn't work for lines that were terminated 380738032Speter with CRLF. Problem noted by Ted Stockwell of Secure 380838032Speter Computing Corporation. 380938032Speter Add a heuristic to improve the handling of unbalanced `<' signs in 381038032Speter message headers. Problem reported by Matt Dillon of Best 381138032Speter Internet Communications. 381238032Speter Check for bogus characters in the 0200-0237 range; since these are 381338032Speter used internally, very strange errors can occur if those 381438032Speter characters appear in headers. Problem noted by Anders Gertz 381538032Speter of Lysator. 381638032Speter Implement 7 -> 8 bit MIME conversions. This only takes place if the 381738032Speter recipient mailer has the F=9 flag set, and only works on 381838032Speter text/plain body types. Code contributed by Marius Olafsson 381938032Speter of the University of Iceland. 382038032Speter Special case "postmaster" name so that it is always treated as lower 382138032Speter case in alias files regardless of configuration settings; 382238032Speter this prevents some potential problems where "Postmaster" or 382338032Speter "POSTMASTER" might not match "postmaster". In most cases 382438032Speter this change is a no-op. 382538032Speter The -o map flag was ignored for text maps. Problem noted by Bryan 382638032Speter Costales. 382738032Speter The -a map flag was ignored for dequote maps. Problem noted by 382838032Speter Bryan Costales. 382938032Speter Fix core dump when a lookup of a class "prog" map returns no 383038032Speter response. Patch from Bryan Costales. 383138032Speter Log instances where sendmail is deferring or rejecting connections 383238032Speter on LogLevel 14. Suggested by Kyle Jones of UUNET. 383338032Speter Include port number in process title for network daemons. Suggested 383438032Speter by Kyle Jones of UUNET. 383538032Speter Send ``double bounces'' (errors that occur when sending an error 383638032Speter message) to the address indicated in the DoubleBounceAddress 383738032Speter option (default: postmaster). Previously they were always 383838032Speter sent to postmaster. Suggested by Kyle Jones of UUNET. 383938032Speter Add new mode, -bD, that acts like -bd in all respects except that 384038032Speter it runs in foreground. This is useful for using with a 384138032Speter wrapper that "watches" system services. Suggested by Kyle 384238032Speter Jones of UUNET. 384338032Speter Fix botch in spacing around (parenthesized) comments in addresses 384438032Speter when the comment comes before the address. Patch from 384538032Speter Motonori Nakamura of Kyoto University. 384638032Speter Use the prefix "Postmaster notify" on the Subject: lines of messages 384738032Speter that are being bounced to postmaster, rather than "Returned 384838032Speter mail". This permits the person who is postmaster more 384938032Speter easily determine what messages are to their role as 385038032Speter postmaster versus bounces to mail they actually sent. Based 385138032Speter on a suggestion by Motonori Nakamura. 385238032Speter Add new value "time" for QueueSortOrder option; this causes the queue 385338032Speter to be sorted strictly by the time of submission. Note that 385443730Speter this can cause very bad behavior over slow lines (because 385538032Speter large jobs will tend to delay small jobs) and on nodes with 385638032Speter heavy traffic (because old things in the queue for hosts that 385738032Speter are down delay processing of new jobs). Also, this does not 385838032Speter guarantee that jobs will be delivered in submission order 385938032Speter unless you also set DeliveryMode=queue. In general, it should 386038032Speter probably only be used on the command line, and only in 386138032Speter conjunction with -qRhost.domain. In fact, there are very few 386238032Speter cases where it should be used at all. Based on an 386338032Speter implementation by Motonori Nakamura. 386438032Speter If a map lookup in ruleset 5 returns tempfail, queue the message in 386538032Speter the same manner as other rulesets. Previously a temporary 386638032Speter failure in ruleset 5 was ignored. Patch from Booker Bense 386738032Speter of Stanford University. 386838032Speter Don't proceed to the next MX host if an SMTP MAIL command returns a 386938032Speter 5yz (permanent failure) code. The next MX host will still be 387038032Speter tried if the connection cannot be opened in the first place 387138032Speter or if the MAIL command returns a 4yz (temporary failure) code. 387238032Speter (It's hard to know what to do here, since neither RFC 974 nor 387338032Speter RFC 1123 specify when to proceed to the next MX host.) 387438032Speter Suggested by Jonathan Kamens of OpenVision, Inc. 387538032Speter Add new "-t" flag for map definitions (the "K" line in the .cf file). 387638032Speter This causes map lookups that get a temporary failure (e.g., 387738032Speter name server failure) to _not_ defer the delivery of the 387838032Speter message. This should only be used if your configuration file 387938032Speter is prepared to do something sensible in this case. Based on 388038032Speter an idea by Gregory Shapiro of WPI. 388138032Speter Fix problem finding network interface addresses. Patch from 388238032Speter Motonori Nakamura. 388338032Speter Don't reject qf entries that are not owned by your effective uid if 388438032Speter you are not running setuid; this makes management of certain 388538032Speter kinds of firewall setups difficult. Patch suggested by 388638032Speter Eamonn Coleman of Qualcomm. 388738032Speter Add persistent host status. This keeps the information normally 388838032Speter maintained within a single queue run in disk files that are 388938032Speter shared between sendmail instances. The HostStatusDirectory 389038032Speter is the directory in which the information is maintained. If 389138032Speter not set, persistent host status is turned off. If not a full 389238032Speter pathname, it is relative to the queue directory. A common 389338032Speter value is ".hoststat". 389438032Speter There are also two new operation modes: 389538032Speter * -bh prints the status of hosts that have had recent 389638032Speter connections. 389738032Speter * -bH purges the host statuses. No attempt is made to save 389838032Speter recent status information. 389938032Speter This feature was originally written by Paul Vixie of Vixie 390038032Speter Enterprises for KJS and adapted for V8 by Mark Lovell of 390138032Speter Bigrock Consulting. Paul's funding of Mark and Mark's patience 390238032Speter with my insistence that things fit cleanly into the V8 390338032Speter framework is gratefully appreciated. 390438032Speter New SingleThreadDelivery option (requires HostStatusDirectory to 390538032Speter operate). Avoids letting two sendmails on the local machine 390664562Sgshapiro open connections to the same remote host at the same time. 390738032Speter This reduces load on the other machine, but can cause mail to 390838032Speter be delayed (for example, if one sendmail is delivering a huge 390938032Speter message, other sendmails won't be able to send even small 391038032Speter messages). Also, it requires another file descriptor (for the 391138032Speter lock file) per connection, so you may have to reduce 391238032Speter ConnectionCacheSize to avoid running out of per-process 391338032Speter file descriptors. Based on the persistent host status code 391438032Speter contributed by Paul Vixie and Mark Lovell. 391538032Speter Allow sending to non-simple files (e.g., /dev/null) even if the 391638032Speter SafeFileEnvironment option is set. Problem noted by Bryan 391738032Speter Costales. 391838032Speter The -qR flag mistakenly matched flags in the "R" line of the queue 391938032Speter file. Problem noted by Bryan Costales. 392038032Speter If a job was aborted using the interrupt signal (e.g., control-C from 392138032Speter the keyboard), on some occasions an empty df file would be 392238032Speter left around; these would collect in the queue directory. 392338032Speter Problem noted by Bryan Costales. 392438032Speter Change the makesendmail script to enhance the search for Makefiles 392538032Speter based on release number. For example, on SunOS 5.5.1, it will 392638032Speter search for Makefile.SunOS.5.5.1, Makefile.SunOS.5.5, and then 392738032Speter Makefile.SunOS.5.x (in addition to the other rules, e.g., 392838032Speter adding $arch). Problem noted by Jason Mastaler of Atlanta 392938032Speter Webmasters. 393038032Speter When creating maps using "newaliases", always map the keys to lower 393138032Speter case when creating the map unless the -f flag is specified on 393238032Speter the map itself. Previously this was done based on the F=u 393338032Speter flag in the local mailer, which meant you could create aliases 393438032Speter that you could never access. Problem noted by Bob Wu of DEC. 393538032Speter When a job was read from the queue, the bits causing notification on 393638032Speter failure or delay were always set. This caused those 393738032Speter notifications to be sent even if NOTIFY=NEVER had been 393838032Speter specified. Problem noted by Steve Hubert of the University 393938032Speter of Washington, Seattle. 394038032Speter Add new configurable routine validate_connection (in conf.c). This 394138032Speter lets you decide if you are willing to accept traffic from 394238032Speter this host. If it returns FALSE, all SMTP commands will return 394338032Speter "550 Access denied". -DTCPWRAPPERS will include support for 394438032Speter TCP wrappers; you will need to add -lwrap to the link line. 394538032Speter (See src/READ_ME for details.) 394638032Speter Don't include the "THIS IS A WARNING MESSAGE ONLY" banner on postmaster 394738032Speter bounces. Some people seemed to think that this could be 394838032Speter confusing (even though it is true). Suggested by Motonori 394938032Speter Nakamura. 395038032Speter Add new RunAsUser option; this causes sendmail to do a setuid to that 395138032Speter user early in processing to avoid potential security problems. 395238032Speter However, this means that all .forward and :include: files must 395338032Speter be readable by that user, and all files to be written must be 395438032Speter writable by that user and all programs will be executed by that 395538032Speter user. It is also incompatible with the SafeFileEnvironment 395638032Speter option. In other words, it may not actually add much to 395738032Speter security. However, it should be useful on firewalls and other 395838032Speter places where users don't have accounts and the aliases file is 395938032Speter well constrained. 396038032Speter Add Timeout.iconnect. This is like Timeout.connect except it is used 396138032Speter only on the first attempt to delivery to an address. It could 396238032Speter be set to be lower than Timeout.connect on the principle that 396338032Speter the mail should go through quickly to responsive hosts; less 396438032Speter responsive hosts get to wait for the next queue run. 396538032Speter Fix a problem on Solaris that occasionally causes programs 396638032Speter (such as vacation) to hang with their standard input connected 396738032Speter to a UDP port. It also created some signal handling problems. 396838032Speter The problems turned out to be an interaction between vfork(2) 396938032Speter and some of the libraries, particularly NIS/NIS+. I am 397038032Speter indebted to Tor Egge <tegge@idt.ntnu.no> for this fix. 397138032Speter Change user class map to do the same matching that actual delivery 397238032Speter will do instead of just a /etc/passwd lookup. This adds 397338032Speter fuzzy matching to the user map. Patch from Dan Oscarsson. 397438032Speter The Timeout.* options are not safe -- they can be used to create a 397538032Speter denial-of-service attack. Problem noted by Christophe 397638032Speter Wolfhugel. 397743730Speter Don't send PostmasterCopy messages in the event of a "delayed" 397838032Speter notification. Suggested by Barry Bouwsma. 397938032Speter Don't advertise "VERB" ESMTP extension if the "noexpn" privacy 398038032Speter option is set, since this disables VERB mode. Suggested 398138032Speter by John Hawkinson of MIT. 398238032Speter Complain if the QueueDirectory (Q) option is not set. Problem noted 398338032Speter by Motonori Nakamura of Kyoto University. 398438032Speter Only queue messages on transient .forward open failures if there 398543730Speter were no successful opens. The previous behavior caused it 398638032Speter to queue even if a "fall back" .forward was found. Problem 398738032Speter noted by Ann-Kian Yeo of the Dept. of Information Systems 398838032Speter and Computer Science (DISCS), NUS, Singapore. 398938032Speter Don't do 8->7 bit conversions when bouncing a MIME message that 399038032Speter is bouncing because of a MIME error during 8->7 bit conversion; 399138032Speter the encapsulated message will bounce again, causing a loop. 399238032Speter Problem noted by Steve Hubert of the University of Washington. 399338032Speter Create xf (transcript) files using the TempFileMode option value 399438032Speter instead of 0644. Suggested by Ann-Kian Yeo of the 399538032Speter National University of Singapore. 399638032Speter Print errors if setgid/setuid/etc. fail during delivery. This helps 399738032Speter detect cases where DefaultUid is set to something that the 399838032Speter system can't cope with. 399938032Speter PORTABILITY FIXES: 400038032Speter Support for AIX/RS 2.2.1 from Mark Whetzel of Western 400138032Speter Atlas International. 400238032Speter Patches for Intel Paragon OSF/1 1.3 from Leo Bicknell 400338032Speter <bicknell@ufp.org>. 400438032Speter On DEC OSF/1 3.2 and earlier, the MatchGECOS code would only 400538032Speter work on the first recipient of a message due to a 400638032Speter bug in the getpwent family. If this is something you 400738032Speter use, you can define DEC_OSF_BROKEN_GETPWENT=1 for a 400838032Speter workaround. From Maximum Entropy of Sanford C. 400938032Speter Bernstein and Associates. 401038032Speter FreeBSD 1.1.5.1 uname -r returns a string containing 401138032Speter parentheses, which breaks makesendmail. Reported 401238032Speter by Piero Serini <piero@strider.ibenet.it>. 401338032Speter Sequent DYNIX/ptx 4.0.2 patches from Jack Woolley of 401438032Speter Systems and Computer Technology Corporation. 401538032Speter Solaris 2.x: omit the UUCP grade parameter (-g flag) because 401638032Speter it is system-dependent. Problem noted by J.J. Bailey 401738032Speter of Bailey Computer Consulting. 401838032Speter Pyramid NILE running DC/OSx support from Earle F. Ake of 401938032Speter Hassler Communication Systems Technology, Inc. 402038032Speter HP-UX 10.x compile glitches, reported by Anne Brink of the 402138032Speter U.S. Army and James Byrne of Harte & Lyne Limited. 402238032Speter NetBSD from Matthew Green of the NetBSD crew. 402338032Speter SCO 5.x from Keith Reynolds of SCO. 402438032Speter IRIX 6.2 from Robert Tarrall of the University of 402538032Speter Colorado and Kari Hurtta of the Finnish Meteorological 402638032Speter Institute. 402738032Speter UXP/DS (Fujitsu/ICL DS/90 series) support from Diego R. 402838032Speter Lopez, CICA (Seville). 402938032Speter NCR SVR4 MP-RAS 3.x support from Tom Moore of NCR. 403038032Speter PTX 3.2.0 from Kenneth Stailey of the US Department of Labor 403138032Speter Employment Standards Administration. 403238032Speter Altos System V (5.3.1) from Tim Rice of Multitalents. 403338032Speter Concurrent Systems Corporation Maxion from Donald R. Laster 403438032Speter Jr. 403538032Speter NetInfo maps (improved debugging and multi-valued aliases) 403638032Speter from Adrian Steinmann of Steinmann Consulting. 403738032Speter ConvexOS 11.5 (including SecureWare C2 and the Share Scheduler) 403838032Speter from Eric Schnoebelen of Convex. 403938032Speter Linux 2.0 mail.local patches from Horst von Brand. 404038032Speter NEXTSTEP 3.x compilation from Robert La Ferla. 404138032Speter NEXTSTEP 3.x code changes from Allan J. Nathanson of NeXT. 404238032Speter Solaris 2.5 configuration fixes for mail.local by Jim Davis 404338032Speter of the University of Arizona. 404438032Speter Solaris 2.5 has a working setreuid. Noted by David Linn of 404538032Speter Vanderbilt University. 404638032Speter Solaris changes for praliases, makemap, mailstats, and smrsh. 404738032Speter Previously you had to add -DSOLARIS in Makefile.dist; 404838032Speter this auto-detects. Based on a patch from Randall 404938032Speter Winchester of the University of Maryland. 405038032Speter CONFIG: add generic-nextstep3.3.mc file. Contributed by 405138032Speter Robert La Ferla of Hot Software. 405238032Speter CONFIG: allow mailertables to resolve to ``error:code message'' 405338032Speter (where "code" is an exit status) on domains (previously 405438032Speter worked only on hosts). Patch from Cor Bosman of Xs4all 405538032Speter Foundation. 405638032Speter CONFIG: hooks for IPv6-style domain literals. 405738032Speter CONFIG: predefine ALIAS_FILE and change the prototype file so that 405838032Speter if it is undefined the AliasFile option is never set; this 405938032Speter should be transparent for most everyone. Suggested by John 406038032Speter Myers of CMU. 406138032Speter CONFIG: add FEATURE(limited_masquerade). Without this feature, any 406238032Speter domain listed in $=w is masqueraded. With it, only those 406338032Speter domains listed in a MASQUERADE_DOMAIN macro are masqueraded. 406438032Speter CONFIG: add FEATURE(masquerade_entire_domain). This causes 406538032Speter masquerading specified by MASQUERADE_DOMAIN to apply to all 406638032Speter hosts under those domains as well as the domain headers 406738032Speter themselves. For example, if a configuration had 406838032Speter MASQUERADE_DOMAIN(foo.com), then without this feature only 406938032Speter foo.com would be masqueraded; with it, *.foo.com would be 407038032Speter masqueraded as well. Based on an implementation by Richard 407138032Speter (Pug) Bainter of U. Texas. 407238032Speter CONFIG: add FEATURE(genericstable) to do a more general rewriting of 407338032Speter outgoing addresses. Defaults to ``hash -o /etc/genericstable''. 407438032Speter Keys are user names; values are outgoing mail addresses. Yes, 407538032Speter this does overlap with the user database, and figuring out 407638032Speter just when to use which one may be tricky. Based on code 407738032Speter contributed by Richard (Pug) Bainter of U. Texas with updates 407838032Speter from Per Hedeland of Ericsson. 407938032Speter CONFIG: add FEATURE(virtusertable) to do generalized rewriting of 408038032Speter incoming addresses. Defaults to ``hash -o /etc/virtusertable''. 408138032Speter Keys are either fully qualified addresses or just the host 408238032Speter part (with the @ sign). For example, a table containing: 408338032Speter info@foo.com foo-info 408438032Speter info@bar.com bar-info 408538032Speter @baz.org jane@elsewhere.net 408638032Speter would send all mail destined for info@foo.com to foo-info 408738032Speter (which is presumably an alias), mail addressed to info@bar.com 408838032Speter to bar-info, and anything addressed to anyone at baz.org will 408938032Speter be sent to jane@elsewhere.net. The names foo.com, bar.com, 409038032Speter and baz.org must all be in $=w. Based on discussions with 409138032Speter a great many people. 409238032Speter CONFIG: add nullclient configurations to define SMTP_MAILER_FLAGS. 409338032Speter Suggested by Richard Bainter. 409438032Speter CONFIG: add FAX_MAILER_ARGS to tweak the arguments passed to the 409538032Speter "fax" mailer. 409638032Speter CONFIG: allow mailertable entries to resolve to local:user; this 409738032Speter passes the original user@host in to procmail-style local 409838032Speter mailers as the "detail" information to allow them to do 409938032Speter additional clever processing. From Joe Pruett of 410038032Speter Teleport Corporation. Delivery to the original user can 410138032Speter be done by specifying "local:" (with nothing after the colon). 410238032Speter CONFIG: allow any context that takes "mailer:domain" to also take 410338032Speter "mailer:user@domain" to force mailing to the given user; 410438032Speter "local:user" can also be used to do local delivery. This 410538032Speter applies on *_RELAY and in the mailertable entries. Based 410638032Speter on a suggestion by Ribert Kiessling of Easynet. 410738032Speter CONFIG: Allow FEATURE(bestmx_is_local) to take an argument that 410838032Speter limits the possible domains; this reduces the number of DNS 410938032Speter lookups required to support this feature. For example, 411038032Speter FEATURE(bestmx_is_local, my.site.com) limits the lookups 411138032Speter to domains under my.site.com. Code contributed by Anthony 411238032Speter Thyssen <anthony@cit.gu.edu.au>. 411338032Speter CONFIG: LOCAL_RULESETS introduces any locally defined rulesets, 411438032Speter such as the check_rcpt ruleset. Suggested by Gregory Shapiro 411538032Speter of WPI. 411638032Speter CONFIG: MAILER_DEFINITIONS introduces any mailer definitions, in the 411738032Speter event you have to define local mailers. Suggested by 411838032Speter Gregory Shapiro of WPI. 411938032Speter CONFIG: fix cases where a three- (or more-) stage route-addr could 412038032Speter be misinterpreted as a list:...; syntax. Based on a patch by 412138032Speter Vlado Potisk <Vlado_Potisk@tempest.sk>. 412238032Speter CONFIG: Fix masquerading of UUCP addresses when the UUCP relay is 412338032Speter remotely connected. The address host!user was being 412438032Speter converted to host!user@thishost instead of host!user@uurelay. 412538032Speter Problem noted by William Gianopoulos of Raytheon Company. 412638032Speter CONFIG: add confTO_ICONNECT to set Timeout.iconnect. 412738032Speter CONFIG: change FEATURE(redirect) message from "User not local" to 412838032Speter "User has moved"; the former wording was confusing if the 412938032Speter new address is still on the local host. Based on a suggestion 413038032Speter by Andreas Luik. 413138032Speter CONFIG: add support in FEATURE(nullclient) for $=E (exposed users). 413238032Speter However, the class is not pre-initialized to contain root. 413338032Speter Suggested by Gregory Neil Shapiro. 413438032Speter CONTRIB: Remove XLA code at the request of the author, Christophe 413538032Speter Wolfhugel. 413638032Speter CONTRIB: Add re-mqueue.pl, contributed by Paul Pomes of Qualcomm. 413738032Speter MAIL.LOCAL: make it possible to compile mail.local on Solaris. Note 413838032Speter well: this produces a slightly different mailbox format (no 413938032Speter Content-Length: headers), file ownerships and modes are 414038032Speter different (not owned by group mail; mode 600 instead of 660), 414138032Speter and the local mailer flags will have to be tweaked (make them 414238032Speter match bsd4.4) in order to use this mailer. Patches from Paul 414338032Speter Hammann of the Missouri Research and Education Network. 414438032Speter MAIL.LOCAL: in some cases it could return EX_OK even though there 414538032Speter was a delivery error, such as if the ownership on the file 414638032Speter was wrong or the mode changed between the initial stat and 414738032Speter the open. Problem reported by William Colburn of the New 414838032Speter Mexico Institute of Mining and Technology. 414938032Speter MAILSTATS: handle zero length files more reliably. Patch from Bryan 415038032Speter Costales. 415138032Speter MAILSTATS: add man page contributed by Keith Bostic of BSDI. 415238032Speter MAKEMAP: The -d flag (to allow duplicate keys) to a btree map wasn't 415338032Speter honored. Fix from Michael Scott Shappe. 415438032Speter PRALIASES: add man page contributed by Keith Bostic of BSDI. 415538032Speter NEW FILES: 415638032Speter src/Makefiles/Makefile.AIX.2 415738032Speter src/Makefiles/Makefile.IRIX.6.2 415838032Speter src/Makefiles/Makefile.maxion 415938032Speter src/Makefiles/Makefile.NCR.MP-RAS.3.x 416038032Speter src/Makefiles/Makefile.SCO.5.x 416138032Speter src/Makefiles/Makefile.UXPDSV20 416238032Speter mailstats/mailstats.8 416338032Speter praliases/praliases.8 416438032Speter cf/cf/generic-nextstep3.3.mc 416538032Speter cf/feature/genericstable.m4 416638032Speter cf/feature/limited_masquerade.m4 416738032Speter cf/feature/masquerade_entire_domain.m4 416838032Speter cf/feature/virtusertable.m4 416938032Speter cf/ostype/aix2.m4 417038032Speter cf/ostype/altos.m4 417138032Speter cf/ostype/maxion.m4 417238032Speter cf/ostype/solaris2.ml.m4 417338032Speter cf/ostype/uxpds.m4 417438032Speter contrib/re-mqueue.pl 417538032Speter DELETED FILES: 417638032Speter src/Makefiles/Makefile.Solaris 417738032Speter contrib/xla/README 417838032Speter contrib/xla/xla.c 417938032Speter RENAMED FILES: 418038032Speter src/Makefiles/Makefile.NCR3000 => Makefile.NCR.MP-RAS.2.x 418138032Speter src/Makefiles/Makefile.SCO.3.2v4.2 => Makefile.SCO.4.2 418238032Speter src/Makefiles/Makefile.UXPDS => Makefile.UXPDSV10 418338032Speter src/Makefiles/Makefile.NeXT => Makefile.NeXT.2.x 418438032Speter src/Makefiles/Makefile.NEXTSTEP => Makefile.NeXT.3.x 418538032Speter 418664562Sgshapiro8.7.6/8.7.3 1996/09/17 418738032Speter SECURITY: It is possible to force getpwuid to fail when writing the 418838032Speter queue file, causing sendmail to fall back to running programs 418938032Speter as the default user. This is not exploitable from off-site. 419038032Speter Workarounds include using a unique user for the DefaultUser 419138032Speter (old u & g options) and using smrsh as the local shell. 419238032Speter SECURITY: fix some buffer overruns; in at least one case this allows 419338032Speter a local user to get root. This is not known to be exploitable 419438032Speter from off-site. The workaround is to disable chfn(1) commands. 419538032Speter 419664562Sgshapiro8.7.5/8.7.3 1996/03/04 419738032Speter Fix glitch in 8.7.4 when putting certain internal lines; this can 419838032Speter in some case cause connections to hang or messages to have 419938032Speter extra spaces in odd places. Patch from Eric Wassenaar; 420038032Speter reports from Eric Hall of Chiron Corporation, Stephen 420138032Speter Hansen of Stanford University, Dean Gaudet of HotWired, 420238032Speter and others. 420338032Speter 420464562Sgshapiro8.7.4/8.7.3 1996/02/18 420538032Speter SECURITY: In some cases it was still possible for an attacker to 420638032Speter insert newlines into a queue file, thus allowing access to 420738032Speter any user (except root). 420838032Speter CONFIG: no changes -- it is not a bug that the configuration 420938032Speter version number is unchanged. 421038032Speter 421164562Sgshapiro8.7.3/8.7.3 1995/12/03 421238032Speter Fix botch in name server timeout in RCPT code; this problem caused 421338032Speter two responses in SMTP, which breaks things horribly. Fix 421438032Speter from Gregory Neil Shapiro of WPI. 421538032Speter Verify that L= value on M lines cannot be negative, which could cause 421638032Speter negative array subscripting. Not a security problem since 421738032Speter this has to be in the config file, but it could have caused 421838032Speter core dumps. Pointed out by Bryan Costales. 421938032Speter Fix -d21 debug output for long macro names. Pointed out by Bryan 422038032Speter Costales. 422138032Speter PORTABILITY FIXES: 422238032Speter SCO doesn't have ftruncate. From Bill Aten of Computerizers. 422338032Speter IBM's version of arpa/nameser.h defaults to the wrong byte 422438032Speter order. Tweak it to work properly. Based on fixes 422538032Speter from Fletcher Mattox of UTexas and Betty Lee of 422638032Speter Stanford University. 422738032Speter CONFIG: add confHOSTS_FILE m4 variable to set HostsFile option. 422838032Speter Deficiency pointed out by Bryan Costales of ICSI. 422938032Speter 423064562Sgshapiro8.7.2/8.7.2 1995/11/19 423138032Speter REALLY fix the backslash escapes in SmtpGreetingMessage, 423238032Speter OperatorChars, and UnixFromLine options. They were not 423338032Speter properly repaired in 8.7.1. 423438032Speter Completely delete the Bcc: header if and only if there are other 423538032Speter valid recipient headers (To:, Cc: or Apparently-To:, the 423638032Speter last being a historic botch, of course). If Bcc: is the 423738032Speter only recipient header in the message, its value is tossed, 423843730Speter but the header name is kept. The old behavior (always keep 423938032Speter the header name and toss the value) allowed primary recipients 424038032Speter to see that a Bcc: went to _someone_. 424138032Speter Include queue id on ``Authentication-Warning: <host>: <user> set 424238032Speter sender to <address> using -f'' syslog messages. Suggested 424338032Speter by Kari Hurtta. 424438032Speter If a sequence or switch map lookup entry gets a tempfail but then 424538032Speter continues on to another map type, but the name is not found, 424638032Speter return a temporary failure from the sequence or switch map. 424738032Speter For example, if hosts search ``dns files'' and DNS fails 424838032Speter with a tempfail, the hosts map will go on and search files, 424938032Speter but if it fails the whole thing should be a tempfail, not 425038032Speter a permanent (host unknown) failure, even though that is the 425138032Speter failure in the hosts.files map. This error caused hard 425238032Speter bounces when it should have requeued. 425338032Speter Aliases to files such as /users/bar/foo/inbox, with /users/bar/foo 425438032Speter owned by bar mode 700 and inbox being setuid bar stopped 425538032Speter working properly due to excessive paranoia. Pointed out by 425638032Speter John Hawkinson of Panix. 425738032Speter An SMTP RCPT command referencing a host that gave a nameserver 425838032Speter timeout would return a 451 command (8.6 accepted it and 425943730Speter queued it locally). Revert to the 8.6 behavior in order 426038032Speter to simplify queue management for clustered systems. Suggested 426138032Speter by Gregory Neil Shapiro of WPI. The same problem could break 426238032Speter MH, which assumes that the SMTP session will succeed (tsk, tsk 426338032Speter -- mail gets lost!); this was pointed out by Stuart Pook of 426438032Speter Infobiogen. 426538032Speter Fix possible buffer overflow in munchstring(). This was not a security 426638032Speter problem because you couldn't specify any argument to this 426738032Speter without first giving up root privileges, but it is still a 426838032Speter good idea to avoid future problems. Problem noted by John 426938032Speter Hawkinson and Sam Hartman of MIT. 427038032Speter ``452 Out of disk space for temp file'' messages weren't being 427138032Speter printed. Fix from David Perlin of Nanosoft. 427243730Speter Don't advertise the ESMTP DSN extension if the SendMimeErrors option 427338032Speter is not set, since this is required to get the actual DSNs 427438032Speter created. Problem pointed out by John Gardiner Myers of CMU. 427538032Speter Log permission problems that cause .forward and :include: files to 427638032Speter be untrusted or ignored on log level 12 and higher. Suggested 427738032Speter by Randy Martin of Clemson University. 427838032Speter Allow user ids in U= clauses of M lines to have hyphens and 427938032Speter underscores. 428038032Speter Fix overcounting of recipients -- only happened when sending to an 428138032Speter alias. Pointed out by Mark Andrews of SGI and Jack Woolley 428238032Speter of Systems and Computer Technology Corporation. 428338032Speter If a message is sent to an address that fails, the error message that 428438032Speter is returned could show some extraneous "success" information 428538032Speter included even if the user did not request success notification, 428638032Speter which was confusing. Pointed out by Allan Johannesen of WPI. 428738032Speter Config files that had no AliasFile definition were defaulting to 428838032Speter using /etc/aliases; this caused problems with nullclient 428938032Speter configurations. Change it back to the 8.6 semantics of 429038032Speter having no local alias file unless it is declared. Problem 429138032Speter noted by Charles Karney of Princeton University. 429238032Speter Fix compile problem if NOTUNIX is defined. Pointed out by Bryan 429338032Speter Costales of ICSI. 429438032Speter Map lookups of class "userdb" maps were always case sensitive; they 429538032Speter should be controlled by the -f flag like other maps. Pointed 429638032Speter out by Bjart Kvarme <bjart.kvarme@usit.uio.no>. 429738032Speter Fix problem that caused some addresses to be passed through ruleset 5 429838032Speter even when they were tagged as "sticky" by prefixing the 429938032Speter address with an "@". Patch from Thomas Dwyer III of Michigan 430038032Speter Technological University. 430138032Speter When converting a message to Quoted-Printable, prevent any lines with 430238032Speter dots alone on a line by themselves. This is because of the 430338032Speter preponderance of broken mailers that still get this wrong. 430438032Speter Code contributed by Per Hedeland of Ericsson. 430538032Speter Fix F{macro}/file construct -- it previously did nothing. Pointed 430638032Speter out by Bjart Kvarme of USIT/UiO (Norway). 430738032Speter Announce whether a cached connection is SMTP or ESMTP (in -v mode). 430838032Speter Requested by Allan Johannesen. 430938032Speter Delete check for text format of alias files -- it should be legal 431038032Speter to have the database format of the alias files without the 431138032Speter text version. Problem pointed out by Joe Rhett of Navigist, 431238032Speter Inc. 431338032Speter If "Ot" was specified with no value, the TZ variable was not properly 431438032Speter imported from the environment. Pointed out by Frank Crawford 431538032Speter <frank@ansto.gov.au>. 431638032Speter Some architectures core dumped on "program" maps that didn't have 431738032Speter extra arguments. Patch from Booker C. Bense of Stanford 431838032Speter University. 431938032Speter Queue run processes would re-spawn daemons when given a SIGHUP; only 432038032Speter the parent should do this. Fix from Brian Coan of the 432138032Speter Association for Progressive Communications. 432238032Speter If MinQueueAge was set and a message was considered but not run 432338032Speter during a queue run and the Timeout.queuereturn interval was 432438032Speter reached, a "timed out" error message would be returned that 432538032Speter didn't include the failed address (and claimed to be a warning 432638032Speter even though it was fatal). The fix is to not return such 432738032Speter messages until they are actually tried, i.e., in the next 432838032Speter MinQueueAge interval. Problem noted by Rein Tollevik of 432938032Speter SINTEF RUNIT, Oslo. 433038032Speter Add HES_GETMAILHOST compile flag to support MIT Hesiod distributions 433138032Speter that have the hes_getmailhost() routine. DEC Hesiod 433238032Speter distributions do not have this routine. Based on a patch 433338032Speter from Betty Lee of Stanford University. 433438032Speter Extensive cleanups to map open code to handle a locking race condition 433538032Speter in ndbm, hash, and btree format database files on some (most 433638032Speter non-4.4-BSD based) OS architectures. This should solve the 433738032Speter occasional "user unknown" problem during alias rebuilds that 433838032Speter has plagued me for quite some time. Based on a patch from 433938032Speter Thomas Dwyer III of Michigan Technological University. 434038032Speter PORTABILITY FIXES: 434138032Speter Solaris: Change location of newaliases and mailq from 434238032Speter /usr/ucb to /usr/bin to match Sun settings. From 434338032Speter James B. Davis of TCI. 434438032Speter DomainOS: Makefile.DomainOS doesn't require -ldbm. From 434538032Speter Don Lewis of Silicon Systems. 434638032Speter HP-UX 10: rename Makefile.HP-UX.10 => Makefile.HP-UX.10.x 434738032Speter so that the makesendmail script will find it. Pointed 434838032Speter out by Richard Allen of the University of Iceland. 434938032Speter Also, use -Aa -D_HPUX_SOURCE instead of -Ae, which 435038032Speter isn't supported on all compilers. 435138032Speter UXPDS: compilation fixes from Diego R. Lopez. 435238032Speter CONFIG: FAX mailer wasn't setting .FAX as a pseudo-domain unless 435338032Speter you also had a FAX_RELAY. From Thomas.Tornblom@Hax.SE. 435438032Speter CONFIG: Minor glitch in S21 -- attachment of local domain name 435538032Speter didn't have trailing dot. From Jim Hickstein of Teradyne. 435638032Speter CONFIG: Fix best_mx_is_local feature to allow nested addresses such as 435738032Speter user%host@thishost. From Claude Scarpelli of Infobiogen 435838032Speter (France). 435938032Speter CONFIG: OSTYPE(hpux10) failed to define the location of the help file. 436038032Speter Pointed out by Hannu Martikka of Nokia Telecommunications. 436138032Speter CONFIG: Diagnose some inappropriate ordering in configuration files, 436238032Speter such as FEATURE(smrsh) listed after MAILER(local). Based on 436338032Speter a bug report submitted by Paul Hoffman of Proper Publishing. 436438032Speter CONFIG: Make OSTYPE files consistently not override settings that 436538032Speter have already been set. Previously it worked differently 436638032Speter for different files. 436738032Speter CONFIG: Change relay mailer to do masquerading like 8.6 did. My take 436838032Speter is that this is wrong, but the change was causing problems 436938032Speter for some people. From Per Hedeland of Ericsson. 437038032Speter CONTRIB: bitdomain.c patch from John Gardiner Myers <jgm+@CMU.EDU>; 437138032Speter portability changes for Posix environments (no functional 437238032Speter changes). 437338032Speter 437464562Sgshapiro8.7.1/8.7.1 1995/10/01 437538032Speter Old macros that have become options (SmtpGreetingMessage, 437638032Speter OperatorChars, and UnixFromLine) didn't allow backslash 437738032Speter escapes in the options, where they previously had. Bug 437838032Speter pointed out by John Hawkinson of MIT. 437938032Speter Fix strange case of an executable called by a program map that 438038032Speter returns a value but also a non-zero exit status; this 438138032Speter would give contradictory results in the higher level; in 438238032Speter particular, the default clause in the map lookup would be 438338032Speter ignored. Change to ignore the value if the program returns 438438032Speter non-zero exit status. From Tom Moore of AT&T GIS. 438538032Speter Shorten parameters passed to syslog() in some contexts to avoid a 438638032Speter bug in many vendors' implementations of that routine. Although 438738032Speter this isn't really a bug in sendmail per se, and my solution 438838032Speter has to assume that syslog() has at least a 1K buffer size 438938032Speter internally (I know some vendors have shortened this 439038032Speter dramatically -- they're on their own), sendmail is a popular 439138032Speter target. Also, limit the size of %s arguments in sprintf. 439238032Speter These both have possible security implications. Solutions 439338032Speter suggested by Casper Dik of Sun's Network Security Group 439438032Speter (Holland), Mark Seiden, and others. 439538032Speter Fix a problem that might cause a non-standard -B (body type) 439638032Speter parameter to be passed to the next server with undefined 439738032Speter results. This could have security implications. 439838032Speter If a filesystem was at > 100% utilization, the freediskspace() 439938032Speter routine incorrectly returned an error rather than zero. 440038032Speter Problem noted by G. Paul Ziemba of Alantec. 440138032Speter Change MX sort order so that local hostnames (those in $=w) always 440238032Speter sort first within a given preference. This forces the bestmx 440338032Speter map to always return the local host first, if it is included 440438032Speter in the list of highest priority MX records. From K. Robert 440538032Speter Elz. 440638032Speter Avoid some possible null pointer dereferences. Fixes from Randy 440738032Speter Martin <WOLF@CLEMSON.EDU> 440838032Speter When sendmail starts up on systems that have no fully qualified 440938032Speter domain name (FQDN) anywhere in the first matching host map 441038032Speter (e.g., /etc/hosts if the hosts service searches "files dns"), 441138032Speter sendmail would sleep to try to find a FQDN, which it really 441238032Speter really needs. This has been changed to fall through to the 441338032Speter next map type if it can't find a FQDN -- i.e., if the hosts 441438032Speter file doesn't have a FQDN, it will try dns even though the 441538032Speter short name was found in /etc/hosts. This is probably a crock, 441638032Speter but many people have hosts files without FQDNs. Remember: 441738032Speter domain names are your friends. 441838032Speter Log a high-priority message if you can't find your FQDN during startup. 441938032Speter Suggested by Simon Barnes of Schlumberger Limited. 442038032Speter When using Hesiod, initialize it early to improve error reporting. 442138032Speter Patch from Don Lewis of Silicon Systems, Inc. 442238032Speter Apparently at least some versions of Linux have a 90 !minute! TCP 442338032Speter connection timeout in the kernel. Add a new "connect" timeout 442438032Speter to limit this time. Defaults to zero (use whatever the 442538032Speter kernel provides). Based on code contributed by J.R. Oldroyd 442638032Speter of TerraNet. 442738032Speter Under some circumstances, a failed message would not be properly 442838032Speter removed from the queue, causing tons of bogus error messages. 442938032Speter (This fix eliminates the problematic EF_KEEPQUEUE flag.) 443038032Speter Problem noted by Allan E Johannesen and Gregory Neil Shapiro 443138032Speter of WPI. 443238032Speter PORTABILITY FIXES: 443338032Speter On IRIX 5.x, there was an inconsistency in the setting 443438032Speter of sendmail.st location. Change the Makefile to 443538032Speter install it in /var/sendmail.st to match the OSTYPE 443638032Speter file and SGI standards. From Andre 443738032Speter <andre@curry.zfe.siemens.de>. 443838032Speter Support for Fujitsu/ICL UXP/DS (For the DS/90 Series) 443938032Speter from Diego R. Lopez <drlopez@cica.es>. 444038032Speter Linux compilation patches from J.R. Oldroyd of TerraNet, Inc. 444138032Speter LUNA 2 Mach patches from Motonori Nakamura. 444238032Speter SunOS Makefile was including -ldbm, which is for the old 444338032Speter dbm library. The ndbm library is part of libc. 444438032Speter CONFIG: avoid bouncing ``user@host.'' (note trailing dot) with 444538032Speter ``local configuration error'' in nullclient configuration. 444638032Speter Patch from Gregory Neil Shapiro of WPI. 444738032Speter CONFIG: don't allow an alias file in nullclient configurations -- 444838032Speter since all addresses are relayed, they give errors during 444938032Speter rebuild. Suggested by Per Hedeland of Ericsson. 445038032Speter CONFIG: local mailer on Solaris 2 should always get a -f flag because 445138032Speter otherwise the F=S causes the From_ line to imply that root is 445238032Speter the sender. Problem pointed out by Claude Scarpelli of 445338032Speter Infobiogen (France). 445438032Speter NEW FILES: 445538032Speter cf/feature/use_ct_file.m4 (omitted from 8.7 by mistake) 445638032Speter src/Makefiles/Makefile.KSR (omitted from 8.7 by mistake) 445738032Speter src/Makefiles/Makefile.UXPDS 445838032Speter 445964562Sgshapiro8.7/8.7 1995/09/16 446038032Speter Fix a problem that could cause sendmail to run out of file 446138032Speter descriptors due to a trashed data structure after a 446238032Speter vfork. Fix from Brian Coan of the Institute for 446338032Speter Global Communications. 446438032Speter Change the VRFY response if you have disabled VRFY -- some 446538032Speter people seemed to think that it was too rude. 446638032Speter Avoid reference to uninitialized file descriptor if HASFLOCK 446738032Speter was not defined. This was used "safely" in the sense 446838032Speter that it only did a stat, but it would have set the 446938032Speter map modification time improperly. Problem pointed out 447038032Speter by Roy Mongiovi of Georgia Tech. 447138032Speter Clean up the Subject: line on warning messages and return 447238032Speter receipts so that they don't say "Returned mail:"; this 447338032Speter can be confusing. 447438032Speter Move ruleset entry/exit debugging from 21.2 to 21.1 -- this is 447538032Speter useful enough to make it worthwhile printing on "-d". 447638032Speter Avoid logging alias statistics every time you read the alias 447738032Speter file on systems with no database method compiled in. 447838032Speter If you have a name with a trailing dot, and you try looking it 447938032Speter up using gethostbyname without the dot (for /etc/hosts 448038032Speter compatibility), be sure to turn off RES_DEFNAMES and 448138032Speter RES_DNSRCH to avoid finding the wrong name accidentally. 448238032Speter Problem noted by Charles Amos of the University of 448338032Speter Maryland. 448438032Speter Don't do timeouts in collect if you are not running SMTP. 448538032Speter There is nothing that says you can't have a long 448638032Speter running program piped into sendmail (possibly via 448738032Speter /bin/mail, which just execs sendmail). Problem reported 448838032Speter by Don "Truck" Lewis of Silicon Systems. 448938032Speter Try gethostbyname() even if the DNS lookup fails iff option I 449038032Speter is not set. This allows you to have hosts listed in 449138032Speter NIS or /etc/hosts that are not known to DNS. It's normally 449238032Speter a bad idea, but can be useful on firewall machines. This 449338032Speter should really be broken out on a separate flag, I suppose. 449438032Speter Avoid compile warnings against BIND 4.9.3, which uses function 449538032Speter prototypes. From Don Lewis of Silicon Systems. 449638032Speter Avoid possible incorrect diagnosis of DNS-related errors caused 449738032Speter by things like attempts to resolve uucp names using 449838032Speter $[ ... $] -- the fix is to clear h_errno at appropriate 449938032Speter times. From Kyle Jones of UUNET. 450038032Speter SECURITY: avoid denial-of-service attacks possible by destroying 450138032Speter the alias database file by setting resource limits low. 450238032Speter This involves adding two new compile-time options: 450338032Speter HASSETRLIMIT (indicating that setrlimit(2) support is 450438032Speter available) and HASULIMIT (indicating that ulimit(2) support 450538032Speter is available -- the Release 3 form is used). The former 450638032Speter is assumed on BSD-based systems, the latter on System 450738032Speter V-based systems. Attack noted by Phil Brandenberger of 450838032Speter Swarthmore University. 450938032Speter New syntaxes in test (-bt) mode: 451038032Speter ``.Dmvalue'' will define macro "m" to "value". 451138032Speter ``.Ccvalue'' will add "value" to class "c". 451238032Speter ``=Sruleset'' will dump the contents of the indicated 451338032Speter ruleset. 451438032Speter ``=M'' will display the known mailers. 451538032Speter ``-ddebug-spec'' is equivalent to the command-line 451638032Speter -d debug flag. 451738032Speter ``$m'' will print the value of macro $m. 451838032Speter ``$=c'' will print the contents of class $=c. 451938032Speter ``/mx host'' returns the MX records for ``host''. 452038032Speter ``/parse address'' will parse address, returning the value of 452138032Speter crackaddr (essentially, the comment information) 452238032Speter and the parsed address. 452338032Speter ``/try mailer address'' will rewrite address into the form 452438032Speter it will have when presented to the indicated mailer. 452538032Speter ``/tryflags flags'' will set flags used by parsing. The 452638032Speter flags can be `H' for header or `E' for envelope, 452738032Speter and `S' for sender or `R' for recipient. These 452838032Speter can be combined, so `HR' sets flags for header 452938032Speter recipients. 453038032Speter ``/canon hostname'' will try to canonify hostname and 453138032Speter return the result. 453238032Speter ``/map mapname key'' will look up `key' in the indicated 453338032Speter `mapname' and return the result. 453438032Speter Somewhat better handling of UNIX-domain socket addresses -- it 453538032Speter should show the pathname rather than hex bytes. 453638032Speter Restore ``-ba'' mode -- this reads a file from stdin and parses 453738032Speter the header for envelope sender information and uses 453838032Speter CR-LF as message terminators. It was thought to be 453938032Speter obsolete (used only for Arpanet NCP protocols), but it 454038032Speter turns out that the UK ``Grey Book'' protocols require 454138032Speter that functionality. 454238032Speter Fix a fix in previous release -- if gethostname and gethostbyname 454338032Speter return a name without dots, and if an attempt to canonify 454438032Speter that name fails, wait one minute and try again. This can 454538032Speter result in an extra 60 second delay on startup if your system 454638032Speter hostname (as returned by hostname(1)) has no dot and no names 454738032Speter listed in /etc/hosts or your NIS map have a dot. 454838032Speter Check for proper domain name on HELO and EHLO commands per 454938032Speter RFC 1123 section 5.2.5. Problem noted by Thomas Dwyer III 455038032Speter of Michigan Technological University. 455138032Speter Relax chownsafe rules slightly -- old version said that if you 455238032Speter can't tell if _POSIX_CHOWN_RESTRICTED is set (that is, 455338032Speter if fpathconf returned EINVAL or ENOSYS), assume that 455438032Speter chown is not safe. The new version falls back to whether 455538032Speter you are on a BSD system or not. This is important for 455638032Speter SunOS, which apparently always returns one of those 455738032Speter error codes. This impacts whether you can mail to files 455838032Speter or not. 455938032Speter Syntax errors such as unbalanced parentheses in the configuration 456038032Speter file could be omitted if you had "Oem" prior to the 456138032Speter syntax error in the config file. Change to always print 456238032Speter the error message. It was especially weird because it 456338032Speter would cause a "warning" message to be sent to the Postmaster 456438032Speter for every message sent (but with no transcript). Problem 456538032Speter noted by Gregory Paris of Motorola. 456638032Speter Rewrite collect and putbody to handle full 8-bit data, including 456738032Speter zero bytes. These changes are internally extensive, but 456838032Speter should have minimal impact on external function. 456938032Speter Allow full words for option names -- if the option letter is 457038032Speter (apparently) a space, then take the word following -- e.g., 457138032Speter O MatchGECOS=TRUE 457238032Speter The full list of old and new names is as follows: 457338032Speter 7 SevenBitInput 457438032Speter 8 EightBitMode 457538032Speter A AliasFile 457638032Speter a AliasWait 457738032Speter B BlankSub 457838032Speter b MinFreeBlocks/MaxMessageSize 457938032Speter C CheckpointInterval 458038032Speter c HoldExpensive 458138032Speter D AutoRebuildAliases 458238032Speter d DeliveryMode 458338032Speter E ErrorHeader 458438032Speter e ErrorMode 458538032Speter f SaveFromLine 458638032Speter F TempFileMode 458738032Speter G MatchGECOS 458838032Speter H HelpFile 458938032Speter h MaxHopCount 459038032Speter i IgnoreDots 459138032Speter I ResolverOptions 459238032Speter J ForwardPath 459338032Speter j SendMimeErrors 459438032Speter k ConnectionCacheSize 459538032Speter K ConnectionCacheTimeout 459638032Speter L LogLevel 459738032Speter l UseErrorsTo 459838032Speter m MeToo 459938032Speter n CheckAliases 460038032Speter O DaemonPortOptions 460138032Speter o OldStyleHeaders 460238032Speter P PostmasterCopy 460338032Speter p PrivacyOptions 460438032Speter Q QueueDirectory 460538032Speter q QueueFactor 460638032Speter R DontPruneRoutes 460738032Speter r, T Timeout 460838032Speter S StatusFile 460938032Speter s SuperSafe 461038032Speter t TimeZoneSpec 461138032Speter u DefaultUser 461238032Speter U UserDatabaseSpec 461343730Speter V FallbackMXHost 461438032Speter v Verbose 461538032Speter w TryNullMXList 461638032Speter x QueueLA 461738032Speter X RefuseLA 461838032Speter Y ForkEachJob 461938032Speter y RecipientFactor 462038032Speter z ClassFactor 462138032Speter Z RetryFactor 462238032Speter The old macros that passed information into sendmail have 462338032Speter been changed to options; those correspondences are: 462438032Speter $e SmtpGreetingMessage 462538032Speter $l UnixFromLine 462638032Speter $o OperatorChars 462738032Speter $q (deleted -- not necessary) 462838032Speter To avoid possible problems with an older sendmail, 462938032Speter configuration level 6 is accepted by this version of 463038032Speter sendmail; any config file using the new names should 463138032Speter specify "V6" in the configuration. 463238032Speter Change address parsing to properly note that a phrase before a 463338032Speter colon and a trailing semicolon are essentially the same 463438032Speter as text outside of angle brackets (i.e., sendmail should 463538032Speter treat them as comments). This is to handle the 463638032Speter ``group name: addr1, addr2, ..., addrN;'' syntax (it will 463738032Speter assume that ``group name:'' is a comment on the first 463838032Speter address and the ``;'' is a comment on the last address). 463938032Speter This requires config file support to get right. It does 464038032Speter understand that :: is NOT this syntax, and can be turned 464138032Speter off completely by setting the ColonOkInAddresses option. 464238032Speter Level 6 config files added with new mailer flags: 464338032Speter A Addresses are aliasable. 464438032Speter i Do udb rewriting on envelope as well as header 464538032Speter sender lines. Applies to the from address mailer 464638032Speter flags rather than the recipient mailer flags. 464738032Speter j Do udb rewriting on header recipient addresses. 464838032Speter Applies to the sender mailer flags rather than the 464938032Speter recipient mailer flags. 465038032Speter k Disable check for loops when doing HELO command. 465138032Speter o Always run as the mail recipient, even on local 465238032Speter delivery. 465338032Speter w Check for an /etc/passwd entry for this user. 465438032Speter 5 Pass addresses through ruleset 5. 465538032Speter : Check for :include: on this address. 465638032Speter | Check for |program on this address. 465738032Speter / Check for /file on this address. 465838032Speter @ Look up sender header addresses in the user 465938032Speter database. Applies to the mailer flags for the 466038032Speter mailer corresponding to the envelope sender 466138032Speter address, rather than to recipient mailer flags. 466238032Speter Pre-level 6 configuration files set A, w, 5, :, |, /, and @ 466338032Speter on the "local" mailer, the o flag on the "prog" and "*file*" 466438032Speter mailers, and the ColonOkInAddresses option. 466538032Speter Eight-to-seven bit MIME conversions. This borrows ideas from 466638032Speter John Beck of Hewlett-Packard, who generously contributed 466738032Speter their implementation to me, which I then didn't use (see 466838032Speter mime.c for an explanation of why). This adds the 466938032Speter EightBitMode option (a.k.a. `8') and an F=8 mailer flag 467038032Speter to control handling of 8-bit data. These have to cope with 467138032Speter two types of 8-bit data: unlabelled 8-bit data (that is, 467238032Speter 8-bit data that is entered without declaring it as 8-bit 467338032Speter MIME -- technically this is illegal according to the 467438032Speter specs) and labelled 8-bit data (that is, it was declared 467538032Speter as 8BITMIME in the ESMTP session or by using the 467638032Speter -B8BITMIME command line flag). If the F=8 mailer flag is 467738032Speter set then 8-bit data is sent to non-8BITMIME machines 467838032Speter instead of converting to 7 bit (essentially using 467938032Speter just-send-8 semantics). The values for EightBitMode are: 468038032Speter m convert unlabelled 8-bit input to 8BITMIME, and do 468138032Speter any necessary conversion of 8BITMIME to 7BIT 468238032Speter (essentially, the full MIME option). 468338032Speter p pass unlabelled 8-bit input, but convert labelled 468438032Speter 8BITMIME input to 7BIT as required (default). 468538032Speter s strict adherence: reject unlabelled 8-bit input, 468638032Speter convert 8BITMIME to 7BIT as required. The F=8 468738032Speter flag is ignored. 468838032Speter Unlabelled 8-bit data is rejected in mode `s' regardless of 468938032Speter the setting of F=8. 469038032Speter Add new internal class 'n', which is the set of MIME Content-Types 469138032Speter which can not be 8 to 7 bit encoded because of other 469238032Speter considerations. Types "multipart/*" and "message/*" are 469338032Speter never directly encoded (although their components can be). 469438032Speter Add new internal class 's', which is the set of subtypes of the 469538032Speter MIME message/* content type that can be treated as though 469638032Speter they are an RFC822 message. It is predefined to have 469738032Speter "rfc822". Suggested By Kari Hurtta. 469838032Speter Add new internal class 'e'. This is the set of MIME 469938032Speter Content-Transfer-Encodings that can be converted to 470038032Speter a seven bit format (Quoted-Printable or Base64). It is 470138032Speter preinitialized to contain "7bit", "8bit", and "binary". 470238032Speter Add C=charset mailer parameter and the the DefaultCharSet option (no 470338032Speter short name) to set the default character set to use in the 470438032Speter Content-Type: header when doing encoding of an 8-bit message 470538032Speter which isn't marked as MIME into MIME format. If the C= 470638032Speter parameter is set on the Envelope From address, use that as 470738032Speter the default encoding; else use the DefaultCharSet option. 470838032Speter If neither is set, it defaults to "unknown-8bit" as 470938032Speter suggested by RFC 1428 section 3. 471038032Speter Allow ``U=user:group'' field in mailer definition to set a default 471138032Speter user and group that a mailer will be executed as. This 471238032Speter overrides the 'u' and 'g' options, and if the `F=S' flag is 471338032Speter also set, it is the uid/gid that will always be used (that 471438032Speter is, the controlling address is ignored). The values may be 471538032Speter numeric or symbolic; if only a symbolic user is given (no 471638032Speter group) that user's default group in the passwd file is used 471738032Speter as the group. Based on code donated by Chip Rosenthal of 471838032Speter Unicom. 471938032Speter Allow `u' option to also accept user:group as a value, in the same 472038032Speter fashion as the U= mailer option. 472138032Speter Add the symbolic time zone name in the Arpanet format dates (as 472238032Speter a comment). This adds a new compile-time configuration 472338032Speter flag: TZ_TYPE can be set to TZ_TM_NAME (use the value 472438032Speter of (struct tm *)->tm_name), TZ_TM_ZONE (use the value 472538032Speter of (struct tm *)->tm_zone), TZ_TZNAME (use extern char 472638032Speter *tzname[(struct tm *)->tm_isdst]), TZ_TIMEZONE (use 472738032Speter timezone()), or TZ_NONE (don't include the comment). Code 472838032Speter from Chip Rosenthal. 472938032Speter The "Timeout" option (formerly "r") is extended to allow suboptions. 473038032Speter For example, 473138032Speter O Timeout.helo = 2m 473238032Speter There are also two new suboptions "queuereturn" and 473338032Speter "queuewarn"; these subsume the old T option. Thus, to 473438032Speter set them both the preferred new syntax is 473538032Speter O Timeout.queuereturn = 5d 473638032Speter O Timeout.queuewarn = 4h 473738032Speter Sort queue by host name instead of by message priority if the 473838032Speter QueueSortOrder option (no short name) is set is set to 473938032Speter ``host''. This makes better use of the connection cache, 474038032Speter but may delay more ``interactive'' messages behind large 474138032Speter backlogs under some circumstances. This is probably a 474238032Speter good option if you have high speed links or don't do lots 474338032Speter of ``batch'' messages, but less good if you are using 474438032Speter something like PPP on a 14.4 modem. Based on code 474538032Speter contributed by Roy Mongiovi of Georgia Tech (my main 474638032Speter contribution was to make it configurable). 474738032Speter Save i-number of df file in qf file to simplify rebuilding of queue 474838032Speter after disastrous disk crash. Suggested by Kyle Jones of 474938032Speter UUNET; closely based on code from KJS DECWRL code written 475038032Speter by Paul Vixie. NOTA BENE: The qf files produced by 8.7 475138032Speter are NOT back compatible with 8.6 -- that is, you can convert 475238032Speter from 8.6 to 8.7, but not the other direction. 475338032Speter Add ``F=d'' mailer flag to disable all use of angle brackets in 475438032Speter route-addrs in envelopes; this is because in some cases 475538032Speter they can be sent to the shell, which interprets them as 475638032Speter I/O redirection. 475738032Speter Don't include error file (option E) with return-receipts; this 475838032Speter can be confusing. 475938032Speter Don't send "Warning: cannot send" messages to owner-* or 476038032Speter *-request addresses. Suggested by Christophe Wolfhugel 476138032Speter of the Institut Pasteur, Paris. 476238032Speter Allow -O command line flag to set long form options. 476338032Speter Add "MinQueueAge" option to set the minimum time between attempts 476438032Speter to run the queue. For example, if the queue interval 476538032Speter (-q value) is five minutes, but the minimum queue age 476638032Speter is fifteen minutes, jobs won't be tried more often than 476738032Speter once every fifteen minutes. This can be used to give 476838032Speter you more responsiveness if your delivery mode is set to 476938032Speter queue-only. 477038032Speter Allow "fileopen" timeout (default: 60 seconds) for opening 477138032Speter :include: and .forward files. 477238032Speter Add "-k", "-v", and "-z" flags to map definitions; these set the 477338032Speter key field name, the value field name, and the field 477438032Speter delimiter. The field delimiter can be a single character 477538032Speter or the sequence "\t" or "\n" for tab or newline. 477638032Speter These are for use by NIS+ and similar access methods. 477738032Speter Change maps to always strip quotes before lookups; the -q flag 477843730Speter turns off this behavior. Suggested by Motonori Nakamura. 477938032Speter Add "nisplus" map class. Takes -k and -v flags to choose the 478038032Speter key and value field names respectively. Code donated by 478138032Speter Sun Microsystems. 478238032Speter Add "hesiod" map class. The "file name" is used as the 478338032Speter "HesiodNameType" parameter to hes_resolve(3). Returns the 478438032Speter first value found for the match. Code donated by Scott 478538032Speter Hutton of Indiana University. 478638032Speter Add "netinfo" (NeXT NetInfo) map class. Maps can have a -k flag to 478738032Speter specify the name of the property that is searched as the 478838032Speter key and a -v flag to specify the name of the property that 478938032Speter is returned as the value (defaults to "members"). The 479038032Speter default map is "/aliases". Some code based on code 479138032Speter contributed by Robert La Ferla of Hot Software. 479238032Speter Add "text" map class. This does slow, linear searches through 479338032Speter text files. The -z flag specifies a column delimiter 479438032Speter (defaults to any sequence of white space), the -k flag 479538032Speter sets the key column number, and the -v flag sets the 479638032Speter value column number. Lines beginning with `#' are treated 479738032Speter as comments. 479838032Speter Add "program" map class to execute arbitrary programs. The search 479938032Speter key is presented as the last argument; the output is one 480038032Speter line read from the programs standard output. Exit statuses 480138032Speter are from sysexits.h. 480238032Speter Add "sequence" map class -- searches maps in sequence until it 480338032Speter finds a match. For example, the declarations: 480438032Speter Kmap1 ... 480538032Speter Kmap2 ... 480638032Speter Kmapseq sequence map1 map2 480738032Speter defines a map "mapseq" that first searches map1; if the 480838032Speter value is found it is returned immediately, otherwise 480938032Speter map2 is searched and the value returned. 481038032Speter Add "switch" map class. This is much like "sequence" except that 481138032Speter the ordering is fetched from an external file, usually 481238032Speter the system service switch. The parameter is the name of 481338032Speter the service to switch on, and the maps that it will use 481438032Speter are the name of the switch map followed by ".service_type". 481538032Speter For example, if the declaration of the map is 481638032Speter Ksample switch hosts 481738032Speter and the system service switch specifies that hosts are 481838032Speter looked up using dns and nis in that order, then this is 481938032Speter equivalent to 482038032Speter Ksample sequence sample.dns sample.nis 482138032Speter The subordinate maps (sample.*) must already be defined. 482238032Speter Add "user" map class -- looks up users using getpwnam. Takes a 482338032Speter "-v field" flag on the definition that tells what passwd 482438032Speter entry to return -- legal values are name, passwd, uid, gid, 482538032Speter gecos, dir, and shell. Generally expected to be used with 482638032Speter the -m (matchonly) flag. 482738032Speter Add "bestmx" map class -- returns the best MX value for the host 482838032Speter listed as the value. If there are several "best" MX records 482938032Speter for this host, one will be chosen at random. 483038032Speter Add "userdb" map class -- looks up entries in the user database. 483138032Speter The "file name" is actually the tag that will be used, 483238032Speter typically "mailname". If there are multiple entries 483338032Speter matching the name, the one chosen is undefined. 483438032Speter Add multiple queue timeouts (both return and warning). These are 483538032Speter set by the Precedence: or Priority: header fields to one of 483638032Speter three values. If a Priority: is set and has value "normal", 483764562Sgshapiro "urgent", or "non-urgent" the corresponding timeouts are 483838032Speter used. If no priority is set, the Precedence: is consulted; 483938032Speter if negative, non-urgent timeouts are used; if greater than 484038032Speter zero, urgent timeouts are used. Otherwise, normal timeouts 484138032Speter are used. The timeouts are set by setting the six timeouts 484238032Speter queue{warn,return}.{urgent,normal,non-urgent}. 484338032Speter Fix problem when a mail address is resolved to a $#error mailer 484438032Speter with a temporary failure indication; it works in SMTP, 484538032Speter but when delivering locally the mail is silently discarded. 484638032Speter This patch, from Kyle Jones of UUNET, bounces it instead 484738032Speter of queueing it (queueing is very hard). 484838032Speter When using /etc/hosts or NIS-style lookups, don't assume that 484938032Speter the first name in the list is the best one -- instead, 485038032Speter search for the first one with a dot. For example, if 485138032Speter an /etc/hosts entry reads 485238032Speter 128.32.149.68 mammoth mammoth.CS.Berkeley.EDU 485338032Speter this change will use the second name as the canonical 485438032Speter machine name instead of the initial, unqualified name. 485538032Speter Change dequote map to replace spaces in quoted text with a value 485638032Speter indicated by the -s flag on the dequote map definition. 485738032Speter For example, ``Mdequote dequote -s_'' will change 485838032Speter "Foo Bar" into an unquoted Foo_Bar instead of leaving it 485938032Speter quoted (because of the space character). Suggested by Dan 486038032Speter Oscarsson for use in X.400 addresses. 486138032Speter Implement long macro names as ${name}; long class names can 486238032Speter be similarly referenced as $={name} and $~{name}. 486338032Speter Definitions are (e.g.) ``D{name}value''. Names that have 486438032Speter a leading lower case letter or punctuation characters are 486538032Speter reserved for internal use by sendmail; i.e., config files 486638032Speter should use names that begin with a capital letter. Based 486738032Speter on code contributed by Dan Oscarsson. 486838032Speter Fix core dump if getgrgid returns a null group list (as opposed 486938032Speter to an empty group list, that is, a pointer to a list 487038032Speter with no members). Fix from Andrew Chang of Sun Microsystems. 487138032Speter Fix possible core dump if malloc fails -- if the malloc in xalloc 487238032Speter failed, it called syserr which called newstr which called 487338032Speter xalloc.... The newstr is now avoided for "panic" messages. 487438032Speter Reported by Stuart Kemp of James Cook University. 487538032Speter Improve connection cache timeouts; previously, they were not even 487638032Speter checked if you were delivering to anything other than an 487738032Speter IPC-connected host, so a series of (say) local mail 487838032Speter deliveries could cause cached connections to be open 487938032Speter much longer than the specified timeout. 488038032Speter If an incoming message exceeds the maximum message size, stop 488138032Speter writing the incoming bytes to the queue data file, since 488238032Speter this can fill your mqueue partition -- this is a possible 488338032Speter denial-of-service attack. 488438032Speter Don't reject all numeric local user names unless HESIOD is 488538032Speter defined. It turns out that Posix allows all-numeric 488638032Speter user names. Fix from Tony Sanders of BSDI. 488738032Speter Add service switch support. If the local OS has a service 488838032Speter switch (e.g., /etc/nsswitch.conf on Solaris or /etc/svc.conf 488938032Speter on DEC systems) that will be used; otherwise, it falls back 489038032Speter to using a local mechanism based on the ServiceSwitchFile 489138032Speter option (default: /etc/service.switch). For example, if the 489238032Speter service switch lists "files" and "nis" for the aliases 489338032Speter service, that will be the default lookup order. the "files" 489438032Speter ("local" on DEC) service type expands to any alias files 489538032Speter you listed in the configuration file, even if they aren't 489638032Speter actually file lookups. 489738032Speter Option I (NameServerOptions) no longer sets the "UseNameServer" 489838032Speter variable which tells whether or not DNS should be considered 489938032Speter canonical. This is now determined based on whether or not 490038032Speter "dns" is in the service list for "hosts". 490138032Speter Add preliminary support for the ESMTP "DSN" extension (Delivery 490238032Speter Status Notifications). DSN notifications override 490338032Speter Return-Receipt-To: headers, which are bogus anyhow -- 490438032Speter support for them has been removed. 490538032Speter Add T=mts-name-type/address-type/diagnostic-type keyletter to mailer 490638032Speter definitions to define the types used in DSN returns for 490738032Speter MTA names, addresses, and diagnostics respectively. 490838032Speter Extend heuristic to force running in ESMTP mode to look for the 490938032Speter five-character string "ESMTP" anywhere in the 220 greeting 491038032Speter message (not just the second line). This is to provide 491138032Speter better compatibility with other ESMTP servers. 491238032Speter Print sequence number of job when running the queue so you can 491338032Speter easily see how much progress you have made. Suggested 491438032Speter by Peter Wemm of DIALix. 491538032Speter Map newlines to spaces in logged message-ids; some versions of 491638032Speter syslog truncate the rest of the line after newlines. 491738032Speter Suggested by Fletcher Mattox of U. Texas. 491838032Speter Move up forking for job runs so that if a message is split into 491938032Speter multiple envelopes you don't get "fork storms" -- this 492038032Speter also improves the connection cache utilization. 492138032Speter Accept "<<>>", "<<<>>>", and so forth as equivalent to "<>" for 492238032Speter the purposes of refusing to send error returns. Suggested 492338032Speter by Motonori Nakamura of Ritsumeikan University. 492438032Speter Relax rules on when a file can be written when referenced from 492538032Speter the aliases file: use the default uid/gid instead of the 492638032Speter real uid/gid. This allows you to create a file owned by 492738032Speter and writable only by the default uid/gid that will work 492838032Speter all the time (without having the setuid bit set). Change 492938032Speter suggested by Shau-Ping Lo and Andrew Cheng of Sun 493038032Speter Microsystems. 493138032Speter Add "DialDelay" option (no short name) to provide an "extra" 493238032Speter delay for dial on demand systems. If this is non-zero 493338032Speter and a connect fails, sendmail will wait this long and 493438032Speter then try again. If it takes longer than the kernel 493538032Speter timeout interval to establish the connection, this 493638032Speter option can give the network software time to establish 493738032Speter the link. The default units are seconds. 493838032Speter Move logging of sender information to be as early as possible; 493938032Speter previously, it could be delayed a while for SMTP mail 494038032Speter sent to aliases. Suggested by Brad Knowles of the 494138032Speter Defense Information Systems Agency. 494238032Speter Call res_init() before setting RES_DEBUG; this is required by 494338032Speter BIND 4.9.3, or so I'm told. From Douglas Anderson of 494438032Speter the National Computer Security Center. 494538032Speter Add xdelay= field in logs -- this is a transaction delay, telling 494638032Speter you how long it took to deliver to this address on the 494738032Speter last try. It is intended to be used for sorting mailing 494838032Speter lists to favor "quick" addresses. Provided for use by 494938032Speter the mailprio scripts (see below). 495038032Speter If a map cannot be opened, and that map is non-optional, and 495138032Speter an address requires that map for resolution, queue the 495238032Speter map instead of bouncing it. This involves creating a 495338032Speter pseudo-class of maps called "bogus-map" -- if a required 495438032Speter map cannot be opened, the class is changed to bogus-map; 495538032Speter all queries against bogus-map return "tempfail". The 495638032Speter bogus-map class is not directly accessible. A sample 495738032Speter implementation was donated by Jem Taylor of Glasgow 495838032Speter University Computing Service. 495938032Speter Fix a possible core dump when mailing to a program that talks 496038032Speter SMTP on its standard input. Fix from Keith Moore of 496138032Speter the University of Kentucky. 496238032Speter Make it possible to resolve filenames to $#local $: @ /filename; 496338032Speter previously, the "@" would cause it to not be recognized 496438032Speter as a file. Problem noted by Brian Hill of U.C. Davis. 496538032Speter Accept a -1 signal to re-exec the daemon. This only works if 496638032Speter argv[0] is a full path to sendmail. 496738032Speter Fix bug in "addr=..." field in O option on little-endian machines 496838032Speter -- the network number wasn't being converted to network 496938032Speter byte order. Patch from Kurt Lidl of Pix Technologies 497038032Speter Corporation. 497138032Speter Pre-initialize the resolver early on; this is to avoid a bug with 497238032Speter BIND 4.9.3 that can cause the _res.retry field to get 497338032Speter reset to zero, causing all name server lookups to time 497438032Speter out. Fix from Matt Day of Artisoft. 497538032Speter Restore T line (trusted users) in config file -- but instead of 497638032Speter locking out the -f flag, they just tell whether or not 497738032Speter an X-Authentication-Warning: will be added. This really 497838032Speter just creates new entries in class 't', so "Ft/file/name" 497938032Speter can be used to read trusted user names from a file. 498038032Speter Trusted users are also allowed to execute programs even 498138032Speter if they have a shell that isn't in /etc/shells. 498238032Speter Improve NEWDB alias file rebuilding so it will create them 498338032Speter properly if they do not already exist. This had been 498438032Speter a MAYBENEXTRELEASE feature in 8.6.9. 498538032Speter Check for @:@ entry in NIS maps before starting up to avoid 498638032Speter (but not prevent, sigh) race conditions. This ought to 498738032Speter be handled properly in ypserv, but isn't. Suggested by 498838032Speter Michael Beirne of Motorola. 498938032Speter Refuse connections if there isn't enough space on the filesystem 499038032Speter holding the queue. Contributed by Robert Dana of Wolf 499138032Speter Communications. 499238032Speter Skip checking for directory permissions in the path to a file 499338032Speter when checking for file permissions iff setreuid() 499438032Speter succeeded -- it is unnecessary in that case. This avoids 499538032Speter significant performance problems when looking for .forward 499638032Speter files. Based on a suggestion by Win Bent of USC. 499738032Speter Allow symbolic ruleset names. Syntax can be "Sname" to get an 499838032Speter arbitrary ruleset number assigned or "Sname = integer" 499938032Speter to assign a specific ruleset number. Reference is 500038032Speter $>name_or_number. Names can be composed of alphas, digits, 500138032Speter underscore, or hyphen (first character must be non-numeric). 500238032Speter Allow -o flag on AliasFile lines to make the alias file optional. 500338032Speter From Bryan Costales of ICSI. 500438032Speter Add NoRecipientAction option to handle the case where there is 500538032Speter no legal recipient header in the message. It can take 500638032Speter on values: 500738032Speter None Leave the message as is. The 500838032Speter message will be passed on even 500938032Speter though it is in technically 501038032Speter illegal syntax. 501138032Speter Add-To Add a To: header with any 501238032Speter recipients that it can find from 501338032Speter the envelope. This risks exposing 501438032Speter Bcc: recipients. 501538032Speter Add-Apparently-To Add an Apparently-To: header. This 501638032Speter has almost no redeeming social value, 501738032Speter and is provided only for back 501838032Speter compatibility. 501938032Speter Add-To-Undisclosed Add a header reading 502038032Speter To: undisclosed-recipients:; 502138032Speter which will have the effect of 502238032Speter making the message legal without 502338032Speter exposing Bcc: recipients. 502438032Speter Add-Bcc To add an empty Bcc: header. 502538032Speter There is a chance that mailers down 502638032Speter the line will delete this header, 502738032Speter which could cause exposure of Bcc: 502838032Speter recipients. 502938032Speter The default is NoRecipientAction=None. 503038032Speter Truncate (rather than delete) Bcc: lines in the header. This 503138032Speter should prevent later sendmails (at least, those that don't 503238032Speter themselves delete Bcc:) from considering this message to 503338032Speter be non-conforming -- although it does imply that non-blind 503438032Speter recipients can see that a Bcc: was sent, albeit not to whom. 503538032Speter Add SafeFileEnvironment option. If declared, files named as delivery 503638032Speter targets must be regular files in addition to the regular 503738032Speter checks. Also, if the option is non-null then it is used as 503838032Speter the name of a directory that is used as a chroot(2) 503938032Speter environment for the delivery; the file names listed in an 504038032Speter alias or forward should include the name of this root. 504138032Speter For example, if you run with 504238032Speter O SafeFileEnvironment=/arch 504338032Speter then aliases should reference "/arch/rest/of/path". If a 504438032Speter value is given, sendmail also won't try to save to 504538032Speter /usr/tmp/dead.letter (instead it just leaves the job in the 504638032Speter queue as Qfxxxxxx). Inspired by *Hobbit*'s sendmail patch kit. 504738032Speter Support -A flag for alias files; this will comma concatenate like 504838032Speter entries. For example, given the aliases: 504938032Speter list: member1 505038032Speter list: member2 505138032Speter and an alias file declared as: 505238032Speter OAhash:-A /etc/aliases 505338032Speter the final alias inserted will be "list: member1,member2"; 505438032Speter without -A you will get an error on the second and subsequent 505538032Speter alias for "list". Contributed by Bryan Costales of ICSI. 505638032Speter Line-buffer transcript file. Suggested by Liudvikas Bukys. 505738032Speter Fix a problem that could cause very long addresses to core dump in 505838032Speter some special circumstances. Problem pointed out by Allan 505938032Speter Johannesen. 506038032Speter (Internal change.) Change interface to expand() (macro expansion) 506138032Speter to be simpler and more consistent. 506238032Speter Delete check for funny qf file names. This didn't really give 506338032Speter any extra security and caused some people some problems. 506438032Speter (If you -really- want this, define PICKY_QF_NAME_CHECK 506538032Speter at compile time.) Suggested by Kyle Jones of UUNET. 506638032Speter (Internal change.) Change EF_NORETURN to EF_NO_BODY_RETN and 506738032Speter merge with DSN code; this is simpler and more consistent. 506838032Speter This may affect some people who have written their own 506938032Speter checkcompat() routine. 507038032Speter (Internal change.) Eliminate `D' line in qf file. The df file 507138032Speter is now assumed to be the same name as the qf file (with 507238032Speter the `q' changed to a `d', of course). 507338032Speter Avoid forking for delivery if all recipient mailers are marked as 507438032Speter "expensive" -- this can be a major cost on some systems. 507538032Speter Essentially, this forces sendmail into "queue only" mode 507638032Speter if all it is going to do is queue anyway. 507738032Speter Avoid sending a null message in some rather unusual circumstances 507838032Speter (specifically, the RCPT command returns a temporary 507938032Speter failure but the connection is lost before the DATA 508038032Speter command). Fix from Scott Hammond of Secure Computing 508138032Speter Corporation. 508238032Speter Change makesendmail to use a somewhat more rational naming scheme: 508338032Speter Makefiles and obj directories are named $os.$rel.$arch, 508438032Speter where $os is the operating system (e.g., SunOS), $rel is 508538032Speter the release number (e.g., 5.3), and $arch is the machine 508638032Speter architecture (e.g., sun4). Any of these can be omitted, 508738032Speter and anything after the first dot in a release number can 508838032Speter be replaced with "x" (e.g., SunOS.4.x.sun4). The previous 508938032Speter version used $os.$arch.$rel and was rather less general. 509038032Speter Change makesendmail to do a "make depend" in the target directory 509138032Speter when it is being created. This involves adding an empty 509238032Speter "depend:" entry in most Makefiles. 509338032Speter Ignore IDENT return value if the OSTYPE field returns "OTHER", 509438032Speter as indicated by RFC 1413. Pointed out by Kari Hurtta 509538032Speter of the Finnish Meteorological Institute. 509638032Speter Fix problem that could cause multiple responses to DATA command 509738032Speter on header syntax errors (e.g., lines beginning with colons). 509838032Speter Problem noted by Jens Thomassen of the University of Oslo. 509938032Speter Don't let null bytes in headers cause truncation of the rest of 510038032Speter the header. 510138032Speter Log Authentication-Warning:s. Suggested by Motonori Nakamura. 510238032Speter Increase timeouts on message data puts to allow time for receivers 510338032Speter to canonify addresses in headers on the fly. This is still 510438032Speter a rather ugly heuristic. From Motonori Nakamura. 510538032Speter Add "HasWildcardMX" suboption to ResolverOptions; if set, MX 510638032Speter records are not used when canonifying names, and when MX 510738032Speter lookups are done for addressing they must be fully 510838032Speter qualified. This is useful if you have a wildcard MX record, 510938032Speter although it may cause other problems. In general, don't use 511038032Speter wildcard MX records. Patch from Motonori Nakamura. 511138032Speter Eliminate default two-line SMTP greeting message. Instead of 511238032Speter adding an extra "ESMTP spoken here" line, the word "ESMTP" 511338032Speter is added between the first and second word of the first 511438032Speter line of the greeting message (i.e., immediately after the 511538032Speter host name). This eliminates the need for the BROKEN_SMTP_PEERS 511638032Speter compile flag. Old sendmails won't see the ESMTP, but that's 511738032Speter acceptable because SIZE was the only useful extension that 511838032Speter old sendmails understand. 511938032Speter Avoid gethostbyname calls on UNIX domain sockets during SIGUSR1 512038032Speter invoked state dumps. From Masaharu Onishi. 512138032Speter Allow on-line comments in .forward and :include: files; they are 512238032Speter introduced by the string "<LWSP>#@#<LWSP>", where <LWSP> 512338032Speter is a space or a tab. This is intended for native 512438032Speter representation of non-ASCII sets such as Japanese, where 512538032Speter existing encodings would be unreadable or would lose 512638032Speter data -- for example, 512738032Speter <motonori@cs.ritsumei.ac.jp> NAKAMURA Motonori 512838032Speter (romanized/less information) 512938032Speter <motonori@cs.ritsumei.ac.jp> =?ISO-2022-JP?B?GyRCQ2ZCPBsoQg==?= 513038032Speter =?ISO-2022-JP?B?GyRCQUdFNRsoQg==?= 513138032Speter (with MIME encoding, not human readable) 513238032Speter <motonori@cs.ritsumei.ac.jp> #@# ^[$BCfB<^[(B ^[$BAGE5^[(B 513338032Speter (native encoding with ISO-2022-JP) 513438032Speter The last form is human readable in the Japanese environment. 513538032Speter Based on a fix from (surprise!) Motonori Nakamura. 513638032Speter Don't make SMTP error returns on MAIL FROM: line be "sticky" for all 513738032Speter messages to that host; these are most frequently associated 513838032Speter with addresses rather than the host, with the exception of 513938032Speter 421 (service shutting down). The effect was to cause queues 514038032Speter to sometimes take an excessive time to flush. Reported by 514138032Speter Robert Sargent of Southern Geographics Technologies and 514238032Speter Eric Prestemon of American University. 514338032Speter Add Nice=N mailer option to set the niceness at which a mailer will 514438032Speter run. This is actually a relative niceness (that is, an 514538032Speter increment on the background value). 514638032Speter Log queue runs that are skipped due to high loads. They are logged 514738032Speter at LOG_INFO priority iff the log level is > 8. Contributed 514838032Speter by Bruce Nagel of Data General. 514938032Speter Allow the error mailer to accept a DSN-style error status code 515038032Speter instead of an sysexits status code in the host part. 515138032Speter Anything with a dot will be interpreted as a DSN-style code. 515238032Speter Add new mailer flag: F=3 will tell translations to Quoted-Printable 515338032Speter to encode characters that might be munged by an EBCDIC system 515438032Speter in addition to the set required by RFC 1521. The additional 515538032Speter characters are !, ", #, $, @, [, \, ], ^, `, {, |, }, and ~. 515638032Speter (Think of "IBM 360" as the mnemonic for this flag.) 515738032Speter Change check for mailing to files to look for a pathname of [FILE] 515838032Speter rather than looking for the mailer named *file*. The mapping 515938032Speter of leading slashes still goes to the *file* mailer. This 516038032Speter allows you to implement the *file* mailer as a separate 516138032Speter program, for example, to insert a Content-Length: header 516238032Speter or do special security policy. However, note that the usual 516338032Speter initial checking for the file permissions is still done, and 516438032Speter the program in question needs to be very careful about how 516538032Speter it does the file write to avoid security problems. 516638032Speter Be able to read ~root/.forward even if the path isn't accessible to 516738032Speter regular users. This is disrecommended because sendmail 516838032Speter sometimes does not run as root (e.g., when an unsafe option 516938032Speter is specified on the command line), but should otherwise be 517038032Speter safe because .forward files must be owned by the user for 517138032Speter whom mail is being forwarded, and cannot be a symbolic link. 517238032Speter Suggested by Forrest Aldrich of Wang Laboratories. 517338032Speter Add new "HostsFile" option that is the pathname to the /etc/hosts 517438032Speter file. This is used for canonifying hostnames when the 517538032Speter service type is "files". 517638032Speter Implement programs on F (read class from file) line. The syntax is 517738032Speter Fc|/path/to/program to read the output from the program 517838032Speter into class "c". 517938032Speter Probe the network interfaces to find alternate names for this 518038032Speter host. Requires the SIOCGIFCONF ioctl call. Code 518138032Speter contributed by SunSoft. 518238032Speter Add "E" configuration line to set or propagate environment 518338032Speter variables into children. "E<envar>" will propagate 518438032Speter the named variable from the environment when sendmail 518538032Speter was invoked into any children it calls; "E<envar>=<value>" 518638032Speter sets the named variable to the indicated value. Any 518738032Speter variables not explicitly named will not be in the child 518838032Speter environment. However, sendmail still forces an 518938032Speter "AGENT=sendmail" environment variable, in part to enforce 519038032Speter at least one environment variable, since many programs and 519138032Speter libraries die horribly if this is not guaranteed. 519238032Speter Change heuristic for rebuilding both NEWDB and NDBM versions of 519338032Speter alias databases -- new algorithm looks for the substring 519438032Speter "/yp/" in the file name. This is more portable and involves 519538032Speter less overhead. Suggested by Motonori Nakamura. 519638032Speter Dynamically allocate the queue work list so that you don't lose 519738032Speter jobs in large queue runs. The old QUEUESIZE compile parameter 519838032Speter is replaced by QUEUESEGSIZE (the unit of allocation, which 519938032Speter should not need to be changed) and the MaxQueueRunSize option, 520038032Speter which is the absolute maximum number of jobs that will ever 520138032Speter be handled in a single queue run. Based on code contributed 520238032Speter by Brian Coan of the Institute for Global Communications. 520338032Speter Log message when a message is dropped because it exceeds the maximum 520438032Speter message size. Suggested by Leo Bicknell of Virginia Tech. 520538032Speter Allow trusted users (those on a T line or in $=t) to use -bs without 520638032Speter an X-Authentication-Warning: added. Suggested by Mark Thomas 520738032Speter of Mark G. Thomas Consulting. 520838032Speter Announce state of compile flags on -d0.1 (-d0.10 throws in the 520938032Speter OS-dependent defines). The old semantic of -d0.1 to not 521038032Speter run the daemon in background has been moved to -d99.100, 521138032Speter and the old 52.5 flag (to avoid disconnect() from closing 521238032Speter all output files) has been moved to 52.100. This makes 521338032Speter things more consistent (flags below .100 don't change 521438032Speter semantics) and separates out the backgrounding so that 521538032Speter it doesn't happen automatically on other unrelated debugging 521638032Speter flags. 521738032Speter If -t is used but no addresses are found in the header, give an 521838032Speter error message rather than just doing nothing. Fix from 521938032Speter Motonori Nakamura. 522038032Speter On systems (like SunOS) where the effective gid is not necessarily 522138032Speter included in the group list returned by getgroups(), the 522238032Speter `restrictmailq' option could sometimes cause an authorized 522338032Speter user to not be able to use `mailq'. Fix from Charles Hannum 522438032Speter of MIT. 522538032Speter Allow symbolic service names for [IPC] mailers. Suggested by 522638032Speter Gerry Magennis of Logica International. 522738032Speter Add DontExpandCnames option to prevent $[ ... $] from expanding CNAMEs 522838032Speter when running DNS. For example, if the name FTP.Foo.ORG is 522938032Speter a CNAME for Cruft.Foo.ORG, then when sitting on a machine in 523038032Speter the Foo.ORG domain a lookup of "FTP" returns "Cruft.Foo.ORG" 523138032Speter if this option is not set, or "FTP.Foo.ORG" if it is set. 523238032Speter This is technically illegal under RFC 822 and 1123, but the 523338032Speter IETF is moving toward legalizing it. Note that turning on 523438032Speter this option is not sufficient to guarantee that a downstream 523538032Speter neighbor won't rewrite the address for you. 523638032Speter Add "-m" flag to makesendmail script -- this tells you what object 523738032Speter directory and Makefile it will use, but doesn't actually do 523838032Speter the make. 523938032Speter Do some additional checking on the contents of the qf file to try 524038032Speter to detect attacks against the qf file. In particular, 524138032Speter abort on any line beginning "From ", and add an "end of 524238032Speter file" line -- any data after that line is prohibited. 524338032Speter Always use /etc/sendmail.cf, regardless of the arbitrary vendor 524438032Speter choices. This can be overridden in the Makefile by using 524538032Speter either -DUSE_VENDOR_CF_PATH to get the vendor location 524638032Speter (to the extent that we know it) or by defining 524738032Speter _PATH_SENDMAILCF (which is a "hard override"). This allows 524838032Speter sendmail 8 to have more consistent installation instructions. 524938032Speter Allow macros on `K' line in config file. Suggested by Andrew Chang 525038032Speter of Sun Microsystems. 525138032Speter Improved symbol table hash function from Eric Wassenaar. This one 525238032Speter is at least 50% faster. 525338032Speter Fix problem that didn't notice that timeout on file open was a 525438032Speter transient error. Fix from Larry Parmelee of Cornell 525538032Speter University. 525638032Speter Allow comments (lines beginning with a `#') in files read for 525738032Speter classes. Suggested by Motonori Nakamura. 525838032Speter Make SIGINT (usually ^C) in test mode return to the prompt instead 525938032Speter of dropping out entirely. This makes testing some of the 526038032Speter name server lookups easier to deal with when there are 526138032Speter hung servers. From Motonori Nakamura. 526238032Speter Add new ${opMode} macro that is set to the current operation mode 526338032Speter (e.g., `s' for -bs, `t' for -bt, etc.). Suggested by 526438032Speter Claude Marinier <MARINIER@emp.ewd.dreo.dnd.ca>. 526538032Speter Add new delivery mode (Odd) that defers all map lookups to queue runs. 526638032Speter Kind of like queue-only mode (Odq) except it tries to avoid 526738032Speter any external service requests; for dial-on-demand hosts that 526838032Speter want to minimize DNS lookups when mail is being queued. For 526938032Speter this to work you will also have to make sure that gethostbyname 527038032Speter of your local host name does not do a DNS lookup. 527138032Speter Improved handling of "out of space" conditions from John Myers of 527238032Speter Carnegie Mellon. 527338032Speter Improved security for mailing to files on systems that have fchmod(2) 527438032Speter support. 527538032Speter Improve "cannot send message for N days" message -- now says "could 527638032Speter not send for past N days". Suggested by Tom Moore of AT&T 527738032Speter Global Information Solutions. 527838032Speter Less misleading Subject: line on messages sent to postmaster only. 527938032Speter From Motonori Nakamura. 528038032Speter Avoid duplicate error messages on bad command line flags. From 528138032Speter Motonori Nakamura. 528238032Speter Better error message for case where ruleset 0 falls off the end 528338032Speter or otherwise does not resolve to a canonical triple. 528438032Speter Fix a problem that could cause multiple bounce messages if a bad 528538032Speter address was sent along with a good address to an SMTP 528638032Speter site where that SMTP site returned a 4yz code in response 528738032Speter to the final dot of the data. Problem reported by David 528838032Speter James of British Telecom. 528938032Speter Add "volatile" declarations so that gcc -O2 will work. Patches 529038032Speter from Alexander Dupuy of System Management ARTS. 529138032Speter Delete duplicates in MX lists -- believe it or not, there are sites 529238032Speter that list the same host twice in an MX list. This deletion 529338032Speter only works on adjacent preferences, so an MX list that 529438032Speter had A=5, B=10, A=15 would leave both As, but one that had 529538032Speter A=5, A=10, B=15 would reduce to A, B. This is intentional, 529638032Speter just in case there is something weird I haven't thought of. 529738032Speter Suggested by Barry Shein of Software Tool & Die. 529838032Speter SECURITY: .forward files cannot be symbolic links. If they are, 529938032Speter a bad guy can read your private files. 530038032Speter PORTABILITY FIXES: 530138032Speter Solaris 2 from Rob McMahon <cudcv@csv.warwick.ac.uk>. 530238032Speter System V Release 4 from Motonori Nakamura of Ritsumeikan 530338032Speter University. This expands the disk size 530438032Speter checking to include all (?) SVR4 configurations. 530538032Speter System V Release 4 from Kimmo Suominen -- initgroups(3) 530638032Speter and setrlimit(2) are both available. 530738032Speter System V Release 4 from sob@sculley.ffg.com -- some versions 530838032Speter apparently "have EX_OK defined in other headerfiles." 530938032Speter Linux Makefile typo. 531038032Speter Linux getusershell(3) is broken in Slackware 2.0 -- 531138032Speter from Andrew Pam of Xanadu Australia. 531238032Speter More Linux tweaking from John Kennedy of California State 531338032Speter University, Chico. 531438032Speter Cray changes from Eric Wassenaar: ``On Cray, shorts, 531538032Speter ints, and longs are all 64 bits, and all structs 531638032Speter are multiples of 64 bits. This means that the 531738032Speter sizeof operator returns only multiples of 8. 531838032Speter This requires adaptation of code that really 531938032Speter deals with 32 bit or 16 bit fields, such as IP 532038032Speter addresses or nameserver fields.'' 532138032Speter DG/UX 5.4.3 from Mark T. Robinson <mtr@ornl.gov>. To 532243730Speter get the old behavior, use -DDGUX_5_4_2. 532338032Speter DG/UX hack: add _FORCE_MAIL_LOCAL_=yes environment 532443730Speter variable to fix bogus /bin/mail behavior. 532538032Speter Tandem NonStop-UX from Rick McCarty <mccarty@mpd.tandem.com>. 532638032Speter This also cleans up some System V Release 4 compile 532738032Speter problems. 532838032Speter Solaris 2: sendmail.cw file should be in /etc/mail to 532938032Speter match all the other configuration files. Fix 533038032Speter from Glenn Barry of Emory University. 533138032Speter Solaris 2.3: compile problem in conf.c. Fix from Alain 533238032Speter Nissen of the University of Liege, Belgium. 533338032Speter Ultrix: freespace calculation was incorrect. Fix from 533438032Speter Takashi Kizu of Osaka University. 533538032Speter SVR4: running in background gets a SIGTTOU because the 533638032Speter emulation code doesn't realize that "getpeername" 533738032Speter doesn't require reading the file. Fix from Peter 533838032Speter Wemm of DIALix. 533938032Speter Solaris 2.3: due to an apparent bug in the socket emulation 534038032Speter library, sockets can get into a "wedged" state where 534138032Speter they just return EPROTO; closing and re-opening the 534238032Speter socket clears the problem. Fix from Bob Manson 534338032Speter of Ohio State University. 534438032Speter Hitachi 3050R & 3050RX running HI-UX/WE2: portability 534538032Speter fixes from Akihiro Hashimoto ("Hash") of Chiba 534638032Speter University. 534738032Speter AIX changes to allow setproctitle to work from Rainer Sch�pf 534838032Speter of Zentrum f�r Datenverarbeitung der Universit�t 534938032Speter Mainz. 535038032Speter AIX changes for load average from Ed Ravin of NASA/Goddard. 535138032Speter SCO Unix from Chip Rosenthal of Unicom (code was using the 535238032Speter wrong statfs call). 535338032Speter ANSI C fixes from Adam Glass (NetBSD project). 535438032Speter Stardent Titan/ANSI C fixes from Kate Hedstrom of Rutgers 535538032Speter University. 535638032Speter DG-UX fixes from Bruce Nagel of Data General. 535738032Speter IRIX64 updates from Mark Levinson of the University of 535838032Speter Rochester Medical Center. 535938032Speter Altos System V (``the first UNIX/XENIX merge the Altos 536038032Speter did for their Series 1000 & Series 2000 line; 536138032Speter their merged code was licensed back to AT&T and 536238032Speter Microsoft and became System V release 3.2'') from 536338032Speter Tim Rice <timr@crl.com>. 536438032Speter OSF/1 running on Intel Paragon from Jeff A. Earickson 536538032Speter <jeff@ssd.intel.com> of Intel Scalable Systems 536638032Speter Division. 536738032Speter Amdahl UTS System V 2.1.5 (SVr3-based) from Janet Jackson 536838032Speter <janet@dialix.oz.au>. 536938032Speter System V Release 4 (statvfs semantic fix) from Alain 537038032Speter Durand of I.M.A.G. 537138032Speter HP-UX 10.x multiprocessor load average changes from 537238032Speter Scott Hutton and Jeff Sumler of Indiana University. 537338032Speter Cray CSOS from Scott Bolte of Cray Computer Corporation. 537438032Speter Unicos 8.0 from Douglas K. Rand of the University of North 537538032Speter Dakota, Scientific Computing Center. 537638032Speter Solaris 2.4 fixes from Sanjay Dani of Dani Communications. 537738032Speter ConvexOS 11.0 from Christophe Wolfhugel. 537838032Speter IRIX 4.0.5 from David Ashton-Reader of CADcentre. 537938032Speter ISC UNIX from J. J. Bailey. 538038032Speter HP-UX 9.xx on the 8xx series machines from Remy Giraud 538138032Speter of Meteo France. 538238032Speter HP-UX configuration from Tom Lane <tgl@sss.pgh.pa.us>. 538338032Speter IRIX 5.2 and 5.3 from Kari E. Hurtta. 538438032Speter FreeBSD 2.0 from Mike Hickey of Federal Data Corporation. 538538032Speter Sony NEWS-OS 4.2.1R and 6.0.3 from Motonori Nakamura. 538638032Speter Omron LUNA unios-b, mach from Motonori Nakamura. 538738032Speter NEC EWS-UX/V 4.2 from Motonori Nakamura. 538838032Speter NeXT 2.1 from Bryan Costales. 538938032Speter AUX patch thanks to Mike Erwin of Apple Computer. 539038032Speter HP-UX 10.0 from John Beck of Hewlett-Packard. 539138032Speter Ultrix: allow -DBROKEN_RES_SEARCH=0 if you are using a 539238032Speter non-DEC resolver. Suggested by Allan Johannesen. 539338032Speter UnixWare 2.0 fixes from Petr Lampa of the Technical 539438032Speter University of Brno (Czech Republic). 539538032Speter KSR OS 1.2.2 support from Todd Miller of the University 539638032Speter of Colorado. 539738032Speter UX4800 support from Kazuhisa Shimizu of NEC. 539838032Speter MAKEMAP: allow -d flag to allow insertion of duplicate aliases 539938032Speter in type ``btree'' maps. The semantics of this are undefined 540038032Speter for regular maps, but it can be useful for the user database. 540138032Speter MAKEMAP: lock database file while rebuilding to avoid sendmail 540238032Speter lookups while the rebuild is going on. There is a race 540338032Speter condition between the open(... O_TRUNC ...) and the lock 540438032Speter on the file, but it should be quite small. 540538032Speter SMRSH: sendmail restricted shell added to the release. This can 540638032Speter be used as an alternative to /bin/sh for the "prog" mailer, 540738032Speter giving the local administrator more control over what 540838032Speter programs can be run from sendmail. 540938032Speter MAIL.LOCAL: add this local mailer to the tape. It is not really 541038032Speter part of the release proper, and isn't fully supported; in 541138032Speter particular, it does not run on System V based systems and 541238032Speter never will. 541338032Speter CONTRIB: a patch to rmail.c from Bill Gianopoulos of Raytheon 541438032Speter to allow rmail to compile on systems that don't have 541538032Speter function prototypes and systems that don't have snprintf. 541638032Speter CONTRIB: add the "mailprio" scripts that will help you sort mailing 541738032Speter lists by transaction delay times so that addresses that 541838032Speter respond quickly get sent first. This is to prevent very 541938032Speter sluggish servers from delaying other peoples' mail. 542038032Speter Contributed by Tony Sanders of BSDI. 542138032Speter CONTRIB: add the "bsdi.mc" file as contributed by Tony Sanders 542238032Speter of BSDI. This has a lot of comments to help people out. 542338032Speter CONFIG: Don't have .mc files include(../m4/cf.m4) -- instead, 542438032Speter put this on the m4 command line. On GNU m4 (which 542538032Speter supports the __file__ primitive) you can run m4 in an 542638032Speter arbitrary directory -- use either: 542738032Speter m4 ${CFDIR}/m4/cf.m4 config.mc > config.cf 542838032Speter or 542938032Speter m4 -I${CFDIR} m4/cf.m4 config.mc > config.cf 543038032Speter On other versions of m4 that don't support __file__, you 543138032Speter can use: 543238032Speter m4 -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ... 543338032Speter (Note the trailing slash on the _CF_DIR_ definition.) 543438032Speter Old versions of m4 will default to _CF_DIR_=.. for back 543538032Speter compatibility. 543638032Speter CONFIG: fix mail from <> so it will properly convert to 543738032Speter MAILER-DAEMON on local addresses. 543838032Speter CONFIG: fix code that was supposed to catch colons in host 543938032Speter names. Problem noted by John Gardiner Myers of CMU. 544038032Speter CONFIG: allow use of SMTP_MAILER_MAX in nullclient configuration. 544138032Speter From Paul Riddle of the University of Maryland, Baltimore 544238032Speter County. 544338032Speter CONFIG: Catch and reject "." as a host address. 544438032Speter CONFIG: Generalize domaintable to look up all domains, not 544538032Speter just unqualified ones. 544638032Speter CONFIG: Delete OLD_SENDMAIL support -- as near as I can tell, it 544738032Speter was never used and didn't work anyway. 544838032Speter CONFIG: Set flags A, w, 5, :, /, |, and @ on the "local" mailer 544938032Speter and d on all mailers in the UUCP class. 545038032Speter CONFIG: Allow "user+detail" to be aliased specially: it will first 545138032Speter look for an alias for "user+detail", then for "user+*", and 545238032Speter finally for "user". This is intended for forwarding mail 545338032Speter for system aliases such as root and postmaster to a 545438032Speter centralized hub. 545538032Speter CONFIG: add confEIGHT_BIT_HANDLING to set option 8 (see above). 545638032Speter CONFIG: add smtp8 mailer; this has the F=8 (just-send-8) flag set. 545738032Speter The F=8 flag is also set on the "relay" mailer, since 545838032Speter this is expected to be another sendmail. 545938032Speter CONFIG: avoid qualifying all UUCP addresses sent via SMTP with 546038032Speter the name of the UUCP_RELAY -- in some cases, this is the 546138032Speter wrong value (e.g., when we have local UUCP connections), 546238032Speter and this can create unreplyable addresses. From Chip 546338032Speter Rosenthal of Unicom. 546438032Speter CONFIG: add confRECEIVED_HEADER to change the format of the 546564562Sgshapiro Received: header inserted into all messages. Suggested by 546638032Speter Gary Mills of the University of Manitoba. 546738032Speter CONFIG: Make "notsticky" the default; use FEATURE(stickyhost) 546843730Speter to get the old behavior. I did this upon observing 546938032Speter that almost everyone needed this feature, and that the 547038032Speter concept I was trying to make happen didn't work with 547138032Speter some user agents anyway. FEATURE(notsticky) still works, 547238032Speter but it is a no-op. 547338032Speter CONFIG: Add LUSER_RELAY -- the host to which unrecognized user 547438032Speter names are sent, rather than immediately diagnosing them 547538032Speter as User Unknown. 547638032Speter CONFIG: Add SMTP_MAILER_ARGS, ESMTP_MAILER_ARGS, SMTP8_MAILER_ARGS, 547738032Speter and RELAY_MAILER_ARGS to set the arguments for the 547838032Speter indicated mailers. All default to "IPC $h". Patch from 547938032Speter Larry Parmelee of Cornell University. 548038032Speter CONFIG: pop mailer needs F=n flag to avoid "annoying side effects 548138032Speter on the client side" and F=P to get an appropriate 548238032Speter return-path. From Kimmo Suominen. 548338032Speter CONFIG: add FEATURE(local_procmail) to use the procmail program 548438032Speter as the local mailer. For addresses of the form "user+detail" 548538032Speter the "detail" part is passed to procmail via the -a flag. 548638032Speter Contributed by Kimmo Suominen. 548738032Speter CONFIG: add MAILER(procmail) to add an interface to procmail for 548838032Speter use from mailertables. This lets you execute arbitrary 548938032Speter procmail scripts. Contributed by Kimmo Suominen. 549038032Speter CONFIG: add T= fields (MTS type) to local, smtp, and uucp mailers. 549138032Speter CONFIG: add OSTYPE(ptx2) for DYNIX/ptx 2.x from Sequent. From 549238032Speter Paul Southworth of CICNet Systems Support. 549338032Speter CONFIG: use -a$g as default to UUCP mailers, instead of -a$f. 549438032Speter This causes the null return path to be rewritten as 549538032Speter MAILER-DAEMON; otherwise UUCP gets horribly confused. 549638032Speter From Michael Hohmuth of Technische Universitat Dresden. 549738032Speter CONFIG: Add FEATURE(bestmx_is_local) to cause any hosts that 549838032Speter list us as the best possible MX record to be treated as 549938032Speter though they were local (essentially, assume that they 550038032Speter are included in $=w). This can cause additional DNS 550138032Speter traffic, but is easier to administer if this fits your 550238032Speter local model. It does not work reliably if there are 550338032Speter multiple hosts that share the best MX preference. 550438032Speter Code contributed by John Oleynick of Rutgers. 550538032Speter CONFIG: Add FEATURE(smrsh) to use smrsh (the SendMail Restricted 550638032Speter SHell) instead of /bin/sh as the program used for delivery 550738032Speter to programs. If an argument is included, it is used as 550838032Speter the path to smrsh; otherwise, /usr/local/etc/smrsh is 550938032Speter assumed. 551038032Speter CONFIG: Add LOCAL_MAILER_MAX and PROCMAILER_MAILER_MAX to limit the 551138032Speter size of messages to the local and procmail mailers 551238032Speter respectively. Contributed by Brad Knowles of the Defense 551338032Speter Information Systems Agency. 551438032Speter CONFIG: Handle leading ``phrase:'' and trailing ``;'' as comments 551538032Speter (just like text outside of angle brackets) in order to 551638032Speter properly deal with ``group: addr1, ... addrN;'' syntax. 551738032Speter CONFIG: Require OSTYPE macro (the defaults really don't apply to 551838032Speter any real systems any more) and tweak the DOMAIN macro 551938032Speter so that it is less likely that users will accidentally use 552038032Speter the Berkeley defaults. Also, create some generic files 552138032Speter that really can be used in the real world. 552238032Speter CONFIG: Add new configuration macros to set character sets for 552338032Speter messages _arriving from_ various mailers: LOCAL_MAILER_CHARSET, 552438032Speter SMTP_MAILER_CHARSET, and UUCP_MAILER_CHARSET. 552538032Speter CONFIG: Change UUCP_MAX_SIZE to UUCP_MAILER_MAX for consistency. 552638032Speter The old name will still be accepted for a while at least. 552738032Speter CONFIG: Implement DECNET_RELAY as spec for host to which DECNET 552838032Speter mail (.DECNET pseudo-domain or node::user) will be sent. 552938032Speter As with all relays, it can be ``mailer:hostname''. Suggested 553038032Speter by Scott Hutton. 553138032Speter CONFIG: Add MAILER(mail11) to get DECnet support. Code contributed 553238032Speter by Barb Dijker of Labyrinth Computer Services. 553338032Speter CONFIG: change confCHECK_ALIASES to default to False -- it has poor 553438032Speter performance for large alias files, and this confused many 553538032Speter people. 553638032Speter CONFIG: Add confCF_VERSION to append local information to the 553738032Speter configuration version number displayed during SMTP startup. 553838032Speter CONFIG: fix some.newsgroup.usenet@local.host syntax (previously it 553938032Speter would only work when locally addressed. Fix from 554038032Speter Edvard Tuinder of Cistron Internet Services. 554138032Speter CONFIG: use ${opMode} to avoid error on .REDIRECT addresses if option 554243730Speter "n" (CheckAliases) is set when rebuilding alias database. 554338032Speter Based on code contributed by Claude Marinier. 554438032Speter CONFIG: Allow mailertable to have values of the form 554538032Speter ``error:code message''. The ``code'' is a status code 554638032Speter derived from the sysexits codes -- e.g., NOHOST or UNAVAILABLE. 554738032Speter Contributed by David James <dwj@agw.bt.co.uk>. 554838032Speter CONFIG: add MASQUERADE_DOMAIN(domain list) to extend the list of 554938032Speter sender domains that will be replaced with the masquerade name. 555038032Speter These domains will not be treated as local, but if mail passes 555138032Speter through with sender addresses in those domains they will be 555238032Speter replaced by the masquerade name. These can also be specified 555338032Speter in a file using MASQUERADE_DOMAIN_FILE(filename). 555438032Speter CONFIG: add FEATURE(masquerade_envelope) to masquerade the envelope 555538032Speter as well as the header. Substantial improvements to this 555638032Speter code were contributed by Per Hedeland. 555738032Speter CONFIG: add MAILER(phquery) to define a new "ph" mailer; this can be 555838032Speter accessed from a mailertable to do CCSO ph lookups. Contributed 555938032Speter by Kimmo Suominen. 556038032Speter CONFIG: add MAILER(cyrus) to define a new Cyrus mailer; this can be 556138032Speter used to define cyrus and cyrusbb mailers (for IMAP support). 556238032Speter Contributed by John Gardiner Myers of Carnegie Mellon. 556338032Speter CONFIG: add confUUCP_MAILER to select default mailer to use for 556438032Speter UUCP addressing. Suggested by Tom Moore of AT&T GIS. 556538032Speter NEW FILES: 556638032Speter cf/cf/cs-hpux10.mc 556738032Speter cf/cf/cs-solaris2.mc 556838032Speter cf/cf/cyrusproto.mc 556938032Speter cf/cf/generic-bsd4.4.mc 557038032Speter cf/cf/generic-hpux10.mc 557138032Speter cf/cf/generic-hpux9.mc 557238032Speter cf/cf/generic-osf1.mc 557338032Speter cf/cf/generic-solaris2.mc 557438032Speter cf/cf/generic-sunos4.1.mc 557538032Speter cf/cf/generic-ultrix4.mc 557638032Speter cf/cf/huginn.cs.mc 557738032Speter cf/domain/berkeley-only.m4 557838032Speter cf/domain/generic.m4 557938032Speter cf/feature/bestmx_is_local.m4 558038032Speter cf/feature/local_procmail.m4 558138032Speter cf/feature/masquerade_envelope.m4 558238032Speter cf/feature/smrsh.m4 558338032Speter cf/feature/stickyhost.m4 558438032Speter cf/feature/use_ct_file.m4 558538032Speter cf/m4/cfhead.m4 558638032Speter cf/mailer/cyrus.m4 558738032Speter cf/mailer/mail11.m4 558838032Speter cf/mailer/phquery.m4 558938032Speter cf/mailer/procmail.m4 559038032Speter cf/ostype/amdahl-uts.m4 559138032Speter cf/ostype/bsdi2.0.m4 559238032Speter cf/ostype/hpux10.m4 559338032Speter cf/ostype/irix5.m4 559438032Speter cf/ostype/isc4.1.m4 559538032Speter cf/ostype/ptx2.m4 559638032Speter cf/ostype/unknown.m4 559738032Speter contrib/bsdi.mc 559838032Speter contrib/mailprio 559938032Speter contrib/rmail.oldsys.patch 560038032Speter mail.local/mail.local.0 560138032Speter makemap/makemap.0 560238032Speter smrsh/README 560338032Speter smrsh/smrsh.0 560438032Speter smrsh/smrsh.8 560538032Speter smrsh/smrsh.c 560638032Speter src/Makefiles/Makefile.CSOS 560738032Speter src/Makefiles/Makefile.EWS-UX_V 560838032Speter src/Makefiles/Makefile.HP-UX.10 560938032Speter src/Makefiles/Makefile.IRIX.5.x 561038032Speter src/Makefiles/Makefile.IRIX64 561138032Speter src/Makefiles/Makefile.ISC 561238032Speter src/Makefiles/Makefile.KSR 561338032Speter src/Makefiles/Makefile.NEWS-OS.4.x 561438032Speter src/Makefiles/Makefile.NEWS-OS.6.x 561538032Speter src/Makefiles/Makefile.NEXTSTEP 561638032Speter src/Makefiles/Makefile.NonStop-UX 561738032Speter src/Makefiles/Makefile.Paragon 561838032Speter src/Makefiles/Makefile.SCO.3.2v4.2 561938032Speter src/Makefiles/Makefile.SunOS.5.3 562038032Speter src/Makefiles/Makefile.SunOS.5.4 562138032Speter src/Makefiles/Makefile.SunOS.5.5 562238032Speter src/Makefiles/Makefile.UNIX_SV.4.x.i386 562338032Speter src/Makefiles/Makefile.uts.systemV 562438032Speter src/Makefiles/Makefile.UX4800 562538032Speter src/aliases.0 562638032Speter src/mailq.0 562738032Speter src/mime.c 562838032Speter src/newaliases.0 562938032Speter src/sendmail.0 563038032Speter test/t_seteuid.c 563138032Speter RENAMED FILES: 563238032Speter cf/cf/alpha.mc => cf/cf/s2k-osf1.mc 563338032Speter cf/cf/chez.mc => cf/cf/chez.cs.mc 563438032Speter cf/cf/hpux-cs-exposed.mc => cf/cf/cs-hpux9.mc 563538032Speter cf/cf/osf1-cs-exposed.mc => cf/cf/cs-osf1.mc 563638032Speter cf/cf/s2k.mc => cf/cf/s2k-ultrix4.mc 563738032Speter cf/cf/sunos4.1-cs-exposed.mc => cf/cf/cs-sunos4.1.mc 563838032Speter cf/cf/ultrix4.1-cs-exposed.mc => cf/cf/cs-ultrix4.mc 563938032Speter cf/cf/vangogh.mc => cf/cf/vangogh.cs.mc 564038032Speter cf/domain/Berkeley.m4 => cf/domain/Berkeley.EDU.m4 564138032Speter cf/domain/cs-exposed.m4 => cf/domain/CS.Berkeley.EDU.m4 564238032Speter cf/domain/eecs-hidden.m4 => cf/domain/EECS.Berkeley.EDU.m4 564338032Speter cf/domain/s2k.m4 => cf/domain/S2K.Berkeley.EDU.m4 564438032Speter cf/ostype/hpux.m4 => cf/ostype/hpux9.m4 564538032Speter cf/ostype/irix.m4 => cf/ostype/irix4.m4 564638032Speter cf/ostype/ultrix4.1.m4 => cf/ostype/ultrix4.m4 564738032Speter src/Makefile.* => src/Makefiles/Makefile.* 564838032Speter src/Makefile.AUX => src/Makefiles/Makefile.A-UX 564938032Speter src/Makefile.BSDI => src/Makefiles/Makefile.BSD-OS 565038032Speter src/Makefile.DGUX => src/Makefiles/Makefile.dgux 565138032Speter src/Makefile.RISCos => src/Makefiles/Makefile.UMIPS 565238032Speter src/Makefile.SunOS.4.0.3 => src/Makefiles/Makefile.SunOS.4.0 565338032Speter OBSOLETED FILES: 565438032Speter cf/cf/cogsci.mc 565538032Speter cf/cf/cs-exposed.mc 565638032Speter cf/cf/cs-hidden.mc 565738032Speter cf/cf/hpux-cs-hidden.mc 565838032Speter cf/cf/knecht.mc 565938032Speter cf/cf/osf1-cs-hidden.mc 566038032Speter cf/cf/sunos3.5-cs-exposed.mc 566138032Speter cf/cf/sunos3.5-cs-hidden.mc 566238032Speter cf/cf/sunos4.1-cs-hidden.mc 566338032Speter cf/cf/ultrix4.1-cs-hidden.mc 566438032Speter cf/domain/cs-hidden.m4 566538032Speter contrib/rcpt-streaming 566638032Speter src/Makefiles/Makefile.SunOS.5.x 566738032Speter 566864562Sgshapiro8.6.13/8.6.12 1996/01/25 566938032Speter SECURITY: In some cases it was still possible for an attacker to 567038032Speter insert newlines into a queue file, thus allowing access to 567138032Speter any user (except root). 567238032Speter CONFIG: no changes -- it is not a bug that the configuration 567338032Speter version number is unchanged. 567438032Speter 567564562Sgshapiro8.6.12/8.6.12 1995/03/28 567638032Speter Fix to IDENT code (it was getting the size of the reply buffer 567738032Speter too small, so nothing was ever accepted). Fix from several 567838032Speter people, including Allan Johannesen, Shane Castle of the 567938032Speter Boulder County Information Services, and Jeff Smith of 568038032Speter Warwick University (all arrived within a few hours of 568138032Speter each other!). 568238032Speter Fix a problem that could cause large jobs to run out of 568338032Speter file descriptors on systems that use vfork() rather 568438032Speter than fork(). 568538032Speter 568664562Sgshapiro8.6.11/8.6.11 1995/03/08 568738032Speter The ``possible attack'' message would be logged more often 568838032Speter than necessary if you are using Pine as a user agent. 568938032Speter The wrong host would be reported in the ``possible attack'' 569038032Speter message when attempted from IDENT. 569138032Speter In some cases the syslog buffer could be overflowed when 569238032Speter reporting the ``possible attack'' message. This can 569338032Speter cause denial of service attacks. Truncate the message 569438032Speter to 80 characters to prevent this problem. 569538032Speter When reading the IDENT response a loop is needed around the 569638032Speter read from the network to ensure that you don't get 569738032Speter partial lines. 569838032Speter Password entries without any shell listed (that is, a null 569938032Speter shell) wouldn't match as "ok". Problem noted by 570038032Speter Rob McMahon. 570138032Speter When running BIND 4.9.x a problem could occur because the 570238032Speter _res.options field is initialized differently than it 570338032Speter was historically -- this requires that sendmail call 570438032Speter res_init before it tweaks any bits. 570538032Speter Fix an incompatibility in openxscript() between the file open mode 570638032Speter and the stdio mode passed to fdopen. This caused UnixWare 570738032Speter 2.0 to have conniptions. Fix from Martin Sohnius of 570838032Speter Novell Labs Europe. 570938032Speter Fix problem with static linking of local getopt routine when 571038032Speter using GNU's ld command. Fix from John Kennedy of 571138032Speter Cal State Chico. 571238032Speter It was possible to turn off privacy flags. Problem noted by 571338032Speter *Hobbit*. 571438032Speter Be more paranoid about writing files. Suggestions by *Hobbit* 571538032Speter and Liudvikas Bukys. 571638032Speter MAKEMAP: fixes for 64 bit machines (DEC Alphas in particular) 571738032Speter from Spider Boardman. 571838032Speter CONFIG: No changes (version number only, to keep it in sync 571938032Speter with the binaries). 572038032Speter 572164562Sgshapiro8.6.10/8.6.10 1995/02/10 572238032Speter SECURITY: Diagnose bogus values to some command line flags that 572338032Speter could allow trash to get into headers and qf files. 572438032Speter Validate the name of the user returned by the IDENT protocol. 572538032Speter Some systems that really dislike IDENT send intentionally 572638032Speter bogus information. Problem pointed out by Michael Bushnell 572738032Speter of the Free Software Foundation. Has some security 572838032Speter implications. 572938032Speter Fix a problem causing error messages about DNS problems when 573038032Speter the host name contained a percent sign to act oddly 573138032Speter because it was passed as a printf-style format string. 573238032Speter In some cases this could cause core dumps. 573338032Speter Avoid possible buffer overrun in returntosender() if error 573438032Speter message is quite long. From Fletcher Mattox of the 573538032Speter University of Texas. 573638032Speter Fix a problem that would silently drop "too many hops" error 573738032Speter messages if and only if you were sending to an alias. 573838032Speter From Jon Giltner of the University of Colorado and 573938032Speter Dan Harton of Oak Ridge National Laboratory. 574038032Speter Fix a bug that caused core dumps on some systems if -d11.2 was 574138032Speter set and e->e_message was null. Fix from Bruce Nagel of 574238032Speter Data General. 574338032Speter Fix problem that can still cause df files to be left around 574438032Speter after "hop count exceeded" messages. Fix from Andrew 574538032Speter Chang and Shau-Ping Lo of SunSoft. 574638032Speter Fix a problem that can cause buffer overflows on very long 574738032Speter user names (as might occur if you piped to a program 574838032Speter with a lot of arguments). 574938032Speter Avoid returning an error and re-queueing if the host signature 575038032Speter is null; this can occur on addresses like ``user@.''. 575138032Speter Problem noted by Wesley Craig and the University of 575238032Speter Michigan. 575338032Speter Avoid possible calls to malloc(0) if MCI caching is turned 575438032Speter off. Bug fix from Pierre David of the Laboratoire 575538032Speter Parallelisme, Reseaux, Systemes et Modelisation (PRiSM), 575638032Speter Universite de Versailles - St Quentin, and Jacky 575738032Speter Thibault. 575838032Speter Make a local copy of the line being sent via senttolist() -- in 575938032Speter some cases, buffers could get trashed by map lookups 576038032Speter causing it to do unexpected things. This also simplifies 576138032Speter some of the map code. 576238032Speter CONFIG: No changes (version number only, to keep it in sync 576338032Speter with the binaries). 576438032Speter 576564562Sgshapiro8.6.9/8.6.9 1994/04/19 576638032Speter Do all mail delivery completely disconnected from any terminal. 576738032Speter This provides consistency with daemon delivery and 576838032Speter may have some security implications. 576938032Speter Make sure that malloc doesn't get called with zero size, 577038032Speter since that fails on some systems. Reported by Ed 577138032Speter Hill of the University of Iowa. 577238032Speter Fix multi-line values for $e (SMTP greeting message). Reported 577338032Speter by Mike O'Connor of Ford Motor Company. 577438032Speter Avoid syserr if no NIS domain name is defined, but the map it 577538032Speter is trying to open is optional. From Win Bent of USC. 577638032Speter Changes for picky compilers from Ed Gould of Digital Equipment. 577738032Speter Hesiod support for UDB from Todd Miller of the University of 577838032Speter Colorado. Use "hesiod" as the service name in the U 577938032Speter option. 578038032Speter Fix a problem that failed to set the "authentic" host name (that 578138032Speter is, the one derived from the socket info) if you called 578238032Speter sendmail -bs from inetd. Based on code contributed by 578338032Speter Todd Miller (this problem was also reported by Guy Helmer 578438032Speter of Dakota State University). This also fixes a related 578538032Speter problem reported by Liudvikas Bukys of the University of 578638032Speter Rochester. 578738032Speter Parameterize "nroff -h" in all the Makefiles so people with 578838032Speter variant versions can use them easily. Suggested by 578938032Speter Peter Collinson of Hillside Systems. 579038032Speter SMTP "MAIL" commands with multiple ESMTP parameters required two 579138032Speter spaces between parameters instead of one. Reported by 579238032Speter Valdis Kletnieks of Virginia Tech. 579338032Speter Reduce the number of system calls during message collection by 579438032Speter using global timeouts around the collect() loop. This 579538032Speter code was contributed by Eric Wassenaar. 579638032Speter If the initial hostname name gathering results in a name 579738032Speter without a dot (usually caused by NIS misconfiguration) 579838032Speter and BIND is compiled in, directly access DNS to get 579938032Speter the canonical name. This should make life easier for 580038032Speter Solaris systems. If it still can't be resolved, and 580138032Speter if the name server is listed as "required", try again 580238032Speter in 30 seconds. If that also fails, exit immediately to 580338032Speter avoid bogus "config error: mail loops back to myself" 580438032Speter messages. 580538032Speter Improve the "MAIL DELETED BECAUSE OF LACK OF DISK SPACE" error 580638032Speter message to explain how much space was available and 580738032Speter sound a bit less threatening. Suggested by Stan Janet 580838032Speter of the National Institute of Standards and Technology. 580938032Speter If mail is delivered to an alias that has an owner, deliver any 581038032Speter requested return-receipt immediately, and strip the 581138032Speter Return-Receipt-To: header from the subsequent message. 581238032Speter This prevents a certain class of denial of service 581338032Speter attack, arguably gives more reasonable semantics, and 581438032Speter moves things more towards what will probably become a 581538032Speter network standard. Suggested by Christopher Davis of 581638032Speter Kapor Enterprises. 581738032Speter Add a "noreceipts" privacy flag to turn off all return receipts 581838032Speter without recompiling. 581938032Speter Avoid printing ESMTP parameters as part of the error message 582038032Speter if there are errors during parsing. This change is 582138032Speter purely cosmetic. 582238032Speter Avoid sending out error messages during the collect phase of 582338032Speter SMTP; there is an MVS mailer from UCLA that gets 582438032Speter confused by this. Of course, I think it's their bug.... 582538032Speter Check for the $j macro getting undefined, losing a dot, or getting 582638032Speter lost from $=w in the daemon before accepting a connection; 582738032Speter if it is, it dumps state, prints a LOG_ALERT message, 582838032Speter and drops core for debugging. This is an attempt to 582938032Speter track down a bug that I thought was long since gone. 583038032Speter If you see this, please forward the log fragment to 583138032Speter sendmail@sendmail.ORG. 583238032Speter Change OLD_NEWDB from a #ifdef to a #if so it can be turned off 583338032Speter with -DOLD_NEWDB=0 on the command line. From Christophe 583438032Speter Wolfhugel. 583538032Speter Instead of trying to truncate the listen queue for the server 583638032Speter SMTP port when the load average is too high, just close 583738032Speter the port completely and reopen it later as needed. 583838032Speter This ensures that the other end gets a quick "connection 583938032Speter refused" response, and that the connection can be 584038032Speter recovered later. In particular, some socket emulations 584138032Speter seem to get confused if you tweak the listen queue 584238032Speter size around and can never start listening to connections 584338032Speter again. The down side is that someone could start up 584438032Speter another daemon process in the interim, so you could 584538032Speter have multiple daemons all not listening to connections; 584638032Speter this could in turn cause the sendmail.pid file to be 584738032Speter incorrect. A better approach might be to accept the 584838032Speter connection and give a 421 code, but that could break 584943730Speter other mailers in mysterious ways and have paging behavior 585038032Speter implications. 585138032Speter Fix a glitch in TCP-level debugging that caused flag 16.101 to 585238032Speter set debugging on the wrong socket. From Eric Wassenaar. 585338032Speter When creating a df* temporary file, be sure you truncate any 585438032Speter existing data in the file -- otherwise system crashes 585538032Speter and the like could result in extra data being sent. 585638032Speter DOC: Replace the CHANGES-R5-R8 readme file with a paper in the 585738032Speter doc directory. This includes some additional 585838032Speter information. 585938032Speter CONFIG: change UUCP rules to never add $U! or $k! on the front 586038032Speter of recipient envelope addresses. This should have been 586138032Speter handled by the $&h trick, but broke if people were 586238032Speter mixing domainized and UUCP addresses. They should 586338032Speter probably have converted all the way over to uucp-uudom 586438032Speter instead of uucp-{new,old}, but the failure mode was to 586538032Speter loop the mail, which was bad news. 586638032Speter Portability fixes: 586738032Speter Newer BSDI systems (several people). 586838032Speter Older BSDI systems from Christophe Wolfhugel. 586938032Speter Intergraph CLIX, from Paul Southworth of CICNet. 587038032Speter UnixWare, from Evan Champion. 587138032Speter NetBSD from Adam Glass. 587238032Speter Solaris from Quentin Campbell of the University of 587338032Speter Newcastle upon Tyne. 587438032Speter IRIX from Dean Cookson and Bill Driscoll of Mitre 587538032Speter Corporation. 587638032Speter NCR 3000 from Kevin Darcy of Chrysler Financial Corporation. 587738032Speter SunOS (it has setsid() and setvbuf() calls) from 587838032Speter Jonathan Kamens of OpenVision Technologies. 587938032Speter HP-UX from Tor Lillqvist. 588038032Speter New Files: 588138032Speter src/Makefile.CLIX 588238032Speter src/Makefile.NCR3000 588338032Speter doc/changes/Makefile 588438032Speter doc/changes/changes.me 588538032Speter doc/changes/changes.ps 588638032Speter 588764562Sgshapiro8.6.8/8.6.6 1994/03/21 588838032Speter SECURITY: it was possible to read any file as root using the 588938032Speter E (error message) option. Reported by Richard Jones; 589038032Speter fixed by Michael Corrigan and Christophe Wolfhugel. 589138032Speter 589264562Sgshapiro8.6.7/8.6.6 1994/03/14 589338032Speter SECURITY: it was possible to get root access by using weird 589438032Speter values to the -d flag. Thanks to Alain Durand of 589538032Speter INRIA for forwarding me the notice from the bugtraq 589638032Speter list. 589738032Speter 589864562Sgshapiro8.6.6/8.6.6 1994/03/13 589938032Speter SECURITY: the ability to give files away on System V-based 590038032Speter systems proved dangerous -- don't run as the owner 590138032Speter of a :include: file on a system that allows giveaways. 590238032Speter Unfortunately, this also applies to determining a 590338032Speter valid shell. 590438032Speter IMPORTANT: Previous versions weren't expiring old connections 590538032Speter in the connection cache for a long time under some 590638032Speter circumstances. This could result in resource exhaustion, 590738032Speter both at your end and at the other end. This checks the 590838032Speter connections for timeouts much more frequently. From 590938032Speter Doug Anderson of NCSC. 591038032Speter Fix a glitch that snuck in that caused programs to be run as 591138032Speter the sender instead of the recipient if the mail was 591238032Speter from a local user to another local user. From 591338032Speter Motonori Nakamura of Kyoto University. 591438032Speter Fix "wildcard" on /etc/shells matching -- instead of looking 591538032Speter for "*", look for "/SENDMAIL/ANY/SHELL/". From 591638032Speter Bryan Costales of ICSI. 591738032Speter Change the method used to declare the "statfs" availability; 591838032Speter instead of HASSTATFS and/or HASUSTAT with a ton of 591938032Speter tweaking in conf.c, there is a single #define called 592038032Speter SFS_TYPE which takes on one of six values (SFS_NONE 592138032Speter for no statfs availability, SFS_USTAT for the ustat(2) 592238032Speter syscall, SFS_4ARGS for a four argument statfs(2) call, 592338032Speter and SFS_VFS, SFS_MOUNT, or SFS_STATFS for a two argument 592438032Speter statfs(2) call with the declarations in <sys/vfs.h>, 592538032Speter <sys/mount.h>, or <sys/statfs.h> respectively). 592638032Speter Fix glitch in NetInfo support that could return garbage if 592738032Speter there was no "/locations/sendmail" property. From 592838032Speter David Meyer of the University of Virginia. 592938032Speter Change HASFLOCK from defined/not-defined to a 0/1 definition 593038032Speter to allow Linux to turn it off even though it is a 593138032Speter BSD-like system. 593238032Speter Allow setting of "ident" timeout to zero to turn off the ident 593338032Speter protocol entirely. 593438032Speter Make 7-bit stripping local to a connection (instead of to a 593538032Speter mailer); this allows you to specify that SMTP is a 593638032Speter 7-bit channel, but revert to 8-bit should it advertise 593738032Speter that it supports 8BITMIME. You still have to specify 593838032Speter mailer flag 7 to get this stripping at all. 593938032Speter Improve makesendmail script so it handles more cases automatically. 594038032Speter Tighten up restrictions on taking ownership of :include: files 594138032Speter to avoid problems on systems that allow you to give away 594238032Speter files. 594338032Speter Fix a problem that made it impossible to rebuild the alias 594438032Speter file if it was on a read-only file system. From 594538032Speter Harry Edmon of the University of Washington. 594638032Speter Improve MX randomization function. From John Gardiner Myers 594738032Speter of CMU. 594838032Speter Fix a minor glitch causing a bogus message to be printed (used 594938032Speter %s instead of %d in a printf string for the line number) 595038032Speter when a bad queue file was read. From Harry Edmon. 595138032Speter Allow $s to remain NULL on locally generated mail. I'm not 595238032Speter sure this is necessary, but a lot of people have complained 595338032Speter about it, and there is a legitimate question as to whether 595438032Speter "localhost" is legal as an 822-style domain. 595538032Speter Fix a problem with very short line lengths (mailer L= flag) in 595638032Speter headers. This causes a leading space to be added onto 595738032Speter continuation lines (including in the body!), and also 595838032Speter tries to wrap headers containing addresses (From:, To:, 595938032Speter etc) intelligently at the shorter line lengths. Problem 596038032Speter Reported by Lars-Johan Liman of SUNET Operations Center. 596138032Speter Log the real user name when logging syserrs, since these can have 596238032Speter security implications. Suggested by several people. 596338032Speter Fix address logging of cached connections -- it used to always 596438032Speter log the numeric address as zero. This is a somewhat 596538032Speter bogus implementation in that it does an extra system 596638032Speter call, but it should be an inexpensive one. Fix from 596738032Speter Motonori Nakamura. 596838032Speter Tighten up handling of short syslog buffers even more -- there 596938032Speter were cases where the outgoing relay= name was too long 597038032Speter to share a line with delay= and mailer= logging. 597138032Speter Limit the overhead on split envelopes to one open file descriptor 597238032Speter per envelope -- previously the overhead was three 597338032Speter descriptors. This was in response to a problem reported 597438032Speter by P{r (Pell) Emanuelsson. 597538032Speter Fixes to better handle the case of unexpected connection closes; 597638032Speter this redirects the output to the transcript so the info 597738032Speter is not lost. From Eric Wassenaar. 597838032Speter Fix potential string overrun if you macro evaluate a string that 597938032Speter has a naked $ at the end. Problem noted by James Matheson 598038032Speter <jmrm@eng.cam.ac.uk>. 598138032Speter Make default error number on $#error messages 553 (``Requested 598238032Speter action not taken: mailbox name not allowed'') instead of 598338032Speter 501 (``Syntax error in parameters or arguments'') to 598438032Speter avoid bogus "protocol error" messages. 598538032Speter Strip off any existing trailing dot on names during $[ ... $] 598638032Speter lookup. This prevents it from ending up with two dots 598738032Speter on the end of dot terminated names. From Wesley Craig 598838032Speter of the University of Michigan and Bryan Costales of ICSI. 598938032Speter Clean up file class reading so that the debugging information is 599038032Speter more informative. It hadn't been using setclass, so you 599138032Speter didn't see the class items being added. 599238032Speter Avoid core dump if you are running a version of sendmail where 599338032Speter NIS is compiled in, and you specify an NIS map, but 599438032Speter NIS is not running. Fix from John Oleynick of 599538032Speter Rutgers. 599638032Speter Diagnose bizarre case where res_search returns a failure value, 599738032Speter but sets h_errno to a success value. 599838032Speter Make sure that "too many hops" messages are considered important 599938032Speter enough to send an error to the Postmaster (that is, the 600038032Speter address specified in the P option). This fix should 600138032Speter help problems that cause the df file to be left around 600238032Speter sometimes -- unfortunately, I can't seem to reproduce 600338032Speter the problem myself. 600438032Speter Avoid core dump (null pointer reference) on EXPN command; this 600538032Speter only occurred if your log level was set to 10 or higher 600638032Speter and the target account was an alias or had a .forward file. 600738032Speter Problem noted by Janne Himanka. 600838032Speter Avoid "denial of service" attacks by someone who is flooding your 600938032Speter SMTP port with bad commands by shutting the connection 601038032Speter after 25 bad commands are issued. From Kyle Jones of 601138032Speter UUNET. 601238032Speter Fix core dump on error messages with very long "to" buffers; 601338032Speter fmtmsg overflows the message buffer. Fixed by trimming 601438032Speter the to address to 203 characters. Problem reported by 601538032Speter John Oleynick. 601638032Speter Fix configuration for HASFLOCK -- there were some spots where 601738032Speter a #ifndef was incorrectly #ifdef. Pointed out by 601838032Speter George Baltz of the University of Maryland. 601938032Speter Fix a typo in savemail() that could cause the error message To: 602038032Speter lists to be incorrect in some places. From Motonori 602138032Speter Nakamura. 602238032Speter Fix a glitch that can cause duplicate error messages on split 602338032Speter envelopes where an address on one of the lists has a 602438032Speter name server failure. Fix from Voradesh Yenbut of the 602538032Speter University of Washington. 602638032Speter Fix possible bogus pointer reference on ESMTP parameters that 602738032Speter don't have an ``=value'' part. 602838032Speter CNAME loops caused an error message to be generated, but also 602938032Speter re-queued the message. Changed to just re-queue the 603038032Speter message (it's really hard to just bounce it because 603138032Speter of the weird way the name server works in the presence 603238032Speter of CNAME loops). Problem noted by James M.R.Matheson 603338032Speter of Cambridge University. 603438032Speter Avoid giving ``warning: foo owned process doing -bs'' messages 603538032Speter if they use ``MAIL FROM:<foo>'' where foo is their true 603638032Speter user name. Suggested by Andreas Stolcke of ICSI. 603738032Speter Change the NAMED_BIND compile flag to be a 0/1 flag so you can 603838032Speter override it easily in the Makefile -- that is, you can 603938032Speter turn it off using -DNAMED_BIND=0. 604038032Speter If a gethostbyname(...) of an address with a trailing dot fails, 604138032Speter try it without the trailing dot. This is because if 604238032Speter you have a version of gethostbyname() that falls back 604338032Speter to NIS or the /etc/hosts file it will fail to find 604438032Speter perfectly reasonable names that just don't happen to 604538032Speter be dot terminated in the hosts file. You don't want to 604638032Speter strip the dot first though because we're trying to ensure 604738032Speter that country names that match one of your subdomains get 604838032Speter a chance. 604938032Speter PRALIASES: fix bogus output on non-null-terminated strings. 605038032Speter From Bill Gianopoulos of Raytheon. 605138032Speter CONFIG: Avoid rewriting anything that matches $w to be $j. 605238032Speter This was in code intended to only catch the self-literal 605338032Speter address (that is, [1.2.3.4], where 1.2.3.4 is your 605438032Speter IP address), but the code was broken. However, it will 605538032Speter still do this if $M is defined; this is necessary to 605638032Speter get client configurations to work (sigh). Note that this 605738032Speter means that $M overrides :mailname entries in the user 605838032Speter database! Problem noted by Paul Southworth. 605938032Speter CONFIG: Fix definition of Solaris help file location. From 606038032Speter Steve Cliffe <steve@gorgon.cs.uow.edu.au>. 606138032Speter CONFIG: Fix bug that broke news.group.USENET mappings. 606238032Speter CONFIG: Allow declaration of SMTP_MAILER_MAX, FAX_MAILER_MAX, 606338032Speter and USENET_MAILER_MAX to tweak the maximum message 606438032Speter size for various mailers. 606538032Speter CONFIG: Change definition of USENET_MAILER_ARGS to include argv[0] 606638032Speter instead of assuming that it is "inews" for consistency 606738032Speter with other mailers. From Michael Corrigan of UC San Diego. 606838032Speter CONFIG: When mail is forwarded to a LOCAL_RELAY or a MAIL_HUB, 606938032Speter qualify the address in the SMTP envelope as user@{relay|hub} 607038032Speter instead of user@$j. From Bill Wisner of The Well. 607138032Speter CONFIG: Fix route-addr syntax in nullrelay configuration set. 607238032Speter CONFIG: Don't turn off case mapping of user names in the local 607338032Speter mailer for IRIX. This was different than most every other 607438032Speter system. 607538032Speter CONFIG: Avoid infinite loops on certainly list:; syntaxes in 607638032Speter envelope. Noted by Thierry Besancon 607738032Speter <besancon@excalibur.ens.fr>. 607838032Speter CONFIG: Don't include -z by default on uux line -- most systems 607938032Speter don't want it set by default. Pointed out by Philippe 608038032Speter Michel of Thomson CSF. 608138032Speter CONFIG: Fix some bugs with mailertables -- for example, if your 608238032Speter host name was foo.bar.ray.com and you matched against 608338032Speter ".ray.com", the old implementation bound %1 to "bar" 608438032Speter instead of "foo.bar". Also, allow "." in the mailertable 608538032Speter to match anything -- essentially, take over SMART_HOST. 608638032Speter This also moves matching of explicit local host names 608738032Speter before the mailertable so they don't have to be special 608838032Speter cased in the mailertable data. Reported by Bill 608938032Speter Gianopoulos of Raytheon; the fix for the %1 binding 609038032Speter problem was contributed by Nicholas Comanos of the 609138032Speter University of Sydney. 609238032Speter CONFIG: Don't include "root" in class $=L (users to deliver 609338032Speter locally, even if a hub or relay exists) by default. 609438032Speter This is because of the known bug where definition of 609538032Speter both a LOCAL_RELAY and a MAIL_HUB causes $=L to ignore 609638032Speter both and deliver into the local mailbox. 609738032Speter CONFIG: Move up bitdomain and uudomain handling so that they 609838032Speter are done before .UUCP class matching; uudomain was 609938032Speter reported as ineffective before. This also frees up 610038032Speter diversion 8 for future use. Problem reported by Kimmo 610138032Speter Suominen. 610238032Speter CONFIG: Don't try to convert dotted IP address (e.g., [1.2.3.4]) 610338032Speter into host names. As pointed out by Jonathan Kamens, 610438032Speter these are often used because either the forward or reverse 610538032Speter mapping is broken; this translation makes it broken again. 610638032Speter DOC: Clarify $@ and $: in the Install & Op Guide. From Kimmo 610738032Speter Suominen. 610838032Speter Portability fixes: 610938032Speter Unicos from David L. Kensiski of Sterling Software. 611038032Speter DomainOS from Don Lewis of Silicon Systems. 611138032Speter GNU m4 1.0.3 from Karst Koymans of Utrecht University. 611238032Speter Convex from Kimmo Suominen <kim@tac.nyc.ny.us>. 611338032Speter NetBSD from Adam Glass <glass@sun-lamp.cs.berkeley.edu>. 611438032Speter BSD/386 from Tony Sanders of BSDI. 611538032Speter Apollo from Eric Wassenaar. 611638032Speter DGUX from Doug Anderson. 611738032Speter Sequent DYNIX/ptx 2.0 from Tim Wright of Sequent. 611838032Speter NEW FILES: 611938032Speter src/Makefile.DomainOS 612038032Speter src/Makefile.PTX 612138032Speter src/Makefile.SunOS.5.1 612238032Speter src/Makefile.SunOS.5.2 612338032Speter src/Makefile.SunOS.5.x 612438032Speter src/mailq.1 612538032Speter cf/ostype/domainos.m4 612638032Speter doc/op/Makefile 612738032Speter doc/intro/Makefile 612838032Speter doc/usenix/Makefile 612938032Speter 613064562Sgshapiro8.6.5/8.6.5 1994/01/13 613138032Speter Security fix: /.forward could be owned by anyone (the test 613238032Speter to allow root to own any file was backwards). From 613338032Speter Bob Campbell at U.C. Berkeley. 613438032Speter Security fix: group ids were not completely set when programs 613538032Speter were invoked. This caused programs to have group 613638032Speter permissions they should not have had (usually group 613738032Speter daemon instead of their own group). In particular, 613838032Speter Perl scripts would refuse to run. 613938032Speter Security: check to make sure files that are written are not 614038032Speter symbolic links (at least under some circumstances). 614138032Speter Although this does not respond to a specific known 614238032Speter attack, it's just a good idea. Suggested by 614338032Speter Christian Wettergren. 614438032Speter Security fix: if a user had an NFS mounted home directory on 614538032Speter a system with a restricted shell listed in their 614638032Speter /etc/passwd entry, they could still execute any 614738032Speter program by putting that in their .forward file. 614838032Speter This fix prevents that by insisting that their shell 614938032Speter appear in /etc/shells before allowing a .forward to 615038032Speter execute a program or write a file. You can disable 615138032Speter this by putting "*" in /etc/shells. It also won't 615238032Speter permit world-writable :include: files to reference 615338032Speter programs or files (there's no way to disable this). 615443730Speter These behaviors are only one level deep -- for 615538032Speter example, it is legal for a world-writable :include: 615638032Speter file to reference an alias that writes a file, on 615738032Speter the assumption that the alias file is well controlled. 615838032Speter Security fix: root was not treated suspiciously enough when 615938032Speter looking into subdirectories. This would potentially 616038032Speter allow a cracker to examine files that were publicly 616138032Speter readable but in a non-publicly searchable directory. 616238032Speter Fix a problem that causes an error on QUIT on a cached 616338032Speter connection to create problems on the current job. 616438032Speter These are typically unrelated, so errors occur in 616538032Speter the wrong place. 616638032Speter Reset CurrentLA in sendall() -- this makes sendmail queue 616738032Speter runs more responsive to load average, and fixes a 616838032Speter problem that ignored the load average in locally 616938032Speter generated mail. From Eric Wassenaar. 617038032Speter Fix possible core dump on aliases with null LHS. From 617138032Speter John Orthoefer of BB&N. 617238032Speter Revert to using flock() whenever possible -- there are just 617338032Speter too many bugs in fcntl() locking, particularly over 617438032Speter NFS, that cause sendmail to fail in perverse ways. 617538032Speter Fix a bug that causes the connection cache to get confused 617638032Speter when sending error messages. This resulted in 617738032Speter "unexpected close" messages. It should fix itself 617838032Speter on the following queue run. Problem noted by 617938032Speter Liudvikas Bukys of the University of Rochester. 618038032Speter Include $k in $=k as documented in the Install & Op Guide. 618138032Speter This seems odd, but it was documented.... From 618238032Speter Michael Corrigan of UCSD. 618338032Speter Fix problem that caused :include:s from alias files to be 618438032Speter forced to be owned by root instead of daemon 618538032Speter (actually DefUid). From Tim Irvin. 618638032Speter Diagnose unrecognized I option values -- from Mortin Forssen 618738032Speter of the Chalmers University of Technology. 618838032Speter Make "error" mailer work consistently when there is no error 618938032Speter code associated with it -- previously it returned OK 619038032Speter even though there was a real problem. Now it assumes 619138032Speter EX_UNAVAILABLE. 619238032Speter Fix bug that caused the last header line of messages that had 619338032Speter no body and which were terminated with EOF instead of 619438032Speter "." to be discarded. Problem noted by Liudvikas Bukys. 619538032Speter Fix core dump on SMTP mail to programs that failed -- it tried 619638032Speter to go to a "next MX host" when none existed, causing 619738032Speter a core dump. From der Mouse at McGill University. 619838032Speter Change IDENTPROTO from a defined/not defined to a 0/1 switch; 619938032Speter this makes it easier to turn it off (using 620038032Speter -DIDENTPROTO=0 in the Makefile). From der Mouse. 620138032Speter Fix YP_MASTER_NAME store to use the unupdated result of 620238032Speter gethostname() (instead of myhostname(), which tries 620338032Speter to fully qualify the name) to be consistent with 620438032Speter SunOS. If your hostname is unqualified, this fixes 620538032Speter transfers to slave servers. Bug noted by Keith 620638032Speter McMillan of Ameritech Services, Inc. 620738032Speter Fix Ultrix problem: gethostbyname() can return a very large 620838032Speter (> 500) h_length field, which causes the sockaddr 620938032Speter to be trashed. Use the size of the sockaddr instead. 621038032Speter Fix from Bob Manson of Ohio State. 621138032Speter Don't assume "-a." on host lookups if NAMED_BIND is not 621238032Speter defined -- this confuses gethostbyname on hosts 621338032Speter file lookups, which doesn't understand the trailing 621438032Speter dot convention. 621538032Speter Log SMTP server subprocesses that die with a signal instead 621638032Speter of from a clean exit. 621738032Speter If you don't have option "I" set, don't assume that a DNS 621838032Speter "host unknown" message is authoritative -- it 621938032Speter might still be found in /etc/hosts. 622038032Speter Fix a problem that would cause Deferred: messages to be sent 622138032Speter as the subject of an error message, even though the 622238032Speter actual cause of a message was more severe than that. 622338032Speter Problem noted by Chris Seabrook of OSSI. 622438032Speter Fix race condition in DBM alias file locking. From Kyle 622538032Speter Jones of UUNET. 622638032Speter Limit delivery syslog line length to avoid bugs in some 622738032Speter versions of syslog(3). This adds a new compile time 622838032Speter variable SYSLOG_BUFSIZE. From Jay Plett of Princeton 622938032Speter University, which is in turn derived from IDA. 623038032Speter Fix quotes inside of comments in addresses -- previously 623138032Speter it insisted that they be balanced, but the 822 spec 623238032Speter says that they should be ignored. 623338032Speter Dump open file state to syslog upon receiving SIGUSR1 (for 623438032Speter debugging). This also evaluates ruleset 89, if set 623538032Speter (with the null input), and logs the result. This 623638032Speter should be used sparingly, since the rewrite process 623738032Speter is not reentrant. 623838032Speter Change -qI, -qR, and -qS flags to be case-insensitive as 623938032Speter documented in the Bat Book. 624038032Speter If the mailer returned EX_IOERR or EX_OSERR, sendmail did not 624138032Speter return an error message and did not requeue the message. 624238032Speter Fix based on code from Roland Dirlewanger of 624338032Speter Reseau Regional Aquarel, Bordeaux, France. 624438032Speter Fix a problem that caused a seg fault if you got a 421 error 624538032Speter code during some parts of connection initialization. 624638032Speter I've only seen this when talking to buggy mailers on 624738032Speter the other end, but it shouldn't give a seg fault in 624838032Speter any case. From Amir Plivatsky. 624938032Speter Fix core dump caused by a ruleset call that returns null. 625038032Speter Fix from Bryan Costales of ICSI. 625138032Speter Full-Name: field was being ignored. Fix from Motonori Nakamura 625238032Speter of Kyoto University. 625338032Speter Fix a possible problem with very long input lines in setproctitle. 625438032Speter From P{r Emanuelsson. 625538032Speter Avoid putting "This is a warning message" out on return receipts. 625638032Speter Suggested by Douglas Anderson. 625738032Speter Detect loops caused by recursive ruleset calls. Suggested by 625838032Speter Bryan Costales. 625938032Speter Initialize non-alias maps during alias rebuilds -- they may be 626038032Speter needed for parsing. Problem noted by Douglas Anderson. 626138032Speter Log sender address even if no message was collected in SMTP 626238032Speter (e.g., if all RCPTs failed). Suggested by Motonori 626338032Speter Nakamura. 626438032Speter Don't reflect the owner-list contents into the envelope sender 626538032Speter address if the value contains ", :, /, or | (to avoid 626638032Speter illegal addresses appearing there). 626738032Speter Efficiency hack for toktype macro -- from Craig Partridge of 626838032Speter BB&N. 626938032Speter Clean up DNS error printing so that a host name is always 627038032Speter included. 627138032Speter Remember to set $i during queue runs. Reported by Stephen 627238032Speter Campbell of Dartmouth University. 627338032Speter If the environment variable HOSTALIASES is set, use it during 627438032Speter canonification as the name of a file with per-user host 627538032Speter translations so that headers are properly mapped. Reported 627638032Speter by Anne Bennett of Concordia University. 627738032Speter Avoid printing misleading error message if SMTP mailer (not 627838032Speter using [IPC]) should die on a core dump. 627938032Speter Avoid incorrect diagnosis of "file 1 closed" when it is caused 628038032Speter by the other end closing the connection. From 628138032Speter Dave Morrison of Oracle. 628238032Speter Improve several of the error messages printed by "mailq" 628338032Speter to include a host name or other useful information. 628438032Speter Add NetInfo preliminary support for NeXT systems. From Vince 628538032Speter DeMarco. 628638032Speter Fix a glitch that sometimes caused :include:s that pointed to 628738032Speter NFS filesystems that were down to give an "aliasing/ 628838032Speter forwarding loop broken" message instead of queueing 628938032Speter the message for retry. Noted by William C Fenner of 629038032Speter the NRL Connection Machine Facility. 629138032Speter Fix a problem that could cause a core dump if the input sequence 629238032Speter had (or somehow acquired) a \231 character. 629338032Speter Make sure that route-addrs always have <angle brackets> around 629438032Speter them in non-SMTP envelopes (SMTP envelopes already do 629538032Speter this properly). 629638032Speter Avoid weird headers on unbalanced punctuation of the form: 629738032Speter ``Joe User <user)'' -- this caused reference to the 629838032Speter null macro. Fix from Rick McCarty of IO.COM. 629938032Speter Fix a problem that caused an alias "user: user@local.host" to 630038032Speter not have the QNOTREMOTE bit set; this caused configs 630138032Speter to act as if FEATURE(notsticky) was defined even when 630238032Speter it was not. The effect of the problem was to make it 630338032Speter very hard to to set up satellite sites that had a few 630438032Speter local accounts, with everything else forwarded to a 630538032Speter corporate hub. Reported by Detlef Drewanz of the 630638032Speter University of Rostock and Mark Frost of NCD. 630738032Speter Change queuing to not call rulesets 3, {1 or 2}, 4 on header 630838032Speter addresses. This is more efficient (fewer name server 630938032Speter calls) and fixes certain unusual configurations, such 631038032Speter as those that have ruleset 4 do something that is 631138032Speter non-idempotent unless a mailer-specific ruleset did 631238032Speter something else. Problem reported by Brian J. Coan 631338032Speter of the Institute for Global Communications. 631438032Speter Fix the "obsolete argument" routine in main to better understand 631538032Speter new arguments. For example, if you used ``sendmail 631638032Speter -C config -v -q'' it would choke on the -q because 631738032Speter the -C would stop looking for old-format arguments. 631838032Speter Fix the code that was intended to allow two users to forward their 631938032Speter mail to the same program and have them appear unique. 632038032Speter Portability fixes for: 632138032Speter SCO UNIX from Murray Kucherawy. 632238032Speter SCO Open Server 3.2v4 from Philippe Brand. 632338032Speter System V Release 4 from Rick Ellis and others. 632438032Speter OSF/1 from Steve Campbell. 632538032Speter DG/UX from Ben Mesander of the USGS and Bryan Curnutt 632638032Speter of Stoner Associates. 632738032Speter Motorola SysV88 from Kevin Johnson of Motorola. 632838032Speter Solaris 2.3 from Casper H.S. Dik of the University 632938032Speter of Amsterdam and John Caruso of University 633038032Speter of Maryland. 633138032Speter FreeBSD from Ollivier Robert. 633238032Speter NetBSD from Adam Glass. 633338032Speter TitanOS from Kate Hedstrom of Rutgers University. 633438032Speter Irix from Bryan Curnutt. 633538032Speter Dynix from Jim Davis of the University of Arizona. 633638032Speter RISC/os. 633738032Speter Linux from John Kennedy of California State University 633838032Speter at Chico. 633938032Speter Solaris 2.x from Tony Boner of the U.S. Air Force. 634038032Speter NEXTSTEP 3.x from Vince DeMarco. 634138032Speter HP-UX from various people. NOTA BENE: the location 634238032Speter of the config file has moved to /usr/lib 634338032Speter to match the HP-UX version of sendmail. 634438032Speter CONFIG: Don't do any recipient rewriting on relay mailer; 634538032Speter since this is intended only for internal use, the 634638032Speter usual RFC 821/822/1123 rules can be relaxed. The 634738032Speter main point of this is to avoid munging (ugh) UUCP 634838032Speter addresses when relaying internally. 634938032Speter CONFIG: fix typo in mailer/uucp.m4 that mutilates list:; 635038032Speter syntax addresses delivered via UUCP. Solution 635138032Speter provided by Peter Wemm. 635238032Speter CONFIG: fix thumb-fumble in default UUCP relaying in ruleset 635338032Speter zero; it caused double @ signs in addresses. From 635438032Speter Irving Reid of the University of Toronto. 635538032Speter CONFIG: Portability fixes for SCO Unix 3.2 with TCP/IP 1.2.1 635638032Speter from Markku Toijala of ICL Personal Systems Oy. 635738032Speter CONFIG: Add trailing "." on pseudo-domains for consistency; 635838032Speter this fixes a problem (noted by Al Whaley of Sunnyside) 635938032Speter that made it hard to recognize your own pseudodomain 636038032Speter names. 636138032Speter CONFIG: catch "@host" syntax errors (i.e., null local-parts) 636238032Speter rather than letting them get "local configuration 636338032Speter error"s. Problem noted by John Gardiner Myers. 636438032Speter CONFIG: add uucp-uudom mailer variant, based on code posted 636538032Speter by Spider Boardman <spider@Orb.Nashua.NH.US>; this 636638032Speter has uucp-dom semantics but old UUCP syntax. This 636738032Speter also permits "uucp-old" as an alias for "uucp" and 636838032Speter "uucp-new" as a synonym for "suucp" for consistency. 636938032Speter CONFIG: add POP mailer support (from Kimmo Suominen 637038032Speter <kim@grendel.lut.fi>). 637138032Speter CONFIG: drop CSNET_RELAY support -- CSNET is long gone. 637238032Speter CONFIG: fix bug caused with domain literal addresses (e.g., 637338032Speter ``[128.32.131.12]'') when FEATURE(allmasquerade) 637438032Speter was set; it would get an additional @masquerade.host 637538032Speter added to the address. Problem noted by Peter Wan 637638032Speter of Georgia Tech. 637738032Speter CONFIG: make sure that the local UUCP name is in $=w. From 637838032Speter Jim Murray of Stratus. 637938032Speter CONFIG: changes to UUCP rewriting to simulate IDA-style "V" 638038032Speter mailer flag. Briefly, if you are sending to host 638138032Speter "foo", then it rewrites "foo!...!baz" to "...!baz", 638238032Speter "foo!baz" remains "foo!baz", and anything else has 638338032Speter the local name prepended. 638438032Speter CONFIG: portability fixes for HP-UX. 638538032Speter DOC: several minor problems fixed in the Install & Op Guide. 638638032Speter MAKEMAP: fix core dump problem on lines that are too long or 638738032Speter which lack newline. From Mark Delany. 638838032Speter MAILSTATS: print sums of columns (total messages & kbytes 638938032Speter in and out of the system). From Tom Ferrin of UC 639038032Speter San Francisco Computer Graphics Lab. 639138032Speter SIGNIFICANT USER- OR SYSAD-VISIBLE CHANGES: 639238032Speter On HP-UX, /etc/sendmail.cf has been moved to 639338032Speter /usr/lib/sendmail.cf to match HP sendmail. 639438032Speter Permissions have been tightened up on world-writable 639538032Speter :include: files and accounts that have shells 639638032Speter that are not listed in /etc/shells. This may 639738032Speter cause some .forward files that have worked 639838032Speter before to start failing. 639938032Speter SIGUSR1 dumps some state to the log. 640038032Speter NEW FILES: 640138032Speter src/Makefile.DGUX 640238032Speter src/Makefile.Dynix 640338032Speter src/Makefile.FreeBSD 640438032Speter src/Makefile.Mach386 640538032Speter src/Makefile.NetBSD 640638032Speter src/Makefile.RISCos 640738032Speter src/Makefile.SCO 640838032Speter src/Makefile.SVR4 640938032Speter src/Makefile.Titan 641038032Speter cf/mailer/pop.m4 641138032Speter cf/ostype/bsdi1.0.m4 641238032Speter cf/ostype/dgux.m4 641338032Speter cf/ostype/dynix3.2.m4 641438032Speter cf/ostype/sco3.2.m4 641538032Speter makemap/Makefile.dist 641638032Speter praliases/Makefile.dist 641738032Speter 641864562Sgshapiro8.6.4/8.6.4 1993/10/31 641938032Speter Repair core-dump problem (write to read-only memory segment) 642038032Speter if you fall back to the return-to-Postmaster case in 642138032Speter savemail. Problem reported by Richard Liu. 642238032Speter Immediately diagnose bogus sender addresses in SMTP. This 642338032Speter makes quite certain that crackers can't use this 642438032Speter class of attack. 642538032Speter Reliability Fix: check return value from fclose() and fsync() 642638032Speter in a few critical places. 642738032Speter Minor problem in initsys() that reversed a condition for 642838032Speter redirecting the output channel on queue runs. It's 642938032Speter not clear this code even does anything. From Eric 643038032Speter Wassenaar of the Dutch National Institute for Nuclear 643138032Speter and High-Energy Physics. 643238032Speter Fix some problems that caused queue runs to do "too much work", 643338032Speter such as double-reading the Errors-To: header. From 643438032Speter Eric Wassenaar. 643538032Speter Error messages on writing the temporary file (including the 643638032Speter data file) were getting suppressed in SMTP -- this 643738032Speter fix causes them to be properly reported. From Eric 643838032Speter Wassenaar. 643938032Speter Some changes to support AF_UNIX sockets -- this will only 644038032Speter really become relevant in the next release, but some 644138032Speter people need it for local patches. From Michael 644238032Speter Corrigan of UC San Diego. 644338032Speter Use dynamically allocated memory (instead of static buffers) 644438032Speter for macros defined in initsys() and settime(); since 644538032Speter these can have different values depending on which 644638032Speter envelope they are in. From Eric Wassenaar. 644738032Speter Improve logging to show ctladdr on to= logging; this tells you 644838032Speter what uid/gid processes ran as. 644938032Speter Fix a problem that caused error messages to be discarded if 645038032Speter the sender address was unparseable for some reason; 645138032Speter this was supposed to fall back to the "return to 645238032Speter postmaster" case. 645338032Speter Improve aliaswait backoff algorithm. 645438032Speter Portability patches for Linux (8.6.3 required another header 645538032Speter file) (from Karl London) and SCO UNIX. 645638032Speter CONFIG: patch prog mailer to not strip host name off of envelope 645738032Speter addresses (so that it matches local again). From 645838032Speter Christopher Davis. 645938032Speter CONFIG: change uucp-dom mailer so that "<>" translates to $n; 646038032Speter this prevents uux from seeing lines with null names like 646138032Speter ``From Sat Oct 30 14:55:31 1993''. From Motonori 646238032Speter Nakamura of Kyoto University. 646338032Speter CONFIG: handle <list:;> syntax correctly. This isn't legal, but 646438032Speter it shouldn't fail miserably. From Motonori Nakamura. 646538032Speter 646664562Sgshapiro8.6.2/8.6.2 1993/10/15 646738032Speter Put a "successful delivery" message in the transcript for 646838032Speter addresses that get return-receipts. 646938032Speter Put a prominent "this is only a warning" message in warning 647038032Speter messages -- some people don't read carefully enough 647138032Speter and end up sending the message several times. 647238032Speter Include reason for temporary failure in the "warning" return 647338032Speter message. Currently, it just says "cannot send for 647438032Speter four hours". 647538032Speter Fix the "Original message received" time generated for 647638032Speter returntosender messages. It was previously listed as 647738032Speter the current time. Bug reported by Eric Hagberg of 647838032Speter Cornell University Medical College. 647938032Speter If there is an error when writing the body of a message, 648038032Speter don't send the trailing dot and wait for a response 648138032Speter in sender SMTP, as this could cause the connection to 648238032Speter hang up under some bizarre circumstances. From Eric 648338032Speter Wassenaar. 648438032Speter Fix some server SMTP synchronization problems caused when 648538032Speter connections fail during message collection. From 648638032Speter Eric Wassenaar. 648738032Speter Fix a problem that can cause srvrsmtp to reject mail if the 648838032Speter name server is down -- it accepts the RCPT but rejects 648938032Speter the DATA command. Problem reported by Jim Murray of 649038032Speter Stratus. 649138032Speter Fix a problem that can cause core dumps if the config file 649238032Speter incorrectly resolves to a null hostname. Reported by 649338032Speter Allan Johannesen of WPI. 649438032Speter Non-root use of -C flag, dangerous -f flags, and use of -oQ 649538032Speter by non-root users were not put into 649638032Speter X-Authentication-Warning:s as intended because the 649743730Speter config file hadn't set the PrivacyOptions yet. Fix 649838032Speter from Sven-Ove Westberg of the University of Lulea. 649938032Speter Under very odd circumstances, the alias file rebuild code 650038032Speter could get confused as to whether a database was 650138032Speter open or not. 650238032Speter Check "vendor code" on the end of V lines -- this is 650338032Speter intended to provide a hook for vendor-specific 650438032Speter configuration syntax. (This is a "new feature", 650538032Speter but I've made an exception to my rule in a belief 650638032Speter that this is a highly exceptional case.) 650738032Speter Portability fixes for DG/UX (from Douglas Anderson of NCSC), 650838032Speter SCO Unix (from Murray Kucherawy), A/UX, and OSF/1 650938032Speter (from Jon Forrest of UC Berkeley) 651038032Speter CONFIG: fix ``mailer:host'' form of UUCP relay naming. 651138032Speter 651264562Sgshapiro8.6.1/8.6 1993/10/08 651338032Speter Portability fixes for A/UX and Encore UMAX V. 651438032Speter Fix error message handling -- if you had a name server down 651538032Speter causing an error during parsing, that message was never 651638032Speter propagated to the queue file. 651738032Speter 651864562Sgshapiro8.6/8.6 1993/10/05 651938032Speter Configuration cleanup: make it easier to undo IDENTPROTO in 652038032Speter conf.h (other systems have the same bug). 652138032Speter If HASGETDTABLESIZE and _SC_OPEN_MAX are both defined, assume 652238032Speter getdtablesize() instead of sysconf(); a disturbingly 652338032Speter large number of systems defined _SC_OPEN_MAX in the 652438032Speter header files but don't have the syscall. 652538032Speter Another patch to really truly ignore MX records in getcanonname 652638032Speter if trymx == FALSE. 652738032Speter Fix problem that caused the "250 IAA25499 Message accepted for 652838032Speter delivery" message to be omitted if there was an error 652938032Speter in the header of the message (e.g., a bad Errors-To: 653038032Speter line). Pointed out by Michael Corrigan of UCSD. 653138032Speter Announce name of host we are chatting when we get errors; this 653238032Speter is an IDA-ism suggested by Christophe Wolfhugel. 653338032Speter Portability fixes for Alpha OSF/1 (from Anthony Baxter of the 653438032Speter Australian Artificial Intelligence Institute), SCO Unix 653538032Speter (from Murray Kucherawy of Hookup Communication Corp.), 653638032Speter NeXT (from Vince DeMarco and myself), Linux (from 653738032Speter Karl London <karl@borg.demon.co.uk>), BSDI (from 653838032Speter Christophe Wolfhugel, and SVR4 on Dell (from Kimmo 653938032Speter Suominen), AUX 3.0 on Macintosh, and ANSI C compilers. 654038032Speter Some changes to get around gcc optimizer bugs. From Takahiro 654138032Speter Kanbe. 654238032Speter Fix error recovery in queueup if another tf file of the same 654338032Speter name already exists. Problem stumbled over by Bill 654438032Speter Wisner of The Well. 654538032Speter Output YP_MASTER_NAME and YP_LAST_MODIFIED without null bytes. 654638032Speter Problem noted by Keith McMillan of Ameritech Services. 654738032Speter Deal with group permissions properly when opening .forward and 654838032Speter :include: files. This relaxes the 8.1C restrictions 654938032Speter slightly more. This includes proper setting of groups 655038032Speter when reading :include: files, allowing you to read some 655138032Speter files that you should be able to read but have previously 655238032Speter been denied unless you owned them or they had "other" 655338032Speter read permission. 655438032Speter Make certain that $j is in $=w (after the .cf is read) so that 655538032Speter if the user is forced to override some silly system, 655638032Speter MX suppression will still work. 655738032Speter Fix a couple of efficiency problems where newstr was double- 655838032Speter calling expensive routines. In at least one case, it 655938032Speter wasn't guaranteed that they would always return the 656038032Speter same result. Problem noted by Christophe Wolfhugel. 656138032Speter Fix null pointer dereference in putoutmsg -- only on an error 656238032Speter condition from a non-SMTP mailer. From Motonori 656338032Speter Nakamura. 656438032Speter Macro expand "C" line class definitions before scanning so that 656538032Speter "CX $Z" works. 656638032Speter Fix problem that caused error message to be sent while still 656738032Speter trying to send the original message if the connection 656838032Speter is closed during a DATA command after getting an error 656938032Speter on an RCPT command (pretty obscure). Problem reported 657038032Speter by John Myers of CMU. 657138032Speter Fix reply to NOOP to be 250 instead of 200 -- this is a long 657238032Speter term bug. 657338032Speter Fix a nasty bug causing core dumps when returning the "warning: 657438032Speter cannot deliver for N hours -- will keep trying" message; 657543730Speter it only occurred if you had PostmasterCopy set and 657638032Speter only on some architectures. Although sendmail would 657738032Speter keep trying, it would send error messages on each 657838032Speter queue interval. This is an important fix. 657938032Speter Allow u and g options to take user and group names respectively. 658038032Speter Don't do a chdir into the queue directory in -bt mode to make 658138032Speter ruleset testing a bit easier. 658238032Speter Don't allow users to turn off logging (using -oL) on the command 658338032Speter line -- command line can only raise, not lower, logging 658438032Speter level. 658538032Speter Set $u to the original recipient on the SMTP transaction or on 658638032Speter the command line. This is only done if there is exactly 658738032Speter one recipient. Technically, this does not meet the 658838032Speter specs, because it does not guarantee a domain on the 658938032Speter address. 659038032Speter Fix a problem that dumped error messages on bad addresses if 659138032Speter you used the -t flag. Problem noted by Josh Smith of 659238032Speter Harvey Mudd College. 659338032Speter Given an address such as ``<foo> <bar>'', auto-quote the first 659438032Speter ``<foo>'' part, giving ``"<foo>" <bar>''. This is to 659538032Speter avoid the problem of people who use angle brackets in 659638032Speter their full name information. 659738032Speter Fix a null pointer dereference if you set option "l", have 659838032Speter an Errors-To: header in the message, and have Errors-To: 659938032Speter defined in the config file H lines. From J.R. Oldroyd. 660038032Speter Put YPCOMPAT on #ifdef NIS instead -- it's one less thing to get 660138032Speter wrong when compiling. Suggested by Rick McCarty of TI. 660238032Speter Fix a problem that could pass negative SIZE parameter if the 660338032Speter df file got lost; this would cause servers to always 660438032Speter give a temporary failure, making the problem even worse. 660538032Speter Problem noted by Allan Johannesen of WPI. 660638032Speter Add "ident" timeout (one of the "r" option selectors) for IDENT 660738032Speter protocol timeouts (30s default). Requested by Murray 660838032Speter Kucherawy of HookUp Communication Corp. to handle bogus 660938032Speter PC TCP/IP implementations. 661038032Speter Change $w default definition to be just the first component of 661138032Speter the domain name on config level 5. The $j macro defaults 661238032Speter to the FQDN; $m remains as before. This lets well-behaved 661338032Speter config files use any of the short, long, or subdomain 661438032Speter names. 661538032Speter Add makesendmail script in src to try to automate multi-architecture 661638032Speter builds. I know, this is sub-optimal, but it is still 661738032Speter helpful. 661838032Speter Fix very obscure race condition that can cause a queue run to 661938032Speter get a queue file for an already completed job. This 662038032Speter problem has existed for years. Problem noted by the 662138032Speter long suffering Allan Johannesen of WPI. 662238032Speter Fix a problem that caused the raw sender name to be passed to 662338032Speter udbsender instead of the canonified name -- this caused 662438032Speter it to sometimes miss records that it should have found. 662538032Speter Relax check of name on HELO packet so that a program using -bs 662638032Speter that claims to be itself works properly. 662738032Speter Restore rewriting of $: part of address through 2, R, 4 in 662838032Speter buildaddr -- this requires passing a lot of flags to get 662938032Speter it right. Unlike old versions, this ONLY rewrites 663038032Speter recipient addresses, not sender addresses. 663138032Speter Fix a bug that caused core dumps in config files that cannot 663238032Speter resolve /file/name style addresses. Fix from Jonathan 663338032Speter Kamens of OpenVision Technologies. 663438032Speter Fix problem with fcntl locking that can cause error returns to 663538032Speter be lost if the lock is lost; this required fully 663638032Speter queueing everything, dropping the envelope (so errors 663738032Speter would get returned), and then re-reading the queue from 663838032Speter scratch. 663938032Speter Fix a problem that caused aliases that redefine an otherwise 664038032Speter true address to still send to the original address 664138032Speter if and only if the alias failed in certain bizarre 664238032Speter ways (e.g, if they pointed at a list:; syntax address). 664338032Speter Problem pointed out by Jonathan Kamens. 664438032Speter Remove support for frozen configuration files. They caused 664538032Speter more trouble than it was worth. 664638032Speter Fix problem that can cause error messages to get ignored when 664738032Speter using both -odb and -t flags. Problem noted by Rob 664838032Speter McNicholas at U.C. Berkeley. 664938032Speter Include all "normal" variations on hostname in $=w. For example, 665038032Speter if the host name is vangogh.cs.berkeley.edu, $=w will 665138032Speter contain vangogh, vangogh.cs, and vangogh.cs.berkeley.edu. 665238032Speter Add "restrictqrun" privacy flag -- without this, anyone can run 665338032Speter the queue. 665438032Speter Reset SmtpPhase global on initial connection creation so that 665538032Speter messages don't come out with stale information. 665638032Speter Pass an "ext" argument to lockfile so that error/log messages 665738032Speter will properly reflect the true filename being locked. 665838032Speter Put all [...] address forms into $=w -- this eliminates the need 665938032Speter for MAXIPADDR in conf.h. Suggested by John Gardiner 666038032Speter Myers of CMU. 666138032Speter Fix a bug that can cause qf files to be left around even after 666238032Speter an SMTP RSET command. Problem and fix from Michael 666338032Speter Corrigan. 666443730Speter Don't send a PostmasterCopy to errors when the Precedence: is 666538032Speter negative. Error reports still go to the envelope 666638032Speter sender address. 666738032Speter Add LA_SHORT for load averages. 666838032Speter Lock sendmail.st file when posting statistics. 666938032Speter Add "SendBufSize" and "RcvBufSize" suboptions to "O" option to 667038032Speter set the size of the TCP send and receive buffers; if you 667138032Speter run over a slow slip line you may need to set these down 667238032Speter (although it would be better to fix the SLIP implementation 667338032Speter so that it's not necessary to recompile every program 667438032Speter that does bulk data transfer). 667538032Speter Allow null defaults on $( ... $) lookups. Problem reported by 667638032Speter Amir Plivatsky. 667738032Speter Diagnose crufty S and V config lines. This resulted from an 667838032Speter observation that some people were using the SITE macro 667938032Speter without the SITECONFIG macro first, which was causing 668038032Speter bogus config files that were not caught. 668138032Speter Fix makemap -f flag to turn off case folding (it was turning it 668238032Speter on instead). THIS IS A USER VISIBLE CHANGE!!! 668338032Speter Fix a problem that caused multiple error messages to be sent if 668438032Speter you used "sendmail -t -oem -odb", your system uses fcntl 668538032Speter locking, and one of the recipient addresses is unknown. 668638032Speter Reset uid earlier in include() so that recursive .forwards or 668738032Speter :include:s don't use the wrong uid. 668838032Speter If file descriptor 0, 1, or 2 was closed when sendmail was 668938032Speter called, the code to recover the descriptor was broken. 669038032Speter This sometimes (only sometimes) caused problems with the 669138032Speter alias file. Fix from Motonori Nakamura. 669238032Speter Fix a problem that caused aliaswait to go into infinite recursion 669338032Speter if the @:@ metasymbol wasn't found in the alias file. 669438032Speter Improve error message on newaliases if database files cannot be 669538032Speter opened or if running with no database format defined. 669638032Speter Do a better estimation of the size of error messages when NoReturn 669738032Speter is set. Problem noted by P{r (Pell) Emanuelsson. 669838032Speter Fix a problem causing the "c" option (don't connect to expensive 669938032Speter mailers) to be ignored in SMTP. Problem noted and the 670038032Speter solution suggested by Robert Elz of The University of 670138032Speter Melbourne. 670238032Speter Improve connection caching algorithm by passing "[host]" to 670338032Speter hostsignature, which strips the square brackets and 670438032Speter returns the real name. This allows mailertable entries 670538032Speter to match regular entries. 670638032Speter Re-enable Return-Receipt-To: -- people seem to want this stupid 670738032Speter feature, even if it doesn't work right. 670838032Speter Catch and log attempts to try the "wiz" command in server SMTP. 670938032Speter This also ups the log level from LOG_NOTICE to LOG_CRIT. 671038032Speter Be more generous at assigning $z to the home directory -- do this 671138032Speter for programs that are specified through a .forward file. 671238032Speter Fix from Andrew Chang of Sun Microsystems. 671338032Speter Always save a fatal error message in preference to a non-fatal 671438032Speter error message so that the "subject" line of return 671538032Speter messages is the best possible. 671638032Speter CONFIG: reduce the number of quotes needed to quote configuration 671738032Speter parameters with commas: two quotes should work now, e.g., 671838032Speter define(ALIAS_FILE, ``/etc/aliases,/etc/aliases.local''). 671938032Speter CONFIG: class $=Z is a set of UUCP hosts that use uucp-dom 672038032Speter connections (domain-ized UUCP). 672138032Speter CONFIG: fix bug in default maps (-o must be before database file 672264562Sgshapiro name). Pointed out by Christophe Wolfhugel. 672338032Speter CONFIG: add FEATURE(nodns) to state that we are not relying on 672438032Speter DNS. This would presumably be used in UUCP islands. 672538032Speter CONFIG: add OSTYPE(nextstep) and OSTYPE(linux). 672638032Speter CONFIG: log $u in Received: line. This is in technical violation 672738032Speter of the standards, since it doesn't guarantee a domain 672838032Speter on the address. 672938032Speter CONFIG: don't assume "m" in local mailer flags -- this means that 673038032Speter if you redefine LOCAL_MAILER_FLAGS you will have to include 673138032Speter the "m" flag should you want it. Apparently some Solaris 2.2 673238032Speter installations can't handle multiple local recipients. 673338032Speter Problem noted by Josh Smith. 673438032Speter CONFIG: add confDOMAIN_NAME to set $j (if undefined, $j defaults). 673538032Speter CONFIG: change default version level from 4 to 5. 673638032Speter CONFIG: add FEATURE(nullclient) to create a config file that 673738032Speter forwards all mail to a hub without ever looking at the 673838032Speter addresses in any detail. 673938032Speter CONFIG: properly strip mailer: information off of relays when 674038032Speter used to change .BITNET form into %-hack form. 674138032Speter CONFIG: fix a problem that caused infinite loops if presented 674238032Speter with an address such as "!foo". 674338032Speter CONFIG: check for self literal (e.g., [128.32.131.12]) even if 674438032Speter the reverse "PTR" mapping is broken. There's a better 674538032Speter way to do this, but the change is fairly major and I 674638032Speter want to hold it for another release. Problem noted by 674738032Speter Bret Marquis. 674838032Speter 674964562Sgshapiro8.5/8.5 1993/07/23 675038032Speter Serious bug: if you used a command line recipient that was unknown 675138032Speter sendmail would not send a return message (it was treating 675238032Speter everything as though it had an SMTP-style client that 675338032Speter would do the return itself). Problem noted by Josh Smith. 675438032Speter Change "trymx" option in getcanonname() to ignore all MX data, 675538032Speter even during a T_ANY query. This actually didn't break 675638032Speter anything, because the only time you called getcanonname 675738032Speter with !trymx was if you already knew there were no MX 675838032Speter records, but it is somewhat cleaner. From Motonori 675938032Speter Nakamura. 676038032Speter Don't call getcanonname from getmxrr if you already know there 676138032Speter are no DNS records matching the name. 676238032Speter Fix a problem causing error messages to always include "The 676338032Speter original message was received ... from localhost". 676438032Speter The correct original host information is now included. 676538032Speter Previous change to cf/sh/makeinfo.sh doesn't port to Ultrix (their 676638032Speter version of "test" doesn't have the -x flag). Change it 676738032Speter to use -f instead. From John Myers. 676838032Speter CONFIG: 8.4 mistakenly set the default SMTP-style mailer to 676938032Speter esmtp -- it should be smtp. 677038032Speter CONFIG: send all relayed mail using confRELAY_MAILER (defaults 677138032Speter to "relay" (a variant of "smtp") if MAILER(smtp) is used, 677238032Speter else "suucp" if MAILER(uucp) is used, else "unknown"); 677338032Speter this cleans up the configs somewhat. This fixes a serious 677438032Speter problem that caused route-addrs to get mistaken as relays, 677538032Speter pointed out by John Myers. WARNING: this also causes 677638032Speter the default on SMART_HOST to change from "suucp" to 677738032Speter "relay" if you have MAILER(smtp) specified. 677838032Speter 677964562Sgshapiro8.4/8.4 1993/07/22 678038032Speter Add option `w'. If you receive a message that comes to you because 678138032Speter you are the best (lowest preference) target of an MX, and 678238032Speter you haven't explicitly recognized the source MX host in 678338032Speter your .cf file, this option will cause you to try the target 678438032Speter host directly (as if there were no MX for it at all). If 678538032Speter `w' is not set, this case is a configuration error. 678638032Speter Beware: if `w' is set, senders may get bogus errors like 678738032Speter "message timed out" or "host unknown" for problems that 678838032Speter are really configuration errors. This option is 678938032Speter disrecommended, provided only for compatibility with 679038032Speter UIUC sendmail. 679138032Speter Fix a problem that caused the incoming socket to be left open 679238032Speter when sendmail forks after the DATA command. This caused 679338032Speter calling systems to wait in FIN_WAIT_2 state until the 679438032Speter entire list was processed and the child closed -- a 679538032Speter potentially prodigious amount of time. Problem noted 679638032Speter by Neil Rickert. 679738032Speter Fix problem (created in 6.64) that caused mail sent to multiple 679838032Speter addresses, one of which was a bad address, to completely 679938032Speter suppress the sending of the message. This changes 680038032Speter handling of EF_FATALERRS somewhat, and adds an 680138032Speter EF_GLOBALERRS flag. This also fixes a potential problem 680238032Speter with duplicate error messages if there is a syntax error 680338032Speter in the header of a message that isn't noticed until late 680438032Speter in processing. Original problem pointed out by Josh Smith 680538032Speter of Harvey Mudd College. This release includes quite a bit 680638032Speter of dickering with error handling (see below). 680738032Speter Back out SMTP transaction if MAIL gets nested 501 error. This 680838032Speter will only hurt already-broken software and should help 680938032Speter humans. 681038032Speter Fix a problem that broke aliases when neither NDBM nor NEWDB were 681138032Speter compiled in. It would never read the alias file. 681238032Speter Repair unbalanced `)' and `>' (the "open" versions are already 681338032Speter repaired). 681438032Speter Logging of "done" in dropenvelope() was incorrect: it would 681538032Speter log this even when the queue file still existed. Change 681638032Speter this to only log "done" (at log level 11) when the 681738032Speter queue file is actually removed. From John Myers. 681838032Speter Log "lost connection" in server SMTP at log level 20 if there 681938032Speter is no pending transaction. Some senders just close the 682038032Speter connection rather than sending QUIT. 682138032Speter Fix a bug causing getmxrr to add a dot to the end of unqualified 682238032Speter domains that do not have MX records -- this would cause 682338032Speter the subsequent host name lookup to fail. The problem 682438032Speter only occurred if you had FEATURE(nocanonify) set. 682538032Speter Problem noted by Rick McCarty of Texas Instruments. 682638032Speter Fix invocation of setvbuf when passed a -X flag -- I had 682738032Speter unwittingly used an ANSI C extension, and this caused 682838032Speter core dumps on some machines. 682938032Speter Diagnose self-destructive alias loops on RCPT as well as EXPN. 683038032Speter Previously it just gave an empty send queue, which 683138032Speter then gave either "Need RCPT (recipient)" at the DATA 683238032Speter (confusing, since you had given an RCPT command which 683338032Speter returned 250) or just dropped the email, depending on 683438032Speter whether you were running VERBose mode. Now it usually 683538032Speter diagnoses this case as "aliasing/forwarding loop broken". 683638032Speter Unfortunately, it still doesn't adequately diagnose 683738032Speter some true error conditions. 683838032Speter Add internal concept of "warning messages" using 6xx codes. 683938032Speter These are not reported only to Postmaster. Unbalanced 684038032Speter parens, brackets, and quotes are printed as 653 codes. 684138032Speter They are always mapped to 5xx codes before use in SMTP. 684238032Speter Clean up error messages to tell both the actual address that 684338032Speter failed and the alias they arose from. This makes it 684438032Speter somewhat easier to diagnose problems. Difficulty noted 684538032Speter by Motonori Nakamura. 684638032Speter Fix a problem that inappropriately added a ctladdr to addresses 684738032Speter that shouldn't have had one during a queue run. This 684838032Speter caused error messages to be handled differently during 684938032Speter a queue run than a direct run. 685038032Speter Don't print the qf name and line number if you get errors during 685138032Speter the direct run of the queue from srvrsmtp -- this was 685238032Speter just extra stuff for users to crawl through. 685338032Speter Put command line flags on second line of pid file so you can 685438032Speter auto-restart the daemon with all appropriate arguments. 685538032Speter Use "kill `head -1 /etc/sendmail.pid`" to stop the 685638032Speter daemon, and "eval `tail -1 /etc/sendmail.pid`" to 685738032Speter restart it. 685838032Speter Remove the ``setuid(getuid())'' in main -- this caused the 685938032Speter IDENT daemon to screw up. This required that I change 686038032Speter HASSETEUID to HASSETREUID and complicate the mode 686138032Speter changing somewhat because both Ultrix and SunOS seem 686238032Speter to have a bug causing seteuid() to set the saved uid 686338032Speter as well as the effective. The program test/t_setreuid.c 686438032Speter will test to see if your implementation of setreuid(2) 686538032Speter is appropriately functional. 686638032Speter The FallBackMX (option V) handling failed to properly identify 686738032Speter fallback to yourself -- most of the code was there, 686838032Speter but it wasn't being enabled. Problem noted by Murray 686938032Speter Kucherawy of the University of Waterloo. 687038032Speter Change :include: open timeout from ETIMEDOUT to an internal 687138032Speter code EOPENTIMEOUT; this avoids adding "during SmtpPhase 687238032Speter with CurHostName" in error messages, which can be 687338032Speter confusing. Reported by Jonathan Kamens of OpenVision 687438032Speter Technologies. 687538032Speter Back out setpgrp (setpgid on POSIX systems) call to reset the 687638032Speter process group id. The original fix was to get around 687738032Speter some problems with recalcitrant MUAs, but it breaks 687838032Speter any call from a shell that creates a process group id 687938032Speter different from the process id. I could try to fix 688038032Speter this by diddling the tty owner (using tcsetpgrp or 688138032Speter equivalent) but this is too likely to break other 688238032Speter things. 688338032Speter Portability changes: 688438032Speter Support -M as equivalent to -oM on Ultrix -- apparently 688538032Speter DECnet calls sendmail with -MrDECnet -Ms<HOST> -bs 688638032Speter instead of using standard flags. Oh joy. This 688743730Speter behavior reported by Jon Giltner of University 688838032Speter of Colorado. 688938032Speter SGI IRIX -- this includes several changes that should 689038032Speter help other strict ANSI compilers. 689138032Speter SCO Unix -- from Murray Kucherawy of HookUp Communication 689238032Speter Corporation. 689338032Speter Solaris running the Sun C compiler (which despite the 689438032Speter documentation apparently doesn't define 689538032Speter __STDC__ by default). 689638032Speter ConvexOS from Eric Schnoebelen of Convex. 689738032Speter Sony NEWS workstations and Omron LUNA workstations from 689838032Speter Motonori Nakamura. 689938032Speter CONFIG: add confTRY_NULL_MX_LIST to set option `w'. 690038032Speter CONFIG: delete `C' and `e' from default SMTP mailers flags; 690138032Speter several people have made a good argument that this 690238032Speter creates more problems than it solves (although this 690338032Speter may prove painful in the short run). 690438032Speter CONFIG: generalize all the relays to accept a "mailer:host" 690538032Speter format. 690638032Speter CONFIG: move local processing in ruleset 0 into a new ruleset 690738032Speter 98 (8 on old sendmail). Domain literal [a.b.c.d] 690838032Speter addresses are also passed through this ruleset. 690938032Speter CONFIG: if neither SMART_HOST nor MAILER(smtp) were defined, 691038032Speter internet-style addresses would "fall off the end" of 691138032Speter ruleset zero and be interpreted as local -- however, 691238032Speter the angle brackets confused the recursive call. 691338032Speter These are now diagnosed as "Unrecognized host name". 691438032Speter CONFIG: USENET rules weren't included in S0 because of a mistaken 691538032Speter ifdef(`_MAILER_USENET_') instead of 691638032Speter ifdef(`_MAILER_usenet_'). Problem found by Rein Tollevik 691738032Speter of SINTEF RUNIT, Oslo. 691838032Speter CONFIG: move up LOCAL_RULE_0 processing so that it happens very 691938032Speter early in ruleset 0; this allows .mc authors to bypass 692038032Speter things like the "short circuit" code for local addresses. 692138032Speter Prompted by a comment by Bill Wisner of The Well. 692238032Speter CONFIG: add confSMTP_MAILER to define the mailer used (smtp or 692338032Speter esmtp) to send SMTP mail. This allows you to default 692438032Speter to esmtp but use a mailertable or other override to 692538032Speter deal with broken servers. This logic was pointed out 692638032Speter to me by Bill Wisner. Ditto for confLOCAL_MAILER. 692738032Speter Changes to cf/sh/makeinfo.sh to make it portable to SVR4 692838032Speter environments. Ugly as sin. 692938032Speter 693064562Sgshapiro8.3/8.3 1993/07/13 693138032Speter Fix setuid problems introduced in 8.2 that caused messages 693238032Speter like "Cannot create qfXXXXXX: Invalid argument" 693338032Speter or "Cannot reopen dfXXXXXX: Permission denied". This 693438032Speter involved a new compile flag "HASSETEUID" that takes 693538032Speter the place of the old _POSIX_SAVED_IDS -- it turns out 693638032Speter that the POSIX interface is broken enough to break 693738032Speter some systems badly. This includes some fixes for 693838032Speter HP-UX. Also fixes problems where the real uid is 693938032Speter not reset properly on startup (from Neil Rickert). 694038032Speter Fix a problem that caused timed out messages to not report the 694138032Speter addresses that timed out. Error messages are also more 694238032Speter "user friendly". 694338032Speter Drop required bandwidth on connections from 64 bytes/sec to 694438032Speter 16 bytes/sec. 694538032Speter Further Solaris portability changes -- doesn't require the BSD 694638032Speter compatibility library. This also adds a new 694738032Speter "HASGETDTABLESIZE" compile flag which can be used if 694838032Speter you want to use getdtablesize(2) instead of sysconf(2). 694938032Speter These are loosely based on changes from David Meyer at 695038032Speter University of Oregon. This now seems to work, at least 695138032Speter for quick test cases. 695238032Speter Fix a problem that can cause duplicate error messages to be 695338032Speter sent if you are in SMTP, you send to multiple addresses, 695438032Speter and at least one of those addresses is good and points 695538032Speter to an account that has a .forward file (whew!). 695638032Speter Fix a problem causing messages to be discarded if checkcompat() 695738032Speter returned EX_TEMPFAIL (because it didn't properly mark 695838032Speter the "to" address). Problem noted by John Myers. 695938032Speter Fix dfopen to return NULL if the open failed; I was depending 696038032Speter on fdopen(-1) returning NULL, which isn't the case. This 696138032Speter isn't serious, but does result in weird error diagnoses. 696238032Speter From Michael Corrigan. 696338032Speter CONFIG: add UUCP_MAX_SIZE M4 macro to set the maximum size of 696438032Speter messages sent through UUCP-family mailers. Suggested 696538032Speter by Bill Wisner of The Well. 696638032Speter CONFIG: if both MAILER(uucp) and MAILER(smtp) are specified, 696738032Speter include a "uucp-dom" mailer that uses domain-style 696838032Speter addressing. Suggested by Bill Wisner. 696938032Speter CONFIG: Add LOCAL_SHELL_FLAGS and LOCAL_SHELL_ARGS to match 697038032Speter LOCAL_MAILER_FLAGS and LOCAL_MAILER_ARGS. Suggested by 697138032Speter Christophe Wolfhugel. 697238032Speter CONFIG: Add OSTYPE(aix3). From Christophe Wolfhugel. 697338032Speter 697464562Sgshapiro8.2/8.2 1993/07/11 697538032Speter Don't drop out on config file parse errors in -bt mode. 697638032Speter On older configuration files, assume option "l" (use Errors-To 697738032Speter header) for back compatibility. NOTE: this DOES NOT 697838032Speter imply an endorsement of the Errors-To: header in any way. 697938032Speter Accept -x flag on AIX-3 as well as OSF/1. Why, why, why??? 698038032Speter Don't log errors on EHLO -- it isn't a "real" error for an old 698138032Speter SMTP server to give an error on this command, and 698238032Speter logging it in the transcript can be confusing. Fix 698338032Speter from Bill Wisner. 698438032Speter IRIX compatibility changes provided by Dan Rich 698538032Speter <drich@sandman.lerc.nasa.gov>. 698638032Speter Solaris 2 compatibility changes. Provided by Bob Cunningham 698738032Speter <bob@kahala.soest.hawaii.edu>, John Oleynick 698838032Speter <juo@klinzhai.rutgers.edu> 698938032Speter Debugging: -d17 was overloaded (hostsignature and usersmtp.c); 699038032Speter move usersmtp (smtpinit and smtpmailfrom) to -d18 to 699138032Speter match the other flags in that file. 699238032Speter Flush transcript before fork in mailfile(). From Eric Wassenaar. 699338032Speter Save h_errno in mci struct and improve error message display. 699438032Speter Changes from Eric Wassenaar. 699538032Speter Open /dev/null for the transcript if the create of the xf file 699638032Speter failed; this avoids at least one possible null pointer 699738032Speter reference in very weird cases. From Eric Wassenaar. 699838032Speter Clean up statistics gathering; it was over-reporting because of 699938032Speter forks. From Eric Wassenaar. 700038032Speter Fix problem that causes old Return-Path: line to override new 700138032Speter Return-Path: line (conf.c needs H_FORCE to avoid 700238032Speter re-using old value). From Motonori Nakamura. 700338032Speter Fix broken -m flag in K definition -- even if -m (match only) 700438032Speter was specified, it would still replace the key with the 700538032Speter value. Noted by Rick McCarty of Texas Instruments. 700638032Speter If the name server timed out over several days, no "timed out" 700738032Speter message would ever be sent back. The timeout code 700838032Speter has been moved from markfailure() to dropenvelope() 700938032Speter so that all such failures should be diagnosed. Pointed 701038032Speter out by Christophe Wolfhugel and others. 701138032Speter Relax safefile() constraints: directories in an include or 701238032Speter forward path must be readable by self if the controlling 701338032Speter user owns the entry, readable by all otherwise (e.g., 701438032Speter when reading your .forward file, you have to own and 701538032Speter have X permission in it; everyone needs X permission in 701638032Speter the root and directories leading up to your home); 701738032Speter include files must be readable by anyone, but need not 701838032Speter be owned by you. 701938032Speter If _POSIX_SAVED_IDS is defined, setuid to the owner before 702038032Speter reading a .forward file; this gets around some problems 702138032Speter on NFS mounts if root permission is not exported and 702238032Speter the user's home directory isn't x'able. 702338032Speter Additional NeXT portability enhancements from Axel Zinser. 702438032Speter Additional HP-UX portability enhancements from Brian Bullen. 702538032Speter Add a timeout around SMTP message writes; this assumes you can 702638032Speter get throughput of at least 64 bytes/second. Note that 702738032Speter this does not impact the "datafinal" default, which 702838032Speter is separate; this is just intended to work around 702938032Speter network clogs that will occur before the final dot 703038032Speter is sent. From Eric Wassenaar. 703138032Speter Change map code to set the "include null" flag adaptively -- 703238032Speter it initially tries both, but if it finds anything 703338032Speter matching without a null it never tries again with a 703438032Speter null and vice versa. If -N is specified, it never 703538032Speter tries without the null and creates new maps with a 703638032Speter null byte. If -O is specified, it never tries with 703738032Speter the null (for efficiency). If -N and -O are specified, 703838032Speter you get -NO (get it?) lookup at all, so this would 703938032Speter be a bad idea. If you don't specify either -N or -O, 704038032Speter it adapts. 704138032Speter Fix recognition of "same from address" so that MH submissions 704238032Speter will insert the appropriate full name information; 704338032Speter this used to work and got broken somewhere along the 704438032Speter way. 704538032Speter Some changes to eliminate some unnecessary SYSERRs in the 704638032Speter log. For example, if you lost a connection, don't 704738032Speter bother reporting that fact on the connection you lost. 704838032Speter Add some "extended debugging" flags to try to track down 704938032Speter why we get occasional problems with file descriptor 705038032Speter one being closed when execing a mailer; it seems to 705138032Speter only happen when there has been another error in the 705238032Speter same transaction. This requires XDEBUG, defined 705338032Speter by default in conf.h. 705438032Speter Add "-X filename" command line flag, which logs both sides of 705538032Speter all SMTP transactions. This is intended ONLY for 705638032Speter debugging bad implementations of other mailers; start 705738032Speter it up, send a message from a mailer that is failing, 705838032Speter and then kill it off and examine the indicated log. 705938032Speter This output is not intended to be particularly human 706038032Speter readable. This also adds the HASSETVBUF compile 706138032Speter flag, defaulted on if your compiler defines __STDC__. 706238032Speter CONFIG: change SMART_HOST to override an SMTP mailer. If you 706338032Speter have a local net that should get direct connects, you 706438032Speter will need to use LOCAL_NET_CONFIG to catch these hosts. 706538032Speter See cf/README for an example. 706638032Speter CONFIG: add LOCAL_MAILER_ARGS (default: `mail -d $u') to handle 706738032Speter sites that don't use the -d flag. 706838032Speter CONFIG: hide recipient addresses as well as sender addresses 706938032Speter behind $M if FEATURE(allmasquerade) is specified; this 707038032Speter has been requested by several people, but can break 707138032Speter local aliases. For example, if you mail to "localalias" 707238032Speter this will be rewritten as "localalias@masqueradehost"; 707338032Speter although initial delivery will work, replies will be 707438032Speter broken. Use it sparingly. 707538032Speter CONFIG: add FEATURE(domaintable). This maps unqualified domains 707638032Speter to qualified domains in headers. I believe this is 707738032Speter largely equivalent to the IDA feature of the same name. 707838032Speter CONFIG: use $U as UUCP name instead of $k. This permits you 707938032Speter to override the "system name" as your UUCP name -- 708038032Speter in particular, to use domain-ized UUCP names. From 708138032Speter Bill Wisner of The Well. 708238032Speter CONFIG: create new mailer "esmtp" that always tries EHLO 708338032Speter first. This is currently unused in the config files, 708438032Speter but could be used in a mailertable entry. 708538032Speter 708664562Sgshapiro8.1C/8.1B 1993/06/27 708738032Speter Serious security bug fix: it was possible to read any file on 708838032Speter the system, regardless of ownership and permissions. 708938032Speter If a subroutine returns a fully qualified address, return it 709038032Speter immediately instead of feeding it back into rewriting. 709138032Speter This fixes a problem with mailertable lookups. 709238032Speter CONFIG: fix some M4 frotz (concat => CONCAT) 709338032Speter 709464562Sgshapiro8.1B/8.1A 1993/06/12 709538032Speter Serious bug fix: pattern matching backup algorithm stepped by 709638032Speter two tokens in classes instead of one. Found by Claus 709738032Speter Assmann at University of Kiel, Germany. 709838032Speter 709964562Sgshapiro8.1A/8.1A 1993/06/08 710038032Speter Another mailertable fix.... 710138032Speter 710264562Sgshapiro8.1/8.1 1993/06/07 710338032Speter 4.4BSD freeze. No semantic changes. 7104