RELEASE_NOTES revision 90792
138032Speter SENDMAIL RELEASE NOTES 290792Sgshapiro $Id: RELEASE_NOTES,v 8.1218 2002/01/13 18:24:15 ca 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 990792Sgshapiro8.12.2/8.12.2 2002/01/13 1090792Sgshapiro Don't complain too much if stdin, stdout, or stderr are missing 1190792Sgshapiro at startup, only log an error message. 1290792Sgshapiro Fix potential problem if an unknown operation mode (character 1390792Sgshapiro following -b) has been specified. 1490792Sgshapiro Prevent purgestat from looping even if someone changes the 1590792Sgshapiro permissions or owner of hoststatus files. Problem noted 1690792Sgshapiro by Kari Hurtta of the Finnish Meteorological Institute. 1790792Sgshapiro Properly record dropped connections in persistent host status. 1890792Sgshapiro Problem noted by Ulrich Windl of the Universitat 1990792Sgshapiro Regensburg. 2090792Sgshapiro Remove newlines from recipients read via sendmail -t to prevent 2190792Sgshapiro SMTP protocol errors when sending the RCPT command. 2290792Sgshapiro Problem noted by William D. Colburn of the New Mexico 2390792Sgshapiro Institute of Mining and Technology. 2490792Sgshapiro Only log milter body replacements once instead of for each body 2590792Sgshapiro chunk sent by a filter. Problem noted by Kari Hurtta of 2690792Sgshapiro the Finnish Meteorological Institute. 2790792Sgshapiro In 8.12.0 and 8.12.1, the headers were mistakenly not included in 2890792Sgshapiro the message size calculation. Problem noted by Kari Hurtta 2990792Sgshapiro of the Finnish Meteorological Institute. 3090792Sgshapiro Since 8.12 no longer forks at the SMTP MAIL command, the daemon 3190792Sgshapiro needs to collect children status to avoid zombie processes. 3290792Sgshapiro Problem noted by Chris Adams of HiWAAY Informations Services. 3390792Sgshapiro Shut down "nullserver" and ETRN-only connections after 25 bad 3490792Sgshapiro commands are issued. This makes it consistent with normal 3590792Sgshapiro SMTP connections. 3690792Sgshapiro Avoid duplicate logging of milter rejections. Problem noted by 3790792Sgshapiro William D. Colburn of the New Mexico Institute of Mining 3890792Sgshapiro and Technology. 3990792Sgshapiro Error and delay DSNs were being sent to postmaster instead of the 4090792Sgshapiro message sender if the sender had used a deprecated RFC822 4190792Sgshapiro source route. Problem noted by Kari Hurtta of the Finnish 4290792Sgshapiro Meteorological Institute. 4390792Sgshapiro Fix FallbackMXhost behavior for temporary errors during address 4490792Sgshapiro parsing. Problem noted by Jorg Bielak from Coastal Web 4590792Sgshapiro Online. 4690792Sgshapiro For systems on which stat(2) does not return a value for st_blksize 4790792Sgshapiro that is the "optimal blocksize for I/O" three new compile 4890792Sgshapiro time flags are available: SM_IO_MAX_BUF_FILE, SM_IO_MIN_BUF, 4990792Sgshapiro and SM_IO_MAX_BUF, which define an upper limit for 5090792Sgshapiro regular files, and a lower and upper limit for other file 5190792Sgshapiro types, respectively. 5290792Sgshapiro Fix a potential deadlock if two events are supposed to occur at 5390792Sgshapiro exactly the same time. Problem noted by Valdis Kletnieks 5490792Sgshapiro of Virginia Tech. 5590792Sgshapiro Perform envelope splitting for aliases listed directly in the 5690792Sgshapiro alias file, not just for include/.forward files. 5790792Sgshapiro Problem noted by John Beck of Sun Microsystems. 5890792Sgshapiro Allow selection of queue group for mailq using -qGgroup. 5990792Sgshapiro Based on patch by John Beck of Sun Microsystems. 6090792Sgshapiro Make sure cached LDAP connections used my multiple maps in the same 6190792Sgshapiro process are closed. Patch from Taso N. Devetzis. 6290792Sgshapiro If running as root, allow reading of class files in protected 6390792Sgshapiro directories. Patch from Alexander Talos of the University 6490792Sgshapiro of Vienna. 6590792Sgshapiro Correct a few LDAP related memory leaks. Patch from David Powell 6690792Sgshapiro of Sun Microsystems. 6790792Sgshapiro Allow specification of an empty realm via the authinfo ruleset. 6890792Sgshapiro This is necessary to interoperate as an SMTP AUTH client 6990792Sgshapiro with servers that do not support realms when using 7090792Sgshapiro CRAM-MD5. Problem noted by Bjoern Voigt of TU Berlin. 7190792Sgshapiro Avoid a potential information leak if AUTH PLAIN is used and the 7290792Sgshapiro server gets stuck while processing that command. Problem 7390792Sgshapiro noted by Chris Adams from HiWAAY Informations Services. 7490792Sgshapiro In addition to printing errors when parsing recipients during 7590792Sgshapiro command line invocations log them to make it simpler 7690792Sgshapiro to understand possible DSNs to postmaster. 7790792Sgshapiro Do not use FallbackMXhost on mailers which have the F=0 flag set. 7890792Sgshapiro Allow local mailers (F=l) to specify a host for TCP connections 7990792Sgshapiro instead of forcing localhost. 8090792Sgshapiro Obey ${DESTDIR} for installation of the client mail queue and 8190792Sgshapiro submit.cf. Patch from Peter 'Luna' Runestig. 8290792Sgshapiro Re-enable support for -M option which was broken in 8.12.1. Problem 8390792Sgshapiro noted by Neil Rickert of Northern Illinois University. 8490792Sgshapiro If a remote server violates the SMTP standard by unexpectedly 8590792Sgshapiro dropping the connection during an SMTP transaction, stop 8690792Sgshapiro sending commands. This prevents bogus "Bad file number" 8790792Sgshapiro recipient status. Problem noted by Allan E Johannesen of 8890792Sgshapiro Worcester Polytechnic Institute. 8990792Sgshapiro Do not use a size estimate of 100 for postmaster bounces, it's 9090792Sgshapiro almost always too small; do not guess the size at all. 9190792Sgshapiro New VENDOR_DEC for Compaq/DEC. Requested by James Seagraves of 9290792Sgshapiro Compaq Computer Corp. 9390792Sgshapiro Fix DaemonPortOptions IPv6 address parsing such that ::1 works 9490792Sgshapiro properly. Problem noted by Valdis Kletnieks of Virginia 9590792Sgshapiro Tech. 9690792Sgshapiro Portability: 9790792Sgshapiro Fix IPv6 network interface probing on HP-UX 11.X. Based on 9890792Sgshapiro patch provided by HP. 9990792Sgshapiro Mac OS X (aka Darwin) has a broken setreuid() call, but a 10090792Sgshapiro working seteuid() call. From Daniel J. Luke. 10190792Sgshapiro Use proper type for a 32-bit integer on SINIX. From Ganu 10290792Sgshapiro Sachin of Siemens. 10390792Sgshapiro Set SM_IO_MIN_BUF (4K) and SM_IO_MAX_BUF (8K) for HP-UX. 10490792Sgshapiro Reduce optimization from +O3 to +O2 on HP-UX 11. This 10590792Sgshapiro fixes a problem that caused additional bogus 10690792Sgshapiro characters to be written to the qf file. Problem 10790792Sgshapiro noted by Tapani Tarvainen. 10890792Sgshapiro Set LDA_USE_LOCKF by default for UnixWare. Problem noted 10990792Sgshapiro by Boyd Lynn Gerber. 11090792Sgshapiro Add support for HP MPE/iX. See sendmail/README for port 11190792Sgshapiro information. From Mark Bixby of Hewlett-Packard. 11290792Sgshapiro New portability defines HASNICE, HASRRESVPORT, USE_ENVIRON, 11390792Sgshapiro USE_DOUBLE_FORK, and NEEDLINK. See sendmail/README 11490792Sgshapiro for more information. From Mark Bixby of 11590792Sgshapiro Hewlett-Packard. 11690792Sgshapiro If an OS doesn't have a method of finding free disk space 11790792Sgshapiro (SFS_NONE), lie and say there is plenty of space. 11890792Sgshapiro From Mark Bixby of Hewlett-Packard. 11990792Sgshapiro Add support for AIX 5.1. From Valdis Kletnieks of 12090792Sgshapiro Virginia Tech. 12190792Sgshapiro Fix man page location for NeXTSTEP. From Hisanori Gogota 12290792Sgshapiro of the NTT/InterCommunication Center. 12390792Sgshapiro Do not assume that strerror() always returns a string. 12490792Sgshapiro Problem noted by John Beck of Sun Microsystems. 12590792Sgshapiro CONFIG: Add OSTYPE(freebsd5) for FreeBSD 5.X, which has removed 12690792Sgshapiro UUCP from the base operating system. From Mark Murray of 12790792Sgshapiro FreeBSD Services, Ltd. 12890792Sgshapiro CONFIG: Add OSTYPE(mpeix) and a generic .mc file for HP MPE/iX 12990792Sgshapiro systems. From Mark Bixby of Hewlett-Packard. 13090792Sgshapiro CONFIG: Add support for selecting a queue group for all mailers. 13190792Sgshapiro Based on proposal by Stephen L. Ulmer of the University of 13290792Sgshapiro Florida. 13390792Sgshapiro CONFIG: Fix error reporting for compat_check.m4. Problem noted by 13490792Sgshapiro Altin Waldmann. 13590792Sgshapiro CONFIG: Do not override user selections for confRUN_AS_USER and 13690792Sgshapiro confTRUSTED_USER in FEATURE(msp). From Mark Bixby of 13790792Sgshapiro Hewlett-Packard. 13890792Sgshapiro LIBMILTER: Fix bug that prevented the removal of a socket after 13990792Sgshapiro libmilter terminated. Problem reported by Andrey V. Pevnev 14090792Sgshapiro of MSFU. 14190792Sgshapiro LIBMILTER: Fix configuration error that required libsm for linking. 14290792Sgshapiro Problem noted by Kari Hurtta of the Finnish Meteorological 14390792Sgshapiro Institute. 14490792Sgshapiro LIBMILTER: Portability fix for OpenUNIX. Patch from Larry Rosenman. 14590792Sgshapiro LIBMILTER: Fix a theoretical memory leak and a possible attempt 14690792Sgshapiro to free memory twice. 14790792Sgshapiro LIBSM: Fix a potential segmentation violation in the I/O library. 14890792Sgshapiro Problem found and analyzed by John Beck and Tim Haley 14990792Sgshapiro of Sun Microsystems. 15090792Sgshapiro LIBSM: Do not clear the LDAP configuration information when 15190792Sgshapiro terminating the mailbox database connection in the LDAP 15290792Sgshapiro example code. Problem noted by Nikos Voutsinas of the 15390792Sgshapiro University of Athens. 15490792Sgshapiro New Files: 15590792Sgshapiro cf/cf/generic-mpeix.cf 15690792Sgshapiro cf/cf/generic-mpeix.mc 15790792Sgshapiro cf/ostype/freebsd5.m4 15890792Sgshapiro cf/ostype/mpeix.m4 15990792Sgshapiro devtools/OS/AIX.5.1 16090792Sgshapiro devtools/OS/MPE-iX 16190792Sgshapiro include/sm/os/sm_os_mpeix.h 16290792Sgshapiro libsm/mpeix.c 16390792Sgshapiro 16490792Sgshapiro8.12.1/8.12.1 2001/10/01 16590792Sgshapiro SECURITY: Check whether dropping group privileges actually succeeded 16690792Sgshapiro to avoid possible compromises of the mail system by 16790792Sgshapiro supplying bogus data. Add configuration options for 16890792Sgshapiro different set*gid() calls to reset saved gid. Problem 16990792Sgshapiro found by Michal Zalewski. 17090792Sgshapiro PRIVACY: Prevent information leakage when sendmail has extra 17190792Sgshapiro privileges by disabling debugging (command line -d flag) 17290792Sgshapiro during queue runs and disabling ETRN when sendmail -bs is 17390792Sgshapiro used. Suggested by Michal Zalewski. 17490792Sgshapiro Avoid memory corruption problems resulting from bogus .cf files. 17590792Sgshapiro Problem found by Michal Zalewski. 17690792Sgshapiro Set the ${server_addr} macro to name of mailer when doing LMTP 17790792Sgshapiro delivery. LMTP systems may offer SMTP Authentication or 17890792Sgshapiro STARTTLS causing sendmail to use this macro in rulesets. 17990792Sgshapiro If debugging is turned on (-d0.10) print not just the default 18090792Sgshapiro values for configuration file and pid file but also the 18190792Sgshapiro selected values. Problem noted by Brad Chapman. 18290792Sgshapiro Continue dealing with broken nameservers by ignoring SERVFAIL 18390792Sgshapiro errors returned on T_AAAA (IPv6) lookups at delivery time 18490792Sgshapiro if ResolverOptions=WorkAroundBrokenAAAA is set. Previously 18590792Sgshapiro this only applied to hostname canonification. Problem 18690792Sgshapiro noted by Bill Fenner of AT&T Research. 18790792Sgshapiro Ignore comments in NIS host records when trying to find the 18890792Sgshapiro canonical name for a host. 18990792Sgshapiro When sendmail has extra privileges, limit mail submission command 19090792Sgshapiro line flags (i.e., -G, -h, -F, etc.) to mail submission 19190792Sgshapiro operating modes (i.e., -bm, -bs, -bv, etc.). Idea based on 19290792Sgshapiro suggestion from Michal Zalewski. 19390792Sgshapiro Portability: 19490792Sgshapiro AIX: Use `oslevel` if available to determine OS version. 19590792Sgshapiro `uname` does not given complete information. 19690792Sgshapiro Problem noted by Keith Neufeld of the Cessna 19790792Sgshapiro Aircraft Company. 19890792Sgshapiro OpenUNIX: Use lockf() for LDA delivery (affects mail.local). 19990792Sgshapiro Problem noticed by Boyd Lynn Gerber of ZENEX. 20090792Sgshapiro Avoid compiler warnings by not using pointers to pass 20190792Sgshapiro integers. Problem noted by Todd C. Miller of 20290792Sgshapiro Courtesan Consulting. 20390792Sgshapiro CONFIG: Add restrictqrun to PrivacyOptions for the MSP to minimize 20490792Sgshapiro problems with potential misconfigurations. 20590792Sgshapiro CONFIG: Fix comment showing default value of MaxHopCount. Problem 20690792Sgshapiro noted by Greg Robinson of the Defence Science and 20790792Sgshapiro Technology Organisation of Australia. 20890792Sgshapiro CONFIG: dnsbl: If an argument specifies an error message in case 20990792Sgshapiro of temporary lookup failures for DNS based blacklists 21090792Sgshapiro then use it. 21190792Sgshapiro LIBMILTER: Install mfdef.h, required by mfapi.h. Problem noted by 21290792Sgshapiro Richard A. Nelson of Debian. 21390792Sgshapiro LIBMILTER: Add __P definition for OS that lack it. Problem noted 21490792Sgshapiro by Chris Adams from HiWAAY Informations Services. 21590792Sgshapiro LIBSMDB: Fix a lock race condition that affects makemap, praliases, 21690792Sgshapiro and vacation. 21790792Sgshapiro MAKEMAP: Avoid going beyond the end of an input line if it does 21890792Sgshapiro not contain a value for a key. Based on patch from 21990792Sgshapiro Mark Bixby from Hewlett-Packard. 22090792Sgshapiro New Files: 22190792Sgshapiro test/Build 22290792Sgshapiro test/Makefile 22390792Sgshapiro test/Makefile.m4 22490792Sgshapiro test/README 22590792Sgshapiro test/t_dropgid.c 22690792Sgshapiro test/t_setgid.c 22790792Sgshapiro Deleted Files: 22890792Sgshapiro include/sm/stdio.h 22990792Sgshapiro include/sm/sysstat.h 23090792Sgshapiro 23190792Sgshapiro8.12.0/8.12.0 2001/09/08 23290792Sgshapiro *NOTICE*: The default installation of sendmail does not use 23390792Sgshapiro set-user-ID root anymore. You need to create a new user and 23490792Sgshapiro a new group before installing sendmail (both called smmsp by 23590792Sgshapiro default). The installation process tries to install 23690792Sgshapiro /etc/mail/submit.cf and creates /var/spool/clientmqueue by 23790792Sgshapiro default. Please see sendmail/SECURITY for details. 23890792Sgshapiro SECURITY: Check for group and world writable forward and :include: 23990792Sgshapiro files. These checks can be turned off if absolutely 24090792Sgshapiro necessary using the DontBlameSendmail option and the new 24190792Sgshapiro flags: 24290792Sgshapiro GroupWritableForwardFile 24390792Sgshapiro WorldWritableForwardFile 24490792Sgshapiro GroupWritableIncludeFile 24590792Sgshapiro WorldWritableIncludeFile 24690792Sgshapiro Problem noted by Slawek Zak of Politechnika Warszawska, 24790792Sgshapiro SECURITY: Drop privileges when using address test mode. Suggested 24890792Sgshapiro by Michal Zalewski of the "Internet for Schools" project 24990792Sgshapiro (IdS). 25090792Sgshapiro Fixed problem of a global variable being used for a timeout jump 25190792Sgshapiro point where the variable could become overused for more than 25290792Sgshapiro one timeout concurrently. This erroneous behavior resulted in 25390792Sgshapiro a corrupted stack causing a core dump. The timeout is now 25490792Sgshapiro handled via libsm. Problem noted by Michael Shapiro, 25590792Sgshapiro John Beck, and Carl Smith of Sun Microsystems. 25690792Sgshapiro If sendmail is set-group-ID then that group ID is used for permission 25790792Sgshapiro checks (group ID of RunAsUser). This allows use of a 25890792Sgshapiro set-group-ID sendmail binary for initial message submission 25990792Sgshapiro and no set-user-ID root sendmail is needed. For details 26090792Sgshapiro see sendmail/SECURITY. 26190792Sgshapiro Log a warning if a non-trusted user changes the syslog label. 26290792Sgshapiro Based on notice from Bryan Costales of SL3D, Inc. 26390792Sgshapiro If sendmail is called for initial delivery, try to use submit.cf 26490792Sgshapiro with a fallback of sendmail.cf as configuration file. See 26590792Sgshapiro sendmail/SECURITY. 26690792Sgshapiro New configuration file option UseMSP to allow group writable queue 26790792Sgshapiro files if the group is the same as that of a set-group-ID 26890792Sgshapiro sendmail binary. See sendmail/SECURITY. 26990792Sgshapiro The .cf file is chosen based on the operation mode. For -bm (default), 27090792Sgshapiro -bs, and -t it is submit.cf if it exists for all others it 27190792Sgshapiro is sendmail.cf (to be backward compatible). This selection 27290792Sgshapiro can be changed by the new option -Ac or -Am (alternative .cf 27390792Sgshapiro file: client or mta). See sendmail/SECURITY. 27490792Sgshapiro The SMTP server no longer forks on each MAIL command. The ONEX 27590792Sgshapiro command has been removed. 27690792Sgshapiro Implement SMTP PIPELINING per RFC 2920. It can be turned off 27790792Sgshapiro at compile time or per host (ruleset). 27890792Sgshapiro New option MailboxDatabase specifies the type of mailbox database 27990792Sgshapiro used to look up local mail recipients; the default value 28090792Sgshapiro is "pw", which means to use getpwnam(). New mailbox database 28190792Sgshapiro types can be added by adding custom code to libsm/mbdb.c. 28290792Sgshapiro Queue file names are now 15 characters long, rather than 14 characters 28390792Sgshapiro long, to accomodate envelope splitting. File systems with 28490792Sgshapiro a 14 character file name length limit are no longer 28590792Sgshapiro supported. 28690792Sgshapiro Recipient list used for delivery now gets internally ordered by 28790792Sgshapiro hostsignature (character string version of MX RR). This orders 28890792Sgshapiro recipients for the same MX RR's together meaning smaller 28990792Sgshapiro portions of the list need to be scanned (instead of the whole 29090792Sgshapiro list) each delivery() pass to determine piggybacking. The 29190792Sgshapiro significance of the change is better the larger the recipient 29290792Sgshapiro list. Hostsignature is now created during recipient list 29390792Sgshapiro creation rather than just before delivery. 29490792Sgshapiro Enhancements for more opportunistic piggybacking. Previous 29590792Sgshapiro piggybacking (called coincidental) extended to coattail 29690792Sgshapiro piggybacking. Rather than complete MX RR matching 29790792Sgshapiro (coincidental) piggybacking is done if just the lowest value 29890792Sgshapiro preference matches (coattail). 29990792Sgshapiro If sendmail receives a temporary error on a RCPT TO: command, it will 30090792Sgshapiro try other MX hosts if available. 30190792Sgshapiro DefaultAuthInfo can contain a list of mechanisms to be used for 30290792Sgshapiro outgoing (client-side) SMTP Authentication. 30390792Sgshapiro New modifier 'A' for DaemonPortOptions/ClientPortOptions to disable 30490792Sgshapiro AUTH (overrides 'a' modifier in DaemonPortOptions). Based 30590792Sgshapiro on patch from Lyndon Nerenberg of Messaging Direct. 30690792Sgshapiro Enable AUTH mechanism EXTERNAL if STARTTLS is used. 30790792Sgshapiro A new ruleset authinfo can be used to return client side 30890792Sgshapiro authentication information for AUTH instead of DefaultAuthInfo. 30990792Sgshapiro Therefore the DefaultAuthInfo option is deprecated and will be 31090792Sgshapiro removed in future versions. 31190792Sgshapiro Accept any SMTP continuation code 3xy for AUTH even though RFC 2554 31290792Sgshapiro requires 334. Mercury 1.48 is a known offender. 31390792Sgshapiro Add new option AuthMaxBits to limit the overall encryption strength 31490792Sgshapiro for the security layer in SMTP AUTH (SASL). See 31590792Sgshapiro doc/op/op.me for details. 31690792Sgshapiro Introduce new STARTTLS related macros {cn_issuer}, {cn_subject}, 31790792Sgshapiro {cert_md5} which hold the CN (common name) of the CA that 31890792Sgshapiro signed the presented certificate, the CN and the MD5 hash 31990792Sgshapiro of the presented certificate, respectively. 32090792Sgshapiro New ruleset try_tls to decide whether to try (as client) STARTTLS. 32190792Sgshapiro New ruleset srv_features to enable/disable certain features in the 32290792Sgshapiro server per connection. See doc/op/op.me for details. 32390792Sgshapiro New ruleset tls_rcpt to decide whether to send e-mail to a particular 32490792Sgshapiro recipient; useful to decide whether a conection is secure 32590792Sgshapiro enough on a per recipient basis. 32690792Sgshapiro New option TLSSrvOptions to modify some aspects of the server 32790792Sgshapiro for STARTTLS. 32890792Sgshapiro If no certificate has been requested, the macro {verify} has the 32990792Sgshapiro value "NOT". 33090792Sgshapiro New M=S modifier for ClientPortOptions/DaemonPortOptions to turn off 33190792Sgshapiro using/offering STARTTLS when delivering/receiving e-mail. 33290792Sgshapiro Macro expand filenames/directories for certs and keys in the .cf file. 33390792Sgshapiro Proposed by Neil Rickert of Northern Illinois University. 33490792Sgshapiro Generate an ephemeral RSA key for a STARTTLS connection only if 33590792Sgshapiro really required. This change results in a noticable 33690792Sgshapiro performance gains on most machines. Moreover, if shared 33790792Sgshapiro memory is in use, reuse the key several times. 33890792Sgshapiro Add queue groups which can be used to group queue directories with 33990792Sgshapiro the same behavior together. See doc/op/op.me for details. 34090792Sgshapiro If the new option FastSplit (defaults to one) has a value greater 34190792Sgshapiro than zero, it suppresses the MX lookups on addresses when they 34290792Sgshapiro are initially sorted which may result in faster envelope 34390792Sgshapiro splitting. If the mail is submitted directly from the 34490792Sgshapiro command line, then the value also limits the number of 34590792Sgshapiro processes to deliver the envelopes; if more envelopes are 34690792Sgshapiro created they are only queued up and must be taken care of 34790792Sgshapiro by a queue run. 34890792Sgshapiro The check for 'enough disk space' now pays attention to which file 34990792Sgshapiro system each queue directory resides in. 35090792Sgshapiro All queue runners can be cleanly terminated via SIGTERM to parent. 35190792Sgshapiro New option QueueFileMode for the default permissions of queue files. 35290792Sgshapiro Add parallel queue runner code. Allows multiple queue runners per work 35390792Sgshapiro group (one or more queues in a multi-queue environment 35490792Sgshapiro collected together) to process the same work list at the 35590792Sgshapiro same time. 35690792Sgshapiro Option MaxQueueChildren added to limit the number of concurrently 35790792Sgshapiro active queue runner processes. 35890792Sgshapiro New option MaxRunnersPerQueue to specify the maximum number of queue 35990792Sgshapiro runners per queue group. 36090792Sgshapiro Queue member selection by substring pattern matching now allows 36190792Sgshapiro the pattern to be negated. For -qI, -qR and -qS it is 36290792Sgshapiro permissible for -q!I, -q!R and -q!S to mean remove members 36390792Sgshapiro of the queue that match during processing. 36490792Sgshapiro New -qp[time] option is similar to -qtime, except that instead of 36590792Sgshapiro periodically forking a child to process the queue, a single 36690792Sgshapiro child is forked for each queue that sleeps between queue 36790792Sgshapiro runs. A SIGHUP signal can be sent to restart this 36890792Sgshapiro persistent queue runner. 36990792Sgshapiro The SIGHUP signal now restarts a timed queue run process (i.e., a 37090792Sgshapiro sendmail process which only runs the queue at an interval: 37190792Sgshapiro sendmail -q15m). 37290792Sgshapiro New option NiceQueueRun to set the priority of queue runners. 37390792Sgshapiro Proposed by Thom O'Connor. 37490792Sgshapiro sendmail will run the queue(s) in the background when invoked with -q 37590792Sgshapiro unless the new -qf option or -v is used. 37690792Sgshapiro QueueSortOrder=Random sorts the queue randomly, which is useful if 37790792Sgshapiro several queue runners are started by hand to avoid contention. 37890792Sgshapiro QueueSortOrder=Modification sorts the queue by the modification time 37990792Sgshapiro of the qf file (older entries first). 38090792Sgshapiro Support Deliver By SMTP Service Extension (RFC 2852) which allows 38190792Sgshapiro a client to specify an amount of time within which an e-mail 38290792Sgshapiro should be delivered. New option DeliverByMin added to set the 38390792Sgshapiro minimum amount of time or disable the extension. 38490792Sgshapiro Non-printable characters (ASCII: 0-31, 127) in mailbox addresses are 38590792Sgshapiro not allowed unless escaped or quoted. 38690792Sgshapiro Add support for a generic DNS map. Based on a patch contributed 38790792Sgshapiro by Leif Johansson of Stockholm University, which was based on 38890792Sgshapiro work by Assar Westerlund of Swedish Institute of Computer 38990792Sgshapiro Science, Kista, and Johan Danielsson of Royal Institute of 39090792Sgshapiro Technology, Stockholm, Sweden. 39190792Sgshapiro MX records will be looked up for FallBackMXhost. To use the old 39290792Sgshapiro behavior (no MX lookups), put the name in square brackets. 39390792Sgshapiro Proposed by Thom O'Connor. 39490792Sgshapiro Use shared memory to store free space of filesystems that are used 39590792Sgshapiro for queues, if shared memory is available and if a key is set 39690792Sgshapiro via SharedMemoryKey. This minimizes the number of system 39790792Sgshapiro calls to check the available space. See doc/op/op.me for 39890792Sgshapiro details. 39990792Sgshapiro If shared memory is compiled in the option -bP can be used to print 40090792Sgshapiro the number of entries in the queue(s). 40190792Sgshapiro Enable generic mail filter API (milter). See libmilter/README 40290792Sgshapiro and the usual documentation for details. 40390792Sgshapiro Remove AutoRebuildAliases option, deprecated since 8.10. 40490792Sgshapiro Remove '-U' (initial user submission) command line option as 40590792Sgshapiro announced in 8.10. 40690792Sgshapiro Remove support for non-standard SMTP command XUSR. Use an MSA instead. 40790792Sgshapiro New macro {addr_type} which contains whether the current address is 40890792Sgshapiro an envelope sender or recipient address. Suggested by 40990792Sgshapiro Neil Rickert of Northern Illinois University. 41090792Sgshapiro Two new options for host maps: -d (retransmission timeout), 41190792Sgshapiro -r (number of retries). 41290792Sgshapiro New option for LDAP maps: the -V<sep> allows you to specify a 41390792Sgshapiro separator such that a lookup can return both an attribute 41490792Sgshapiro and value separated by the given separator. 41590792Sgshapiro Add new operators '%', '|', '&' (modulo, binary or, binary and) 41690792Sgshapiro to map class arith. 41790792Sgshapiro If DoubleBounceAddress expands to an empty string, ``double bounces'' 41890792Sgshapiro (errors that occur when sending an error message) are dropped. 41990792Sgshapiro New DontBlameSendmail options GroupReadableSASLDBFile and 42090792Sgshapiro GroupWritableSASLDBFile to relax requirements for sasldb files. 42190792Sgshapiro New DontBlameSendmail options GroupReadableKeyFile to relax 42290792Sgshapiro requirements for files containing secret keys. This is 42390792Sgshapiro necessary for the MSP if client authentification is used. 42490792Sgshapiro Properly handle quoted filenames for class files (to allow for 42590792Sgshapiro filenames with spaces). 42690792Sgshapiro Honor the resolver option RES_NOALIASES when canonifying hostnames. 42790792Sgshapiro Add macros to avoid the reuse of {if_addr} etc: 42890792Sgshapiro {if_name_out} hostname of interface of outgoing connection. 42990792Sgshapiro {if_addr_out} address of interface of outgoing connection. 43090792Sgshapiro {if_family_out} family of interface of outgoing connection. 43190792Sgshapiro The latter two are only set if the interface does not belong 43290792Sgshapiro to the loopback net. 43390792Sgshapiro Add macro {nrcpts} which holds the number of (validated) recipients. 43490792Sgshapiro DialDelay option applies only to mailers with flag 'Z'. Patch from 43590792Sgshapiro Juergen Georgi of RUS University of Stuttgart. 43690792Sgshapiro New Timeout.lhlo,auth,starttls options to limit the time waiting for 43790792Sgshapiro an answer to the LMTP LHLO, SMTP AUTH or STARTTLS command. 43890792Sgshapiro New Timeout.aconnect option to limit the overall waiting time for 43990792Sgshapiro all connections for a single delivery attempt to succeed. 44090792Sgshapiro Limit the rate recipients in the SMTP envelope are accepted once 44190792Sgshapiro a threshold number of recipients has been rejected (option 44290792Sgshapiro BadRcptThrottle). From Gregory A Lundberg of the WU-FTPD 44390792Sgshapiro Development Group. 44490792Sgshapiro New option DelayLA to delay connections if the load averages 44590792Sgshapiro exceeds the specified value. The default of 0 does not 44690792Sgshapiro change the previous behavior. A value greater than 0 44790792Sgshapiro will cause sendmail to sleep for one second on most 44890792Sgshapiro SMTP commands and before accepting connections if that 44990792Sgshapiro load average is exceeded. 45090792Sgshapiro Use a dynamic (instead of fixed-size) buffer for the list of 45190792Sgshapiro recipients that are sent during a connection to a mailer. 45290792Sgshapiro This also introduces a new mailer field 'r' which defines 45390792Sgshapiro the maximum number of recipients (defaults to 100). 45490792Sgshapiro Based on patch by Motonori Nakamura of Kyoto University. 45590792Sgshapiro Add new F=1 mailer flag to disable sending of null characters ('\0'). 45690792Sgshapiro Add new F=2 mailer flag to disable use of ESMTP, using SMTP instead. 45790792Sgshapiro The deprecated [TCP] builtin mailer pathname (P=) is gone. Use [IPC] 45890792Sgshapiro instead. 45990792Sgshapiro IPC is no longer available as first mailer argument (A=) for [IPC] 46090792Sgshapiro builtin mailer pathnames. Use TCP instead. 46190792Sgshapiro PH map code updated to use the new libphclient API instead of the 46290792Sgshapiro old libqiapi library. Contributed by Mark Roth of the 46390792Sgshapiro University of Illinois at Urbana-Champaign. 46490792Sgshapiro New option DirectSubmissionModifiers to define {daemon_flags} 46590792Sgshapiro for direct (command line) submissions. 46690792Sgshapiro New M=O modifier for DaemonPortOptions to ignore the socket in 46790792Sgshapiro case of failures. Based on patch by Jun-ichiro itojun 46890792Sgshapiro Hagino of the KAME Project. 46990792Sgshapiro Add Disposition-Notification-To: (RFC 2298) to the list of headers 47090792Sgshapiro whose content is rewritten similar to Reply-To:. 47190792Sgshapiro Proposed by Andrzej Filip. 47290792Sgshapiro Use STARTTLS/AUTH=server/client for logging incoming/outgoing 47390792Sgshapiro STARTTLS/AUTH connections; log incoming connections at level 47490792Sgshapiro 9 or higher. Use AUTH/STARTTLS instead of SASL/TLS for SMTP 47590792Sgshapiro AUTH/STARTTLS related logfile entries. 47690792Sgshapiro Convert unprintable characters (and backslash) into octal or C format 47790792Sgshapiro before logging. 47890792Sgshapiro Log recipients if no message is transferred but QUIT/RSET is given 47990792Sgshapiro (at LogLevel 9/10 or higher). 48090792Sgshapiro Log discarded recipients at LogLevel 10 or higher. 48190792Sgshapiro Do not log "did not issue MAIL/EXPN/VRFY/ETRN" for connections 48290792Sgshapiro in which most commands are rejected due to check_relay or 48390792Sgshapiro TCP Wrappers if the host tries one of those commands anyway. 48490792Sgshapiro Change logging format for cloned envelopes to be similar to that for 48590792Sgshapiro DSNs ("old id: new id: clone"). Suggested by Ulrich Windl 48690792Sgshapiro of the Universitat Regensburg. 48790792Sgshapiro Added libsm, a C library of general purpose abstractions including 48890792Sgshapiro assertions, tracing and debugging with named debug categories, 48990792Sgshapiro exception handling, malloc debugging, resource pools, 49090792Sgshapiro portability abstractions, and an extensible buffered I/O 49190792Sgshapiro package. It will at some point replace libsmutil. 49290792Sgshapiro See libsm/index.html for details. 49390792Sgshapiro Fixed most memory leaks in sendmail which were previously taken 49490792Sgshapiro care of by fork() and exit(). 49590792Sgshapiro Use new sm_io*() functions in place of stdio calls. Allows for 49690792Sgshapiro more consistent portablity amongst different platforms 49790792Sgshapiro new and old (from new libsm). 49890792Sgshapiro Common I/O pkg means just one buffering method needed instead of two 49990792Sgshapiro ('bf_portable' and 'bf_torek' now just 'bf'). 50090792Sgshapiro Sfio no longer needed as SASL/TLS code uses sm_io*() API's. 50190792Sgshapiro New possible value 'interactive' for SuperSafe which can be used 50290792Sgshapiro together with DeliveryMode=interactive is to avoid some disk 50390792Sgshapiro synchronizations calls. 50490792Sgshapiro Add per-recipient status information to mailq -v output. 50590792Sgshapiro T_ANY queries are no longer used by sendmail. 50690792Sgshapiro When compiling with "gcc -O -Wall" specify "-DSM_OMIT_BOGUS_WARNINGS" 50790792Sgshapiro too (see include/sm/cdefs.h for more info). 50890792Sgshapiro sendmail -d now has general support for named debug categories. 50990792Sgshapiro See libsm/debug.html and section 3.4 of doc/op/op.me 51090792Sgshapiro for details. 51190792Sgshapiro Eliminate the "postmaster warning" DSNs on address parsing errors 51290792Sgshapiro such as unbalanced angle brackets or parentheses. The DSNs 51390792Sgshapiro generated by this condition were illegal (not RFC conform). 51490792Sgshapiro Problem noted by Ulrich Windl of the Universitaet Regensburg. 51590792Sgshapiro Do not issue a DSN if the ruleset localaddr resolves to the $#error 51690792Sgshapiro mailer and the recipient has hence been rejected during the 51790792Sgshapiro SMTP dialogue. Problem reported by Larry Greenfield of CMU. 51890792Sgshapiro Deal with a case of multiple deliveries on misconfigured systems 51990792Sgshapiro that do not have postmaster defined. If an email was sent 52090792Sgshapiro from an address to which a DSN cannot be returned and 52190792Sgshapiro in which at least one recipient address is non-deliverable, 52290792Sgshapiro then that email had been delivered in each queue run. 52390792Sgshapiro Problem reported by Matteo HCE Valsasna of Universita 52490792Sgshapiro degli Studi dell'Insubria. 52590792Sgshapiro The compilation options SMTP, DAEMON, and QUEUE have been removed, 52690792Sgshapiro i.e., the corresponding code is always compiled in now. 52790792Sgshapiro Log the command line in daemon/queue-run mode at LogLevel 10 and 52890792Sgshapiro higher. Suggested by Robert Harker of Harker Systems. 52990792Sgshapiro New ResolverOptions setting: WorkAroundBrokenAAAA. When 53090792Sgshapiro attempting to canonify a hostname, some broken nameservers 53190792Sgshapiro will return SERVFAIL (a temporary failure) on T_AAAA (IPv6) 53290792Sgshapiro lookups. If you want to excuse this behavior, use this new 53390792Sgshapiro flag. Suggested by Chris Foote of SE Network Access and 53490792Sgshapiro Mark Roth of the University of Illinois at 53590792Sgshapiro Urbana-Champaign. 53690792Sgshapiro Free the memory allocated by getipnodeby{addr,name}(). Problem 53790792Sgshapiro noted by Joy Latten of IBM. 53890792Sgshapiro ConnectionRateThrottle limits the number of connections per second 53990792Sgshapiro to each daemon individually, not the overall number of 54090792Sgshapiro connections. 54190792Sgshapiro Specifying only "ldap:" as an AliasFile specification will force 54290792Sgshapiro sendmail to use a default alias schema as outlined in the 54390792Sgshapiro ``USING LDAP FOR ALIASES, MAPS, and CLASSES'' section of 54490792Sgshapiro cf/README. 54590792Sgshapiro Add a new syntax for the 'F' (file class) sendmail.cf command. If 54690792Sgshapiro the first character after the class name is not a '/' or a 54790792Sgshapiro '|' and it contains an '@' (e.g., F{X}key@class:spec), the 54890792Sgshapiro rest of the line will be parsed as a map lookup. This 54990792Sgshapiro allows classes to be filled via a map lookup. See op.me 55090792Sgshapiro for more syntax information. Specifically, this can be 55190792Sgshapiro used for commands such as VIRTUSER_DOMAIN_FILE() to read 55290792Sgshapiro the list of domains via LDAP (see the ``USING LDAP FOR 55390792Sgshapiro ALIASES, MAPS, and CLASSES'' section of cf/README for an 55490792Sgshapiro example). 55590792Sgshapiro The new macro ${sendmailMTACluster} determines the LDAP cluster for 55690792Sgshapiro the default schema used in the above two items. 55790792Sgshapiro Unless DontBlameSendmail=RunProgramInUnsafeDirPath is set, log a 55890792Sgshapiro warning if a program being run from a mailer or file class 55990792Sgshapiro (e.g., F|/path/to/prog) is in an unsafe directory path. 56090792Sgshapiro Unless DontBlameSendmail=RunWritableProgram is set, log a warning 56190792Sgshapiro if a program being run from a mailer or file class 56290792Sgshapiro (e.g., F|/path/to/prog) is group or world writable. 56390792Sgshapiro Loopback interfaces (e.g., "lo0") are now probed for class {w} 56490792Sgshapiro hostnames. Setting DontProbeInterfaces to "loopback" 56590792Sgshapiro (without quotes) will disable this and return to the 56690792Sgshapiro pre-8.12 behavior of only probing non-loopback interfaces. 56790792Sgshapiro Suggested by Bryan Stansell of GNAC. 56890792Sgshapiro In accordance with RFC 2821 section 4.1.4, accept multiple 56990792Sgshapiro HELO/EHLO commands. 57090792Sgshapiro Multiple ClientPortOptions settings are now allowed, one for each 57190792Sgshapiro possible protocol family which may be used for outgoing 57290792Sgshapiro connections. Restrictions placed on one family only affect 57390792Sgshapiro outgoing connections on that particular family. Because of 57490792Sgshapiro this change, the ${client_flags} macro is not set until the 57590792Sgshapiro connection is established. Based on patch from Motonori 57690792Sgshapiro Nakamura of Kyoto University. 57790792Sgshapiro PrivacyOptions=restrictexpand instructs sendmail to drop privileges 57890792Sgshapiro when the -bv option is given by users who are neither root 57990792Sgshapiro nor the TrustedUser so users can not read private aliases, 58090792Sgshapiro forwards, or :include: files. It also will override the -v 58190792Sgshapiro (verbose) command line option. 58290792Sgshapiro If the M=b modifier is set in DaemonPortOptions and the interface 58390792Sgshapiro address can't be used for the outgoing connection, fall 58490792Sgshapiro back to the settings in ClientPortOptions (if set). 58590792Sgshapiro Problem noted by John Beck of Sun Microsystems. 58690792Sgshapiro New named config file rule check_data for DATA command (input: 58790792Sgshapiro number of recipients). Based on patch from Mark Roth of 58890792Sgshapiro the University of Illinois at Urbana-Champaign. 58990792Sgshapiro Add support for ETRN queue selection per RFC 1985. The queue group 59090792Sgshapiro can be specified using the '#' option character. For 59190792Sgshapiro example, 'ETRN #queuegroup'. 59290792Sgshapiro If an LDAP server times out or becomes unavailable, close the 59390792Sgshapiro current connection and reopen to get to one of the fallback 59490792Sgshapiro servers. Patch from Paul Hilchey of the University of 59590792Sgshapiro British Columbia. 59690792Sgshapiro Make default error number on $#error messages 550 instead of 501 59790792Sgshapiro because 501 is not allowed on all commands. 59890792Sgshapiro The .cf file option UnsafeGroupWrites is deprecated, it should be 59990792Sgshapiro replaced with the settings GroupWritableForwardFileSafe 60090792Sgshapiro and GroupWritableIncludeFileSafe in DontBlameSendmail 60190792Sgshapiro if required. 60290792Sgshapiro The deprecated ldapx map class has been removed. Use the ldap map 60390792Sgshapiro class instead. 60490792Sgshapiro Any IPv6 addresses used in configuration should be prefixed by the 60590792Sgshapiro "IPv6:" tag to identify the address properly. For example, 60690792Sgshapiro if you want to add the IPv6 address [2002:c0a8:51d2::23f4] to 60790792Sgshapiro class {w}, you would need to add [IPv6:2002:c0a8:51d2::23f4]. 60890792Sgshapiro Change the $&{opMode} macro if the operation mode changes while the 60990792Sgshapiro MTA is running. For example, during a queue run. 61090792Sgshapiro Add "use_inet6" as a new ResolverOptions flag to control the 61190792Sgshapiro RES_USE_INET6 resolver option. Based on patch from Rick 61290792Sgshapiro Nelson of IBM. 61390792Sgshapiro The maximum number of commands before the MTA slows down when too 61490792Sgshapiro many "light weight" commands have been received are now 61590792Sgshapiro configurable during compile time. The current values and 61690792Sgshapiro their defaults are: 61790792Sgshapiro MAXBADCOMMANDS 25 unknown commands 61890792Sgshapiro MAXNOOPCOMMANDS 20 NOOP, VERB, ONEX, XUSR 61990792Sgshapiro MAXHELOCOMMANDS 3 HELO, EHLO 62090792Sgshapiro MAXVRFYCOMMANDS 6 VRFY, EXPN 62190792Sgshapiro MAXETRNCOMMANDS 8 ETRN 62290792Sgshapiro Setting a value to 0 disables the check. Patch from Bryan 62390792Sgshapiro Costales of SL3D, Inc. 62490792Sgshapiro The header syntax H?${MyMacro}?X-My-Header: now not only checks if 62590792Sgshapiro ${MyMacro} is defined but also that it is not empty. 62690792Sgshapiro Properly quote usernames with special characters if they are used 62790792Sgshapiro in headers. Problem noted by Kari Hurtta of the Finnish 62890792Sgshapiro Meteorological Institute. 62990792Sgshapiro Be sure to include the proper Final-Recipient: DSN header in bounce 63090792Sgshapiro messages for messages for mailing list expanded addresses 63190792Sgshapiro which are not delivered on the initial attempt. 63290792Sgshapiro Do not treat errors as sticky when doing delivery via LMTP after 63390792Sgshapiro the final dot has been sent to avoid affecting future 63490792Sgshapiro deliveries. Problem reported by Larry Greenfield of CMU. 63590792Sgshapiro New compile time flag REQUIRES_DIR_FSYNC which turns on support for 63690792Sgshapiro file systems that require to call fsync() for a directory 63790792Sgshapiro if the meta-data in it has been changed. This should be 63890792Sgshapiro set at least for ReiserFS; it is enabled by default for Linux. 63990792Sgshapiro See sendmail/README for further information. 64090792Sgshapiro Avoid file locking deadlock when updating the statistics file if 64190792Sgshapiro sendmail is signaled to terminate. Problem noted by 64290792Sgshapiro Christophe Wolfhugel of France Telecom. 64390792Sgshapiro Set the $c macro (hop count) as it is being set instead of when the 64490792Sgshapiro envelope is initialized. Problem noted by Kari Hurtta of 64590792Sgshapiro the Finnish Meteorological Institute. 64690792Sgshapiro Properly count recipients for DeliveryMode defer and queue. Fix 64790792Sgshapiro from Peter A. Friend of EarthLink. 64890792Sgshapiro Treat invalid hesiod lookups as permanent errors instead of 64990792Sgshapiro temporary errors. Problem noted by Russell McOrmond of 65090792Sgshapiro flora.ca. 65190792Sgshapiro Portability: 65290792Sgshapiro Remove support for AIX 2, which supports only 14 character 65390792Sgshapiro filenames and is outdated anyway. Suggested by 65490792Sgshapiro Valdis Kletnieks of Virginia Tech. 65590792Sgshapiro Change several settings for Irix 6: remove confSBINDIR, 65690792Sgshapiro i.e., use default /usr/sbin, change owner/group 65790792Sgshapiro of man pages and user-executable to root/sys, set 65890792Sgshapiro optimization limit to 0 (unlimited). Based on patch 65990792Sgshapiro from Ayamura Kikuchi, M.D, and proposal from Kari 66090792Sgshapiro Hurtta of the Finnish Meteorological Institute. 66190792Sgshapiro Do not assume LDAP support is installed by default under 66290792Sgshapiro Solaris 8 and later. 66390792Sgshapiro Add support for OpenUNIX. 66490792Sgshapiro CONFIG: Increment version number of config file to 10. 66590792Sgshapiro CONFIG: Add an install target and a README file in cf/cf. 66690792Sgshapiro CONFIG: Don't accept addresses of the form a@b@, a@b@c, a@[b]c, etc. 66790792Sgshapiro CONFIG: Reject empty recipient addresses (in check_rcpt). 66890792Sgshapiro CONFIG: The access map uses an option of -T<TMPF> to deal with 66990792Sgshapiro temporary lookup failures. 67090792Sgshapiro CONFIG: New value for access map: SKIP, which causes the default 67190792Sgshapiro action to be taken by aborting the search for domain names 67290792Sgshapiro or IP nets. 67390792Sgshapiro CONFIG: check_rcpt can deal with TEMPFAIL for either recipient or 67490792Sgshapiro relay address as long as the other part allows the email 67590792Sgshapiro to get through. 67690792Sgshapiro CONFIG: Entries for virtusertable can make use of a third parameter 67790792Sgshapiro "%3" which contains "+detail" of a wildcard match, i.e., an 67890792Sgshapiro entry like user+*@domain. This allows handling of details by 67990792Sgshapiro using %1%3 as the RHS. Additionally, a "+" wildcard has been 68090792Sgshapiro introduced to match only non-empty details of addresses. 68190792Sgshapiro CONFIG: Numbers for rulesets used by MAILERs have been removed 68290792Sgshapiro and hence there is no required order within the MAILER 68390792Sgshapiro section anymore except for MAILER(`uucp') which must come 68490792Sgshapiro after MAILER(`smtp') if uucp-dom and uucp-uudom are used. 68590792Sgshapiro CONFIG: Hosts listed in the generics domain class {G} 68690792Sgshapiro (GENERICS_DOMAIN() and GENERICS_DOMAIN_FILE()) are treated 68790792Sgshapiro as canonical. Suggested by Per Hedeland of Ericsson. 68890792Sgshapiro CONFIG: If FEATURE(`delay_checks') is used, make sure that a lookup 68990792Sgshapiro in the access map which returns OK or RELAY actually 69090792Sgshapiro terminates check_* ruleset checking. 69190792Sgshapiro CONFIG: New tag TLS_Rcpt: for access map to be used by ruleset 69290792Sgshapiro tls_rcpt, see cf/README for details. 69390792Sgshapiro CONFIG: Change format of Received: header line which reveals whether 69490792Sgshapiro STARTTLS has been used to "(version=${tls_version} 69590792Sgshapiro cipher=${cipher} bits=${cipher_bits} verify=${verify})". 69690792Sgshapiro CONFIG: Use "Spam:" as tag for lookups for FEATURE(`delay_checks') 69790792Sgshapiro options friends/haters instead of "To:" and enable 69890792Sgshapiro specification of whole domains instead of just users. 69990792Sgshapiro Notice: this change is not backward compatible. 70090792Sgshapiro Suggested by Chris Adams from HiWAAY Informations Services. 70190792Sgshapiro CONFIG: Allow for local extensions for most new rulesets, see 70290792Sgshapiro cf/README for details. 70390792Sgshapiro CONFIG: New FEATURE(`lookupdotdomain') to lookup also .domain in 70490792Sgshapiro the access map. Proposed by Randall Winchester of the 70590792Sgshapiro University of Maryland. 70690792Sgshapiro CONFIG: New FEATURE(`local_no_masquerade') to avoid masquerading for 70790792Sgshapiro the local mailer. Proposed by Ingo Brueckl of Wupper Online. 70890792Sgshapiro CONFIG: confRELAY_MSG/confREJECT_MSG can override the default 70990792Sgshapiro messages for an unauthorized relaying attempt/for access 71090792Sgshapiro map entries with RHS REJECT, respectively. 71190792Sgshapiro CONFIG: FEATURE(`always_add_domain') takes an optional argument 71290792Sgshapiro to specify another domain to be added instead of the local one. 71390792Sgshapiro Suggested by Richard H. Gumpertz of Computer Problem 71490792Sgshapiro Solving. 71590792Sgshapiro CONFIG: confAUTH_OPTIONS allows setting of Cyrus-SASL specific 71690792Sgshapiro options, see doc/op/op.me for details. 71790792Sgshapiro CONFIG: confAUTH_MAX_BITS sets the maximum encryption strength for 71890792Sgshapiro the security layer in SMTP AUTH (SASL). 71990792Sgshapiro CONFIG: If Local_localaddr resolves to $#ok, localaddr is terminated 72090792Sgshapiro immediately. 72190792Sgshapiro CONFIG: FEATURE(`enhdnsbl') is an enhanced version of dnsbl which 72290792Sgshapiro allows checking of the return values of the DNS lookups. 72390792Sgshapiro See cf/README for details. 72490792Sgshapiro CONFIG: FEATURE(`dnsbl') allows now to specify the behavior for 72590792Sgshapiro temporary lookup failures. 72690792Sgshapiro CONFIG: New option confDELIVER_BY_MIN to specify minimum time for 72790792Sgshapiro Deliver By (RFC 2852) or to turn off the extension. 72890792Sgshapiro CONFIG: New option confSHARED_MEMORY_KEY to set the key for shared 72990792Sgshapiro memory use. 73090792Sgshapiro CONFIG: New FEATURE(`compat_check') to look up a key consisting 73190792Sgshapiro of the sender and the recipient address delimited by the 73290792Sgshapiro string "<@>", e.g., sender@sdomain<@>recipient@rdomain, 73390792Sgshapiro in the access map. Based on code contributed by Mathias 73490792Sgshapiro Koerber of Singapore Telecommunications Ltd. 73590792Sgshapiro CONFIG: Add EXPOSED_USER_FILE() command to allow an exposed user 73690792Sgshapiro file. Suggested by John Beck of Sun Microsystems. 73790792Sgshapiro CONFIG: Don't use MAILER-DAEMON for error messages delivered 73890792Sgshapiro via LMTP. Problem reported by Larry Greenfield of CMU. 73990792Sgshapiro CONFIG: New FEATURE(`preserve_luser_host') to preserve the name of 74090792Sgshapiro the recipient host if LUSER_RELAY is used. 74190792Sgshapiro CONFIG: New FEATURE(`preserve_local_plus_detail') to preserve the 74290792Sgshapiro +detail portion of the address when passing address to 74390792Sgshapiro local delivery agent. Disables alias and .forward +detail 74490792Sgshapiro stripping. Only use if LDA supports this. 74590792Sgshapiro CONFIG: Removed deprecated FEATURE(`rbl'). 74690792Sgshapiro CONFIG: Add LDAPROUTE_EQUIVALENT() and LDAPROUTE_EQUIVALENT_FILE() 74790792Sgshapiro which allow you to specify 'equivalent' hosts for LDAP 74890792Sgshapiro Routing lookups. Equivalent hostnames are replaced by the 74990792Sgshapiro masquerade domain name for lookups. See cf/README for 75090792Sgshapiro additional details. 75190792Sgshapiro CONFIG: Add a fourth argument to FEATURE(`ldap_routing') which 75290792Sgshapiro instructs the rulesets on what to do if the address being 75390792Sgshapiro looked up has +detail information. See cf/README for more 75490792Sgshapiro information. 75590792Sgshapiro CONFIG: When chosing a new destination via LDAP Routing, also look 75690792Sgshapiro up the new routing address/host in the mailertable. Based 75790792Sgshapiro on patch from Don Badrak of the United States Census Bureau. 75890792Sgshapiro CONFIG: Do not reject the SMTP Mail from: command if LDAP Routing 75990792Sgshapiro is in use and the bounce option is enabled. Only reject 76090792Sgshapiro recipients as user unknown. 76190792Sgshapiro CONFIG: Provide LDAP support for the remaining database map 76290792Sgshapiro features. See the ``USING LDAP FOR ALIASES AND MAPS'' 76390792Sgshapiro section of cf/README for more information. 76490792Sgshapiro CONFIG: Add confLDAP_CLUSTER which defines the ${sendmailMTACluster} 76590792Sgshapiro macro used for LDAP searches as described above in ``USING 76690792Sgshapiro LDAP FOR ALIASES, MAPS, AND CLASSES''. 76790792Sgshapiro CONFIG: confCLIENT_OPTIONS has been replaced by CLIENT_OPTIONS(), 76890792Sgshapiro which takes the options as argument and can be used 76990792Sgshapiro multiple times; see cf/README for details. 77090792Sgshapiro CONFIG: Add configuration macros for new options: 77190792Sgshapiro confBAD_RCPT_THROTTLE BadRcptThrottle 77290792Sgshapiro confDIRECT_SUBMISSION_MODIFIERS DirectSubmissionModifiers 77390792Sgshapiro confMAILBOX_DATABASE MailboxDatabase 77490792Sgshapiro confMAX_QUEUE_CHILDREN MaxQueueChildren 77590792Sgshapiro confMAX_RUNNERS_PER_QUEUE MaxRunnersPerQueue 77690792Sgshapiro confNICE_QUEUE_RUN NiceQueueRun 77790792Sgshapiro confQUEUE_FILE_MODE QueueFileMode 77890792Sgshapiro confFAST_SPLIT FastSplit 77990792Sgshapiro confTLS_SRV_OPTIONS TLSSrvOptions 78090792Sgshapiro See above (and related documentation) for further information. 78190792Sgshapiro CONFIG: Add configuration variables for new timeout options: 78290792Sgshapiro confTO_ACONNECT Timeout.aconnect 78390792Sgshapiro confTO_AUTH Timeout.auth 78490792Sgshapiro confTO_LHLO Timeout.lhlo 78590792Sgshapiro confTO_STARTTLS Timeout.starttls 78690792Sgshapiro CONFIG: Add configuration macros for mail filter API: 78790792Sgshapiro confINPUT_MAIL_FILTERS InputMailFilters 78890792Sgshapiro confMILTER_LOG_LEVEL Milter.LogLevel 78990792Sgshapiro confMILTER_MACROS_CONNECT Milter.macros.connect 79090792Sgshapiro confMILTER_MACROS_HELO Milter.macros.helo 79190792Sgshapiro confMILTER_MACROS_ENVFROM Milter.macros.envfrom 79290792Sgshapiro confMILTER_MACROS_ENVRCPT Milter.macros.envrcpt 79390792Sgshapiro Mail filters can be defined via INPUT_MAIL_FILTER() and 79490792Sgshapiro MAIL_FILTER(). See libmilter/README, cf/README, and 79590792Sgshapiro doc/op/op.me for details. 79690792Sgshapiro CONFIG: Add support for accepting temporarily unresolvable domains. 79790792Sgshapiro See cf/README for details. Based on patch by Motonori 79890792Sgshapiro Nakamura of Kyoto University. 79990792Sgshapiro CONFIG: confDEQUOTE_OPTS can be used to specify options for the 80090792Sgshapiro dequote map. 80190792Sgshapiro CONFIG: New macro QUEUE_GROUP() to define queue groups. 80290792Sgshapiro CONFIG: New FEATURE(`queuegroup') to select a queue group based 80390792Sgshapiro on the full e-mail address or the domain of the recipient. 80490792Sgshapiro CONFIG: Any IPv6 addresses used in configuration should be prefixed 80590792Sgshapiro by the "IPv6:" tag to identify the address properly. For 80690792Sgshapiro example, if you want to use the IPv6 address 80790792Sgshapiro 2002:c0a8:51d2::23f4 in the access database, you would need 80890792Sgshapiro to use IPv6:2002:c0a8:51d2::23f4 on the left hand side. 80990792Sgshapiro This affects the access database as well as the 81090792Sgshapiro relay-domains and local-host-names files. 81190792Sgshapiro CONFIG: OSTYPE(aux) has been renamed to OSTYPE(a-ux). 81290792Sgshapiro CONFIG: Avoid expansion of m4 keywords in SMART_HOST. 81390792Sgshapiro CONFIG: Add MASQUERADE_EXCEPTION_FILE() for reading masquerading 81490792Sgshapiro exceptions from a file. Suggested by Trey Breckenridge of 81590792Sgshapiro Mississippi State University. 81690792Sgshapiro CONFIG: Add LOCAL_USER_FILE() for reading local users 81790792Sgshapiro (LOCAL_USER() -- $={L}) entries from a file. 81890792Sgshapiro CONTRIB: dnsblaccess.m4 is a further enhanced version of enhdnsbl.m4 81990792Sgshapiro which allows to lookup error codes in the access map. 82090792Sgshapiro Contributed by Neil Rickert of Northern Illinois University. 82190792Sgshapiro DEVTOOLS: Add new options for installation of include and library 82290792Sgshapiro files: confINCGRP, confINCMODE, confINCOWN, confLIBGRP, 82390792Sgshapiro confLIBMODE, confLIBOWN. 82490792Sgshapiro DEVTOOLS: Add new option confDONT_INSTALL_CATMAN to turn off 82590792Sgshapiro installation of the the formatted man pages on operating 82690792Sgshapiro systems which don't include cat directories. 82790792Sgshapiro EDITMAP: New program for editing maps as supplement to makemap. 82890792Sgshapiro MAIL.LOCAL: Mail.local now uses the libsm mbdb package to look up 82990792Sgshapiro local mail recipients. New option -D mbdb specifies the 83090792Sgshapiro mailbox database type. 83190792Sgshapiro MAIL.LOCAL: New option "-h filename" which instructs mail.local to 83290792Sgshapiro deliver the mail to the named file in the user's home 83390792Sgshapiro directory instead of the system mail spool area. Based on 83490792Sgshapiro patch from Doug Hardie of the Los Angeles Free-Net. 83590792Sgshapiro MAILSTATS: New command line option -P which acts the same as -p but 83690792Sgshapiro doesn't truncate the statistics file. 83790792Sgshapiro MAKEMAP: Add new option -t to specify a different delimiter 83890792Sgshapiro instead of white space. 83990792Sgshapiro RMAIL: Invoke sendmail with '-G' to indicate this is a gateway 84090792Sgshapiro submission. Problem noted by Kari Hurtta of the Finnish 84190792Sgshapiro Meteorological Institute. 84290792Sgshapiro SMRSH: Use the vendor supplied directory on FreeBSD 3.3 and later. 84390792Sgshapiro VACATION: Change Auto-Submitted: header value from auto-generated to 84490792Sgshapiro auto-replied. From Kenneth Murchison of Oceana Matrix Ltd. 84590792Sgshapiro VACATION: New option -d to send error/debug messages to stdout 84690792Sgshapiro instead of syslog. 84790792Sgshapiro VACATION: New option -U which prevents the attempt to lookup login 84890792Sgshapiro in the password file. The -f and -m options must be used 84990792Sgshapiro to specify the database and message file since there is no 85090792Sgshapiro home directory for the default settings for these options. 85190792Sgshapiro VACATION: Vacation now uses the libsm mbdb package to look up 85290792Sgshapiro local mail recipients; it reads the MailboxDatabase option 85390792Sgshapiro from the sendmail.cf file. New option -C cffile which 85490792Sgshapiro specifies the path of the sendmail.cf file. 85590792Sgshapiro New Directories: 85690792Sgshapiro libmilter/docs 85790792Sgshapiro New Files: 85890792Sgshapiro cf/cf/README 85990792Sgshapiro cf/cf/submit.cf 86090792Sgshapiro cf/cf/submit.mc 86190792Sgshapiro cf/feature/authinfo.m4 86290792Sgshapiro cf/feature/compat_check.m4 86390792Sgshapiro cf/feature/enhdnsbl.m4 86490792Sgshapiro cf/feature/msp.m4 86590792Sgshapiro cf/feature/local_no_masquerade.m4 86690792Sgshapiro cf/feature/lookupdotdomain.m4 86790792Sgshapiro cf/feature/preserve_luser_host.m4 86890792Sgshapiro cf/feature/preserve_local_plus_detail.m4 86990792Sgshapiro cf/feature/queuegroup.m4 87090792Sgshapiro cf/sendmail.schema 87190792Sgshapiro contrib/dnsblaccess.m4 87290792Sgshapiro devtools/M4/UNIX/sm-test.m4 87390792Sgshapiro devtools/OS/OpenUNIX.5.i386 87490792Sgshapiro editmap/* 87590792Sgshapiro include/sm/* 87690792Sgshapiro libsm/* 87790792Sgshapiro libsmutil/cf.c 87890792Sgshapiro libsmutil/err.c 87990792Sgshapiro sendmail/SECURITY 88090792Sgshapiro sendmail/TUNING 88190792Sgshapiro sendmail/bf.c 88290792Sgshapiro sendmail/bf.h 88390792Sgshapiro sendmail/sasl.c 88490792Sgshapiro sendmail/sm_resolve.c 88590792Sgshapiro sendmail/sm_resolve.h 88690792Sgshapiro sendmail/tls.c 88790792Sgshapiro Deleted Files: 88890792Sgshapiro cf/feature/rbl.m4 88990792Sgshapiro cf/ostype/aix2.m4 89090792Sgshapiro devtools/OS/AIX.2 89190792Sgshapiro include/sendmail/cdefs.h 89290792Sgshapiro include/sendmail/errstring.h 89390792Sgshapiro include/sendmail/useful.h 89490792Sgshapiro libsmutil/errstring.c 89590792Sgshapiro sendmail/bf_portable.c 89690792Sgshapiro sendmail/bf_portable.h 89790792Sgshapiro sendmail/bf_torek.c 89890792Sgshapiro sendmail/bf_torek.h 89990792Sgshapiro sendmail/clock.c 90090792Sgshapiro Renamed Files: 90190792Sgshapiro cf/cf/generic-solaris2.mc => cf/cf/generic-solaris.mc 90290792Sgshapiro cf/cf/generic-solaris2.cf => cf/cf/generic-solaris.cf 90390792Sgshapiro cf/ostype/aux.m4 => cf/ostype/a-ux.m4 90490792Sgshapiro 90582017Sgshapiro8.11.6/8.11.6 2001/08/20 90682017Sgshapiro SECURITY: Fix a possible memory access violation when specifying 90782017Sgshapiro out-of-bounds debug parameters. Problem detected by 90882017Sgshapiro Cade Cairns of SecurityFocus. 90982017Sgshapiro Avoid leaking recipient information in unrelated DSNs. This could 91082017Sgshapiro happen if a connection is aborted, several mails had been 91182017Sgshapiro scheduled for delivery via that connection, and the timeout 91282017Sgshapiro is reached such that several DSNs are sent next. Problem 91382017Sgshapiro noted by Dileepan Moorkanat of Hewlett-Packard. 91482017Sgshapiro Fix a possible segmentation violation when specifying too many 91582017Sgshapiro wildcard operators in a rule. Problem detected by 91682017Sgshapiro Werner Wiethege. 91782017Sgshapiro Avoid a segmentation fault on non-matching Hesiod lookups. Problem 91882017Sgshapiro noted by Russell McOrmond of flora.ca 91982017Sgshapiro 92080785Sgshapiro8.11.5/8.11.5 2001/07/31 92180785Sgshapiro Fix a possible race condition when sending a HUP signal to restart 92280785Sgshapiro the daemon. This could terminate the current process without 92380785Sgshapiro starting a new daemon. Problem reported by Wolfgang Breyha 92480785Sgshapiro of SE Netway Communications. 92580785Sgshapiro Only apply MaxHeadersLength when receiving a message via SMTP or 92680785Sgshapiro the command line. Problem noted by Andrey J. Melnikoff. 92780785Sgshapiro When finding the system's local hostname on an IPv6-enabled system 92880785Sgshapiro which doesn't have any IPv6 interface addresses, fall back 92980785Sgshapiro to looking up only IPv4 addresses. Problem noted by Tim 93080785Sgshapiro Bosserman of EarthLink. 93180785Sgshapiro When commands were being rejected due to check_relay or TCP 93280785Sgshapiro Wrappers, the ETRN command was not giving a response. 93380785Sgshapiro Incoming IPv4 connections on a Family=inet6 daemon (using 93480785Sgshapiro IPv4-mapped addresses) were incorrectly labeled as "may be 93580785Sgshapiro forged". Problem noted by Per Steinar Iversen of Oslo 93680785Sgshapiro University College. 93780785Sgshapiro Shutdown address test mode cleanly on SIGTERM. Problem noted by 93880785Sgshapiro Greg King of the OAO Corporation. 93980785Sgshapiro Restore the original real uid (changed in main() to prevent 94080785Sgshapiro out of band signals) before invoking a delivery agent. 94180785Sgshapiro Some delivery agents use this for the "From " envelope 94280785Sgshapiro "header". Problem noted by Leslie Carroll of the 94380785Sgshapiro University at Albany. 94480785Sgshapiro Mark closed file descriptors properly to avoid reuse. Problem 94580785Sgshapiro noted by Jeff Bronson of J.D. Bronson, Inc. 94680785Sgshapiro Setting Timeout options on the command line will also override 94780785Sgshapiro their sub-suboptions in the .cf file, e.g., -O 94880785Sgshapiro Timeout.queuereturn=2d will set all queuereturn timeouts 94980785Sgshapiro to 2 days. Problem noted by Roger B.A. Klorese. 95080785Sgshapiro Portability: 95180785Sgshapiro BSD/OS has a broken setreuid() implementation. Problem 95280785Sgshapiro noted by Vernon Schryver of Rhyolite Software. 95380785Sgshapiro BSD/OS has /dev/urandom(4) (as of version 4.1/199910 ?). 95480785Sgshapiro Noted by Vernon Schryver of Rhyolite Software. 95580785Sgshapiro BSD/OS has fchown(2). Noted by Dave Yadallee of Netline 95680785Sgshapiro 2000 Internet Solutions Inc. 95780785Sgshapiro Solaris 2.X and later have strerror(3). From Sebastian 95880785Sgshapiro Hagedorn of Cologne University. 95980785Sgshapiro CONFIG: Fix parsing for IPv6 domain literals in addresses 96080785Sgshapiro (user@[IPv6:address]). Problem noted by Liyuan Zhou. 96180785Sgshapiro 96277349Sgshapiro8.11.4/8.11.4 2001/05/28 96377349Sgshapiro Clean up signal handling routines to reduce the chances of heap 96477349Sgshapiro corruption and other potential race conditions. 96577349Sgshapiro Terminating and restarting the daemon may not be 96677349Sgshapiro instantaneous due to this change. Also, non-root users can 96777349Sgshapiro no longer send out-of-band signals. Problem reported by 96877349Sgshapiro Michal Zalewski of BindView. 96977349Sgshapiro If LogLevel is greater than 9 and SASL fails to negotiate an 97077349Sgshapiro encryption layer, avoid core dump logging the encryption 97177349Sgshapiro strength. Problem noted by Miroslav Zubcic of Crol. 97277349Sgshapiro If a server offers "AUTH=" and "AUTH " and the list of mechanisms is 97377349Sgshapiro different in those two lines, sendmail might not have 97477349Sgshapiro recognized (and used) all of the offered mechanisms. 97577349Sgshapiro Fix an IP address lookup problem on Solaris 2.0 - 2.3. Patch 97677349Sgshapiro from Kenji Miyake. 97777349Sgshapiro This time, really don't use the .. directory when expanding 97877349Sgshapiro QueueDirectory wildcards. 97977349Sgshapiro If a process is interrupted while closing a map, don't try to close 98077349Sgshapiro the same map again while exiting. 98177349Sgshapiro Allow local mailers (F=l) to contact remote hosts (e.g., via 98277349Sgshapiro LMTP). Problem noted by Norbert Klasen of the University 98377349Sgshapiro of Tuebingen. 98477349Sgshapiro If Timeout.QueueReturn was set to a value less the time it took 98577349Sgshapiro to write a new queue file (e.g., 0 seconds), the bounce 98677349Sgshapiro message would be lost. Problem noted by Lorraine L Goff of 98777349Sgshapiro Oklahoma State University. 98877349Sgshapiro Pass map argument vector into map rewriting engine for the regex 98977349Sgshapiro and prog map types. Problem noted by Stephen Gildea of 99077349Sgshapiro InTouch Systems, Inc. 99177349Sgshapiro When closing an LDAP map due to a temporary error, close all of the 99277349Sgshapiro other LDAP maps which share the original map's connection 99377349Sgshapiro to the LDAP server. Patch from Victor Duchovni of 99477349Sgshapiro Morgan Stanley. 99577349Sgshapiro To detect changes of NDBM aliases files check the timestamp of the 99677349Sgshapiro .pag file instead of the .dir file. Problem noted by Neil 99777349Sgshapiro Rickert of Northern Illinois University. 99877349Sgshapiro Don't treat temporary hesiod lookup failures as permanent. Patch 99977349Sgshapiro from Werner Wiethege. 100077349Sgshapiro If ClientPortOptions is set, make sure to create the outgoing socket 100177349Sgshapiro with the family set in that option. Patch from Sean Farley. 100277349Sgshapiro Avoid a segmentation fault trying to dereference a NULL pointer 100377349Sgshapiro when logging a MaxHopCount exceeded error with an empty 100477349Sgshapiro recipient list. Problem noted by Chris Adams of HiWAAY 100577349Sgshapiro Internet Services. 100677349Sgshapiro Fix DSN for "Too many hops" bounces. Problem noticed by Ulrich 100777349Sgshapiro Windl of the Universitaet Regensburg. 100877349Sgshapiro Fix DSN for "mail loops back to me" bounces. Problem noticed by 100977349Sgshapiro Kari Hurtta of the Finnish Meteorological Institute. 101077349Sgshapiro Portability: 101177349Sgshapiro OpenBSD has a broken setreuid() implementation. 101277349Sgshapiro CONFIG: Undo change from 8.11.1: change 501 SMTP reply code back 101377349Sgshapiro to 553 since it is allowed by DRUMS. 101477349Sgshapiro CONFIG: Add OSTYPE(freebsd4) for FreeBSD 4.X. 101577349Sgshapiro DEVTOOLS: install.sh did not properly handle paths in the source 101677349Sgshapiro file name argument. Noted by Kari Hurtta of the Finnish 101777349Sgshapiro Meteorological Institute. 101877349Sgshapiro DEVTOOLS: Add FAST_PID_RECYCLE to compile time options for OpenBSD 101977349Sgshapiro since it generates random process ids. 102077349Sgshapiro PRALIASES: Add back adaptive algorithm to deal with different endings 102177349Sgshapiro of entries in the database (with/without trailing '\0'). 102277349Sgshapiro Patch from John Beck of Sun Microsystems. 102377349Sgshapiro New Files: 102477349Sgshapiro cf/ostype/freebsd4.m4 102577349Sgshapiro 102673188Sgshapiro8.11.3/8.11.3 2001/02/27 102773188Sgshapiro Prevent a segmentation fault when a bogus value was used in the 102873188Sgshapiro LDAPDefaultSpec option's -r, -s, or -M flags and if a bogus 102973188Sgshapiro option was used. Problem noted by Allan E Johannesen of 103073188Sgshapiro Worcester Polytechnic Institute. 103173188Sgshapiro Prevent "token too long" message by shortening {currHeader} which 103273188Sgshapiro could be too long if the last copied character was a quote. 103373188Sgshapiro Problem detected by Jan Krueger of digitalanswers 103473188Sgshapiro communications consulting gmbh. 103573188Sgshapiro Additional IPv6 check for unspecified addresses. Patch from 103673188Sgshapiro Jun-ichiro itojun Hagino of the KAME Project. 103773188Sgshapiro Do not ignore the ClientPortOptions setting if DaemonPortOptions 103873188Sgshapiro Modifier=b (bind to same interface) is set and the 103973188Sgshapiro connection came in from the command line. 104073188Sgshapiro Do not bind to the loopback address if DaemonPortOptions 104173188Sgshapiro Modifier=b (bind to same interface) is set. Patch from 104273188Sgshapiro John Beck of Sun Microsystems. 104373188Sgshapiro Properly deal with open failures on non-optional maps used in 104473188Sgshapiro check_* rulesets by returning a temporary failure. 104573188Sgshapiro Buffered file I/O files were not being properly fsync'ed to disk 104673188Sgshapiro when they were committed. 104773188Sgshapiro Properly encode '=' for the AUTH= parameter of the MAIL command. 104873188Sgshapiro Problem noted by Hadmut Danisch. 104973188Sgshapiro Under certain circumstances the macro {server_name} could be set 105073188Sgshapiro to the wrong hostname (of a previous connection), which may 105173188Sgshapiro cause some rulesets to return wrong results. This would 105273188Sgshapiro usually cause mail to be queued up and delivered later on. 105373188Sgshapiro Ignore F=z (LMTP) mailer flag if $u is given in the mailer A= 105473188Sgshapiro equate. Problem noted by Motonori Nakamura of Kyoto 105573188Sgshapiro University. 105673188Sgshapiro Work around broken accept() implementations which only partially 105773188Sgshapiro fill in the peer address if the socket is closed before 105873188Sgshapiro accept() completes. 105973188Sgshapiro Return an SMTP "421" temporary failure if the data file can't be 106073188Sgshapiro opened where the "354" reply would normally be given. 106173188Sgshapiro Prevent a CPU loop in trying to expand a macro which doesn't exist 106273188Sgshapiro in a queue run. Problem noted by Gordon Lack of Glaxo 106373188Sgshapiro Wellcome. 106473188Sgshapiro If delivering via a program and that program exits with EX_TEMPFAIL, 106573188Sgshapiro note that fact for the mailq display instead of just showing 106673188Sgshapiro "Deferred". Problem noted by Motonori Nakamura of Kyoto 106773188Sgshapiro University. 106873188Sgshapiro If doing canonification via /etc/hosts, try both the fully 106973188Sgshapiro qualified hostname as well as the first portion of the 107073188Sgshapiro hostname. Problem noted by David Bremner of the 107173188Sgshapiro University of New Brunswick. 107273188Sgshapiro Portability: 107373188Sgshapiro Fix a compilation problem for mail.local and rmail if SFIO 107473188Sgshapiro is in use. Problem noted by Auteria Wally 107573188Sgshapiro Winzer Jr. of Champion Nutrition. 107673188Sgshapiro IPv6 changes for platforms using KAME. Patch from 107773188Sgshapiro Jun-ichiro itojun Hagino of the KAME Project. 107873188Sgshapiro OpenBSD 2.7 and higher has srandomdev(3). OpenBSD 2.8 and 107973188Sgshapiro higher has BSDI-style login classes. Patch from 108073188Sgshapiro Todd C. Miller of Courtesan Consulting. 108173188Sgshapiro Unixware 7.1.1 doesn't allow h_errno to be set directly if 108273188Sgshapiro sendmail is being compiled with -kthread. Problem 108373188Sgshapiro noted by Orion Poplawski of CQG, Inc. 108473188Sgshapiro CONTRIB: buildvirtuser: Substitute current domain for $DOMAIN and 108573188Sgshapiro current left hand side for $LHS in virtuser files. 108673188Sgshapiro DEVTOOLS: Do not pass make targets to recursive Build invocations. 108773188Sgshapiro Problem noted by Jeff Bronson of J.D. Bronson, Inc. 108873188Sgshapiro MAIL.LOCAL: In LMTP mode, do not return errors regarding problems 108973188Sgshapiro storing the temporary message file until after the remote 109073188Sgshapiro side has sent the final DATA termination dot. Problem 109173188Sgshapiro noted by Allan E Johannesen of Worcester Polytechnic 109273188Sgshapiro Institute. 109373188Sgshapiro MAIL.LOCAL: If LMTP mode is set, give a temporary error if users 109473188Sgshapiro are also specified on the command line. Patch from 109573188Sgshapiro Motonori Nakamura of Kyoto University. 109673188Sgshapiro PRALIASES: Skip over AliasFile specifications which aren't based on 109773188Sgshapiro database files (i.e., only show dbm, hash, and btree). 109873188Sgshapiro Renamed Files: 109973188Sgshapiro devtools/OS/OSF1.V5.0 => devtools/OS/OSF1.V5.x 110073188Sgshapiro 110171345Sgshapiro8.11.2/8.11.2 2000/12/29 110271345Sgshapiro Prevent a segmentation fault when trying to set a class in 110371345Sgshapiro address test mode due to a negative array index. Audit 110471345Sgshapiro other array indexing. This bug is not believed to be 110571345Sgshapiro exploitable. Noted by Michal Zalewski of the "Internet for 110671345Sgshapiro Schools" project (IdS). 110771345Sgshapiro Add an FFR (for future release) to drop privileges when using 110871345Sgshapiro address test mode. This will be turned on in 8.12. It can 110971345Sgshapiro be enabled by compiling with: 111071345Sgshapiro APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_TESTMODE_DROP_PRIVS') 111171345Sgshapiro in your devtools/Site/site.config.m4 file. Suggested by 111271345Sgshapiro Michal Zalewski of the "Internet for Schools" project (IdS). 111371345Sgshapiro Fix potential problem with Cyrus-SASL security layer which may have 111471345Sgshapiro caused I/O errors, especially for mechanism DIGEST-MD5. 111571345Sgshapiro When QueueSortOrder was set to host, sendmail might not read 111671345Sgshapiro enough of the queue file to determine the host, making the 111771345Sgshapiro sort sub-optimal. Problem noted by Jeff Earickson of 111871345Sgshapiro Colby College. 111971345Sgshapiro Don't issue DSNs for addresses which use the NOTIFY parameter (per 112071345Sgshapiro RFC 1891) but don't have FAILURE as value. 112171345Sgshapiro Initialize Cyrus-SASL library before the SMTP daemon is started. 112271345Sgshapiro This implies that every change to SASL related files requires 112371345Sgshapiro a restart of the daemon, e.g., Sendmail.conf, new SASL 112471345Sgshapiro mechanisms (in form of shared libraries). 112571345Sgshapiro Properly set the STARTTLS related macros during a queue run for 112671345Sgshapiro a cached connection. Bug reported by Michael Kellen of 112771345Sgshapiro NxNetworks, Inc. 112871345Sgshapiro Log the server name in relay= for ruleset tls_server instead of the 112971345Sgshapiro client name. 113071345Sgshapiro Include original length of bad field/header when reporting 113171345Sgshapiro MaxMimeHeaderLength problems. Requested by Ulrich Windl of 113271345Sgshapiro the Universitat Regensburg. 113371345Sgshapiro Fix delivery to set-user-ID files that are expanded from aliases in 113471345Sgshapiro DeliveryMode queue. Problem noted by Ric Anderson of the 113571345Sgshapiro University of Arizona. 113671345Sgshapiro Fix LDAP map -m (match only) flag. Problem noted by Jeff Giuliano 113771345Sgshapiro of Collective Technologies. 113871345Sgshapiro Avoid using a negative argument for sleep() calls when delaying answers 113971345Sgshapiro to EXPN/VRFY commands on systems which respond very slowly. 114071345Sgshapiro Problem noted by Mikolaj J. Habryn of Optus Internet 114171345Sgshapiro Engineering. 114271345Sgshapiro Make sure the F=u flag is set in the default prog mailer 114371345Sgshapiro definition. Problem noted by Kari Hurtta of the Finnish 114471345Sgshapiro Meteorological Institute. 114571345Sgshapiro Fix IPv6 check for unspecified addresses. Patch from 114671345Sgshapiro Jun-ichiro itojun Hagino of the KAME Project. 114771345Sgshapiro Fix return values for IRIX nsd map. From Kari Hurtta of the Finnish 114871345Sgshapiro Meteorological Institute. 114971345Sgshapiro Fix parsing of DaemonPortOptions and ClientPortOptions. Read all 115071345Sgshapiro of the parameters to find Family= setting before trying to 115171345Sgshapiro interpret Addr= and Port=. Problem noted by Valdis 115271345Sgshapiro Kletnieks of Virginia Tech. 115371345Sgshapiro When delivering to a file directly from an alias, do not call 115471345Sgshapiro initgroups(); instead use the DefaultUser group information. 115571345Sgshapiro Problem noted by Marc Schaefer of ALPHANET NF. 115671345Sgshapiro RunAsUser now overrides the ownership of the control socket, if 115771345Sgshapiro created. Otherwise, sendmail can not remove it upon 115871345Sgshapiro close. Problem noted by Werner Wiethege. 115971345Sgshapiro Fix ConnectionRateThrottle counting as the option is the number of 116071345Sgshapiro overall connections, not the number of connections per 116171345Sgshapiro socket. A future version may change this to per socket 116271345Sgshapiro counting. 116371345Sgshapiro Portability: 116471345Sgshapiro Clean up libsmdb so it functions properly on platforms 116571345Sgshapiro where sizeof(u_int32_t) != sizeof(size_t). Problem 116671345Sgshapiro noted by Rein Tollevik of Basefarm AS. 116771345Sgshapiro Fix man page formatting for compatibility with Solaris' 116871345Sgshapiro whatis. From Stephen Gildea of InTouch Systems, Inc. 116971345Sgshapiro UnixWare 7 includes snprintf() support. From Larry 117071345Sgshapiro Rosenman. 117171345Sgshapiro IPv6 changes for platforms using KAME. Patch from 117271345Sgshapiro Jun-ichiro itojun Hagino of the KAME Project. 117371345Sgshapiro Avoid a typedef compile conflict with Berkeley DB 3.X and 117471345Sgshapiro Solaris 2.5 or earlier. Problem noted by Bob Hughes 117571345Sgshapiro of Pacific Access. 117671345Sgshapiro Add preliminary support for AIX 5. Contributed by 117771345Sgshapiro Valdis Kletnieks of Virginia Tech. 117871345Sgshapiro Solaris 9 load average support from Andrew Tucker of Sun 117971345Sgshapiro Microsystems. 118071345Sgshapiro CONFIG: Reject addresses of the form a!b if FEATURE(`nouucp', `r') 118171345Sgshapiro is used. Problem noted by Phil Homewood of Asia Online, 118271345Sgshapiro patch from Neil Rickert of Northern Illinois University. 118371345Sgshapiro CONFIG: Change the default DNS based blacklist server for 118473188Sgshapiro FEATURE(`dnsbl') to blackholes.mail-abuse.org. 118571345Sgshapiro CONFIG: Deal correctly with the 'C' flag in {daemon_flags}, i.e., 118671345Sgshapiro implicitly assume canonical host names. 118771345Sgshapiro CONFIG: Deal with "::" in IPv6 addresses for access_db. Based on 118871345Sgshapiro patch by Motonori Nakamura of Kyoto University. 118971345Sgshapiro CONFIG: New OSTYPE(`aix5') contributed by Valdis Kletnieks of 119071345Sgshapiro Virginia Tech. 119171345Sgshapiro CONFIG: Pass the illegal header form <list:;> through untouched 119271345Sgshapiro instead of making it worse. Problem noted by Motonori 119371345Sgshapiro Nakamura of Kyoto University. 119471345Sgshapiro CONTRIB: Added buildvirtuser (see `perldoc contrib/buildvirtuser`). 119571345Sgshapiro CONTRIB: qtool.pl: An empty queue is not an error. Problem noted 119671345Sgshapiro by Jan Krueger of digitalanswers communications consulting 119771345Sgshapiro gmbh. 119871345Sgshapiro CONTRIB: domainmap.m4: Handle domains with '-' in them. From Mark 119971345Sgshapiro Roth of the University of Illinois at Urbana-Champaign. 120071345Sgshapiro DEVTOOLS: Change the internal devtools OS, REL, and ARCH m4 120171345Sgshapiro variables into bldOS, bldREL, and bldARCH to prevent 120273188Sgshapiro namespace collisions. Problem noted by Motonori Nakamura 120371345Sgshapiro of Kyoto University. 120471345Sgshapiro RMAIL: Undo the 8.11.1 change to use -G when calling sendmail. It 120571345Sgshapiro causes some changes in behavior and may break rmail for 120671345Sgshapiro installations where sendmail is actually a wrapper to 120771345Sgshapiro another MTA. The change will re-appear in a future 120871345Sgshapiro version. 120971345Sgshapiro SMRSH: Use the vendor supplied directory on HPUX 10.X, HPUX 11.X, 121071345Sgshapiro and SunOS 5.8. Requested by Jeff A. Earickson of Colby 121171345Sgshapiro College and John Beck of Sun Microsystems. 121271345Sgshapiro VACATION: Fix pattern matching for addresses to ignore. 121371345Sgshapiro VACATION: Don't reply to addresses of the form owner-* 121471345Sgshapiro or *-owner. 121571345Sgshapiro New Files: 121671345Sgshapiro cf/ostype/aix5.m4 121771345Sgshapiro contrib/buildvirtuser 121871345Sgshapiro devtools/OS/AIX.5.0 121971345Sgshapiro 122066494Sgshapiro8.11.1/8.11.1 2000/09/27 122166494Sgshapiro Fix SMTP EXPN command output if the address expands to a single 122266494Sgshapiro name. Fix from John Beck of Sun Microsystems. 122366494Sgshapiro Don't try STARTTLS in the client if the PRNG has not been properly 122466494Sgshapiro seeded. This problem only occurs on systems without 122566494Sgshapiro /dev/urandom. Problem detected by Jan Krueger of 122666494Sgshapiro digitalanswers communications consulting gmbh and 122766494Sgshapiro Neil Rickert of Northern Illinois University. 122866494Sgshapiro Don't use the . and .. directories when expanding QueueDirectory 122966494Sgshapiro wildcards. 123066494Sgshapiro Do not try to cache LDAP connections across processes as a parent 123166494Sgshapiro process may close the connection before the child process 123266494Sgshapiro has completed. Problem noted by Lai Yiu Fai of the Hong 123366494Sgshapiro Kong University of Science and Technology and Wolfgang 123466494Sgshapiro Hottgenroth of UUNET. 123566494Sgshapiro Use Timeout.fileopen to limit the amount of time spent trying to 123666494Sgshapiro read the LDAP secret from a file. 123766494Sgshapiro Prevent SIGTERM from removing a command line submitted item after 123866494Sgshapiro the user submits the message and before the first delivery 123966494Sgshapiro attempt completes. Problem noted by Max France of AlphaNet. 124066494Sgshapiro Fix from Neil Rickert of Northern Illinois University. 124166494Sgshapiro Deal correctly with MaxMessageSize restriction if message size is 124271345Sgshapiro greater than 2^31. Problem noted by Tim "Darth Dice" Bosserman 124371345Sgshapiro of EarthLink. 124466494Sgshapiro Turn off queue checkpointing if CheckpointInterval is set to zero. 124566494Sgshapiro Treat an empty home directory (from getpw*() or $HOME) as 124666494Sgshapiro non-existent instead of treating it as /. Problem noted by 124766494Sgshapiro Todd C. Miller of Courtesan Consulting. 124866494Sgshapiro Don't drop duplicate headers when reading a queued item. Problem 124966494Sgshapiro noted by Motonori Nakamura of Kyoto University. 125066494Sgshapiro Avoid bogus error text when logging the savemail panic "cannot 125166494Sgshapiro save rejected email anywhere". Problem noted by Marc G. 125266494Sgshapiro Fournier of Acadia University. 125366494Sgshapiro If an LDAP search fails because the LDAP server went down, close 125466494Sgshapiro the map so subsequent searches reopen the map. If there are 125566494Sgshapiro multiple LDAP servers, the down server will be skipped and 125666494Sgshapiro one of the others may be able to take over. 125766494Sgshapiro Set the ${load_avg} macro to the current load average, not the 125866494Sgshapiro previous load average query result. 125966494Sgshapiro If a non-optional map used in a check_* ruleset can't be opened, 126066494Sgshapiro return a temporary failure to the remote SMTP client 126166494Sgshapiro instead of ignoring the map. Problem noted by Allan E 126266494Sgshapiro Johannesen of Worcester Polytechnic Institute. 126366494Sgshapiro Avoid a race condition when queuing up split envelopes by saving 126466494Sgshapiro the split envelopes before the original envelope. 126566494Sgshapiro Fix a bug in the PH_MAP code which caused mail to bounce instead of 126666494Sgshapiro defer if the PH server could not be contacted. From Mark 126766494Sgshapiro Roth of the University of Illinois at Urbana-Champaign. 126866494Sgshapiro Prevent QueueSortOrder=Filename from interfering with -qR, -qS, and 126966494Sgshapiro ETRN. Problem noted by Erik R. Leo of SoVerNet. 127066494Sgshapiro Change error code for unrecognized parameters to the SMTP MAIL and 127166494Sgshapiro RCPT commands from 501 to 555 per RFC 1869. Problem 127266494Sgshapiro reported to Postfix by Robert Norris of Monash University. 127366494Sgshapiro Prevent overwriting the argument of -B on certain OS. Problem 127466494Sgshapiro noted by Matteo Gelosa of I.NET S.p.A. 127566494Sgshapiro Use the proper routine for freeing memory with Netscape's LDAP 127666494Sgshapiro client libraries. Patch from Paul Hilchey of the 127766494Sgshapiro University of British Columbia. 127866494Sgshapiro Portability: 127966494Sgshapiro Move the NETINET6 define to devtools/OS/SunOS.5.{8,9} 128066494Sgshapiro instead of defining it in conf.h so users can 128166494Sgshapiro override the setting. Suggested by 128266494Sgshapiro Henrik Nordstrom of Ericsson. 128366494Sgshapiro On HP-UX 10.X and 11.X, use /usr/sbin/sendmail instead of 128466494Sgshapiro /usr/lib/sendmail for rmail and vacation. From 128566494Sgshapiro Jeff A. Earickson of Colby College. 128666494Sgshapiro On HP-UX 11.X, use /usr/sbin instead of /usr/libexec (which 128766494Sgshapiro does not exist). From Jeff A. Earickson of Colby 128866494Sgshapiro College. 128966494Sgshapiro Avoid using the UCB subsystem on NCR MP-RAS 3.x. From 129066494Sgshapiro Tom Moore of NCR. 129166494Sgshapiro NeXT 3.X and 4.X installs man pages in /usr/man. From 129266494Sgshapiro Hisanori Gogota of NTT/InterCommunicationCenter. 129366494Sgshapiro Solaris 8 and later include /var/run. The default PID file 129466494Sgshapiro location is now /var/run/sendmail.pid. From John 129566494Sgshapiro Beck of Sun Microsystems. 129666494Sgshapiro SFIO includes snprintf() for those operating systems 129766494Sgshapiro which do not. From Todd C. Miller of Courtesan 129866494Sgshapiro Consulting. 129966494Sgshapiro CONFIG: Use the result of _CERT_REGEX_SUBJECT_ not {cert_subject}. 130066494Sgshapiro Problem noted by Kaspar Brand of futureLab AG. 130166494Sgshapiro CONFIG: Change 553 SMTP reply code to 501 to avoid problems with 130266494Sgshapiro errors in the MAIL address. 130366494Sgshapiro CONFIG: Fix FEATURE(nouucp) usage in example .mc files. Problem 130466494Sgshapiro noted by Ron Jarrell of Virginia Tech. 130566494Sgshapiro CONFIG: Add support for Solaris 8 (and later) as OSTYPE(solaris8). 130666494Sgshapiro Contributed by John Beck of Sun Microsystems. 130766494Sgshapiro CONFIG: Set confFROM_HEADER such that the mail hub can possibly add 130866494Sgshapiro GECOS information for an address. This more closely 130966494Sgshapiro matches pre-8.10 nullclient behavior. From Per Hedeland of 131066494Sgshapiro Ericsson. 131166494Sgshapiro CONFIG: Fix MODIFY_MAILER_FLAGS(): apply the flag modifications for 131266494Sgshapiro SMTP to all *smtp* mailers and those for RELAY to the relay 131366494Sgshapiro mailer as described in cf/README. 131466494Sgshapiro MAIL.LOCAL: Open the mailbox as the recipient not root so quotas 131566494Sgshapiro are obeyed. Problem noted by Damian Kuczynski of NIK. 131666494Sgshapiro MAKEMAP: Do not change a map's owner to the TrustedUser if using 131766494Sgshapiro makemap to 'unmake' the map. 131866494Sgshapiro RMAIL: Avoid overflowing the list of recipients being passed to 131966494Sgshapiro sendmail. 132066494Sgshapiro RMAIL: Invoke sendmail with '-G' to indicate this is a gateway 132166494Sgshapiro submission. Problem noted by Kari Hurtta of the Finnish 132266494Sgshapiro Meteorological Institute. 132366494Sgshapiro VACATION: Read the complete message to avoid "broken pipe" signals. 132466494Sgshapiro VACATION: Do not cut off vacation.msg files which have a single 132566494Sgshapiro dot as the only character on the line. 132666494Sgshapiro New Files: 132766494Sgshapiro cf/ostype/solaris8.m4 132866494Sgshapiro 132964562Sgshapiro8.11.0/8.11.0 2000/07/19 133064562Sgshapiro SECURITY: If sendmail is installed as a non-root set-user-ID binary 133164562Sgshapiro (not the normal case), some operating systems will still 133264562Sgshapiro keep a saved-uid of the effective-uid when sendmail tries 133364562Sgshapiro to drop all of its privileges. If sendmail needs to drop 133464562Sgshapiro these privileges and the operating system doesn't set the 133564562Sgshapiro saved-uid as well, exit with an error. Problem noted by 133664562Sgshapiro Kari Hurtta of the Finnish Meteorological Institute. 133764562Sgshapiro SECURITY: sendmail depends on snprintf() NUL terminating the string 133864562Sgshapiro it populates. It is possible that some broken 133964562Sgshapiro implementations of snprintf() exist that do not do this. 134064562Sgshapiro Systems in this category should compile with 134164562Sgshapiro -DSNPRINTF_IS_BROKEN=1. Use test/t_snprintf.c to test your 134264562Sgshapiro system and report broken implementations to 134364562Sgshapiro sendmail-bugs@sendmail.org and your OS vendor. Problem 134464562Sgshapiro noted by Slawomir Piotrowski of TELSAT GP. 134564562Sgshapiro Support SMTP Service Extension for Secure SMTP (RFC 2487) (STARTTLS). 134664562Sgshapiro Implementation influenced by the example programs of 134764562Sgshapiro OpenSSL and the work of Lutz Jaenicke of TU Cottbus. 134864562Sgshapiro Add new STARTTLS related options CACERTPath, CACERTFile, 134964562Sgshapiro ClientCertFile, ClientKeyFile, DHParameters, RandFile, 135064562Sgshapiro ServerCertFile, and ServerKeyFile. These are documented in 135164562Sgshapiro cf/README and doc/op/op.*. 135264562Sgshapiro New STARTTLS related macros: ${cert_issuer}, ${cert_subject}, 135364562Sgshapiro ${tls_version}, ${cipher}, ${cipher_bits}, ${verify}, 135464562Sgshapiro ${server_name}, and ${server_addr}. These are documented 135564562Sgshapiro in cf/README and doc/op/op.*. 135664562Sgshapiro Add support for the Entropy Gathering Daemon (EGD) for better 135764562Sgshapiro random data. 135864562Sgshapiro New DontBlameSendmail option InsufficientEntropy for systems which 135964562Sgshapiro don't properly seed the PRNG for OpenSSL but want to 136064562Sgshapiro try to use STARTTLS despite the security problems. 136164562Sgshapiro Support the security layer in SMTP AUTH for mechanisms which 136264562Sgshapiro support encryption. Based on code contributed by Tim 136364562Sgshapiro Martin of CMU. 136464562Sgshapiro Add new macro ${auth_ssf} to reflect the SMTP AUTH security 136564562Sgshapiro strength factor. 136664562Sgshapiro LDAP's -1 (single match only) flag was not honored if the -z 136764562Sgshapiro (delimiter) flag was not given. Problem noted by ST Wong of 136864562Sgshapiro the Chinese University of Hong Kong. Fix from Mark Adamson 136964562Sgshapiro of CMU. 137064562Sgshapiro Add more protection from accidentally tripping OpenLDAP 1.X's 137164562Sgshapiro ld_errno == LDAP_DECODING_ERROR hack on ldap_next_attribute(). 137264562Sgshapiro Suggested by Kurt Zeilenga of OpenLDAP. 137364562Sgshapiro Fix the default family selection for DaemonPortOptions. As 137464562Sgshapiro documented, unless a family is specified in a 137564562Sgshapiro DaemonPortOptions option, "inet" is the default. It is 137664562Sgshapiro also the default if no DaemonPortOptions value is set. 137764562Sgshapiro Therefore, IPv6 users should configure additional sockets 137864562Sgshapiro by adding DaemonPortOptions settings with Family=inet6 if 137964562Sgshapiro they wish to also listen on IPv6 interfaces. Problem noted 138064562Sgshapiro by Jun-ichiro itojun Hagino of the KAME Project. 138164562Sgshapiro Set ${if_family} when setting ${if_addr} and ${if_name} to reflect 138264562Sgshapiro the interface information for an outgoing connection. 138364562Sgshapiro Not doing so was creating a mismatch between the socket 138464562Sgshapiro family and address used in subsequent connections if the 138564562Sgshapiro M=b modifier was set in DaemonPortOptions. Problem noted 138664562Sgshapiro by John Beck of Sun Microsystems. 138764562Sgshapiro If DaemonPortOptions modifier M=b is used, determine the socket 138864562Sgshapiro family based on the IP address. ${if_family} is no longer 138964562Sgshapiro persistent (i.e., saved in qf files). Patch from John Beck 139064562Sgshapiro of Sun Microsystems. 139164562Sgshapiro sendmail 8.10 and 8.11 reused the ${if_addr} and ${if_family} 139264562Sgshapiro macros for both the incoming interface address/family and 139364562Sgshapiro the outgoing interface address/family. In order for M=b 139464562Sgshapiro modifier in DaemonPortOptions to work properly, preserve 139564562Sgshapiro the incoming information in the queue file for later 139664562Sgshapiro delivery attempts. 139764562Sgshapiro Use SMTP error code and enhanced status code from check_relay in 139864562Sgshapiro responses to commands. Problem noted by Jeff Wasilko of 139964562Sgshapiro smoe.org. 140064562Sgshapiro Add more vigilance in checking for putc() errors on output streams 140164562Sgshapiro to protect from a bug in Solaris 2.6's putc(). Problem 140264562Sgshapiro noted by Graeme Hewson of Oracle. 140364562Sgshapiro The LDAP map -n option (return attribute names only) wasn't working. 140464562Sgshapiro Problem noted by Ajay Matia. 140564562Sgshapiro Under certain circumstances, an address could be listed as deferred 140664562Sgshapiro but would be bounced back to the sender as failed to be 140764562Sgshapiro delivered when it really should have been queued. Problem 140864562Sgshapiro noted by Allan E Johannesen of Worcester Polytechnic Institute. 140964562Sgshapiro Prevent a segmentation fault in a child SMTP process from getting 141064562Sgshapiro the SMTP transaction out of sync. Problem noted by Per 141164562Sgshapiro Hedeland of Ericsson. 141264562Sgshapiro Turn off RES_DEBUG if SFIO is defined unless SFIO_STDIO_COMPAT 141364562Sgshapiro is defined to avoid a core dump due to incompatibilities 141464562Sgshapiro between sfio and stdio. Problem noted by Neil Rickert 141564562Sgshapiro of Northern Illinois University. 141664562Sgshapiro Don't log useless envelope ID on initial connection log. Problem 141764562Sgshapiro noted by Kari Hurtta of the Finnish Meteorological Institute. 141864562Sgshapiro Convert the free disk space shown in a control socket status query 141964562Sgshapiro to kilobyte units. 142064562Sgshapiro If TryNullMXList is True and there is a temporary DNS failure 142164562Sgshapiro looking up the hostname, requeue the message for a later 142264562Sgshapiro attempt. Problem noted by Ari Heikkinen of Pohjois-Savo 142364562Sgshapiro Polytechnic. 142464562Sgshapiro Under the proper circumstances, failed connections would be recorded 142564562Sgshapiro as "Bad file number" instead of "Connection failed" in the 142664562Sgshapiro queue file and persistent host status. Problem noted by 142764562Sgshapiro Graeme Hewson of Oracle. 142864562Sgshapiro Avoid getting into an endless loop if a non-hoststat directory exists 142964562Sgshapiro within the hoststatus directory (e.g., lost+found). 143064562Sgshapiro Patch from Valdis Kletnieks of Virginia Tech. 143164562Sgshapiro Make sure Timeout.queuereturn=now returns a bounce message to the 143264562Sgshapiro sender. Problem noted by Per Hedeland of Ericsson. 143364562Sgshapiro If a message data file can't be opened at delivery time, panic and 143464562Sgshapiro abort the attempt instead of delivering a message that 143564562Sgshapiro states "<<< No Message Collected >>>". 143664562Sgshapiro Fixup the GID checking code from 8.10.2 as it was overly 143764562Sgshapiro restrictive. Problem noted by Mark G. Thomas of Mark 143864562Sgshapiro G. Thomas Consulting. 143964562Sgshapiro Preserve source port number instead of replacing it with the ident 144064562Sgshapiro port number (113). 144164562Sgshapiro Document the queue status characters in the mailq man page. 144264562Sgshapiro Suggested by Ulrich Windl of the Universitat Regensburg. 144364562Sgshapiro Process queued items in which none of the recipient addresses have 144464562Sgshapiro host portions (or there are no recipients). Problem noted 144564562Sgshapiro by Valdis Kletnieks of Virginia Tech. 144664562Sgshapiro If a cached LDAP connection is used for multiple maps, make sure 144764562Sgshapiro only the first to open the connection is allowed to close 144864562Sgshapiro it so a later map close doesn't break the connection for 144964562Sgshapiro other maps. Problem noted by Wolfgang Hottgenroth of UUNET. 145064562Sgshapiro Netscape's LDAP libraries do not support Kerberos V4 145164562Sgshapiro authentication. Patch from Rainer Schoepf of the 145264562Sgshapiro University of Mainz. 145364562Sgshapiro Provide workaround for inconsistent handling of data passed 145464562Sgshapiro via callbacks to Cyrus SASL prior to version 1.5.23. 145564562Sgshapiro Mention ENHANCEDSTATUSCODES in the SMTP HELP helpfile. Omission 145664562Sgshapiro noted by Ulrich Windl of the Universitat Regensburg. 145764562Sgshapiro Portability: 145864562Sgshapiro Add the ability to read IPv6 interface addresses into class 145964562Sgshapiro 'w' under FreeBSD (and possibly others). From Jun 146064562Sgshapiro Kuriyama of IMG SRC, Inc. and the FreeBSD Project. 146164562Sgshapiro Replace code for finding the number of CPUs on HPUX. 146264562Sgshapiro NCRUNIX MP-RAS 3.02 SO_REUSEADDR socket option does not 146364562Sgshapiro work properly causing problems if the accept() 146464562Sgshapiro fails and the socket needs to be reopened. Patch 146564562Sgshapiro from Tom Moore of NCR. 146664562Sgshapiro NetBSD uses a .0 extension of formatted man pages. From 146766494Sgshapiro Andrew Brown of Crossbar Security. 146864562Sgshapiro Return to using the IPv6 AI_DEFAULT flag instead of AI_V4MAPPED 146964562Sgshapiro for calls to getipnodebyname(). The Linux 147064562Sgshapiro implementation is broken so AI_ADDRCONFIG is stripped 147164562Sgshapiro under Linux. From John Beck of Sun Microsystems and 147264562Sgshapiro John Kennedy of Cal State University, Chico. 147364562Sgshapiro CONFIG: Catch invalid addresses containing a ',' at the wrong place. 147464562Sgshapiro Patch from Neil Rickert of Northern Illinois University. 147564562Sgshapiro CONFIG: New variables for the new sendmail options: 147664562Sgshapiro confCACERT_PATH CACERTPath 147764562Sgshapiro confCACERT CACERTFile 147864562Sgshapiro confCLIENT_CERT ClientCertFile 147964562Sgshapiro confCLIENT_KEY ClientKeyFile 148064562Sgshapiro confDH_PARAMETERS DHParameters 148164562Sgshapiro confRAND_FILE RandFile 148264562Sgshapiro confSERVER_CERT ServerCertFile 148364562Sgshapiro confSERVER_KEY ServerKeyFile 148464562Sgshapiro CONFIG: Provide basic rulesets for TLS policy control and add new 148564562Sgshapiro tags to the access database to support these policies. See 148664562Sgshapiro cf/README for more information. 148764562Sgshapiro CONFIG: Add TLS information to the Received: header. 148864562Sgshapiro CONFIG: Call tls_client ruleset from check_mail in case it wasn't 148964562Sgshapiro called due to a STARTTLS command. 149064562Sgshapiro CONFIG: If TLS_PERM_ERR is defined, TLS related errors are permanent 149164562Sgshapiro instead of temporary. 149264562Sgshapiro CONFIG: FEATURE(`relay_hosts_only') didn't work in combination with 149364562Sgshapiro the access map and relaying to a domain without using a To: 149464562Sgshapiro tag. Problem noted by Mark G. Thomas of Mark G. Thomas 149564562Sgshapiro Consulting. 149664562Sgshapiro CONFIG: Set confEBINDIR to /usr/sbin to match the devtools entry in 149764562Sgshapiro OSTYPE(`linux') and OSTYPE(`mklinux'). From Tim Pierce of 149864562Sgshapiro RootsWeb.com. 149964562Sgshapiro CONFIG: Make sure FEATURE(`nullclient') doesn't use aliasing and 150064562Sgshapiro forwarding to make it as close to the old behavior as 150164562Sgshapiro possible. Problem noted by George W. Baltz of the 150264562Sgshapiro University of Maryland. 150364562Sgshapiro CONFIG: Added OSTYPE(`darwin') for Mac OS X and Darwin users. From 150464562Sgshapiro Wilfredo Sanchez of Apple Computer, Inc. 150564562Sgshapiro CONFIG: Changed the map names used by FEATURE(`ldap_routing') from 150664562Sgshapiro ldap_mailhost and ldap_mailroutingaddress to ldapmh and 150764562Sgshapiro ldapmra as underscores in map names cause problems if 150864562Sgshapiro underscore is in OperatorChars. Problem noted by Bob Zeitz 150964562Sgshapiro of the University of Alberta. 151064562Sgshapiro CONFIG: Apply blacklist_recipients also to hosts in class {w}. 151164562Sgshapiro Patch from Michael Tratz of Esosoft Corporation. 151264562Sgshapiro CONFIG: Use A=TCP ... instead of A=IPC ... in SMTP mailers. 151364562Sgshapiro CONTRIB: Add link_hash.sh to create symbolic links to the hash 151464562Sgshapiro of X.509 certificates. 151564562Sgshapiro CONTRIB: passwd-to-alias.pl: More protection from special characters; 151664562Sgshapiro treat special shells as root aliases; skip entries where the 151764562Sgshapiro GECOS full name and username match. From Ulrich Windl of the 151864562Sgshapiro Universitat Regensburg. 151964562Sgshapiro CONTRIB: qtool.pl: Add missing last_modified_time method and fix a 152064562Sgshapiro typo. Patch from Graeme Hewson of Oracle. 152164562Sgshapiro CONTRIB: re-mqueue.pl: Improve handling of a race between re-mqueue 152264562Sgshapiro and sendmail. Patch from Graeme Hewson of Oracle. 152364562Sgshapiro CONTRIB: re-mqueue.pl: Don't exit(0) at end so can be called as 152464562Sgshapiro subroutine Patch from Graeme Hewson of Oracle. 152564562Sgshapiro CONTRIB: Add movemail.pl (move old mail messages between queues by 152664562Sgshapiro calling re-mqueue.pl) and movemail.conf (configuration 152764562Sgshapiro script for movemail.pl). From Graeme Hewson of Oracle. 152864562Sgshapiro CONTRIB: Add cidrexpand (expands CIDR blocks as a preprocessor to 152964562Sgshapiro makemap). From Derek J. Balling of Yahoo,Inc. 153064562Sgshapiro DEVTOOLS: INSTALL_RAWMAN installation option mistakenly applied any 153164562Sgshapiro extension modifications (e.g., MAN8EXT) to the installation 153264562Sgshapiro target. Patch from James Ralston of Carnegie Mellon 153364562Sgshapiro University. 153464562Sgshapiro DEVTOOLS: Add support for SunOS 5.9. 153564562Sgshapiro DEVTOOLS: New option confLN contains the command used to create 153664562Sgshapiro links. 153764562Sgshapiro LIBSMDB: Berkeley DB 2.X and 3.X errors might be lost and not 153864562Sgshapiro reported. 153964562Sgshapiro MAIL.LOCAL: DG/UX portability. Problem noted by Tim Boyer of 154064562Sgshapiro Denman Tire Corporation. 154164562Sgshapiro MAIL.LOCAL: Prevent a possible DoS attack when compiled with 154264562Sgshapiro -DCONTENTLENGTH. Based on patch from 3APA3A@SECURITY.NNOV.RU. 154364562Sgshapiro MAILSTATS: Fix usage statement (-p and -o are optional). 154464562Sgshapiro MAKEMAP: Change man page layout as workaround for problem with nroff 154564562Sgshapiro and -man on Solaris 7. Patch from Larry Williamson. 154664562Sgshapiro RMAIL: AIX 4.3 has snprintf(). Problem noted by David Hayes of 154764562Sgshapiro Black Diamond Equipment, Limited. 154864562Sgshapiro RMAIL: Prevent a segmentation fault if the incoming message does not 154964562Sgshapiro have a From line. 155064562Sgshapiro VACATION: Read all of the headers before deciding whether or not 155164562Sgshapiro to respond instead of stopping after finding recipient. 155264562Sgshapiro Added Files: 155364562Sgshapiro cf/ostype/darwin.m4 155464562Sgshapiro contrib/cidrexpand 155564562Sgshapiro contrib/link_hash.sh 155664562Sgshapiro contrib/movemail.conf 155764562Sgshapiro contrib/movemail.pl 155864562Sgshapiro devtools/OS/SunOS.5.9 155964562Sgshapiro test/t_snprintf.c 156064562Sgshapiro 156164562Sgshapiro8.10.2/8.10.2 2000/06/07 156264562Sgshapiro SECURITY: Work around broken Linux setuid() implementation. 156364562Sgshapiro On Linux, a normal user process has the ability to subvert 156464562Sgshapiro the setuid() call such that it is impossible for a root 156564562Sgshapiro process to drop its privileges. Problem noted by Wojciech 156664562Sgshapiro Purczynski of elzabsoft.pl. 156764562Sgshapiro SECURITY: Add more vigilance around set*uid(), setgid(), setgroups(), 156864562Sgshapiro initgroups(), and chroot() calls. 156964562Sgshapiro Added Files: 157064562Sgshapiro test/t_setuid.c 157164562Sgshapiro 157264562Sgshapiro8.10.1/8.10.1 2000/04/06 157364562Sgshapiro SECURITY: Limit the choice of outgoing (client-side) SMTP 157464562Sgshapiro Authentication mechanisms to those specified in 157564562Sgshapiro AuthMechanisms to prevent information leakage. We do not 157664562Sgshapiro recommend use of PLAIN for outgoing mail as it sends the 157764562Sgshapiro password in clear text to possibly untrusted servers. See 157864562Sgshapiro cf/README's DefaultAuthInfo section for additional information. 157964562Sgshapiro Copy the ident argument for openlog() to avoid problems on some 158064562Sgshapiro OSs. Based on patch from Rob Bajorek from Webhelp.com. 158164562Sgshapiro Avoid bogus error message when reporting an alias line as too long. 158264562Sgshapiro Avoid bogus socket error message if sendmail.cf version level is 158364562Sgshapiro greater than sendmail binary supported version. Patch 158464562Sgshapiro from John Beck of Sun Microsystems. 158564562Sgshapiro Prevent a malformed ruleset (missing right hand side) from causing 158664562Sgshapiro a segmentation fault when using address test mode. Based on 158764562Sgshapiro patch from John Beck of Sun Microsystems. 158864562Sgshapiro Prevent memory leak from use of NIS maps and yp_match(3). Problem 158964562Sgshapiro noted by Gil Kloepfer of the University of Texas at Austin. 159064562Sgshapiro Fix queue file permission checks to allow for TrustedUser ownership. 159164562Sgshapiro Change logging of errors from the trust_auth ruleset to LogLevel 10 159264562Sgshapiro or higher. 159364562Sgshapiro Avoid simple password cracking attacks against SMTP AUTH by using 159464562Sgshapiro exponential delay after too many tries within one connection. 159564562Sgshapiro Encode an initial empty AUTH challenge as '=', not as empty string. 159664562Sgshapiro Avoid segmentation fault on EX_SOFTWARE internal error logs. 159764562Sgshapiro Problem noted by Allan E Johannesen of Worcester 159864562Sgshapiro Polytechnic Institute. 159964562Sgshapiro Ensure that a header check which resolves to $#discard actually 160064562Sgshapiro discards the message. 160164562Sgshapiro Emit missing value warnings for aliases with no right hand side 160264562Sgshapiro when newaliases is run instead of only when delivery is 160364562Sgshapiro attempted to the alias. 160464562Sgshapiro Remove AuthOptions missing value warning for consistency with other 160564562Sgshapiro flag options. 160664562Sgshapiro Portability: 160764562Sgshapiro SECURITY: Specify a run-time shared library search path for 160864562Sgshapiro AIX 4.X instead of using the dangerous AIX 4.X 160964562Sgshapiro linker semantics. AIX 4.X users should consult 161064562Sgshapiro sendmail/README for further information. Problem 161164562Sgshapiro noted by Valdis Kletnieks of Virginia Tech. 161264562Sgshapiro Avoid use of strerror(3) call. Problem noted by Charles 161364562Sgshapiro Levert of Ecole Polytechnique de Montreal. 161464562Sgshapiro DGUX requires -lsocket -lnsl and has a non-standard install 161564562Sgshapiro program. From Tim Boyer of Denman Tire Corporation. 161664562Sgshapiro HPUX 11.0 has a broken res_search() function. 161764562Sgshapiro Updates to devtools/OS/NeXT.3.X, NeXT.4.X, and NEXTSTEP.4.X 161864562Sgshapiro from J. P. McCann of E I A. 161964562Sgshapiro Digital UNIX/Compaq Tru64 5.0 now includes snprintf(3). 162064562Sgshapiro Problem noted by Michael Long of Info Avenue Internet 162164562Sgshapiro Services, LLC. 162264562Sgshapiro Modern (post-199912) OpenBSD versions include working 162364562Sgshapiro strlc{at,py}(3) functions. From Todd C. Miller of 162464562Sgshapiro Courtesan Consulting. 162564562Sgshapiro SINIX doesn't have random(3). From Gerald Rinske of 162664562Sgshapiro Siemens Business Services. 162764562Sgshapiro CONFIG: Change error message about unresolvable sender domain to 162864562Sgshapiro include the sender address. Proposed by Wolfgang Rupprecht 162964562Sgshapiro of WSRCC. 163064562Sgshapiro CONFIG: Fix usenet mailer calls. 163164562Sgshapiro CONFIG: If RELAY_MAILER_FLAGS is not defined, use SMTP_MAILER_FLAGS 163264562Sgshapiro to be backward compatible with 8.9. 163364562Sgshapiro CONFIG: Change handling of default case @domain for virtusertable 163464562Sgshapiro to allow for +*@domain to deal with +detail. 163564562Sgshapiro CONTRIB: Remove converting.sun.configs -- it is obsolete. 163664562Sgshapiro DEVTOOLS: confUBINMODE was being ignored. Fix from KITAZIMA, Tuneki 163764562Sgshapiro of NEC. 163864562Sgshapiro DEVTOOLS: Add to NCR platform list and include the architecture 163964562Sgshapiro (i486). From Tom J. Moore of NCR. 164064562Sgshapiro DEVTOOLS: SECURITY: Change method of linking with sendmail utility 164164562Sgshapiro libraries to work around the AIX 4.X and SunOS 4.X linker's 164264562Sgshapiro overloaded -L option. Problem noted by Valdis Kletnieks of 164364562Sgshapiro Virginia Tech. 164464562Sgshapiro DEVTOOLS: configure.sh was overriding the user's choice for 164564562Sgshapiro confNROFF. Problem noted by Glenn A. Malling of Syracuse 164664562Sgshapiro University. 164764562Sgshapiro DEVTOOLS: New variables conf_prog_LIB_POST and confBLDVARIANT added 164864562Sgshapiro for other internal projects but included in the open source 164964562Sgshapiro release. 165064562Sgshapiro LIBSMDB: Check for ".db" instead of simply "db" at the end of the 165164562Sgshapiro map name to determine whether or not to add the extension. 165264562Sgshapiro This fixes makemap when building the userdb file. Problem 165364562Sgshapiro noted by Andrew J Cole of the University of Leeds. 165464562Sgshapiro LIBSMDB: Allow a database to be opened for updating and created if 165564562Sgshapiro it doesn't already exist. Problem noted by Rand Wacker of 165664562Sgshapiro Sendmail. 165764562Sgshapiro LIBSMDB: If type is SMDB_TYPE_DEFAULT and both NEWDB and NDBM are 165864562Sgshapiro available, fall back to NDBM if NEWDB open fails. This 165964562Sgshapiro fixes praliases. Patch from John Beck of Sun Microsystems. 166064562Sgshapiro LIBSMUTIL: safefile()'s SFF_NOTEXCL check was being misinterpreted 166164562Sgshapiro as SFF_NOWRFILES. 166264562Sgshapiro OP.ME: Clarify some issues regarding mailer flags. Suggested by 166364562Sgshapiro Martin Mokrejs of The Charles University and Neil Rickert of 166464562Sgshapiro Northern Illinois University. 166564562Sgshapiro PRALIASES: Restore 8.9.X functionality of being able to search for 166664562Sgshapiro particular keys in a database by specifying the keys on the 166764562Sgshapiro command line. Man page updated accordingly. Patch from 166864562Sgshapiro John Beck of Sun Microsystems. 166964562Sgshapiro VACATION: SunOS 4.X portability from Charles Levert of Ecole 167064562Sgshapiro Polytechnique de Montreal. 167164562Sgshapiro VACATION: Fix -t option which is ignored but available for 167264562Sgshapiro compatibility with Sun's version, based on patch from 167364562Sgshapiro Volker Dobler of Infratest Burke. 167464562Sgshapiro Added Files: 167564562Sgshapiro devtools/M4/UNIX/smlib.m4 167664562Sgshapiro devtools/OS/OSF1.V5.0 167764562Sgshapiro Deleted Files: 167864562Sgshapiro contrib/converting.sun.configs 167964562Sgshapiro Deleted Directories (already done in 8.10.0 but not listed): 168064562Sgshapiro doc/intro 168164562Sgshapiro doc/usenix 168264562Sgshapiro doc/changes 168364562Sgshapiro 168464562Sgshapiro8.10.0/8.10.0 2000/03/01 168564562Sgshapiro ************************************************************* 168680785Sgshapiro * The engineering department at Sendmail, Inc. has suffered * 168780785Sgshapiro * the tragic loss of a key member of our engineering team. * 168880785Sgshapiro * Julie Van Bourg was the Vice President of Engineering * 168980785Sgshapiro * at Sendmail, Inc. during the development and deployment * 169080785Sgshapiro * of this release. It was her vision, dedication, and * 169180785Sgshapiro * support that has made this release a success. Julie died * 169280785Sgshapiro * on October 26, 1999 of cancer. We have lost a leader, a * 169380785Sgshapiro * coach, and a friend. * 169480785Sgshapiro * * 169580785Sgshapiro * This release is dedicated to her memory and to the joy, * 169680785Sgshapiro * strength, ideals, and hope that she brought to all of us. * 169780785Sgshapiro * Julie, we miss you! * 169864562Sgshapiro ************************************************************* 169964562Sgshapiro SECURITY: The safe file checks now back track through symbolic 170064562Sgshapiro links to make sure the files can't be compromised due 170164562Sgshapiro to poor permissions on the parent directories of the 170264562Sgshapiro symbolic link target. 170364562Sgshapiro SECURITY: Only root, TrustedUser, and users in class t can rebuild 170464562Sgshapiro the alias map. Problem noted by Michal Zalewski of the 170564562Sgshapiro "Internet for Schools" project (IdS). 170664562Sgshapiro SECURITY: There is a potential for a denial of service attack if 170764562Sgshapiro the AutoRebuildAliases option is set as a user can kill the 170864562Sgshapiro sendmail process while it is rebuilding the aliases file 170964562Sgshapiro (leaving it in an inconsistent state). This option and 171064562Sgshapiro its use is deprecated and will be removed from a future 171164562Sgshapiro version of sendmail. 171264562Sgshapiro SECURITY: Make sure all file descriptors (besides stdin, stdout, and 171364562Sgshapiro stderr) are closed before restarting sendmail. Problem noted 171464562Sgshapiro by Michal Zalewski of the "Internet for Schools" project 171564562Sgshapiro (IdS). 171664562Sgshapiro Begin using /etc/mail/ for sendmail related files. This affects 171764562Sgshapiro a large number of files. See cf/README for more details. 171864562Sgshapiro The directory structure of the distribution has changed slightly 171964562Sgshapiro for easier code sharing among the programs. 172064562Sgshapiro Support SMTP AUTH (see RFC 2554). New macros for this purpose 172164562Sgshapiro are ${auth_authen}, ${auth_type}, and ${auth_author} 172264562Sgshapiro which hold the client's authentication credentials, 172364562Sgshapiro the mechanism used for authentication, and the 172464562Sgshapiro authorization identity (i.e., the AUTH= parameter if 172564562Sgshapiro supplied). Based on code contributed by Tim Martin of CMU. 172664562Sgshapiro On systems which use the Torek stdio library (all of the BSD 172764562Sgshapiro distributions), use memory-buffered files to reduce 172864562Sgshapiro file system overhead by not creating temporary files on 172964562Sgshapiro disk. Contributed by Exactis.com, Inc. 173064562Sgshapiro New option DataFileBufferSize to control the maximum size of a 173164562Sgshapiro memory-buffered data (df) file before a disk-based file is 173264562Sgshapiro used. Contributed by Exactis.com, Inc. 173364562Sgshapiro New option XscriptFileBufferSize to control the maximum size of a 173464562Sgshapiro memory-buffered transcript (xf) file before a disk-based 173564562Sgshapiro file is used. Contributed by Exactis.com, Inc. 173664562Sgshapiro sendmail implements RFC 2476 (Message Submission), e.g., it can 173764562Sgshapiro now listen on several different ports. Use: 173864562Sgshapiro O DaemonPortOptions=Name=MSA, Port=587, M=E 173964562Sgshapiro to run a Message Submission Agent (MSA); this is turned 174064562Sgshapiro on by default in m4-generated .cf files; it can be turned 174164562Sgshapiro off with FEATURE(`no_default_msa'). 174264562Sgshapiro The 'XUSR' SMTP command is deprecated. Mail user agents should 174364562Sgshapiro begin using RFC 2476 Message Submission for initial user 174464562Sgshapiro message submission. XUSR may disappear from a future release. 174564562Sgshapiro The new '-G' (relay (gateway) submission) command line option 174664562Sgshapiro indicates that the message being submitted from the command 174764562Sgshapiro line is for relaying, not initial submission. This means 174864562Sgshapiro the message will be rejected if the addresses are not fully 174964562Sgshapiro qualified and no canonicalization will be done. Future 175064562Sgshapiro releases may even reject improperly formed messages. 175164562Sgshapiro The '-U' (initial user submission) command line option is 175264562Sgshapiro deprecated and may be removed from a future release. 175364562Sgshapiro Mail user agents should begin using '-G' to indicate that 175464562Sgshapiro this is a relay submission (the inverse of -U). 175564562Sgshapiro The next release of sendmail will assume that any message submitted 175664562Sgshapiro from the command line is an initial user submission and act 175764562Sgshapiro accordingly. 175864562Sgshapiro If sendmail doesn't have enough privileges to run a .forward 175964562Sgshapiro program or deliver to file as the owner of that file, the 176064562Sgshapiro address is marked as unsafe. This means if RunAsUser is 176164562Sgshapiro set, users won't be able to use programs or delivery to 176264562Sgshapiro files in their .forward files. Administrators can override 176364562Sgshapiro this by setting the DontBlameSendmail option to the new 176464562Sgshapiro setting NonRootSafeAddr. 176564562Sgshapiro Allow group or world writable directories if the sticky bit is set 176664562Sgshapiro on the directory and DontBlameSendmail is set to 176764562Sgshapiro TrustStickyBit. Based on patch from Chris Metcalf of 176864562Sgshapiro InCert Software. 176964562Sgshapiro Prevent logging of unsafe directory paths for non-existent forward 177064562Sgshapiro files if the new DontWarnForwardFileInUnsafeDirPath bit is 177164562Sgshapiro set in the DontBlameSendmail option. Requested by many. 177264562Sgshapiro New Timeout.control option to limit the total time spent satisfying 177364562Sgshapiro a control socket request. 177464562Sgshapiro New Timeout.resolver options for controlling BIND resolver 177564562Sgshapiro settings: 177664562Sgshapiro Timeout.resolver.retrans 177764562Sgshapiro Sets the resolver's retransmission time interval (in 177864562Sgshapiro seconds). Sets both Timeout.resolver.retrans.first 177964562Sgshapiro and Timeout.resolver.retrans.normal. 178064562Sgshapiro Timeout.resolver.retrans.first 178164562Sgshapiro Sets the resolver's retransmission time interval (in 178264562Sgshapiro seconds) for the first attempt to deliver a message. 178364562Sgshapiro Timeout.resolver.retrans.normal 178464562Sgshapiro Sets the resolver's retransmission time interval (in 178564562Sgshapiro seconds) for all resolver lookups except the first 178664562Sgshapiro delivery attempt. 178764562Sgshapiro Timeout.resolver.retry 178864562Sgshapiro Sets the number of times to retransmit a resolver 178964562Sgshapiro query. Sets both Timeout.resolver.retry.first 179064562Sgshapiro and Timeout.resolver.retry.normal. 179164562Sgshapiro Timeout.resolver.retry.first 179264562Sgshapiro Sets the number of times to retransmit a resolver 179364562Sgshapiro query for the first attempt to deliver a message. 179464562Sgshapiro Timeout.resolver.retry.normal 179564562Sgshapiro Sets the number of times to retransmit a resolver 179664562Sgshapiro query for all resolver lookups except the first 179764562Sgshapiro delivery attempt. 179864562Sgshapiro Contributed by Exactis.com, Inc. 179964562Sgshapiro Support multiple queue directories. To use multiple queues, supply 180064562Sgshapiro a QueueDirectory option value ending with an asterisk. For 180164562Sgshapiro example, /var/spool/mqueue/q* will use all of the 180264562Sgshapiro directories or symbolic links to directories beginning with 180364562Sgshapiro 'q' in /var/spool/mqueue as queue directories. Keep in 180464562Sgshapiro mind, the queue directory structure should not be changed 180564562Sgshapiro while sendmail is running. Queue runs create a separate 180664562Sgshapiro process for running each queue unless the verbose flag is 180764562Sgshapiro given on a non-daemon queue run. New items are randomly 180864562Sgshapiro assigned to a queue. Contributed by Exactis.com, Inc. 180964562Sgshapiro Support different directories for qf, df, and xf queue files; if 181064562Sgshapiro subdirectories or symbolic links to directories of those names 181164562Sgshapiro exist in the queue directories, they are used for the 181264562Sgshapiro corresponding queue files. Keep in mind, the queue 181364562Sgshapiro directory structure should not be changed while sendmail is 181464562Sgshapiro running. Proposed by Mathias Koerber of Singapore 181564562Sgshapiro Telecommunications Ltd. 181664562Sgshapiro New queue file naming system which uses a filename guaranteed to be 181764562Sgshapiro unique for 60 years. This allows queue IDs to be assigned 181864562Sgshapiro without fancy file system locking. Queued items can be 181964562Sgshapiro moved between queues easily. Contributed by Exactis.com, 182064562Sgshapiro Inc. 182164562Sgshapiro Messages which are undeliverable due to temporary address failures 182264562Sgshapiro (e.g., DNS failure) will now go to the FallBackMX host, if 182364562Sgshapiro set. Contributed by Exactis.com, Inc. 182464562Sgshapiro New command line option '-L tag' which sets the identifier used for 182564562Sgshapiro syslog. Contributed by Exactis.com, Inc. 182664562Sgshapiro QueueSortOrder=Filename will sort the queue by filename. This 182764562Sgshapiro avoids opening and reading each queue file when preparing 182864562Sgshapiro to run the queue. Contributed by Exactis.com, Inc. 182964562Sgshapiro Shared memory counters and microtimers functionality has been 183064562Sgshapiro donated by Exactis.com, Inc. 183164562Sgshapiro The SCCS ID tags have been replaced with RCS ID tags. 183264562Sgshapiro Allow trusted users (those on a T line or in $=t) to set the 183364562Sgshapiro QueueDirectory (Q) option without an X-Authentication-Warning: 183464562Sgshapiro being added. Suggested by Michael K. Sanders. 183564562Sgshapiro IPv6 support based on patches from John Kennedy of Cal State 183664562Sgshapiro University, Chico, Motonori Nakamura of Kyoto University, 183764562Sgshapiro and John Beck of Sun Microsystems. 183864562Sgshapiro In low-disk space situations, where sendmail would previously refuse 183964562Sgshapiro connections, still accept them, but only allow ETRN commands. 184064562Sgshapiro Suggested by Mathias Koerber of Singapore Telecommunications 184164562Sgshapiro Ltd. 184264562Sgshapiro The [IPC] builtin mailer now allows delivery to a UNIX domain socket 184364562Sgshapiro on systems which support them. This can be used with LMTP 184464562Sgshapiro local delivery agents which listen on a named socket. An 184564562Sgshapiro example mailer might be: 184664562Sgshapiro Mexecmail, P=[IPC], F=lsDFMmnqSXzA5@/:|, E=\r\n, 184764562Sgshapiro S=10, R=20/40, T=DNS/RFC822/X-Unix, 184864562Sgshapiro A=FILE /var/run/lmtpd 184964562Sgshapiro Code contributed by Lyndon Nerenberg of Messaging Direct. 185064562Sgshapiro The [TCP] builtin mailer name is now deprecated. Use [IPC] 185164562Sgshapiro instead. 185264562Sgshapiro The first mailer argument in the [IPC] mailer is now checked for a 185364562Sgshapiro legitimate value. Possible values are TCP (for TCP/IP 185464562Sgshapiro connections), IPC (which will be deprecated in a future 185564562Sgshapiro version), and FILE (for UNIX domain socket delivery). 185664562Sgshapiro PrivacyOptions=goaway no longer includes the noetrn and the noreceipts 185764562Sgshapiro flags. 185864562Sgshapiro PrivacyOptions=nobodyreturn instructs sendmail not to include the 185964562Sgshapiro body of the original message on delivery status 186064562Sgshapiro notifications. 186164562Sgshapiro Don't announce DSN if PrivacyOptions=noreceipts is set. Problem noted 186264562Sgshapiro by Dan Bernstein, fix from Robert Harker of Harker Systems. 186364562Sgshapiro Accept the SMTP RSET command even when rejecting commands due to TCP 186464562Sgshapiro Wrappers or the check_relay ruleset. Problem noted by 186564562Sgshapiro Steve Schweinhart of America Online. 186664562Sgshapiro Warn if OperatorChars is set multiple times. OperatorChars should 186764562Sgshapiro not be set after rulesets are defined. Suggested by 186864562Sgshapiro Mitchell Blank Jr of Exec-PC. 186964562Sgshapiro Do not report temporary failure on delivery to files. In 187064562Sgshapiro interactive delivery mode, this would result in two SMTP 187164562Sgshapiro responses after the DATA command. Problem noted by 187264562Sgshapiro Nik Conwell of Boston University. 187364562Sgshapiro Check file close when mailing to files. Problem noted by Nik 187464562Sgshapiro Conwell of Boston University. 187564562Sgshapiro Avoid a segmentation fault when using the LDAP map. Patch from 187664562Sgshapiro Curtis W. Hillegas of Princeton University. 187764562Sgshapiro Always bind to the LDAP server regardless of whether you are using 187864562Sgshapiro ldap_open() or ldap_init(). Fix from Raj Kunjithapadam of 187964562Sgshapiro @Home Network. 188064562Sgshapiro New ruleset trust_auth to determine whether a given AUTH= 188164562Sgshapiro parameter of the MAIL command should be trusted. See SMTP 188264562Sgshapiro AUTH, cf/README, and doc/op/op.ps. 188364562Sgshapiro Allow new named config file rules check_vrfy, check_expn, and 188464562Sgshapiro check_etrn for VRFY, EXPN, and ETRN commands, respectively, 188564562Sgshapiro similar to check_rcpt etc. 188664562Sgshapiro Introduce new macros ${rcpt_mailer}, ${rcpt_host}, ${rcpt_addr}, 188764562Sgshapiro ${mail_mailer}, ${mail_host}, ${mail_addr} that hold 188864562Sgshapiro the results of parsing the RCPT and MAIL arguments, i.e. 188964562Sgshapiro the resolved triplet from $#mailer $@host $:addr. 189064562Sgshapiro From Kari Hurtta of the Finnish Meteorological Institute. 189164562Sgshapiro New macro ${client_resolve} which holds the result of the resolve 189264562Sgshapiro call for ${client_name}: OK, FAIL, FORGED, TEMP. Proposed 189364562Sgshapiro by Kari Hurtta of the Finnish Meteorological Institute. 189464562Sgshapiro New macros ${dsn_notify}, ${dsn_envid}, and ${dsn_ret} that hold 189564562Sgshapiro the corresponding DSN parameter values. Proposed by 189664562Sgshapiro Mathias Herberts. 189764562Sgshapiro New macro ${msg_size} which holds the value of the SIZE= parameter, 189864562Sgshapiro i.e., usually the size of the message (in an ESMTP dialogue), 189964562Sgshapiro before the message has been collected, thereafter it holds 190064562Sgshapiro the message size as computed by sendmail (and can be used 190164562Sgshapiro in check_compat). 190264562Sgshapiro The macro ${deliveryMode} now specifies the current delivery mode 190364562Sgshapiro sendmail is using instead of the value of the DeliveryMode 190464562Sgshapiro option. 190564562Sgshapiro New macro ${ntries} holds the number of delivery attempts. 190664562Sgshapiro Drop explicit From: if same as what would be generated only if it is 190764562Sgshapiro a local address. From Motonori Nakamura of Kyoto University. 190864562Sgshapiro Write pid to file also if sendmail only processes the queue. 190964562Sgshapiro Proposed by Roy J. Mongiovi of Georgia Tech. 191064562Sgshapiro Log "low on disk space" only when necessary. 191164562Sgshapiro New macro ${load_avg} can be used to check the current load average. 191264562Sgshapiro Suggested by Scott Gifford of The Internet Ramp. 191364562Sgshapiro Return-Receipt-To: header implies DSN request if option RrtImpliesDsn 191464562Sgshapiro is set. 191564562Sgshapiro Flag -S for maps to specify the character which is substituted 191664562Sgshapiro for spaces (instead of the default given by O BlankSub). 191764562Sgshapiro Flag -D for maps: perform no lookup in deferred delivery mode. 191864562Sgshapiro This flag is set by default for the host map. Based on a 191964562Sgshapiro proposal from Ian MacPhedran of the University of Saskatchewan. 192064562Sgshapiro Open maps only on demand, not at startup. 192164562Sgshapiro Log warning about unsupported IP address families. 192264562Sgshapiro New option MaxHeadersLength allows to specify a maximum length 192364562Sgshapiro of the sum of all headers. This can be used to prevent 192464562Sgshapiro a denial-of-service attack. 192564562Sgshapiro New option MaxMimeHeaderLength which limits the size of MIME 192664562Sgshapiro headers and parameters within those headers. This option 192764562Sgshapiro is intended to protect mail user agents from buffer 192864562Sgshapiro overflow attacks. 192964562Sgshapiro Added option MaxAliasRecursion to specify the maximum depth of 193064562Sgshapiro alias recursion. 193164562Sgshapiro New flag F=6 for mailers to strip headers to seven bit. 193264562Sgshapiro Map type syslog to log the key via syslogd. 193364562Sgshapiro Entries in the alias file can be continued by putting a backslash 193464562Sgshapiro directly before the newline. 193564562Sgshapiro New option DeadLetterDrop to define the location of the system-wide 193664562Sgshapiro dead.letter file, formerly hardcoded to 193764562Sgshapiro /usr/tmp/dead.letter. If this option is not set (the 193864562Sgshapiro default), sendmail will not attempt to save to a 193964562Sgshapiro system-wide dead.letter file if it can not bounce the mail 194064562Sgshapiro to the user nor postmaster. Instead, it will rename the qf 194164562Sgshapiro file as it has in the past when the dead.letter file 194264562Sgshapiro could not be opened. 194364562Sgshapiro New option PidFile to define the location of the pid file. The 194464562Sgshapiro value of this option is macro expanded. 194564562Sgshapiro New option ProcessTitlePrefix specifies a prefix string for the 194664562Sgshapiro process title shown in 'ps' listings. 194764562Sgshapiro New macros for use with the PidFile and ProcessTitlePrefix options 194864562Sgshapiro (along with the already existing macros): 194964562Sgshapiro ${daemon_info} Daemon information, e.g. 195064562Sgshapiro SMTP+queueing@00:30:00 195164562Sgshapiro ${daemon_addr} Daemon address, e.g., 0.0.0.0 195264562Sgshapiro ${daemon_family} Daemon family, e.g., inet, inet6, etc. 195364562Sgshapiro ${daemon_name} Daemon name, e.g., MSA. 195464562Sgshapiro ${daemon_port} Daemon port, e.g., 25 195564562Sgshapiro ${queue_interval} Queue run interval, e.g., 00:30:00 195664562Sgshapiro New macros especially for virtual hosting: 195764562Sgshapiro ${if_name} hostname of interface of incoming connection. 195864562Sgshapiro ${if_addr} address of interface of incoming connection. 195964562Sgshapiro The latter is only set if the interface does not belong to the 196064562Sgshapiro loopback net. 196164562Sgshapiro If a message being accepted via a method other than SMTP and 196264562Sgshapiro would be rejected by a header check, do not send the message. 196364562Sgshapiro Suggested by Phil Homewood of Mincom Pty Ltd. 196464562Sgshapiro Don't strip comments for header checks if $>+ is used instead of $>. 196564562Sgshapiro Provide header value as quoted string in the macro 196664562Sgshapiro ${currHeader} (possibly truncated to MAXNAME). Suggested by 196764562Sgshapiro Jan Krueger of Unix-AG of University of Hannover. 196864562Sgshapiro The length of the header value is stored in ${hdrlen}. 196964562Sgshapiro H*: allows to specify a default ruleset for header checks. This 197064562Sgshapiro ruleset will only be called if the individual header does 197164562Sgshapiro not have its own ruleset assigned. Suggested by Jan 197264562Sgshapiro Krueger of Unix-AG of University of Hannover. 197364562Sgshapiro The name of the header field stored in ${hdr_name}. 197464562Sgshapiro Comments (i.e., text within parentheses) in rulesets are not 197564562Sgshapiro removed if the config file version is greater than or equal 197664562Sgshapiro to 9. For example, "R$+ ( 1 ) $@ 1" matches the 197764562Sgshapiro input "token (1)" but does not match "token". 197864562Sgshapiro Avoid removing the Content-Transfer-Encoding MIME header on 197964562Sgshapiro MIME messages. Problem noted by Sigurbjorn B. Larusson of 198064562Sgshapiro Multimedia Consumer Services. Fix from Per Hedeland of 198164562Sgshapiro Ericsson. 198264562Sgshapiro Avoid duplicate Content-Transfer-Encoding MIME header on 198364562Sgshapiro messages with 8-bit text in headers. Problem noted by 198464562Sgshapiro Per Steinar Iversen of Oslo College. Fix from Per Hedeland 198564562Sgshapiro of Ericsson. 198664562Sgshapiro Avoid keeping maps locked longer than necessary when re-opening a 198764562Sgshapiro modified database map file. Problem noted by Chris Adams 198864562Sgshapiro of Renaissance Internet Services. 198964562Sgshapiro Resolving to the $#error mailer with a temporary failure code (e.g., 199064562Sgshapiro $#error $@ tempfail $: "400 Temporary failure") will now 199164562Sgshapiro queue up the message instead of bouncing it. 199264562Sgshapiro Be more liberal in acceptable responses to an SMTP RSET command as 199364562Sgshapiro standard does not provide any indication of what to do when 199464562Sgshapiro something other than 250 is received. Based on a patch 199564562Sgshapiro from Steve Schweinhart of America Online. 199664562Sgshapiro New option TrustedUser allows to specify a user who can own 199764562Sgshapiro important files instead of root. This requires HASFCHOWN. 199864562Sgshapiro Fix USERDB conditional so compiling with NEWDB or HESIOD and 199964562Sgshapiro setting USERDB=0 works. Fix from Jorg Zanger of Schock. 200064562Sgshapiro Fix another instance (similar to one in 8.9.3) of a network failure 200164562Sgshapiro being mis-logged as "Illegal Seek" instead of whatever 200264562Sgshapiro really went wrong. From John Beck of Sun Microsystems. 200364562Sgshapiro $? tests also whether the macro is non-null. 200464562Sgshapiro Print an error message if a mailer definition contains an invalid 200564562Sgshapiro equate name. 200664562Sgshapiro New mailer equate /= to specify a directory to chroot() into before 200764562Sgshapiro executing the mailer program. Suggested by Igor Vinokurov. 200864562Sgshapiro New mailer equate W= to specify the maximum time to wait for the 200964562Sgshapiro mailer to return after sending all data to it. 201064562Sgshapiro Only free memory from the process list when adding a new process 201164562Sgshapiro into a previously filled slot. Previously, the memory was 201264562Sgshapiro freed at removal time. Since removal can happen in a 201364562Sgshapiro signal handler, this may leave the memory map in an 201464562Sgshapiro inconsistent state. Problem noted by Jeff A. Earickson and 201564562Sgshapiro David Cooley of Colby College. 201664562Sgshapiro When using the UserDB @hostname catch-all, do not try to lookup 201764562Sgshapiro local users in the passwd file. The UserDB code has 201864562Sgshapiro already decided the message will be passed to another host 201964562Sgshapiro for processing. Fix from Tony Landells of Burdett 202064562Sgshapiro Buckeridge Young Limited. 202164562Sgshapiro Support LDAP authorization via either a file containing the 202264562Sgshapiro password or Kerberos V4 using the new map options 202364562Sgshapiro '-ddistinguished_name', '-Mmethod', and '-Pfilename'. The 202464562Sgshapiro distinguished_name is who to login as. The method can be 202564562Sgshapiro one of LDAP_AUTH_NONE, LDAP_AUTH_SIMPLE, or 202664562Sgshapiro LDAP_AUTH_KRBV4. The filename is the file containing the 202764562Sgshapiro secret key for LDAP_AUTH_SIMPLE or the name of the Kerberos 202864562Sgshapiro ticket file for LDAP_AUTH_KRBV4. Patch from Booker Bense 202964562Sgshapiro of Stanford University. 203064562Sgshapiro The ldapx map has been renamed to ldap. The use of ldapx is 203164562Sgshapiro deprecated and will be removed in a future version. 203264562Sgshapiro If the result of an LDAP search returns a multi-valued attribute 203364562Sgshapiro and the map has the column delimiter set, it turns that 203464562Sgshapiro response into a delimiter separated string. The LDAP map 203564562Sgshapiro will traverse multiple entries as well. LDAP alias maps 203664562Sgshapiro automatically set the column delimiter to the comma. 203764562Sgshapiro Based on patch from Booker Bense of Stanford University and 203864562Sgshapiro idea from Philip A. Prindeville of Mirapoint, Inc. 203964562Sgshapiro Support return of multiple values for a single LDAP lookup. The 204064562Sgshapiro values to be returned should be in a comma separated string. 204164562Sgshapiro For example, `-v "email,emailother"'. Patch from 204264562Sgshapiro Curtis W. Hillegas of Princeton University. 204364562Sgshapiro Allow the use of LDAP for alias maps. 204464562Sgshapiro If no LDAP attributes are specified in an LDAP map declaration, all 204564562Sgshapiro attributes found in the match will be returned. 204664562Sgshapiro Prevent commas in quoted strings in the AliasFile value from 204764562Sgshapiro breaking up a single entry into multiple entries. This is 204864562Sgshapiro needed for LDAP alias file specifications to allow for 204964562Sgshapiro comma separated key and value strings. 205064562Sgshapiro Keep connections to LDAP server open instead of opening and closing 205164562Sgshapiro for each lookup. To reduce overhead, sendmail will cache 205264562Sgshapiro connections such that multiple maps which use the same 205364562Sgshapiro host, port, bind DN, and authentication will only result in 205464562Sgshapiro a single connection to that host. 205564562Sgshapiro Put timeout in the proper place for USE_LDAP_INIT. 205664562Sgshapiro Be more careful about checking for errors and freeing memory on 205764562Sgshapiro LDAP lookups. 205864562Sgshapiro Use asynchronous LDAP searches to save memory and network 205964562Sgshapiro resources. 206064562Sgshapiro Do not copy LDAP query results if the map's match only flag is set. 206164562Sgshapiro Increase portability to the Netscape LDAP libraries. 206264562Sgshapiro Change the parsing of the LDAP filter specification. '%s' is still 206364562Sgshapiro replaced with the literal contents of the map lookup key -- 206464562Sgshapiro note that this means a lookup can be done using the LDAP 206564562Sgshapiro special characters. The new '%0' token can be used instead 206664562Sgshapiro of '%s' to encode the key buffer according to RFC 2254. 206764562Sgshapiro For example, if the LDAP map specification contains '-k 206864562Sgshapiro "(user=%s)"' and a lookup is done on "*", this would be 206964562Sgshapiro equivalent to '-k "(user=*)"' -- matching ANY record with a 207064562Sgshapiro user attribute. Instead, if the LDAP map specification 207164562Sgshapiro contains '-k "(user=%0)"' and a lookup is done on "*", this 207264562Sgshapiro would be equivalent to '-k "(user=\2A)"' -- matching a user 207364562Sgshapiro with the name "*". 207464562Sgshapiro New LDAP map flags: "-1" requires a single match to be returned, if 207564562Sgshapiro more than one is returned, it is equivalent to no records 207664562Sgshapiro being found; "-r never|always|search|find" sets the LDAP 207764562Sgshapiro alias dereference option; "-Z size" limits the number of 207864562Sgshapiro matches to return. 207964562Sgshapiro New option LDAPDefaultSpec allows a default map specification for 208064562Sgshapiro LDAP maps. The value should only contain LDAP specific 208164562Sgshapiro settings such as "-h host -p port -d bindDN", etc. The 208264562Sgshapiro settings will be used for all LDAP maps unless they are 208364562Sgshapiro specified in the individual map specification ('K' 208464562Sgshapiro command). This option should be set before any LDAP maps 208564562Sgshapiro are defined. 208664562Sgshapiro Prevent an NDBM alias file opening loop when the NDBM open 208764562Sgshapiro continually fails. Fix from Roy J. Mongiovi of Georgia 208864562Sgshapiro Tech. 208964562Sgshapiro Reduce memory utilization for smaller symbol table entries. In 209064562Sgshapiro particular, class entries get much smaller, which can be 209164562Sgshapiro important if you have large classes. 209264562Sgshapiro On network-related temporary failures, record the hostname which 209364562Sgshapiro gave error in the queued status message. Requested by 209464562Sgshapiro Ulrich Windl of the Universitat Regensburg. 209564562Sgshapiro Add new F=% mailer flag to allow for a store and forward 209664562Sgshapiro configuration. Mailers which have this flag will not attempt 209771345Sgshapiro delivery on initial receipt of a message or on queue runs 209864562Sgshapiro unless the queued message is selected using one of the 209964562Sgshapiro -qI/-qR/-qS queue run modifiers or an ETRN request. Code 210064562Sgshapiro provided by Philip Guenther of Gustavus Adolphus College. 210164562Sgshapiro New option ControlSocketName which, when set, creates a daemon 210264562Sgshapiro control socket. This socket allows an external program to 210364562Sgshapiro control and query status from the running sendmail daemon 210464562Sgshapiro via a named socket, similar to the ctlinnd interface to the 210564562Sgshapiro INN news server. Access to this interface is controlled by 210664562Sgshapiro the UNIX file permissions on the named socket on most UNIX 210764562Sgshapiro systems (see sendmail/README for more information). An 210864562Sgshapiro example control program is provided as contrib/smcontrol.pl. 210964562Sgshapiro Change the default values of QueueLA from 8 to (8 * numproc) and 211064562Sgshapiro RefuseLA from 12 to (12 * numproc) where numproc is the 211164562Sgshapiro number of processors online on the system (if that can be 211264562Sgshapiro determined). For single processor machines, this change 211364562Sgshapiro has no effect. 211464562Sgshapiro Don't return body of message to postmaster on "Too many hops" bounces. 211564562Sgshapiro Based on fix from Motonori Nakamura of Kyoto University. 211664562Sgshapiro Give more detailed DSN descriptions for some cases. Patch from 211764562Sgshapiro Motonori Nakamura of Kyoto University. 211864562Sgshapiro Logging of alias, forward file, and UserDB expansion now happens 211964562Sgshapiro at LogLevel 11 or higher instead of 10 or higher. 212064562Sgshapiro Logging of an envelope's complete delivery (the "done" message) now 212164562Sgshapiro happens at LogLevel 10 or higher instead of 11 or higher. 212264562Sgshapiro Logging of TCP/IP or UNIX standard input connections now happens at 212364562Sgshapiro LogLevel 10 or higher. Previously, only TCP/IP connections 212464562Sgshapiro were logged, and on at LogLevel 12 or higher. Setting 212564562Sgshapiro LogLevel to 10 will now assist users in tracking frequent 212664562Sgshapiro connection-based denial of service attacks. 212764562Sgshapiro Log basic information about authenticated connections at LogLevel 212864562Sgshapiro 10 or higher. 212964562Sgshapiro Log SMTP Authentication mechanism and author when logging the sender 213064562Sgshapiro information (from= syslog line). 213164562Sgshapiro Log the DSN code for each recipient if one is available as a new 213264562Sgshapiro equate (dsn=). 213364562Sgshapiro Macro expand PostmasterCopy and DoubleBounceAddress options. 213464562Sgshapiro New "ph" map for performing ph queries in rulesets. More 213564562Sgshapiro information is available at 213671345Sgshapiro http://www-dev.cso.uiuc.edu/sendmail/. Contributed by Mark 213771345Sgshapiro Roth of the University of Illinois at Urbana-Champaign. 213864562Sgshapiro Detect temporary lookup failures in the host map if looking up a 213964562Sgshapiro bracketed IP address. Problem noted by Kari Hurtta of the 214064562Sgshapiro Finnish Meteorological Institute. 214164562Sgshapiro Do not report a Remote-MTA on local deliveries. Problem noted by 214264562Sgshapiro Kari Hurtta of the Finnish Meteorological Institute. 214364562Sgshapiro When a forward file points to an alias which runs a program, run 214464562Sgshapiro the program as the default user and the default group, not 214564562Sgshapiro the forward file user. This change also assures the 214664562Sgshapiro :include: directives in aliases are also processed using 214764562Sgshapiro the default user and group. Problem noted by Sergiu 214864562Sgshapiro Popovici of DNT Romania. 214964562Sgshapiro Prevent attempts to save a dead.letter file for a user with 215064562Sgshapiro no home directory (/no/such/directory). Problem noted by 215164562Sgshapiro Michael Brown of Finnigan FT/MS. 215264562Sgshapiro Include message delay and number of tries when logging that a 215364562Sgshapiro message has been completely delivered (LogLevel of 10 or 215464562Sgshapiro above). Suggested by Nick Hilliard of Ireland Online. 215564562Sgshapiro Log the sender of a message even if none of the recipients were 215664562Sgshapiro accepted. If some of the recipients were rejected, it is 215764562Sgshapiro helpful to know the sender of the message. 215864562Sgshapiro Check the root directory (/) when checking a path for safety. 215964562Sgshapiro Problem noted by John Beck of Sun Microsystems. 216064562Sgshapiro Prevent multiple responses to the DATA command if DeliveryMode is 216164562Sgshapiro interactive and delivering to an alias which resolves to 216264562Sgshapiro multiple files. 216364562Sgshapiro Macros in the helpfile are expanded if the helpfile version is 2 or 216464562Sgshapiro greater (see below); the help function doesn't print the 216564562Sgshapiro version of sendmail any longer, instead it is placed in 216664562Sgshapiro the helpfile ($v). Suggested by Chuck Foster of UUNET 216764562Sgshapiro PIPEX. Additionally, comment lines (starting with #) are 216864562Sgshapiro skipped and a version line (#vers) is introduced. The 216964562Sgshapiro helpfile version for 8.10.0 is 2, if no version or an older 217064562Sgshapiro version is found, a warning is logged. The '#vers' 217164562Sgshapiro directive should be placed at the top of the help file. 217264562Sgshapiro Use fsync() when delivering to a file to guarantee the delivery to 217364562Sgshapiro disk succeeded. Suggested by Nick Christenson. 217464562Sgshapiro If delivery to a file is unsuccessful, truncate the file back to its 217564562Sgshapiro length before the attempt. 217664562Sgshapiro If a forward points to a filename for delivery, change to the 217764562Sgshapiro user's uid before checking permissions on the file. This 217864562Sgshapiro allows delivery to files on NFS mounted directories where 217964562Sgshapiro root is remapped to nobody. Problem noted by Harald 218064562Sgshapiro Daeubler of Universitaet Ulm. 218164562Sgshapiro purgestat and sendmail -bH purge only expired (Timeout.hoststatus) 218264562Sgshapiro host status files, not all files. 218364562Sgshapiro Any macros stored in the class $={persistentMacros} will be saved 218464562Sgshapiro in the queue file for the message and set when delivery 218564562Sgshapiro is attempted on the queued item. Suggested by Kyle Jones of 218664562Sgshapiro Wonderworks Inc. 218764562Sgshapiro Add support for storing information between rulesets using the new 218864562Sgshapiro macro map class. This can be used to store information 218964562Sgshapiro between queue runs as well using $={persistentMacros}. 219064562Sgshapiro Based on an idea from Jan Krueger of Unix-AG of University 219164562Sgshapiro of Hannover. 219264562Sgshapiro New map class arith to allow for computations in rules. The 219364562Sgshapiro operation (+, -, *, /, l (for less than), and =) is given 219464562Sgshapiro as key. The two operands are specified as arguments; the 219564562Sgshapiro lookup returns the result of the computation. For example, 219664562Sgshapiro "$(arith l $@ 4 $@ 2 $)" will return "FALSE" and 219764562Sgshapiro "$(arith + $@ 4 $@ 2 $)" will return "6". 219864562Sgshapiro Add new syntax for header declarations which decide whether to 219964562Sgshapiro include the header based on a macro rather than a mailer 220064562Sgshapiro flag: 220164562Sgshapiro H?${MyMacro}?X-My-Header: ${MyMacro} 220264562Sgshapiro This should be used along with $={persistentMacros}. 220364562Sgshapiro It can be used for adding headers to a message based on 220464562Sgshapiro the results of check_* and header check rulesets. 220564562Sgshapiro Allow new named config file rule check_eoh which is called after 220664562Sgshapiro all of the headers have been collected. The input to the 220764562Sgshapiro ruleset the number of headers and the size of all of the 220864562Sgshapiro headers in bytes separated by $|. This ruleset along with 220964562Sgshapiro the macro storage map can be used to correlate information 221064562Sgshapiro gathered between headers and to check for missing headers. 221164562Sgshapiro See cf/README or doc/op/op.ps for an example. 221264562Sgshapiro Change the default for the MeToo option to True to correspond 221364562Sgshapiro to the clarification in the DRUMS SMTP Update spec. This 221464562Sgshapiro option is deprecated and will be removed from a future 221564562Sgshapiro version. 221664562Sgshapiro Change the sendmail binary default for SendMimeErrors to True. 221764562Sgshapiro Change the sendmail binary default for SuperSafe to True. 221864562Sgshapiro Display ruleset names in debug and address test mode output 221964562Sgshapiro if referencing a named ruleset. 222064562Sgshapiro New mailer equate m= which will limit the number of messages 222164562Sgshapiro delivered per connection on an SMTP or LMTP mailer. 222264562Sgshapiro Improve QueueSortOrder=Host by reversing the hostname before 222364562Sgshapiro using it to sort. Now all the same domains are really run 222464562Sgshapiro through the queue together. If they have the same MX host, 222564562Sgshapiro then they will have a much better opportunity to use the 222664562Sgshapiro connection cache if available. This should be a reasonable 222764562Sgshapiro performance improvement. Patch from Randall Winchester of 222864562Sgshapiro the University of Maryland. 222964562Sgshapiro If a message is rejected by a header check ruleset, log who would 223064562Sgshapiro have received the message if it had not been rejected. 223164562Sgshapiro New "now" value for Timeout.queuereturn to bounce entries from the 223264562Sgshapiro queue immediately. No delivery attempt is made. 223364562Sgshapiro Increase sleeping time exponentially after too many "bad" commands 223464562Sgshapiro up to 4 minutes delay (compare MAX{BAD,NOOP,HELO,VRFY,ETRN}- 223564562Sgshapiro COMMANDS). 223664562Sgshapiro New option ClientPortOptions similar to DaemonPortOptions 223764562Sgshapiro but for outgoing connections. 223864562Sgshapiro New suboptions for DaemonPortOptions: Name (a name used for 223964562Sgshapiro error messages and logging) and Modifiers, i.e. 224064562Sgshapiro a require authentication 224164562Sgshapiro b bind to interface through which mail has 224264562Sgshapiro been received 224364562Sgshapiro c perform hostname canonification 224464562Sgshapiro f require fully qualified hostname 224564562Sgshapiro h use name of interface for outgoing HELO 224664562Sgshapiro command 224764562Sgshapiro C don't perform hostname canonification 224864562Sgshapiro E disallow ETRN (see RFC 2476) 224964562Sgshapiro New suboption for ClientPortOptions: Modifiers, i.e. 225064562Sgshapiro h use name of interface for HELO command 225164562Sgshapiro The version number for queue files (qf) has been incremented to 4. 225264562Sgshapiro Log unacceptable HELO/EHLO domain name attempts if LogLevel is set 225364562Sgshapiro to 10 or higher. Suggested by Rick Troxel of the National 225464562Sgshapiro Institutes of Health. 225564562Sgshapiro If a mailer dies, print the status in decimal instead of octal 225664562Sgshapiro format. Suggested by Michael Shapiro of Sun Microsystems. 225764562Sgshapiro Limit the length of all MX records considered for delivery to 8k. 225864562Sgshapiro Move message priority from sender to recipient logging. Suggested by 225964562Sgshapiro Ulrich Windl of the Universitat Regensburg. 226064562Sgshapiro Add support for Berkeley DB 3.X. 226164562Sgshapiro Add fix for Berkeley DB 2.X fcntl() locking race condition. 226264562Sgshapiro Requires a post-2.7.5 version of Berkeley DB. 226364562Sgshapiro Support writing traffic log (sendmail -X option) to a FIFO. 226464562Sgshapiro Patch submitted by Rick Heaton of Network Associates, Inc. 226564562Sgshapiro Do not ignore Timeout settings in the .cf file when a Timeout 226664562Sgshapiro sub-options is set on the command line. Problem noted by 226764562Sgshapiro Graeme Hewson of Oracle. 226864562Sgshapiro Randomize equal preference MX records each time delivery is 226964562Sgshapiro attempted via a new connection to a host instead of once per 227064562Sgshapiro session. Suggested by Scott Salvidio of Compaq. 227164562Sgshapiro Implement enhanced status codes as defined by RFC 2034. 227264562Sgshapiro Add [hostname] to class w for the names of all interfaces unless 227364562Sgshapiro DontProbeInterfaces is set. This is useful for sending mails 227464562Sgshapiro to hosts which have dynamically assigned names. 227564562Sgshapiro If a message is bounced due to bad MIME conformance, avoid bouncing 227664562Sgshapiro the bounce for the same reason. If the body is not 8-bit 227764562Sgshapiro clean, and EightBitMode isn't set to pass8, the body will 227864562Sgshapiro not be included in the bounce. Problem noted by Valdis 227964562Sgshapiro Kletnieks of Virginia Tech. 228064562Sgshapiro The timeout for sending a message via SMTP has been changed from 228164562Sgshapiro '${msgsize} / 16 + (${nrcpts} * 300)' to a timeout which 228264562Sgshapiro simply checks for progress on sending data every 5 minutes. 228364562Sgshapiro This will detect the inability to send information quicker 228464562Sgshapiro and reduce the number of processes simply waiting to 228564562Sgshapiro timeout. 228664562Sgshapiro Prevent a segmentation fault on systems which give a partial filled 228764562Sgshapiro interface address structure when loading the system network 228864562Sgshapiro interface addresses. Fix from Reinier Bezuidenhout of 228964562Sgshapiro Nanoteq. 229064562Sgshapiro Add a compile-time configuration macro, MAXINTERFACES, which 229164562Sgshapiro indicates the number of interfaces to read when probing 229264562Sgshapiro for hostnames and IP addresses for class w ($=w). The 229364562Sgshapiro default value is 512. Based on idea from Reinier 229464562Sgshapiro Bezuidenhout of Nanoteq. 229564562Sgshapiro If the RefuseLA option is set to 0, do not reject connections based 229664562Sgshapiro on load average. 229764562Sgshapiro Allow ruleset 0 to have a name. Problem noted by Neil Rickert of 229864562Sgshapiro Northern Illinois University. 229964562Sgshapiro Expand the Return-Path: header at delivery time, after "owner-" 230064562Sgshapiro envelope splitting has occurred. 230164562Sgshapiro Don't try to sort the queue if there are no entries. Patch from 230264562Sgshapiro Luke Mewburn from RMIT University. 230364562Sgshapiro Add a "/quit" command to address test mode. 230464562Sgshapiro Include the proper sender in the UNIX "From " line and Return-Path: 230564562Sgshapiro header when undeliverable mail is saved to ~/dead.letter. 230664562Sgshapiro Problem noted by Kari Hurtta of the Finnish Meteorological 230764562Sgshapiro Institute. 230864562Sgshapiro The contents of a class can now be copied to another class using 230964562Sgshapiro the syntax: "C{Dest} $={Source}". This would copy all of 231064562Sgshapiro the items in class $={Source} into the class $={Dest}. 231164562Sgshapiro Include original envelope's error transcript in bounces created for 231264562Sgshapiro split (owner-) envelopes to see the original errors when 231364562Sgshapiro the recipients were added. Based on fix from Motonori 231464562Sgshapiro Nakamura of Kyoto University. 231564562Sgshapiro Show reason for permanent delivery errors directly after the 231664562Sgshapiro addresses. From Motonori Nakamura of Kyoto University. 231764562Sgshapiro Prevent a segmentation fault when bouncing a split-envelope 231864562Sgshapiro message. Patch from Motonori Nakamura of Kyoto University. 231964562Sgshapiro If the specification for the queue run interval (-q###) has a 232064562Sgshapiro syntax error, consider the error fatal and exit. 232164562Sgshapiro Pay attention to CheckpointInterval during LMTP delivery. Problem 232264562Sgshapiro noted by Motonori Nakamura of Kyoto University. 232364562Sgshapiro On operating systems which have setlogin(2), use it to set the 232464562Sgshapiro login name to the RunAsUserName when starting as a daemon. 232564562Sgshapiro This is for delivery to programs which use getlogin(). 232664562Sgshapiro Based on fix from Motonori Nakamura of Kyoto University. 232764562Sgshapiro Differentiate between "command not implemented" and "command 232864562Sgshapiro unrecognized" in the SMTP dialogue. 232964562Sgshapiro Strip returns from forward and include files. Problem noted by 233064562Sgshapiro Allan E Johannesen of Worcester Polytechnic Institute. 233164562Sgshapiro Prevent a core dump when using 'sendmail -bv' on an address which 233264562Sgshapiro resolves to the $#error mailer with a temporary failure. 233364562Sgshapiro Based on fix from Neil Rickert of Northern Illinois 233464562Sgshapiro University. 233564562Sgshapiro Prevent multiple deliveries of a message with a "non-local alias" 233664562Sgshapiro pointing to a local user, if canonicalization fails 233764562Sgshapiro the message was requeued *and* delivered to the alias. 233864562Sgshapiro If an invalid ruleset is declared, the ruleset name could be 233964562Sgshapiro ignored and its rules added to S0. Instead, ignore the 234064562Sgshapiro ruleset lines as well. 234164562Sgshapiro Avoid incorrect Final-Recipient, Action, and X-Actual-Recipient 234264562Sgshapiro success DSN fields as well as duplicate entries for a 234364562Sgshapiro single address due to S5 and UserDB processing. Problems 234464562Sgshapiro noted by Kari Hurtta of the Finnish Meteorological 234564562Sgshapiro Institute. 234664562Sgshapiro Turn off timeouts when exiting sendmail due to an interrupt signal 234764562Sgshapiro to prevent the timeout from firing during the exit process. 234864562Sgshapiro Problem noted by Michael Shapiro of Sun Microsystems. 234964562Sgshapiro Do not append @MyHostName to non-RFC822 addresses output by the EXPN 235064562Sgshapiro command or on Final-Recipient: and X-Actual-Recipient: DSN 235164562Sgshapiro headers. Non-RFC822 addresses include deliveries to 235264562Sgshapiro programs, file, DECnet, etc. 235364562Sgshapiro Fix logic for determining if a local user is using -f or -bs to 235464562Sgshapiro spoof their return address. Based on idea from Neil Rickert 235564562Sgshapiro of Northern Illinois University and patch from Per Hedeland 235664562Sgshapiro of Ericsson. 235764562Sgshapiro Report the proper UID in the bounce message if an :include: file is 235864562Sgshapiro owned by a uid that doesn't map to a username and the 235964562Sgshapiro :include: file contains delivery to a file or program. 236064562Sgshapiro Problem noted by John Beck of Sun Microsystems. 236164562Sgshapiro Avoid the attempt of trying to send a second SMTP QUIT command if 236264562Sgshapiro the remote server responds to the first QUIT with a 4xx 236364562Sgshapiro response code and drops the connection. This behavior was 236464562Sgshapiro noted by Ulrich Windl of the Universitat Regensburg when 236564562Sgshapiro sendmail was talking to the Mercury 1.43 MTA. 236664562Sgshapiro If a hostname lookup times out and ServiceSwitchFile is set but the 236764562Sgshapiro file is not present, the lookup failure would be marked as 236864562Sgshapiro a permanent failure instead of a temporary failure. Fix 236964562Sgshapiro from Russell King of the ARM Linux Project. 237064562Sgshapiro Handle aliases or forwards which deliver to programs using tabs 237164562Sgshapiro instead of spaces between arguments. Problem noted by Randy 237264562Sgshapiro Wormser. Fix from Neil Rickert of Northern Illinois 237364562Sgshapiro University. 237464562Sgshapiro Allow MaxRecipientsPerMessage option to be set on the command line 237564562Sgshapiro by normal users (e.g., sendmail won't drop its root 237664562Sgshapiro privileges) to allow overrides for message submission via 237764562Sgshapiro 'sendmail -bs'. 237864562Sgshapiro Set the names for help file and statistics file to "helpfile" and 237964562Sgshapiro "statistics", respectively, if no parameters are given for 238064562Sgshapiro them in the .cf file. 238164562Sgshapiro Avoid bogus 'errbody: I/O Error -7' log messages when sending 238264562Sgshapiro success DSN messages for messages relayed to non-DSN aware 238364562Sgshapiro systems. Problem noted by Juergen Georgi of RUS University 238464562Sgshapiro of Stuttgart and Kyle Tucker of Parexel International. 238564562Sgshapiro Prevent +detail information from interfering with local delivery to 238664562Sgshapiro multiple users in the same transaction (F=m). 238764562Sgshapiro Add H_FORCE flag for the X-Authentication-Warning: header, so it 238864562Sgshapiro will be added even if one already exists. Problem noted 238964562Sgshapiro by Michal Zalewski of Marchew Industries. 239064562Sgshapiro Stop processing SMTP commands if the SMTP connection is dropped. 239164562Sgshapiro This prevents a remote system from flooding the connection 239264562Sgshapiro with commands and then disconnecting. Previously, the 239364562Sgshapiro server would process all of the buffered commands. Problem 239464562Sgshapiro noted by Michal Zalewski of Marchew Industries. 239564562Sgshapiro Properly process user-supplied headers beginning with '?'. Problem 239664562Sgshapiro noted by Michal Zalewski of Marchew Industries. 239764562Sgshapiro If multiple header checks resolve to the $#error mailer, use the 239864562Sgshapiro last permanent (5XX) failure if any exist. Otherwise, use 239964562Sgshapiro the last temporary (4XX) failure. 240064562Sgshapiro RFC 1891 requires "hexchar" in a "xtext" to be upper case. Patch 240164562Sgshapiro from Ronald F. Guilmette of Infinite Monkeys & Co. 240264562Sgshapiro Timeout.ident now defaults to 5 seconds instead of 30 seconds to 240364562Sgshapiro prevent the now common delays associated with mailing to a 240464562Sgshapiro site which drops IDENT packets. Suggested by many. 240564562Sgshapiro Persistent host status data is not reloaded disk when current data 240664562Sgshapiro is available in the in-memory cache. Problem noted by Per 240764562Sgshapiro Hedeland of Ericsson. 240864562Sgshapiro mailq displays unprintable characters in addresses as their octal 240964562Sgshapiro representation and a leading backslash. This avoids problems 241064562Sgshapiro with "unprintable" characters. Problem noted by Michal 241164562Sgshapiro Zalewski of the "Internet for Schools" project (IdS). 241264562Sgshapiro The mail line length limit (L= equate) was adding the '!' indicator 241364562Sgshapiro one character past the limit. This would cause subsequent 241464562Sgshapiro hops to break the line again. The '!' is now placed in 241564562Sgshapiro the last column of the limit if the line needs to be broken. 241664562Sgshapiro Problem noted by Joe Pruett of Q7 Enterprises. Based on fix 241764562Sgshapiro from Per Hedeland of Ericsson. 241864562Sgshapiro If a resolver ANY query is larger than the UDP packet size, the 241964562Sgshapiro resolver will fall back to TCP. However, some 242064562Sgshapiro misconfigured firewalls black 53/TCP so the ANY lookup 242164562Sgshapiro fails whereas an MX or A record might succeed. Therefore, 242264562Sgshapiro don't fail on ANY queries. 242364562Sgshapiro If an SMTP recipient is rejected due to syntax errors in the 242464562Sgshapiro address, do not send an empty postmaster notification DSN 242564562Sgshapiro to the postmaster. Problem noted by Neil Rickert of 242664562Sgshapiro Northern Illinois University. 242764562Sgshapiro Allow '_' and '.' in map names when parsing a sequence map 242864562Sgshapiro specification. Patch from William Setzer of North Carolina 242964562Sgshapiro State University. 243064562Sgshapiro Fix hostname in logging of read timeouts for the QUIT command on 243164562Sgshapiro cached connections. Problem noted by Neil Rickert of 243264562Sgshapiro Northern Illinois University. 243364562Sgshapiro Use a more descriptive entry to log "null" connections, i.e., 243464562Sgshapiro "host did not issue MAIL/EXPN/VRFY/ETRN during connection". 243564562Sgshapiro Fix a file descriptor leak in ONEX mode. 243664562Sgshapiro Portability: 243764562Sgshapiro Reverse signal handling logic such that sigaction(2) with 243864562Sgshapiro the SA_RESTART flag is the preferred method and the 243964562Sgshapiro other signal methods are only tried if SA_RESTART 244064562Sgshapiro is not available. Problem noted by Allan E 244164562Sgshapiro Johannesen of Worcester Polytechnic Institute. 244264562Sgshapiro AIX 4.x supports the sa_len member of struct sockaddr. 244364562Sgshapiro This allows network interface probing to work 244464562Sgshapiro properly. Fix from David Bronder of the 244564562Sgshapiro University of Iowa. 244664562Sgshapiro AIX 4.3 has snprintf() support. 244764562Sgshapiro Use "PPC" as the architecture name when building under 244864562Sgshapiro AIX. This will be reflected in the obj.* directory 244964562Sgshapiro name. 245064562Sgshapiro Apple Darwin support based on Apple Rhapsody port. 245164562Sgshapiro Fixed AIX 'make depend' method from Valdis Kletnieks of 245264562Sgshapiro Virginia Tech. 245364562Sgshapiro Digital UNIX has uname(2). 245464562Sgshapiro GNU Hurd updates from Mark Kettenis of the University of 245564562Sgshapiro Amsterdam. 245664562Sgshapiro Improved HPUX 11.0 portability. 245764562Sgshapiro Properly determine the number of CPUs on FreeBSD 2.X, 245864562Sgshapiro FreeBSD 3.X, HP/UX 10.X and HP/UX 11.X. 245964562Sgshapiro Remove special IRIX ABI cases from Build script and the OS 246064562Sgshapiro files. Use the standard 'cc' options used by SGI 246164562Sgshapiro in building the operating system. Users can 246264562Sgshapiro override the defaults by setting confCC and 246364562Sgshapiro confLIBSEARCHPATH appropriately. 246464562Sgshapiro IRIX nsd map support from Bob Mende of SGI. 246564562Sgshapiro Minor devtools fixes for IRIX from Bob Mende of SGI. 246664562Sgshapiro Linux patch for IP_SRCROUTE support from Joerg Dorchain 246764562Sgshapiro of MW EDV & ELECTRONIC. 246864562Sgshapiro Linux now uses /usr/sbin for confEBINDIR in the build 246964562Sgshapiro system. From MATSUURA Takanori of Osaka University. 247064562Sgshapiro Remove special treatment for Linux PPC in the build 247164562Sgshapiro system. From MATSUURA Takanori of Osaka University. 247264562Sgshapiro Motorolla UNIX SYSTEM V/88 Release 4.0 support from 247364562Sgshapiro Sergey Rusanov of the Republic of Udmurtia. 247464562Sgshapiro NCR MP-RAS 3.x includes regular expression support. From 247564562Sgshapiro Tom J. Moore of NCR. 247664562Sgshapiro NEC EWS-UX/V series settings for _PATH_VENDOR_CF and 247764562Sgshapiro _PATH_SENDMAILPID from Oota Toshiya of 247864562Sgshapiro NEC Computers Group Planning Division. 247964562Sgshapiro Minor NetBSD owner/group tweaks from Ayamura Kikuchi, M.D. 248064562Sgshapiro NEWS-OS 6.X listed SYSLOG_BUFSIZE as 256 in confENVDEF and 248164562Sgshapiro 1024 in conf.h. Since confENVDEF would be used, 248264562Sgshapiro use that value in conf.h. 248364562Sgshapiro Use NeXT's NETINFO to get domain name. From Gerd Knops of 248464562Sgshapiro BITart Consulting. 248564562Sgshapiro Use NeXT's NETINFO for alias and hostname resolution if 248664562Sgshapiro AUTO_NETINFO_ALIASES and AUTO_NETINFO_HOSTS are 248764562Sgshapiro defined. Patch from Wilfredo Sanchez of Apple 248864562Sgshapiro Computer, Inc. 248964562Sgshapiro NeXT portability tweaks. Problems reported by Dragan 249064562Sgshapiro Milicic of the University of Utah and J. P. McCann 249164562Sgshapiro of E I A. 249264562Sgshapiro New compile flag FAST_PID_RECYCLE: set this if your system 249364562Sgshapiro can reuse the same PID in the same second. 249464562Sgshapiro New compile flag HASFCHOWN: set this if your OS has 249564562Sgshapiro fchown(2). 249664562Sgshapiro New compile flag HASRANDOM: set this to 0 if your OS does 249764562Sgshapiro not have random(3). rand() will be used instead. 249864562Sgshapiro New compile flag HASSRANDOMDEV: set this if your OS has 249964562Sgshapiro srandomdev(3). 250064562Sgshapiro New compile flag HASSETLOGIN: set this if your OS has 250164562Sgshapiro setlogin(2). 250264562Sgshapiro Replace SINIX and ReliantUNIX support with version 250364562Sgshapiro specific SINIX files. From Gerald Rinske of 250464562Sgshapiro Siemens Business Services. 250564562Sgshapiro Use the 60-second load average instead of the 5 second load 250664562Sgshapiro average on Compaq Tru64 UNIX (formerly Digital 250764562Sgshapiro UNIX). From Chris Teakle of the University of Qld. 250864562Sgshapiro Use ANSI C by default for Compaq Tru64 UNIX. Suggested by 250964562Sgshapiro Randall Winchester of Swales Aerospace. 251064562Sgshapiro Correct setgroups() prototype for Compaq Tru64 UNIX. 251164562Sgshapiro Problem noted by Randall Winchester of Swales 251264562Sgshapiro Aerospace. 251364562Sgshapiro Hitachi 3050R/3050RX and 3500 Workstations running 251464562Sgshapiro HI-UX/WE2 4.02, 6.10 and 7.10 from Motonori 251564562Sgshapiro NAKAMURA of Kyoto University. 251664562Sgshapiro New compile flag NO_GETSERVBYNAME: set this to disable 251764562Sgshapiro use of getservbyname() on systems which can 251864562Sgshapiro not lookup a service by name over NIS, such as 251964562Sgshapiro HI-UX. Patch from Motonori NAKAMURA of Kyoto 252064562Sgshapiro University. 252164562Sgshapiro Use devtools/bin/install.sh on SCO 5.x. Problem noted 252264562Sgshapiro by Sun Wenbing of the China Engineering and 252364562Sgshapiro Technology Information Network. 252464562Sgshapiro make depend didn't work properly on UNIXWARE 4.2. Problem 252564562Sgshapiro noted by Ariel Malik of Netology, Ltd. 252664562Sgshapiro Use /usr/lbin as confEBINDIR for Compaq Tru64 (Digital UNIX). 252764562Sgshapiro Set confSTDIO_TYPE to torek for BSD-OS, FreeBSD, NetBSD, 252864562Sgshapiro and OpenBSD. 252964562Sgshapiro A recent Compaq Ultrix 4.5 Y2K patch has broken detection 253064562Sgshapiro of local_hostname_length(). See sendmail/README 253164562Sgshapiro for more details. Problem noted by Allan E 253264562Sgshapiro Johannesen of Worcester Polytechnic Institute. 253364562Sgshapiro CONFIG: Begin using /etc/mail/ for sendmail related files. This 253464562Sgshapiro affects a large number of files. See cf/README for more 253564562Sgshapiro details. 253664562Sgshapiro CONFIG: New macro MAIL_SETTINGS_DIR contains the path (including 253764562Sgshapiro trailing slash) for the mail settings directory. 253864562Sgshapiro CONFIG: Increment version number of config file to 9. 253964562Sgshapiro CONFIG: OSTYPE(`bsdi1.0') and OSTYPE(`bsdi2.0') have been 254064562Sgshapiro deprecated and may be removed from a future release. 254164562Sgshapiro BSD/OS users should begin using OSTYPE(`bsdi'). 254290792Sgshapiro CONFIG: OpenBSD 2.4 installs mail.local non-set-user-ID root. This 254364562Sgshapiro requires a new OSTYPE(`openbsd'). From Todd C. Miller of 254464562Sgshapiro Courtesan Consulting. 254564562Sgshapiro CONFIG: New OSTYPE(`hpux11') for HP/UX 11.X. 254664562Sgshapiro CONFIG: A syntax error in check_mail would cause fake top-level 254764562Sgshapiro domains (.BITNET, .DECNET, .FAX, .USENET, and .UUCP) to 254864562Sgshapiro be improperly rejected as unresolvable. 254964562Sgshapiro CONFIG: New FEATURE(`dnsbl') takes up to two arguments (name of 255064562Sgshapiro DNS server, rejection message) and can be included 255164562Sgshapiro multiple times. 255264562Sgshapiro CONFIG: New FEATURE(`relay_mail_from') allows relaying if the 255364562Sgshapiro mail sender is listed as RELAY in the access map (and tagged 255464562Sgshapiro with From:). 255564562Sgshapiro CONFIG: Optional tagging of LHS in the access map (Connect:, 255664562Sgshapiro From:, To:) to enable finer control. 255764562Sgshapiro CONFIG: New FEATURE(`ldap_routing') implements LDAP address 255864562Sgshapiro routing. See cf/README for a complete description of the 255964562Sgshapiro new functionality. 256064562Sgshapiro CONFIG: New variables for the new sendmail options: 256164562Sgshapiro confAUTH_MECHANISMS AuthMechanisms 256264562Sgshapiro confAUTH_OPTIONS AuthOptions 256364562Sgshapiro confCLIENT_OPTIONS ClientPortOptions 256464562Sgshapiro confCONTROL_SOCKET_NAME ControlSocketName 256564562Sgshapiro confDEAD_LETTER_DROP DeadLetterDrop 256664562Sgshapiro confDEF_AUTH_INFO DefaultAuthInfo 256764562Sgshapiro confDF_BUFFER_SIZE DataFileBufferSize 256864562Sgshapiro confLDAP_DEFAULT_SPEC LDAPDefaultSpec 256964562Sgshapiro confMAX_ALIAS_RECURSION MaxAliasRecursion 257064562Sgshapiro confMAX_HEADERS_LENGTH MaxHeadersLength 257164562Sgshapiro confMAX_MIME_HEADER_LENGTH MaxMimeHeaderLength 257264562Sgshapiro confPID_FILE PidFile 257364562Sgshapiro confPROCESS_TITLE_PREFIX ProcessTitlePrefix 257464562Sgshapiro confRRT_IMPLIES_DSN RrtImpliesDsn 257564562Sgshapiro confTO_CONTROL Timeout.control 257664562Sgshapiro confTO_RESOLVER_RETRANS Timeout.resolver.retrans 257764562Sgshapiro confTO_RESOLVER_RETRANS_FIRST Timeout.resolver.retrans.first 257864562Sgshapiro confTO_RESOLVER_RETRANS_NORMAL Timeout.resolver.retrans.normal 257964562Sgshapiro confTO_RESOLVER_RETRY Timeout.resolver.retry 258064562Sgshapiro confTO_RESOLVER_RETRY_FIRST Timeout.resolver.retry.first 258164562Sgshapiro confTO_RESOLVER_RETRY_NORMAL Timeout.resolver.retry.normal 258264562Sgshapiro confTRUSTED_USER TrustedUser 258364562Sgshapiro confXF_BUFFER_SIZE XscriptFileBufferSize 258464562Sgshapiro CONFIG: confDAEMON_OPTIONS has been replaced by DAEMON_OPTIONS(), 258564562Sgshapiro which takes the options as argument and can be used 258664562Sgshapiro multiple times; see cf/README for details. 258764562Sgshapiro CONFIG: Add a fifth mailer definition to MAILER(`smtp') called 258864562Sgshapiro "dsmtp". This mail provides on-demand delivery using the 258964562Sgshapiro F=% mailer flag described above. The "dsmtp" mailer 259064562Sgshapiro definition uses the new DSMTP_MAILER_ARGS which defaults 259164562Sgshapiro to "IPC $h". 259264562Sgshapiro CONFIG: New variables LOCAL_MAILER_MAXMSGS, SMTP_MAILER_MAXMSGS, 259364562Sgshapiro and RELAY_MAILER_MAXMSGS for setting the m= equate for the 259464562Sgshapiro local, smtp, and relay mailers respectively. 259564562Sgshapiro CONFIG: New variable LOCAL_MAILER_DSN_DIAGNOSTIC_CODE for setting 259664562Sgshapiro the DSN Diagnostic-Code type for the local mailer. The 259764562Sgshapiro value should be changed with care. 259864562Sgshapiro CONFIG: FEATURE(`local_lmtp') now sets the DSN Diagnostic-Code type 259964562Sgshapiro for the local mailer to the proper value of "SMTP". 260064562Sgshapiro CONFIG: All included maps are no longer optional by default; if 260164562Sgshapiro there there is a problem with a map, sendmail will 260264562Sgshapiro complain. 260364562Sgshapiro CONFIG: Removed root from class E; use EXPOSED_USER(`root') 260464562Sgshapiro to get the old behavior. Suggested by Joe Pruett 260564562Sgshapiro of Q7 Enterprises. 260664562Sgshapiro CONFIG: MASQUERADE_EXCEPTION() defines hosts/subdomains which 260764562Sgshapiro will not be masqueraded. Proposed by Arne Wichmann 260864562Sgshapiro of MPI Saarbruecken, Griff Miller of PGS Tensor, 260964562Sgshapiro Jayme Cox of Broderbund Software Inc. 261064562Sgshapiro CONFIG: A list of exceptions for FEATURE(`nocanonify') can be 261164562Sgshapiro specified by CANONIFY_DOMAIN or CANONIFY_DOMAIN_FILE, 261264562Sgshapiro i.e., a list of domains which are passed to $[ ... $] 261364562Sgshapiro for canonification. Based on an idea from Neil Rickert 261464562Sgshapiro of Northern Illinois University. 261564562Sgshapiro CONFIG: If `canonify_hosts' is specified as parameter for 261664562Sgshapiro FEATURE(`nocanonify') then addresses which have only 261764562Sgshapiro a hostname, e.g., <user@host>, will be canonified. 261864562Sgshapiro CONFIG: If FEATURE(`nocanonify') is turned on, a trailing dot is 261964562Sgshapiro nevertheless added to addresses with more than one component 262064562Sgshapiro in it. 262164562Sgshapiro CONFIG: Canonification is no longer attempted for any host or domain 262264562Sgshapiro in class 'P' ($=P). 262364562Sgshapiro CONFIG: New class for matching virtusertable entries $={VirtHost} that 262464562Sgshapiro can be populated by VIRTUSER_DOMAIN or VIRTUSER_DOMAIN_FILE. 262564562Sgshapiro FEATURE(`virtuser_entire_domain') can be used to apply this 262664562Sgshapiro class also to entire subdomains. Hosts in this class are 262764562Sgshapiro treated as canonical in SCanonify2, i.e., a trailing dot 262864562Sgshapiro is added. 262964562Sgshapiro CONFIG: If VIRTUSER_DOMAIN() or VIRTUSER_DOMAIN_FILE() are used, 263064562Sgshapiro include $={VirtHost} in $=R (hosts allowed to relay). 263164562Sgshapiro CONFIG: FEATURE(`generics_entire_domain') can be used to apply the 263264562Sgshapiro genericstable also to subdomains of $=G. 263364562Sgshapiro CONFIG: Pass "+detail" as %2 for virtusertable lookups. 263464562Sgshapiro Patch from Noam Freedman from University of Chicago. 263564562Sgshapiro CONFIG: Pass "+detail" as %1 for genericstable lookups. Suggested 263664562Sgshapiro by Raymond S Brand of rsbx.net. 263764562Sgshapiro CONFIG: Allow @domain in genericstable to override masquerading. 263864562Sgshapiro Suggested by Owen Duffy from Owen Duffy & Associates. 263964562Sgshapiro CONFIG: LOCAL_DOMAIN() adds entries to class w. Suggested by Steve 264064562Sgshapiro Hubert of University of Washington. 264164562Sgshapiro CONFIG: OSTYPE(`gnuhurd') has been replaced by OSTYPE(`gnu') as 264264562Sgshapiro GNU is now the canonical system name. From Mark 264364562Sgshapiro Kettenis of the University of Amsterdam. 264464562Sgshapiro CONFIG: OSTYPE(`unixware7') updates from Larry Rosenman. 264564562Sgshapiro CONFIG: Do not include '=' in option expansion if there is no value 264664562Sgshapiro associated with the option. From Andrew Brown of 264764562Sgshapiro Graffiti World Wide, Inc. 264864562Sgshapiro CONFIG: Add MAILER(`qpage') to define a new pager mailer. Contributed 264964562Sgshapiro by Philip A. Prindeville of Enteka Enterprise Technology 265064562Sgshapiro Services. 265164562Sgshapiro CONFIG: MAILER(`cyrus') was not preserving case for mail folder 265264562Sgshapiro names. Problem noted by Randall Winchester of Swales 265364562Sgshapiro Aerospace. 265464562Sgshapiro CONFIG: RELAY_MAILER_FLAGS can be used to define additional flags 265564562Sgshapiro for the relay mailer. Suggested by Doug Hughes of Auburn 265664562Sgshapiro University and Brian Candler. 265764562Sgshapiro CONFIG: LOCAL_MAILER_FLAGS now includes 'P' (Add Return-Path: 265864562Sgshapiro header) by default. Suggested by Per Hedeland of Ericsson. 265964562Sgshapiro CONFIG: Use SMART_HOST for bracketed addresses, e.g., user@[host]. 266064562Sgshapiro Suggested by Kari Hurtta of the Finnish Meteorological 266164562Sgshapiro Institute. 266264562Sgshapiro CONFIG: New macro MODIFY_MAILER_FLAGS to tweak *_MAILER_FLAGS; 266364562Sgshapiro i.e., to set, add, or delete flags. 266464562Sgshapiro CONFIG: If SMTP AUTH is used then relaying is allowed for any user 266564562Sgshapiro who authenticated via a "trusted" mechanism, i.e., one that 266664562Sgshapiro is defined via TRUST_AUTH_MECH(`list of mechanisms'). 266764562Sgshapiro CONFIG: FEATURE(`delay_checks') delays check_mail and check_relay 266864562Sgshapiro after check_rcpt and allows for exceptions from the checks. 266964562Sgshapiro CONFIG: Map declarations have been moved into their associated 267064562Sgshapiro feature files to allow greater flexibility in use of 267164562Sgshapiro sequence maps. Suggested by Per Hedeland of Ericsson. 267264562Sgshapiro CONFIG: New macro LOCAL_MAILER_EOL to override the default end of 267364562Sgshapiro line string for the local mailer. Requested by Il Oh of 267464562Sgshapiro Willamette Industries, Inc. 267564562Sgshapiro CONFIG: Route addresses are stripped, i.e., <@a,@b,@c:user@d> is 267664562Sgshapiro converted to <user@d> 267764562Sgshapiro CONFIG: Reject bogus return address of <@@hostname>, generated by 267864562Sgshapiro Sun's older, broken configuration files. 267964562Sgshapiro CONFIG: FEATURE(`nullclient') now provides the full rulesets of a 268064562Sgshapiro normal configuration, allowing anti-spam checks to be 268164562Sgshapiro performed. 268264562Sgshapiro CONFIG: Don't return a permanent error (Relaying denied) if 268364562Sgshapiro ${client_name} can't be resolved just temporarily. 268464562Sgshapiro Suggested by Kari Hurtta of the Finnish Meteorological 268564562Sgshapiro Institute. 268664562Sgshapiro CONFIG: Change numbered rulesets into named (which still can 268764562Sgshapiro be accessed by their numbers). 268864562Sgshapiro CONFIG: FEATURE(`nouucp') takes one parameter: reject or nospecial 268964562Sgshapiro which describes whether to disallow "!" in the local part 269064562Sgshapiro of an address. 269164562Sgshapiro CONFIG: Call Local_localaddr from localaddr (S5) which can be used 269264562Sgshapiro to rewrite an address from a mailer which has the F=5 flag 269364562Sgshapiro set. If the ruleset returns a mailer, the appropriate 269464562Sgshapiro action is taken, otherwise the returned tokens are ignored. 269564562Sgshapiro CONFIG: cf/ostype/solaris.m4 has been renamed to solaris2.pre5.m4 269664562Sgshapiro and cf/ostype/solaris2.m4 is now a copy of solaris2.ml.m4. 269764562Sgshapiro The latter is kept around for backward compatibility. 269864562Sgshapiro CONFIG: Allow ":D.S.N:" for mailer/virtusertable "error:" entries, 269964562Sgshapiro where "D.S.N" is an RFC 1893 compliant error code. 270064562Sgshapiro CONFIG: Use /usr/lbin as confEBINDIR for Compaq Tru64 (Digital UNIX). 270164562Sgshapiro CONFIG: Remove second space between username and date in UNIX From_ 270264562Sgshapiro line. Noted by Allan E Johannesen of Worcester Polytechnic 270364562Sgshapiro Institute. 270464562Sgshapiro CONFIG: Make sure all of the mailers have complete T= equates. 270564562Sgshapiro CONFIG: Extend FEATURE(`local_procmail') so it can now take 270664562Sgshapiro arguments overriding the mailer program, arguments, and 270764562Sgshapiro mailer definition flags. This makes it possible to use 270864562Sgshapiro other programs such as maildrop for local delivery. 270964562Sgshapiro CONFIG: Emit warning if FEATURE(`local_lmtp') or 271064562Sgshapiro FEATURE(`local_procmail') is given after MAILER(`local'). 271164562Sgshapiro Patch from Richard A. Nelson of IBM. 271264562Sgshapiro CONFIG: Add SMTP Authentication information to Received: header 271364562Sgshapiro default value (confRECEIVED_HEADER). 271464562Sgshapiro CONFIG: Remove `l' flag from USENET_MAILER_FLAGS as it is not a 271564562Sgshapiro local mailer. Problem noted by Per Hedeland of Ericsson. 271664562Sgshapiro CONTRIB: Added bounce-resender.pl from Brian R. Gaeke of the 271764562Sgshapiro University of California at Berkeley. 271864562Sgshapiro CONTRIB: Added domainmap.m4 from Mark D. Roth of the University of 271964562Sgshapiro Illinois at Urbana-Champaign. 272064562Sgshapiro CONTRIB: etrn.pl now recognizes bogus host names. Patch from 272164562Sgshapiro Bruce Barnett of GE's R&D Lab. 272264562Sgshapiro CONTRIB: Patches for re-mqueue.pl by Graeme Hewson of Oracle 272364562Sgshapiro Corporation UK. 272464562Sgshapiro CONTRIB: Added qtool.pl to assist in managing the queues. 272564562Sgshapiro DEVTOOLS: Prevent user environment variables from interfering with 272664562Sgshapiro the Build scripts. Problem noted by Ezequiel H. Panepucci of 272764562Sgshapiro Yale University. 272864562Sgshapiro DEVTOOLS: 'Build -M' will display the obj.* directory which will 272964562Sgshapiro be used for building. 273064562Sgshapiro DEVTOOLS: 'Build -A' will display the architecture that would be 273164562Sgshapiro used for a fresh build. 273264562Sgshapiro DEVTOOLS: New variable confRANLIB, set automatically by configure.sh. 273364562Sgshapiro DEVTOOLS: New variable confRANLIBOPTS for the options to send to 273464562Sgshapiro ranlib. 273564562Sgshapiro DEVTOOLS: 'Build -O <path>' will have the object files build in 273664562Sgshapiro <path>/obj.*. Suggested by Bryan Costales of Exactis. 273764562Sgshapiro DEVTOOLS: New variable confNO_MAN_BUILD which will prevent the 273864562Sgshapiro building of the man pages when defined. Suggested by Bryan 273964562Sgshapiro Costales. 274064562Sgshapiro DEVTOOLS: New variables confNO_HELPFILE_INSTALL and 274164562Sgshapiro confNO_STATISTICS_INSTALL which will prevent the 274264562Sgshapiro installation of the sendmail helpfile and statistics file 274364562Sgshapiro respectively. Suggested by Bryan Costales. 274464562Sgshapiro DEVTOOLS: Recognize ReliantUNIX as SINIX. Patch from Gerald Rinske 274564562Sgshapiro of Siemens Business Services. 274664562Sgshapiro DEVTOOLS: New variable confSTDIO_TYPE which defines the type of 274764562Sgshapiro stdio library. The new buffered file I/O depends on the 274864562Sgshapiro Torek stdio library. This option can be either portable or 274964562Sgshapiro torek. 275064562Sgshapiro DEVTOOLS: New variables confSRCADD and confSMSRCADD which 275164562Sgshapiro correspond to confOBJADD and confSMOBJADD respectively. 275264562Sgshapiro They should contain the C source files for the object files 275364562Sgshapiro listed in confOBJADD and confSMOBJADD. These file names 275464562Sgshapiro will be passed to the 'make depend' stage of compilation. 275564562Sgshapiro DEVTOOLS: New program specific variables for each of the programs 275664562Sgshapiro in the sendmail distribution. Each has the form 275764562Sgshapiro `conf_prog_ENVDEF', for example, `conf_sendmail_ENVDEF'. 275864562Sgshapiro The new variables are conf_prog_ENVDEF, conf_prog_LIBS, 275964562Sgshapiro conf_prog_SRCADD, and conf_prog_OBJADD. 276064562Sgshapiro DEVTOOLS: Build system redesign. This should have little affect on 276164562Sgshapiro building the distribution, but documentation on the changes 276264562Sgshapiro are in devtools/README. 276364562Sgshapiro DEVTOOLS: Don't allow 'Build -f file' if an object directory already 276464562Sgshapiro exists. Suggested by Valdis Kletnieks of Virginia Tech. 276564562Sgshapiro DEVTOOLS: Rename confSRCDIR to confSMSRCDIR since it only identifies 276664562Sgshapiro the path to the sendmail source directory. confSRCDIR is a 276764562Sgshapiro new variable which identifies the root of the source 276864562Sgshapiro directories for all of the programs in the distribution. 276964562Sgshapiro DEVTOOLS: confSRCDIR and confSMSRCDIR are now determined at Build 277064562Sgshapiro time. They can both still be overridden by setting the m4 277164562Sgshapiro macro. 277264562Sgshapiro DEVTOOLS: confSBINGRP now defaults to bin instead of kmem. 277364562Sgshapiro DEVTOOLS: 'Build -Q prefix' uses devtools/Site/prefix.*.m4 for 277464562Sgshapiro build configurations, and places objects in obj.prefix.*/. 277564562Sgshapiro Complains as 'Build -f file' does for existing object 277664562Sgshapiro directories. Suggested by Tom Smith of Digital Equipment 277764562Sgshapiro Corporation. 277864562Sgshapiro DEVTOOLS: Setting confINSTALL_RAWMAN will install unformatted 277964562Sgshapiro manual pages in the directory tree specified by 278064562Sgshapiro confMANROOTMAN. 278164562Sgshapiro DEVTOOLS: If formatting the manual pages fails, copy in the 278264562Sgshapiro preformatted pages from the distribution. The new variable 278364562Sgshapiro confCOPY specifies the copying program. 278464562Sgshapiro DEVTOOLS: Defining confFORCE_RMAIL will install rmail without 278564562Sgshapiro question. Suggested by Terry Lambert of Whistle 278664562Sgshapiro Communications. 278764562Sgshapiro DEVTOOLS: confSTFILE and confHFFILE can be used to change the names 278864562Sgshapiro of the installed statistics and help files, respectively. 278964562Sgshapiro DEVTOOLS: Remove spaces in `uname -r` output when determining 279064562Sgshapiro operating system identity. Problem noted by Erik 279164562Sgshapiro Wachtenheim of Dartmouth College. 279264562Sgshapiro DEVTOOLS: New variable confLIBSEARCHPATH to specify the paths that 279364562Sgshapiro will be search for the libraries specified in confLIBSEARCH. 279464562Sgshapiro Defaults to "/lib /usr/lib /usr/shlib". 279564562Sgshapiro DEVTOOLS: New variables confSTRIP and confSTRIPOPTS for specifying 279664562Sgshapiro how to strip binaries. These are used by the new 279764562Sgshapiro install-strip target. 279864562Sgshapiro DEVTOOLS: New config file site.post.m4 which is included after 279964562Sgshapiro the others (if it exists). 280064562Sgshapiro DEVTOOLS: Change order of LIBS: first product specific libraries 280164562Sgshapiro then the default ones. 280290792Sgshapiro MAIL.LOCAL: Will not be installed set-user-ID root. To use mail.local 280364562Sgshapiro as local delivery agent without LMTP mode, use 280464562Sgshapiro MODIFY_MAILER_FLAGS(`LOCAL', `+S') 280564562Sgshapiro to set the S flag. 280664562Sgshapiro MAIL.LOCAL: Do not reject addresses which would otherwise be 280764562Sgshapiro accepted by sendmail. Suggested by Neil Rickert of 280864562Sgshapiro Northern Illinois University. 280964562Sgshapiro MAIL.LOCAL: New -7 option which causes LMTP mode not to advertise 281064562Sgshapiro 8BITMIME in the LHLO response. Suggested by Kari Hurtta of 281164562Sgshapiro the Finnish Meteorological Institute. 281264562Sgshapiro MAIL.LOCAL: Add support for the maillock() routines by defining 281364562Sgshapiro MAILLOCK when compiling. Also requires linking with 281464562Sgshapiro -lmail. Patch from Neil Rickert of Northern Illinois 281564562Sgshapiro University. 281664562Sgshapiro MAIL.LOCAL: Create a Content-Length: header if CONTENTLENGTH is 281764562Sgshapiro defined when compiling. Automatically set for Solaris 2.3 281864562Sgshapiro and later. Patch from Neil Rickert of Northern Illinois 281964562Sgshapiro University. 282064562Sgshapiro MAIL.LOCAL: Move the initialization of the 'notifybiff' address 282164562Sgshapiro structure to the beginning of the program. This ensures that 282264562Sgshapiro the getservbyname() is done before any seteuid to a possibly 282364562Sgshapiro unauthenticated user. If you are using NIS+ and secure RPC 282464562Sgshapiro on a Solaris system, this avoids syslog messages such as, 282564562Sgshapiro "authdes_refresh: keyserv(1m) is unable to encrypt session 282664562Sgshapiro key." Patch from Neil Rickert of Northern Illinois 282764562Sgshapiro University. 282864562Sgshapiro MAIL.LOCAL: Support group writable mail spool files when MAILGID is 282964562Sgshapiro set to the gid to use (-DMAILGID=6) when compiling. 283064562Sgshapiro Patch from Neil Rickert of Northern Illinois University. 283164562Sgshapiro MAIL.LOCAL: When a mail message included lines longer than 2046 283264562Sgshapiro characters (in LMTP mode), mail.local split the incoming 283364562Sgshapiro line up into 2046-character output lines (excluding the 283464562Sgshapiro newline). If an input line was 2047 characters long 283564562Sgshapiro (excluding CR-LF) and the last character was a '.', 283664562Sgshapiro mail.local saw it as the end of input, transfered it to the 283764562Sgshapiro user mailbox and tried to write an `ok' back to sendmail. 283864562Sgshapiro If the message was much longer, both sendmail and 283964562Sgshapiro mail.local would deadlock waiting for each other to read 284064562Sgshapiro what they have written. Problem noted by Peter Jeremy of 284164562Sgshapiro Alcatel Australia Limited. 284264562Sgshapiro MAIL.LOCAL: New option -b to return a permanent error instead of a 284364562Sgshapiro temporary error if a mailbox exceeds quota. Suggested by 284464562Sgshapiro Neil Rickert of Northern Illinois University. 284564562Sgshapiro MAIL.LOCAL: The creation of a lockfile is subject to a global 284664562Sgshapiro timeout to avoid starvation. 284764562Sgshapiro MAIL.LOCAL: Properly parse addresses with multiple quoted 284864562Sgshapiro local-parts. Problem noted by Ronald F. Guilmette of 284964562Sgshapiro Infinite Monkeys & Co. 285064562Sgshapiro MAIL.LOCAL: NCR MP/RAS 3.X portability from Tom J. Moore of NCR. 285164562Sgshapiro MAILSTATS: New -p option to invoke program mode in which stats are 285264562Sgshapiro printed in a machine readable fashion and the stats file 285364562Sgshapiro is reset. Patch from Kevin Hildebrand of the University 285464562Sgshapiro of Maryland. 285564562Sgshapiro MAKEMAP: If running as root, automatically change the ownership of 285664562Sgshapiro generated maps to the TrustedUser as specified in the 285764562Sgshapiro sendmail configuration file. 285864562Sgshapiro MAKEMAP: New -C option to accept an alternate sendmail 285964562Sgshapiro configuration file to use for finding the TrustedUser 286064562Sgshapiro option. 286164562Sgshapiro MAKEMAP: New -u option to dump (unmap) a database. Based on 286264562Sgshapiro code contributed by Roy Mongiovi of Georgia Tech. 286364562Sgshapiro MAKEMAP: New -e option to allow empty values. Suggested by Philip 286464562Sgshapiro A. Prindeville of Enteka Enterprise Technology Services. 286564562Sgshapiro MAKEMAP: Compile cleanly on 64-bit operating systems. Problem 286664562Sgshapiro noted by Gerald Rinske of Siemens Business Services. 286764562Sgshapiro OP.ME: Correctly document interaction between F=S and U= mailer 286864562Sgshapiro equates. Problem noted by Bob Halley of Internet Engines. 286964562Sgshapiro OP.ME: Fixup Timeout documentation. From Graeme Hewson of Oracle 287064562Sgshapiro Corporation UK. 287164562Sgshapiro OP.ME: The Timeout [r] option was incorrectly listed as "safe" 287264562Sgshapiro (e.g., sendmail would not drop root privileges if the 287364562Sgshapiro option was specified on the command line). Problem noted 287464562Sgshapiro by Todd C. Miller of Courtesan Consulting. 287564562Sgshapiro PRALIASES: Handle the hash and btree map specifications for 287664562Sgshapiro Berkeley DB. Patch from Brian J. Coan of the 287764562Sgshapiro Institute for Global Communications. 287864562Sgshapiro PRALIASES: Read the sendmail.cf file for the location(s) of the 287964562Sgshapiro alias file(s) if the -f option is not used. Patch from 288064562Sgshapiro John Beck of Sun Microsystems. 288164562Sgshapiro PRALIASES: New -C option to specify an alternate sendmail 288264562Sgshapiro configuration file to use for finding alias file(s). Patch 288364562Sgshapiro from John Beck of Sun Microsystems. 288464562Sgshapiro SMRSH: allow shell commands echo, exec, and exit. Allow command 288564562Sgshapiro lists using || and &&. Based on patch from Brian J. Coan 288664562Sgshapiro of the Institute for Global Communications. 288764562Sgshapiro SMRSH: Update README for the new Build system. From Tim Pierce 288864562Sgshapiro of RootsWeb Genealogical Data Cooperative. 288964562Sgshapiro VACATION: Added vacation auto-responder to sendmail distribution. 289064562Sgshapiro LIBSMDB: Added abstracted database library. Works with Berkeley 289164562Sgshapiro DB 1.85, Berkeley DB 2.X, Berkeley DB 3.X, and NDBM. 289264562Sgshapiro Changed Files: 289364562Sgshapiro The Build script in the various program subdirectories are 289464562Sgshapiro no longer symbolic links. They are now scripts 289564562Sgshapiro which execute the actual Build script in 289664562Sgshapiro devtools/bin. 289764562Sgshapiro All the manual pages are now written against -man and not 289864562Sgshapiro -mandoc as they were previously. 289964562Sgshapiro Add a simple Makefile to every directory so make instead 290064562Sgshapiro of Build will work (unless parameters are 290164562Sgshapiro required for Build). 290264562Sgshapiro New Directories: 290364562Sgshapiro devtools/M4/UNIX 290464562Sgshapiro include 290564562Sgshapiro libmilter 290664562Sgshapiro libsmdb 290764562Sgshapiro libsmutil 290864562Sgshapiro vacation 290964562Sgshapiro Renamed Directories: 291064562Sgshapiro BuildTools => devtools 291164562Sgshapiro src => sendmail 291264562Sgshapiro Deleted Files: 291364562Sgshapiro cf/m4/nullrelay.m4 291464562Sgshapiro devtools/OS/Linux.ppc 291564562Sgshapiro devtools/OS/ReliantUNIX 291664562Sgshapiro devtools/OS/SINIX 291764562Sgshapiro sendmail/ldap_map.h 291864562Sgshapiro New Files: 291964562Sgshapiro INSTALL 292064562Sgshapiro PGPKEYS 292164562Sgshapiro cf/cf/generic-linux.cf 292264562Sgshapiro cf/cf/generic-linux.mc 292364562Sgshapiro cf/feature/delay_checks.m4 292464562Sgshapiro cf/feature/dnsbl.m4 292564562Sgshapiro cf/feature/generics_entire_domain.m4 292664562Sgshapiro cf/feature/no_default_msa.m4 292764562Sgshapiro cf/feature/relay_mail_from.m4 292864562Sgshapiro cf/feature/virtuser_entire_domain.m4 292964562Sgshapiro cf/mailer/qpage.m4 293064562Sgshapiro cf/ostype/bsdi.m4 293164562Sgshapiro cf/ostype/hpux11.m4 293264562Sgshapiro cf/ostype/openbsd.m4 293364562Sgshapiro contrib/bounce-resender.pl 293464562Sgshapiro contrib/domainmap.m4 293564562Sgshapiro contrib/qtool.8 293664562Sgshapiro contrib/qtool.pl 293764562Sgshapiro devtools/M4/depend/AIX.m4 293864562Sgshapiro devtools/M4/list.m4 293964562Sgshapiro devtools/M4/string.m4 294064562Sgshapiro devtools/M4/subst_ext.m4 294164562Sgshapiro devtools/M4/switch.m4 294264562Sgshapiro devtools/OS/Darwin 294364562Sgshapiro devtools/OS/GNU 294464562Sgshapiro devtools/OS/SINIX.5.43 294564562Sgshapiro devtools/OS/SINIX.5.44 294664562Sgshapiro devtools/OS/m88k 294764562Sgshapiro devtools/bin/find_in_path.sh 294864562Sgshapiro mail.local/Makefile 294964562Sgshapiro mailstats/Makefile 295064562Sgshapiro makemap/Makefile 295164562Sgshapiro praliases/Makefile 295264562Sgshapiro rmail/Makefile 295364562Sgshapiro sendmail/Makefile 295464562Sgshapiro sendmail/bf.h 295564562Sgshapiro sendmail/bf_portable.c 295664562Sgshapiro sendmail/bf_portable.h 295764562Sgshapiro sendmail/bf_torek.c 295864562Sgshapiro sendmail/bf_torek.h 295964562Sgshapiro sendmail/shmticklib.c 296064562Sgshapiro sendmail/statusd_shm.h 296164562Sgshapiro sendmail/timers.c 296264562Sgshapiro sendmail/timers.h 296364562Sgshapiro smrsh/Makefile 296464562Sgshapiro vacation/Makefile 296564562Sgshapiro Renamed Files: 296664562Sgshapiro cf/ostype/gnuhurd.m4 => cf/ostype/gnu.m4 296764562Sgshapiro sendmail/cdefs.h => include/sendmail/cdefs.h 296864562Sgshapiro sendmail/sendmail.hf => sendmail/helpfile 296964562Sgshapiro sendmail/mailstats.h => include/sendmail/mailstats.h 297064562Sgshapiro sendmail/pathnames.h => include/sendmail/pathnames.h 297164562Sgshapiro sendmail/safefile.c => libsmutil/safefile.c 297264562Sgshapiro sendmail/snprintf.c => libsmutil/snprintf.c 297364562Sgshapiro sendmail/useful.h => include/sendmail/useful.h 297464562Sgshapiro cf/ostype/solaris2.m4 => cf/ostype/solaris2.pre5.m4 297564562Sgshapiro Copied Files: 297664562Sgshapiro cf/ostype/solaris2.ml.m4 => cf/ostype/solaris2.m4 297764562Sgshapiro 297864562Sgshapiro8.9.3/8.9.3 1999/02/04 297943730Speter SECURITY: Limit message headers to a maximum of 32K bytes (total 298043730Speter of all headers in a single message) to prevent a denial of 298143730Speter service attack. This limit will be configurable in 8.10. 298243730Speter Problem noted by Michal Zalewski of the "Internet for 298343730Speter Schools" project (IdS). 298443730Speter Prevent segmentation fault on an LDAP lookup if the LDAP map 298543730Speter was closed due to an earlier failure. Problem noted by 298643730Speter Jeff Wasilko of smoe.org. Fix from Booker Bense of 298743730Speter Stanford University and Per Hedeland of Ericsson. 298843730Speter Preserve the order of the MIME headers in multipart messages 298943730Speter when performing the MIME header length check. This 299043730Speter will allow PGP signatures to function properly. Problem 299143730Speter noted by Lars Hecking of University College, Cork, Ireland. 299243730Speter If ruleset 5 rewrote the local address to an :include: directive, 299343730Speter the delivery would fail with an "aliasing/forwarding loop 299443730Speter broken" error. Problem noted by Eric C Hagberg of Morgan 299543730Speter Stanley. Fix from Per Hedeland of Ericsson. 299643730Speter Allow -T to work for bestmx maps. Fix from Aaron Schrab of 299743730Speter ExecPC Internet Systems. 299843730Speter During the transfer of a message in an SMTP transaction, if a 299943730Speter TCP timeout occurs, the message would be properly queued 300043730Speter for later retry but the failure would be logged as 300143730Speter "Illegal Seek" instead of a timeout. Problem noted by 300243730Speter Piotr Kucharski of the Warsaw School of Economics (SGH) 300343730Speter and Carles Xavier Munyoz Baldo of CTV Internet. 300443730Speter Prevent multiple deliveries on a self-referencing alias if the 300543730Speter F=w mailer flag is not set. Problem noted by Murray S. 300643730Speter Kucherawy of Concentric Network Corporation and Per 300743730Speter Hedeland of Ericsson. 300843730Speter Do not strip empty headers but if there is no value and a 300943730Speter default is defined in sendmail.cf, use the default. 301043730Speter Problem noted by Philip Guenther of Gustavus Adolphus 301143730Speter College and Christopher McCrory of Netus, Inc. 301243730Speter Don't inherit information about the sender (notably the full name) 301343730Speter in SMTP (-bs) mode, since this might be called from inetd. 301443730Speter Accept any 3xx reply code in response to DATA command instead of 301543730Speter requiring 354. This change will match the wording to be 301643730Speter published in the updated SMTP specification from the DRUMS 301743730Speter group of the IETF. 301843730Speter Portability: 301964562Sgshapiro AIX 4.2.0 or 4.2.1 may become updated by the fileset 302064562Sgshapiro bos.rte.net level 4.2.0.2. This introduces the 302164562Sgshapiro softlink /usr/lib/libbind.a which should 302243730Speter not be used. It conflicts with the resolver 302343730Speter built into libc.a. "bind" has been removed 302443730Speter from the confLIBSEARCH BuildTools variable. 302543730Speter Users who have installed BIND 8.X will have 302643730Speter to add it back in their site.config.m4 file. 302743730Speter Problem noted by Ole Holm Nielsen of the 302843730Speter Technical University of Denmark. 302943730Speter CRAY TS 10.0.x from Sven Nielsen of San Diego 303043730Speter Supercomputer Center. 303143730Speter Improved LDAP version 3 integration based on input 303243730Speter from Kurt D. Zeilenga of the OpenLDAP Foundation, 303343730Speter John Beck of Sun Microsystems, and Booker Bense 303443730Speter of Stanford University. 303543730Speter Linux doesn't have a standard way to get the timezone 303643730Speter between different releases. Back out the 303743730Speter change in 8.9.2 and don't attempt to derive 303843730Speter a timezone. Problem reported by Igor S. Livshits 303943730Speter of the University of Illinois at Urbana-Champaign 304043730Speter and Michael Dickens of Tetranet Communications. 304143730Speter Reliant UNIX, the new name for SINIX, from Gert-Jan Looy 304243730Speter of Siemens/SNI. 304343730Speter SunOS 5.8 from John Beck of Sun Microsystems. 304443730Speter CONFIG: SCO UnixWare 2.1 and 7.0 need TZ to get the proper 304543730Speter timezone. Problem noted by Petr Lampa of Technical 304643730Speter University of Brno. 304743730Speter CONFIG: Handle <@bestmx-host:user@otherhost> addressing properly 304843730Speter when using FEATURE(bestmx_is_local). Patch from Neil W. 304943730Speter Rickert of Northern Illinois University. 305043730Speter CONFIG: Properly handle source routed and %-hack addresses on 305143730Speter hosts which the mailertable remaps to local:. Patch from 305243730Speter Neil W. Rickert of Northern Illinois University. 305343730Speter CONFIG: Internal fixup of mailertable local: map value. Patch from 305443730Speter Larry Parmelee of Cornell University. 305543730Speter CONFIG: Only add back +detail from host portion of mailer triplet 305643730Speter on local mailer triplets if it was originally +detail. 305743730Speter Patch from Neil W. Rickert of Northern Illinois University. 305843730Speter CONFIG: The bestmx_is_local checking done in check_rcpt would 305943730Speter cause later checks to fail. Patch from Paul J Murphy of 306043730Speter MIDS Europe. 306164562Sgshapiro New Files: 306243730Speter BuildTools/OS/CRAYTS.10.0.x 306343730Speter BuildTools/OS/ReliantUNIX 306443730Speter BuildTools/OS/SunOS.5.8 306543730Speter 306664562Sgshapiro8.9.2/8.9.2 1998/12/30 306742575Speter SECURITY: Remove five second sleep on accepting daemon connections 306842575Speter due to an accept() failure. This sleep could be used 306942575Speter for a denial of service attack. 307042575Speter Do not silently ignore queue files with names which are too long. 307142575Speter Patch from Bryan Costales of InfoBeat, Inc. 307242575Speter Do not store failures closing an SMTP session in persistent 307342575Speter host status. Reported by Graeme Hewson of Oracle 307442575Speter Corporation UK. 307542575Speter Allow symbolic link forward files if they are in safe directories. 307642575Speter Problem noted by Andreas Schott of the Max Planck Society. 307742575Speter Missing columns in a text map could cause a segmentation fault. 307842575Speter Fix from David Lee of the University of Durham. 307943730Speter Note that for 8.9.X, PrivacyOptions=goaway also includes the 308042575Speter noetrn flag. This is scheduled to change in a future 308142575Speter version of sendmail. Problem noted by Theo Van Dinter of 308242575Speter Chrysalis Symbolic Designa and Alan Brown of Manawatu 308342575Speter Internet Services. 308442575Speter When trying to do host canonification in a Wildcard MX 308542575Speter environment, try an MX lookup of the hostname without the 308642575Speter default domain appended. Problem noted by Olaf Seibert of 308742575Speter Polderland Language & Speech Technology. 308842575Speter Reject SMTP RCPT To: commands with only comments (i.e. 308942575Speter 'RCPT TO: (comment)'. Problem noted by Earle Ake of 309042575Speter Hassler Communication Systems Technology, Inc. 309142575Speter Handle any number of %s in the LDAP filter spec. Patch from 309242575Speter Per Hedeland of Ericsson. 309342575Speter Clear ldapx open timeouts even if the map open failed to prevent 309442575Speter a segmentation fault. Patch from Wayne Knowles of the 309542575Speter National Institute of Water & Atmospheric Research Ltd. 309642575Speter Do not syslog envelope clone messages when using address 309742575Speter verification (-bv). Problem noted by Kari Hurtta of the 309842575Speter Finnish Meteorological Institute. 309942575Speter Continue to perform queue runs while in daemon mode even if the 310042575Speter daemon is rejecting connections due to a disk full 310142575Speter condition. Problem noted by JR Oldroyd of TerraNet 310242575Speter Internet Services. 310342575Speter Include full filename on installation of the sendmail.hf file 310442575Speter in case the $HFDIR directory does not exist. Problem 310542575Speter noted by Josef Svitak of Montana State University. 310642575Speter Close all maps when exiting the process with one exception. 310764562Sgshapiro Berkeley DB can use internal shared memory locking for 310864562Sgshapiro its memory pool. Closing a map opened by another process 310964562Sgshapiro will interfere with the shared memory and locks of the 311064562Sgshapiro parent process leaving things in a bad state. For 311142575Speter Berkeley DB, only close the map if the current process 311242575Speter is also the one that opened the map, otherwise only close 311342575Speter the map file descriptor. Thanks to Yoseff Francus of 311442575Speter Collective Technologies for volunteering his system for 311542575Speter extended testing. 311642575Speter Avoid null pointer dereference on XDEBUG output for SMTP reply 311742575Speter failures. Problem noted by Carlos Canau of EUnet Portugal. 311842575Speter On mailq and hoststat listings being piped to another program, such 311964562Sgshapiro as more, if the pipe closes (i.e., the user quits more), 312042575Speter stop sending output and exit. Patch from Allan E Johannesen 312142575Speter of Worcester Polytechnic Institute. 312242575Speter In accordance with the documentation, LDAP map lookup failures 312342575Speter are now considered temporary failures instead of permanent 312442575Speter failures unless the -t flag is used in the map definition. 312542575Speter Problem noted by Booker Bense of Stanford University and 312642575Speter Eric C. Hagberg of Morgan Stanley. 312742575Speter Fix by one error reporting on long alias names. Problem noted by 312842575Speter H. Paul Hammann of the Missouri Research and Education 312942575Speter Network. 313042575Speter Fix DontBlameSendmail=IncludeFileInUnsafeDirPath behavior. Problem 313142575Speter noted by Barry S. Finkel of Argonne National Laboratory. 313242575Speter When automatically converting from 8 bit to quoted printable MIME, 313342575Speter be careful not to miss a multi-part boundary if that 313442575Speter boundary is preceded by a boundary-like line. Problem 313542575Speter noted by Andreas Raschle of Ansid Inc. Fix from 313642575Speter Kari Hurtta of the Finnish Meteorological Institute. 313742575Speter Avoid bogus reporting of "LMTP tobuf overflow" when the buffer 313842575Speter has enough space for the additional address. Problem 313942575Speter noted by Steve Cliffe of the University of Wollongong. 314043730Speter Fix DontBlameSendmail=FileDeliveryToSymlink behavior. Problem 314142575Speter noted by Alex Vorobiev of Swarthmore College. 314242575Speter If the check_compat ruleset resolves to the $#discard mailer, 314342575Speter discard the current recipient. Unlike check_relay, 314442575Speter check_mail, and check_rcpt, the entire envelope is not 314542575Speter discarded. Problem noted by RZ D. Rahlfs. Fix from 314642575Speter Claus Assmann of Christian-Albrechts-University of Kiel. 314743730Speter Avoid segmentation fault when reading ServiceSwitchFile files with 314842575Speter bogus formatting. Patch from Kari Hurtta of the Finnish 314942575Speter Meteorological Institute. 315042575Speter Support Berkeley DB 2.6.4 API change. 315142575Speter OP.ME: Pages weren't properly output on duplexed printers. Fix 315242575Speter from Matthew Black of CSU Long Beach. 315342575Speter Portability: 315442575Speter Apple Rhapsody from Wilfredo Sanchez of Apple Computer, Inc. 315542575Speter Avoid a clash with IRIX 6.2 getopt.h and the UserDatabase 315642575Speter option structure. Problem noted by Ashley M. 315742575Speter Kirchner of Photo Craft Laboratories, Inc. 315842575Speter Break out IP address to hostname translation for 315942575Speter reading network interface addresses into 316042575Speter class 'w'. Patch from John Kennedy of 316142575Speter Cal State University, Chico. 316242575Speter AIX 4.x use -qstrict with -O3 to prevent the optimized 316342575Speter from changing the semantics of the compiled 316442575Speter program. From Simon Travaglia of the 316542575Speter University of Waikato, New Zealand. 316642575Speter FreeBSD 2.2.2 and later support setusercontext(). From 316742575Speter Peter Wemm of DIALix. 316842575Speter FreeBSD 3.x fix from Peter Wemm of DIALix. 316942575Speter IRIX 5.x has a syslog buffer size of 512 bytes. From 317042575Speter Nao NINOMIYA of Utsunomiya University. 317142575Speter IRIX 6.5 64-bit Build support. 317242575Speter LDAP Version 3 support from John Beck and Ravi Iyer 317342575Speter of Sun Microsystems. 317442575Speter Linux does not implement seteuid() properly. From 317542575Speter John Kennedy of Cal State University, Chico. 317642575Speter Linux timezone type was set improperly. From Takeshi Itoh 317742575Speter of Bits Co., Ltd. 317842575Speter NCR MP-RAS 3.x needs -lresolv for confLIBS. From 317942575Speter Tom J. Moore of NCR. 318042575Speter NeXT 4.x correction to man page path. From J. P. McCann 318142575Speter of E I A. 318243730Speter System V Rel 5.x (a.k.a UnixWare7 w/o BSD-Compatibility Libs) 318342575Speter from Paul Gampe of the Asia Pacific Network 318442575Speter Information Center. 318542575Speter ULTRIX now requires an optimization limit of 970 from 318642575Speter Allan E Johannesen of Worcester Polytechnic 318742575Speter Institute. 318842575Speter Fix extern declaration for sm_dopr(). Fix from Henk 318942575Speter van Oers of Algemeen Nederlands Persbureau. 319042575Speter CONFIG: Catch @hostname,user@anotherhost.domain as relaying. 319142575Speter Problem noted by Mark Rogov of AirMedia, Inc. Fix from 319242575Speter Claus Assmann of Christian-Albrechts-University of Kiel. 319342575Speter CONFIG: Do not refer to http://maps.vix.com/ on RBL rejections as 319442575Speter there are multiple RBL's available and the MAPS RBL may 319542575Speter not be the one in use. Suggested by Alan Brown of 319642575Speter Manawatu Internet Services. 319764562Sgshapiro CONFIG: Properly strip route addresses (i.e., @host1:user@host2) 319842575Speter when stripping down a recipient address to check for 319942575Speter relaying. Patch from Claus Assmann of 320042575Speter Christian-Albrechts-University of Kiel and Neil W Rickert 320142575Speter of Northern Illinois University. 320242575Speter CONFIG: Allow the access database to override RBL lookups. Patch 320342575Speter from Claus Assmann of Christian-Albrechts-University of 320442575Speter Kiel. 320542575Speter CONFIG: UnixWare 7 support from Phillip P. Porch of The Porch 320642575Speter Dot Com. 320742575Speter CONFIG: Fixed check for deferred delivery mode warning. Patch 320842575Speter from Claus Assmann of Christian-Albrechts-University of 320964562Sgshapiro Kiel and Per Hedeland of Ericsson. 321042575Speter CONFIG: If a recipient using % addressing is used, e.g. 321142575Speter user%site@othersite, and othersite's MX records are now 321242575Speter checked for local hosts if FEATURE(relay_based_on_MX) is 321342575Speter used. Problem noted by Alexander Litvin of Lucky Net Ltd. 321442575Speter Patch from Alexander Litvin of Lucky Net Ltd and 321542575Speter Claus Assmann of Christian-Albrechts-University of Kiel. 321642575Speter MAIL.LOCAL: Prevent warning messages from appearing in the LMTP 321742575Speter stream. Do not allow more than one response per recipient. 321842575Speter MAIL.LOCAL: Handle routed addresses properly when using LMTP. Fix 321942575Speter from John Beck of Sun Microsystems. 322042575Speter MAIL.LOCAL: Properly check for CRLF when using LMTP. Fix from 322142575Speter John Beck of Sun Microsystems. 322242575Speter MAIL.LOCAL: Substitute MAILER-DAEMON for the LMTP empty sender in 322342575Speter the envelope From header. 322442575Speter MAIL.LOCAL: Accept underscores in hostnames in LMTP mode. 322542575Speter Problem noted by Glenn A. Malling of Syracuse University. 322642575Speter MAILSTATS: Document msgsrej and msgsdis fields in the man page. 322742575Speter Problem noted by Richard Wong of Princeton University. 322842575Speter MAKEMAP: Build group list so group writable files are allowed with 322942575Speter the -s flag. Problem noted by Curt Sampson of Internet 323042575Speter Portal Services, Inc. 323142575Speter PRALIASES: Automatically handle alias files created without the 323242575Speter NULL byte at the end of the key. Patch from John Beck of 323342575Speter Sun Microsystems. 323442575Speter PRALIASES: Support Berkeley DB 2.6.4 API change. 323542575Speter New Files: 323642575Speter BuildTools/OS/IRIX64.6.5 323742575Speter BuildTools/OS/UnixWare.5.i386 323864562Sgshapiro cf/ostype/unixware7.m4 323942575Speter contrib/smcontrol.pl 324042575Speter src/control.c 324142575Speter 324264562Sgshapiro8.9.1/8.9.1 1998/07/02 324338032Speter If both an OS specific site configuration file and a generic 324438032Speter site.config.m4 file existed, only the latter was used 324538032Speter instead of both. Problem noted by Geir Johannessen of 324638032Speter the Norwegian University of Science and Technology. 324738032Speter Fix segmentation fault while converting 8 bit to 7 bit MIME 324838032Speter multipart messages by trying to write to an unopened 324938032Speter file descriptor. Fix from Kari Hurtta of the Finnish 325038032Speter Meteorological Institute. 325138032Speter Do not assume Message: and Text: headers indicate the end of 325238032Speter the header area when parsing MIME headers. Problem noted 325338032Speter by Kari Hurtta of the Finnish Meteorological Institute. 325438032Speter Setting the confMAN#SRC Build variable would only effect the 325538032Speter installation commands. The man pages would still be 325638032Speter built with .0 extensions. Problem noted by Bryan 325738032Speter Costales of InfoBeat, Inc. 325838032Speter Installation of manual pages didn't honor the DESTDIR environment 325938032Speter variable. Problem noted by Bryan Costales of InfoBeat, Inc. 326038032Speter If the check_relay ruleset resolved to the discard mailer, messages 326138032Speter were still delivered. Problem noted by Mirek Luc of NASK. 326238032Speter Mail delivery to files would fail with an Operating System Error 326364562Sgshapiro if sendmail was not running as root, i.e., RunAsUser was set. 326438032Speter Problem noted by Leonard N. Zubkoff of Dandelion Digital. 326538032Speter Prevent MinQueueAge from interfering from queued items created 326664562Sgshapiro in the future, i.e., if the system clock was set ahead 326738032Speter and then back. Problem noted by Michael Miller of the 326838032Speter University of Natal, Pietermaritzburg. 326938032Speter Do not advertise ETRN support in ESTMP EHLO reply if noetrn is 327043730Speter set in the PrivacyOptions option. Fix from Ted Rule of 327138032Speter Flextech TV. 327238032Speter Log invalid persistent host status file lines instead of 327338032Speter bouncing the message. Problem noted by David Lindes of 327438032Speter DaveLtd Enterprises. 327538032Speter Move creation of empty sendmail.st file from installation to 327638032Speter compilation. Installation may be done from a read-only 327738032Speter mount. Fix from Bryan Costales of InfoBeat, Inc. and Ric 327838032Speter Anderson of the Oasis Research Center, Inc. 327938032Speter Enforce the maximum number of User Database entries limit. Problem 328038032Speter noted by Gary Buchanan of Credence Systems Inc. 328138032Speter Allow dead.letter files in root's home directory. Problem noted 328238032Speter by Anna Ullman of Sun Microsystems. 328338032Speter Program deliveries in forward files could be marked unsafe if 328438032Speter any directory listed in the ForwardPath option did not 328538032Speter exist. Problem noted by Jorg Bielak of Coastal Web Online. 328638032Speter Do not trust the length of the address structure returned by 328738032Speter gethostbyname(). Problem noted by Chris Evans of Oxford 328838032Speter University. 328938032Speter If the SIZE= MAIL From: ESMTP parameter is too large, use the 329038032Speter 5.3.4 DSN status code instead of 5.2.2. Similarly, for 329138032Speter non-local deliveries, if the message is larger than the 329238032Speter mailer maximum message size, use 5.3.4 instead of 5.2.3. 329338032Speter Suggested by Antony Bowesman of 329438032Speter Fujitsu/TeaWARE Mail/MIME System. 329538032Speter Portability: 329638032Speter Fix the check for an IP address reverse lookup for 329738032Speter use in $&{client_name} on 64 bit platforms. 329838032Speter From Gilles Gallot of Institut for Development 329938032Speter and Resources in Intensive Scientific computing. 330038032Speter BSD-OS uses .0 for man page extensions. From Jeff Polk 330138032Speter of BSDI. 330238032Speter DomainOS detection for Build. Also, version 10.4 and later 330338032Speter ship a unistd.h. Fixes from Takanobu Ishimura of 330438032Speter PICT Inc. 330538032Speter NeXT 4.x uses /usr/lib/man/cat for its man pages. From 330638032Speter J. P. McCann of E I A. 330738032Speter SCO 4.X and 5.X include NDBM support. From Vlado Potisk 330838032Speter of TEMPEST, Ltd. 330938032Speter CONFIG: Do not pass spoofed PTR results through resolver for 331038032Speter qualification. Problem noted by Michiel Boland of 331138032Speter Digital Valley Internet Professionals; fix from 331238032Speter Kari Hurtta of the Finnish Meteorological Institute. 331338032Speter CONFIG: Do not try to resolve non-DNS hostnames such as UUCP, 331438032Speter BITNET, and DECNET addresses for resolvable senders. 331538032Speter Problem noted by Alexander Litvin of Lucky Net Ltd. 331638032Speter CONFIG: Work around Sun's broken configuration which sends bounce 331738032Speter messages as coming from @@hostname instead of <>. LMTP 331838032Speter would not accept @@hostname. 331938032Speter OP.ME: Corrections to complex sendmail startup script from Rick 332038032Speter Troxel of the National Institutes of Health. 332138032Speter RMAIL: Do not install rmail by default, require 'make force-install' 332238032Speter as this rmail isn't the same as others. Suggested by 332338032Speter Kari Hurtta of the Finnish Meteorological Institute. 332442575Speter New Files: 332542575Speter BuildTools/OS/DomainOS.10.4 332638032Speter 332764562Sgshapiro8.9.0/8.9.0 1998/05/19 332838032Speter SECURITY: To prevent users from reading files not normally 332938032Speter readable, sendmail will no longer open forward, :include:, 333038032Speter class, ErrorHeader, or HelpFile files located in unsafe 333164562Sgshapiro (i.e., group or world writable) directory paths. Sites 333238032Speter which need the ability to override security can use the 333338032Speter DontBlameSendmail option. See the README file for more 333438032Speter information. 333538032Speter SECURITY: Problems can occur on poorly managed systems, specifically, 333638032Speter if maps or alias files are in world writable directories. 333738032Speter This fixes the change added to 8.8.6 to prevent links in these 333838032Speter world writable directories. 333938032Speter SECURITY: Make sure ServiceSwitchFile option file is not a link if 334038032Speter it is in a world writable directory. 334138032Speter SECURITY: Never pass a tty to a mailer -- if a mailer can get at the 334238032Speter tty it may be able to push bytes back to the senders input. 334338032Speter Unfortunately this breaks -v mode. Problem noted by 334438032Speter Wietse Venema of the Global Security Analysis Lab at 334538032Speter IBM T.J. Watson Research. 334638032Speter SECURITY: Empty group list if DontInitGroups is set to true to 334738032Speter prevent program deliveries from picking up extra group 334838032Speter privileges. Problem reported by Wolfgang Ley of DFN-CERT. 334938032Speter SECURITY: The default value for DefaultUser is now set to the uid and 335038032Speter gid of the first existing user mailnull, sendmail, or daemon 335138032Speter that has a non-zero uid. If none of these exist, sendmail 335238032Speter reverts back to the old behavior of using uid 1 and gid 1. 335338032Speter This is a security problem for Linux which has chosen that 335438032Speter uid and gid for user bin instead of daemon. If DefaultUser 335538032Speter is set in the configuration file, that value overrides this 335638032Speter default. 335790792Sgshapiro SECURITY: Since 8.8.7, the check for non-set-user-ID binaries 335838032Speter interfered with setting an alternate group id for the 335938032Speter RunAsUser option. Problem noted by Randall Winchester of 336038032Speter the University of Maryland. 336138032Speter Add support for Berkeley DB 2.X. Based on patch from John Kennedy 336238032Speter of Cal State University, Chico. 336338032Speter Remove support for OLD_NEWDB (pre-1.5 version of Berkeley DB). Users 336438032Speter which previously defined OLD_NEWDB=1 must now upgrade to the 336538032Speter current version of Berkeley DB. 336638032Speter Added support for regular expressions using the new map class regex. 336738032Speter From Jan Krueger of Unix-AG of University of Hannover. 336838032Speter Support for BIND 8.1.1's hesiod for hesiod maps and hesiod 336938032Speter UserDatabases from Randall Winchester of the University 337038032Speter of Maryland. 337138032Speter Allow any shell for user shell on program deliveries on V1 337238032Speter configurations for backwards compatibility on machines which 337338032Speter do not have getusershell(). Fix from John Beck of Sun 337438032Speter Microsystems. 337538032Speter On operating systems which change the process title by reusing the 337638032Speter argument vector memory, sendmail could corrupt memory if the 337738032Speter last argument was either "-q" or "-d". Problem noted by 337838032Speter Frank Langbein of the University of Stuttgart. 337938032Speter Support Local Mail Transfer Protocol (LMTP) between sendmail and 338038032Speter mail.local on the F=z flag. 338138032Speter Macro-expand the contents of the ErrMsgFile. Previously this was 338238032Speter only done if you had magic characters (0x81) to indicate 338338032Speter macro expansion. Now $x will be expanded. This means that 338438032Speter real dollar signs have to be backslash escaped. 338564562Sgshapiro TCP Wrappers expects "unknown" in the hostname argument if the 338638032Speter reverse DNS lookup for the incoming connection fails. 338738032Speter Problem noted by Randy Grimshaw of Syracuse University and 338838032Speter Wietse Venema of the Global Security Analysis Lab at 338938032Speter IBM T.J. Watson Research. 339038032Speter DSN success bounces generated from an invocation of sendmail -t 339138032Speter would be sent to both the sender and MAILER-DAEMON. 339238032Speter Problem noted by Claus Assmann of 339338032Speter Christian-Albrechts-University of Kiel. 339438032Speter Avoid "Error 0" messages on delivery mailers which exit with a 339538032Speter valid exit value such as EX_NOPERM. Fix from Andreas Luik 339638032Speter of ISA Informationssysteme GmbH. 339738032Speter Tokenize $&x expansions on right hand side of rules. This eliminates 339838032Speter the need to use tricks like $(dequote "" $&{client_name} $) 339938032Speter to cause the ${client_name} macro to be properly tokenized. 340038032Speter Add the MaxRecipientsPerMessage option: this limits the number of 340138032Speter recipients that will be accepted in a single SMTP 340238032Speter transaction. After this number is reached, sendmail 340338032Speter starts returning "452 Too many recipients" to all RCPT 340438032Speter commands. This can be used to limit the number of recipients 340538032Speter per envelope (in particular, to discourage use of the server 340638032Speter for spamming). Note: a better approach is to restrict 340738032Speter relaying entirely. 340838032Speter Fixed pointer initialization for LDAP lmap struct, fixed -s option 340938032Speter to ldapx map and added timeout for ldap_open call to 341038032Speter avoid hanging sendmail in the event of hung LDAP servers. 341138032Speter Patch from Booker Bense of Stanford University. 341238032Speter Allow multiple -qI, -qR, or -qS queue run limiters. For example, 341338032Speter '-qRfoo -qRbar' would deliver mail to recipients with foo or 341438032Speter bar in their address. Patch from Allan E Johannesen of 341538032Speter Worcester Polytechnic Institute. 341638032Speter The bestmx map will now return a list of the MX servers for a host if 341738032Speter passed a column delimiter via the -z map flag. This can be 341838032Speter used to check if the server is an MX server for the recipient 341938032Speter of a message. This can be used to help prevent relaying. 342038032Speter Patch from Mitchell Blank Jr of Exec-PC. 342138032Speter Mark failures for the *file* mailer and return bounce messages to the 342238032Speter sender for those failures. 342338032Speter Prevent bogus syslog timestamps on errors in sendmail.cf by 342438032Speter preserving the TZ environment variable until TimeZoneSpec 342538032Speter has been determined. Problem noted by Ralf Hildebrandt of 342638032Speter Technical University of Braunschweig. Patch from Per Hedeland 342738032Speter of Ericsson. 342838032Speter Print test input in address test mode when input is not from the tty 342964562Sgshapiro when the -v flag is given (i.e., sendmail -bt -v) to make 343038032Speter output easier to decipher. Problem noted by Aidan Nichol 343138032Speter of Procter & Gamble. 343238032Speter The LDAP map -s flag was not properly parsed and the error message 343364562Sgshapiro given included the remainder of the arguments instead of 343438032Speter solely the argument in error. Problem noted by Aidan Nichol 343538032Speter of Procter & Gamble. 343638032Speter New DontBlameSendmail option. This option allows administrators to 343738032Speter bypass some of sendmail's file security checks at the expense 343838032Speter of system security. This should only be used if you are 343938032Speter absolutely sure you know the consequences. The available 344038032Speter DontBlameSendmail options are: 344138032Speter Safe 344238032Speter AssumeSafeChown 344338032Speter ClassFileInUnsafeDirPath 344438032Speter ErrorHeaderInUnsafeDirPath 344538032Speter GroupWritableDirPathSafe 344638032Speter GroupWritableForwardFileSafe 344738032Speter GroupWritableIncludeFileSafe 344838032Speter GroupWritableAliasFile 344938032Speter HelpFileinUnsafeDirPath 345038032Speter WorldWritableAliasFile 345138032Speter ForwardFileInGroupWritableDirPath 345238032Speter IncludeFileInGroupWritableDirPath 345338032Speter ForwardFileInUnsafeDirPath 345438032Speter IncludeFileInUnsafeDirPath 345538032Speter ForwardFileInUnsafeDirPathSafe 345638032Speter IncludeFileInUnsafeDirPathSafe 345738032Speter MapInUnsafeDirPath 345838032Speter LinkedAliasFileInWritableDir 345938032Speter LinkedClassFileInWritableDir 346038032Speter LinkedForwardFileInWritableDir 346138032Speter LinkedIncludeFileInWritableDir 346238032Speter LinkedMapInWritableDir 346338032Speter LinkedServiceSwitchFileInWritableDir 346438032Speter FileDeliveryToHardLink 346538032Speter FileDeliveryToSymLink 346638032Speter WriteMapToHardLink 346738032Speter WriteMapToSymLink 346838032Speter WriteStatsToHardLink 346938032Speter WriteStatsToSymLink 347038032Speter RunProgramInUnsafeDirPath 347138032Speter RunWritableProgram 347238032Speter New DontProbeInterfaces option to turn off the inclusion of all the 347338032Speter interface names in $=w on startup. In particular, if you 347438032Speter have lots of virtual interfaces, this option will speed up 347538032Speter startup. However, unless you make other arrangements, mail 347638032Speter sent to those addresses will be bounced. 347738032Speter Automatically create alias databases if they don't exist and 347838032Speter AutoRebuildAliases is set. 347938032Speter Add PrivacyOptions=noetrn flag to disable the SMTP ETRN command. 348038032Speter Suggested by Christophe Wolfhugel of the Institut Pasteur. 348138032Speter Add PrivacyOptions=noverb flag to disable the SMTP VERB command. 348238032Speter When determining the client host name ($&{client_name} macro), do 348338032Speter a forward (A) DNS lookup on the result of the PTR lookup 348438032Speter and compare results. If they differ or if the PTR lookup 348538032Speter fails, &{client_name} will contain the IP address 348664562Sgshapiro surrounded by square brackets (e.g., [127.0.0.1]). 348738032Speter New map flag: -Tx appends "x" to lookups that return temporary failure 348838032Speter (i.e, it is like -ax for the temporary failure case, in 348938032Speter contrast to the success case). 349038032Speter New syntax to do limited checking of header syntax. A config line 349138032Speter of the form: 349238032Speter HHeader: $>Ruleset 349338032Speter causes the indicated Ruleset to be invoked on the Header 349438032Speter when read. This ruleset works like the check_* rulesets -- 349538032Speter that is, it can reject mail on the basis of the contents. 349638032Speter Limit the size of the HELO/EHLO parameter to prevent spammers 349738032Speter from hiding their connection information in Received: 349838032Speter headers. 349938032Speter When SingleThreadDelivery is active, deliveries to locked hosts 350038032Speter are skipped. This will cause the delivering process to 350138032Speter try the next MX host or queue the message if no other MX 350238032Speter hosts are available. Suggested by Alexander Litvin. 350338032Speter The [FILE] mailer type now delivers to the file specified in the 350438032Speter A= equate of the mailer definition instead of $u. It also 350538032Speter obeys all of the F= mailer flags such as the MIME 350638032Speter 7/8 bit conversion flags. This is useful for defining 350738032Speter a mailer which delivers to the same file regardless of the 350864562Sgshapiro recipient (e.g., 'A=FILE /dev/null' to discard unwanted mail). 350938032Speter Do not assume the identity of a remote connection is root@localhost 351038032Speter if the remote connection closes the socket before the 351138032Speter remote identity can be queried. 351238032Speter Change semantics of the F=S mailer flag back to 8.7.5 behavior. 351338032Speter Some mailers, including procmail, require that the real 351438032Speter uid is left unchanged by sendmail. Problem noted by Per 351538032Speter Hedeland of Ericsson. 351638032Speter No longer is the src/obj*/Makefile selected from a large list -- it 351738032Speter is now generated using the information in BuildTools/OS/ -- 351838032Speter some of the details are determined dynamically via 351938032Speter BuildTools/bin/configure.sh. 352038032Speter The other programs in the sendmail distribution -- mail.local, 352138032Speter mailstats, makemap, praliases, rmail, and smrsh -- now use 352238032Speter the new Build method which creates an operating system 352338032Speter specific Makefile using the information in BuildTools. 352438032Speter Make 4xx reply codes to the SMTP MAIL command be non-sticky (i.e., 352538032Speter a failure on one message won't affect future messages to the 352638032Speter same host). This is necessary if the remote host sends 352738032Speter a 451 error if the domain of the sender does not resolve 352838032Speter as is common in anti-spam configurations. Problem noted 352938032Speter by Mitchell Blank Jr of Exec-PC. 353038032Speter New "discard" mailer for check_* rulesets and header checking 353138032Speter rulesets. If one of the above rulesets resolves to the 353238032Speter $#discard mailer, the commands will be accepted but the 353338032Speter message will be completely discarded after it is accepting. 353438032Speter This means that even if only one of the recipients 353538032Speter resolves to the $#discard mailer, none of the recipients 353638032Speter will receive the mail. Suggested by Brian Kantor. 353738032Speter All but the last cloned envelope of a split envelope were queued 353838032Speter instead of being delivered. Problem noted by John Caruso 353938032Speter of CNET: The Computer Network. 354038032Speter Fix deadlock situation in persistent host status file locking. 354138032Speter Syslog an error if a user forward file could not be read due to 354238032Speter an error. Patch from John Beck of Sun Microsystems. 354338032Speter Use the first name returned on machine lookups when canonifying a 354438032Speter hostname via NetInfo. Patch from Timm Wetzel of GWDG. 354538032Speter Clear the $&{client_addr}, $&{client_name}, and $&{client_port} 354638032Speter macros when delivering a bounce message to prevent 354738032Speter rejection by a check_compat ruleset which uses these macros. 354838032Speter Problem noted by Jens Hamisch of AgiX Internetservices GmbH. 354938032Speter If the check_relay ruleset resolves to the the error mailer, the 355038032Speter error in the $: portion of the resolved triplet is used 355138032Speter in the rejection message given to the remote machine. 355238032Speter Suggested by Scott Gifford of The Internet Ramp. 355338032Speter Set the $&{client_addr}, $&{client_name}, and $&{client_port} macros 355438032Speter before calling the check_relay ruleset. Suggested by Scott 355538032Speter Gifford of The Internet Ramp. 355638032Speter Sendmail would get a segmentation fault if a mailer exited with an 355738032Speter exit code of 79. Problem noted by Aaron Schrab of ExecPC 355838032Speter Internet. Fix from Christophe Wolfhugel of the Pasteur 355938032Speter Institute. 356038032Speter Separate snprintf/vsnprintf routines into separate file for use by 356138032Speter mail.local. 356238032Speter Allow multiple map lookups on right hand side, e.g., 356338032Speter R$* $( host $1 $) $| $( passwd $1 $). Patch from 356438032Speter Christophe Wolfhugel of the Pasteur Institute. 356538032Speter Properly generate success DSN messages if requested for aliases 356638032Speter which have owner- aliases. Problem noted by Kari Hurtta 356738032Speter of the Finnish Meteorological Institute. 356838032Speter Properly display delayed-expansion macros ($&{macroname}) in 356938032Speter address test mode (-bt). Problem noted by Bryan Costales 357038032Speter of InfoBeat, Inc. 357138032Speter -qR could sometimes match names incorrectly. Problem noted by 357238032Speter Lutz Euler of Lavielle EDV Systemberatung GmbH & Co. 357338032Speter Include a magic number and version in the StatusFile for the 357438032Speter mailstats command. 357538032Speter Record the number of rejected and discarded messages in the 357638032Speter StatusFile for display by the mailstats command. Patch 357738032Speter from Randall Winchester of the University of Maryland. 357838032Speter IDENT returns where the OSTYPE field equals "OTHER" now list the 357938032Speter user portion as IDENT:username@site instead of 358038032Speter username@site to differentiate the two. Suggested by 358138032Speter Kari Hurtta of the Finnish Meteorological Institute. 358238032Speter Enforce timeout for LDAP queries. Patch from Per Hedeland of 358338032Speter Ericsson. 358438032Speter Change persistent host status filename substitution so '/' is 358538032Speter replaced by ':' instead of '|' to avoid clashes. Also 358638032Speter avoid clashes with hostnames with leading dots. Fix from 358738032Speter Mitchell Blank Jr. of Exec-PC. 358838032Speter If the system lock table is full, only attempt to create a new 358938032Speter queue entry five times before giving up. Previously, it 359038032Speter was attempted indefinitely which could cause the partition 359138032Speter to run out of inodes. Problem noted by Suzie Weigand of 359238032Speter Stratus Computer, Inc. 359338032Speter In verbose mode, warn if the sendmail.cf version is less than the 359438032Speter currently supported version. 359538032Speter Sorting for QueueSortOrder=host is now case insensitive. Patch 359638032Speter from Randall S. Winchester of the University of Maryland. 359738032Speter Properly quote a full name passed via the -F command line option, 359838032Speter the Full-Name: header, or the NAME environment variable if 359938032Speter it contains characters which must be quoted. Problem noted 360038032Speter by Kari Hurtta of the Finnish Meteorological Institute. 360138032Speter Avoid possible race condition that unlocked a mail job before 360238032Speter releasing the transcript file on systems that use flock(2). 360338032Speter In some cases, this might result in a "Transcript Unavailable" 360438032Speter message in error bounces. 360538032Speter Accept SMTP replies which contain only a reply code and no 360638032Speter accompanying text. Problem noted by Fernando Fraticelli of 360738032Speter Digital Equipment Corporation. 360838032Speter Portability: 360938032Speter AIX 4.1 uses int for SOCKADDR_LEN_T from Motonori Nakamura 361038032Speter of Kyoto University. 361138032Speter AIX 4.2 requires <userpw.h> before <usersec.h>. Patch from 361238032Speter Randall S. Winchester of the University of 361338032Speter Maryland. 361438032Speter AIX 4.3 from Valdis Kletnieks of Virginia Tech CNS. 361538032Speter CRAY T3E from Manu Mahonen of Center for Scientific Computing 361638032Speter in Finland. 361738032Speter Digital UNIX now uses statvfs for determining free 361838032Speter disk space. Patch from Randall S. Winchester of 361938032Speter the University of Maryland. 362038032Speter HP-UX 11.x from Richard Allen of Opin Kerfi HF and 362138032Speter Regis McEwen of Progress Software Corporation. 362238032Speter IRIX 64 bit fixes from Kari Hurtta of the Finnish 362338032Speter Meteorological Institute. 362438032Speter IRIX 6.2 configuration fix for mail.local from Michael Kyle 362538032Speter of CIC/Advanced Computing Laboratory. 362638032Speter IRIX 6.5 from Thomas H Jones II of SGI. 362738032Speter IRIX 6.X load average code from Bob Mende of SGI. 362838032Speter QNX from Glen McCready <glen@qnx.com>. 362938032Speter SCO 4.2 and 5.x use /usr/bin instead of /usr/ucb for links 363038032Speter to sendmail. Install with group bin instead of kmem 363138032Speter as kmem does not exist. From Guillermo Freige of 363238032Speter Gobernacion de la Pcia de Buenos Aires and Paul 363338032Speter Fischer of BTG, Inc. 363438032Speter SunOS 4.X does not include memmove(). Patch from 363538032Speter Per Hedeland of Ericsson. 363638032Speter SunOS 5.7 includes getloadavg() function for determining 363738032Speter load average. Patch from John Beck of Sun 363838032Speter Microsystems. 363938032Speter CONFIG: Increment version number of config file. 364038032Speter CONFIG: add DATABASE_MAP_TYPE to set the default type of database 364138032Speter map for the various maps. The default is hash. Patch from 364238032Speter Robert Harker of Harker Systems. 364338032Speter CONFIG: new confEBINDIR m4 variable for defining the executable 364438032Speter directory for certain programs. 364538032Speter CONFIG: new FEATURE(local_lmtp) to use the new LMTP support for 364638032Speter local mail delivery. By the default, /usr/libexec/mail.local 364738032Speter is used. This is expected to be the mail.local shipped 364838032Speter with 8.9 which is LMTP capable. The path is based on the 364938032Speter new confEBINDIR m4 variable. 365038032Speter CONFIG: Use confEBINDIR in determining path to smrsh for 365138032Speter FEATURE(smrsh). Note that this changes the default from 365238032Speter /usr/local/etc/smrsh to /usr/libexec/smrsh. To obtain the 365338032Speter old path for smrsh, use FEATURE(smrsh, /usr/local/etc/smrsh). 365438032Speter CONFIG: DOMAIN(generic) changes the default confFORWARD_PATH to 365538032Speter include $z/.forward.$w+$h and $z/.forward+$h which allow 365638032Speter the user to setup different .forward files for 365738032Speter user+detail addressing. 365838032Speter CONFIG: add confMAX_RCPTS_PER_MESSAGE, confDONT_PROBE_INTERFACES, 365938032Speter and confDONT_BLAME_SENDMAIL to set MaxRecipientsPerMessage, 366038032Speter DontProbeInterfaces, and DontBlameSendmail options. 366138032Speter CONFIG: by default do not allow relaying (that is, accepting mail 366238032Speter from outside your domain and sending it to another host 366338032Speter outside your domain). 366438032Speter CONFIG: new FEATURE(promiscuous_relay) to allow mail relaying from 366538032Speter any site to any site. 366638032Speter CONFIG: new FEATURE(relay_entire_domain) allows any host in your 366738032Speter domain as defined by the 'm' class ($=m) to relay. 366838032Speter CONFIG: new FEATURE(relay_based_on_MX) to allow relaying based on 366938032Speter the MX records of the host portion of an incoming recipient. 367038032Speter CONFIG: new FEATURE(access_db) which turns on the access database 367177349Sgshapiro feature. This database gives you the ability to allow 367238032Speter or refuse to accept mail from specified domains for 367338032Speter administrative reasons. By default, names that are listed 367438032Speter as "OK" in the access db are domain names, not host names. 367538032Speter CONFIG: new confCR_FILE m4 variable for defining the name of the file 367638032Speter used for class 'R'. Defaults to /etc/mail/relay-domains. 367738032Speter CONFIG: new command RELAY_DOMAIN(domain) and RELAY_DOMAIN_FILE(file) 367838032Speter to add items to class 'R' ($=R) for hosts allowed to relay. 367938032Speter CONFIG: new FEATURE(relay_hosts_only) to change the behavior 368038032Speter of FEATURE(access_db) and class 'R' to lookup individual 368138032Speter host names only. 368238032Speter CONFIG: new FEATURE(loose_relay_check). Normally, if a recipient 368338032Speter using % addressing is used, e.g. user%site@othersite, 368438032Speter and othersite is in class 'R', the check_rcpt ruleset 368538032Speter will strip @othersite and recheck user@site for relaying. 368638032Speter This feature changes that behavior. It should not be 368738032Speter needed for most installations. 368838032Speter CONFIG: new FEATURE(relay_local_from) to allow relaying if the 368938032Speter domain portion of the mail sender is a local host. This 369038032Speter should only be used if absolutely necessary as it opens 369138032Speter a window for spammers. Patch from Randall S. Winchester of 369238032Speter the University of Maryland. 369338032Speter CONFIG: new FEATURE(blacklist_recipients) turns on the ability to 369438032Speter block incoming mail destined for certain recipient 369538032Speter usernames, hostnames, or addresses. 369638032Speter CONFIG: By default, MAIL FROM: commands in the SMTP session will be 369738032Speter refused if the host part of the argument to MAIL FROM: cannot 369838032Speter be located in the host name service (e.g., DNS). 369938032Speter CONFIG: new FEATURE(accept_unresolvable_domains) accepts 370038032Speter unresolvable hostnames in MAIL FROM: SMTP commands. 370138032Speter CONFIG: new FEATURE(accept_unqualified_senders) accepts 370238032Speter MAIL FROM: senders which do not include a domain. 370338032Speter CONFIG: new FEATURE(rbl) Turns on rejection of hosts found in the 370438032Speter Realtime Blackhole List. You can specify the RBL name 370538032Speter server to contact by specifying it as an optional argument. 370638032Speter The default is rbl.maps.vix.com. For details, see 370738032Speter http://maps.vix.com/rbl/. 370838032Speter CONFIG: Call Local_check_relay, Local_check_mail, and 370938032Speter Local_check_rcpt from check_relay, check_mail, and 371038032Speter check_rcpt. Users with local rulesets should place the 371138032Speter rules using LOCAL_RULESETS. If a Local_check_* ruleset 371238032Speter returns $#OK, the message is accepted. If the ruleset 371338032Speter returns a mailer, the appropriate action is taken, else 371438032Speter the return of the ruleset is ignored. 371538032Speter CONFIG: CYRUS_MAILER_FLAGS now includes the /:| mailer flags by 371638032Speter default to support file, :include:, and program deliveries. 371738032Speter CONFIG: Remove the default for confDEF_USER_ID so the binary can 371838032Speter pick the proper default value. See the SECURITY note 371938032Speter above for more information. 372038032Speter CONFIG: FEATURE(nodns) now warns the user that the feature is a 372138032Speter no-op. Patch from Kari Hurtta of the Finnish 372238032Speter Meteorological Institute. 372338032Speter CONFIG: OSTYPE(osf1) now sets DefaultUserID (confDEF_USER_ID) to 372438032Speter daemon since DEC's /bin/mail will drop the envelope 372538032Speter sender if run as mailnull. See the Digital UNIX section 372638032Speter of src/README for more information. Problem noted by 372738032Speter Kari Hurtta of the Finnish Meteorological Institute. 372838032Speter CONFIG: .cf files are now stored in the same directory with the 372938032Speter .mc files instead of in the obj directory. 373064562Sgshapiro CONFIG: New options confSINGLE_LINE_FROM_HEADER, 373138032Speter confALLOW_BOGUS_HELO, and confMUST_QUOTE_CHARS for 373238032Speter setting SingleLineFromHeader, AllowBogusHELO, and 373338032Speter MustQuoteChars respectively. 373438032Speter MAIL.LOCAL: support -l flag to run LMTP on stdin/stdout. This 373538032Speter SMTP-like protocol allows detailed reporting of delivery 373638032Speter status on a per-user basis. Code donated by John Myers of 373738032Speter CMU (now of Netscape). 373838032Speter MAIL.LOCAL: HP-UX support from Randall S. Winchester of the 373964562Sgshapiro University of Maryland. NOTE: mail.local is not 374038032Speter compatible with the stock HP-UX mail format. Be sure to 374138032Speter read mail.local/README. 374238032Speter MAIL.LOCAL: Prevent other mail delivery agents from stealing a 374338032Speter mailbox lock. Patch from Randall S. Winchester of the 374438032Speter University of Maryland. 374538032Speter MAIL.LOCAL: glibc portability from John Kennedy of Cal State 374638032Speter University, Chico. 374738032Speter MAIL.LOCAL: IRIX portability from Kari Hurtta of the Finnish 374838032Speter Meteorological Institute. 374938032Speter MAILSTATS: Display the number of rejected and discarded messages 375038032Speter in the StatusFile. Patch from Randall Winchester of the 375138032Speter University of Maryland. 375238032Speter MAKEMAP: New -s flag to ignore safety checks on database map files 375338032Speter such as linked files in world writable directories. 375438032Speter MAKEMAP: Add support for Berkeley DB 2.X. Remove OLD_NEWDB support. 375538032Speter PRALIASES: Add support for Berkeley DB 2.X. 375638032Speter PRALIASES: Do not automatically include NDBM support. Problem 375738032Speter noted by Ralf Hildebrandt of the Technical University of 375838032Speter Braunschweig. 375938032Speter RMAIL: Improve portability for other platforms. Patches from 376038032Speter Randall S. Winchester of the University of Maryland and 376138032Speter Kari Hurtta of the Finnish Meteorological Institute. 376238032Speter Changed Files: 376338032Speter src/Makefiles/Makefile.* files have been modified to use 376438032Speter the new build mechanism and are now BuildTools/OS/*. 376538032Speter src/makesendmail changed to symbolic link to src/Build. 376638032Speter New Files: 376738032Speter BuildTools/M4/header.m4 376838032Speter BuildTools/M4/depend/BSD.m4 376938032Speter BuildTools/M4/depend/CC-M.m4 377038032Speter BuildTools/M4/depend/NCR.m4 377138032Speter BuildTools/M4/depend/Solaris.m4 377238032Speter BuildTools/M4/depend/X11.m4 377338032Speter BuildTools/M4/depend/generic.m4 377438032Speter BuildTools/OS/AIX.4.2 377538032Speter BuildTools/OS/AIX.4.x 377638032Speter BuildTools/OS/CRAYT3E.2.0.x 377738032Speter BuildTools/OS/HP-UX.11.x 377838032Speter BuildTools/OS/IRIX.6.5 377938032Speter BuildTools/OS/NEXTSTEP.4.x 378038032Speter BuildTools/OS/NeXT.4.x 378138032Speter BuildTools/OS/NetBSD.8.3 378238032Speter BuildTools/OS/QNX 378338032Speter BuildTools/OS/SunOS.5.7 378438032Speter BuildTools/OS/dcosx.1.x.NILE 378538032Speter BuildTools/README 378638032Speter BuildTools/Site/README 378738032Speter BuildTools/bin/Build 378838032Speter BuildTools/bin/configure.sh 378938032Speter BuildTools/bin/find_m4.sh 379038032Speter BuildTools/bin/install.sh 379138032Speter Makefile 379238032Speter cf/cf/Build 379338032Speter cf/cf/generic-hpux10.cf 379438032Speter cf/feature/accept_unqualified_senders.m4 379538032Speter cf/feature/accept_unresolvable_domains.m4 379638032Speter cf/feature/access_db.m4 379738032Speter cf/feature/blacklist_recipients.m4 379838032Speter cf/feature/loose_relay_check.m4 379938032Speter cf/feature/local_lmtp.m4 380038032Speter cf/feature/promiscuous_relay.m4 380138032Speter cf/feature/rbl.m4 380238032Speter cf/feature/relay_based_on_MX.m4 380338032Speter cf/feature/relay_entire_domain.m4 380438032Speter cf/feature/relay_hosts_only.m4 380538032Speter cf/feature/relay_local_from.m4 380638032Speter cf/ostype/qnx.m4 380738032Speter contrib/doublebounce.pl 380838032Speter mail.local/Build 380938032Speter mail.local/Makefile.m4 381038032Speter mail.local/README 381138032Speter mailstats/Build 381238032Speter mailstats/Makefile.m4 381338032Speter makemap/Build 381438032Speter makemap/Makefile.m4 381538032Speter praliases/Build 381638032Speter praliases/Makefile.m4 381738032Speter rmail/Build 381838032Speter rmail/Makefile.m4 381938032Speter rmail/rmail.0 382038032Speter smrsh/Build 382138032Speter smrsh/Makefile.m4 382238032Speter src/Build 382338032Speter src/Makefile.m4 382438032Speter src/snprintf.c 382538032Speter Deleted Files: 382638032Speter cf/cf/Makefile (replaced by Makefile.dist) 382738032Speter mail.local/Makefile 382838032Speter mail.local/Makefile.dist 382938032Speter mailstats/Makefile 383038032Speter mailstats/Makefile.dist 383138032Speter makemap/Makefile 383238032Speter makemap/Makefile.dist 383338032Speter praliases/Makefile 383438032Speter praliases/Makefile.dist 383538032Speter rmail/Makefile 383638032Speter smrsh/Makefile 383738032Speter smrsh/Makefile.dist 383838032Speter src/Makefile 383938032Speter src/Makefiles/Makefile.AIX.4 (split into AIX.4.x and AIX.4.2) 384038032Speter src/Makefiles/Makefile.SMP_DC.OSx.NILE 384138032Speter (renamed BuildTools/OS/dcosx.1.x.NILE) 384238032Speter src/Makefiles/Makefile.Utah (obsolete platform) 384338032Speter Renamed Files: 384438032Speter READ_ME => README 384538032Speter cf/cf/Makefile.dist => Makefile 384638032Speter cf/cf/obj/* => cf/cf/* 384738032Speter src/READ_ME => src/README 384838032Speter 384964562Sgshapiro8.8.8/8.8.8 1997/10/24 385038032Speter If the check_relay ruleset failed, the relay= field was logged 385138032Speter incorrectly. Problem noted by Kari Hurtta of the Finnish 385238032Speter Meteorological Institute. 385338032Speter If /usr/tmp/dead.letter already existed, sendmail could not 385438032Speter add additional bounces to it. Problem noted by Thomas J. 385538032Speter Arseneault of SRI International. 385638032Speter If an SMTP mailer used a non-standard port number for the outgoing 385738032Speter connection, it would be displayed incorrectly in verbose mode. 385838032Speter Problem noted by John Kennedy of Cal State University, Chico. 385938032Speter Log the ETRN parameter specified by the client before altering them 386038032Speter to internal form. Suggested by Bob Kupiec of GES-Verio. 386138032Speter EXPN and VRFY SMTP commands on malformed addresses were logging as 386238032Speter User unknown with bogus delay= values. Change them to log 386338032Speter the same as compliant addresses. Problem noted by Kari E. 386438032Speter Hurtta of the Finnish Meteorological Institute. 386538032Speter Ignore the debug resolver option unless using sendmail debug trace 386638032Speter option for resolver. Problem noted by Greg Nichols of Wind 386738032Speter River Systems. 386838032Speter If SingleThreadDelivery was enabled and the remote server returned a 386938032Speter protocol error on the DATA command, the connection would be 387038032Speter closed but the persistent host status file would not be 387138032Speter unlocked so other sendmail processes could not deliver to 387238032Speter that host. Problem noted by Peter Wemm of DIALix. 387338032Speter If queueing up a message due to an expensive mailer, don't increment 387438032Speter the number of delivery attempts or set the last delivery 387538032Speter attempt time so the message will be delivered on the next 387638032Speter queue run regardless of MinQueueAge. Problem noted by 387738032Speter Brian J. Coan of the Institute for Global Communications. 387838032Speter Authentication warnings of "Processed from queue _directory_" and 387938032Speter "Processed by _username_ with -C _filename_" would be logged 388038032Speter with the incorrect timestamp. Problem noted by Kari E. Hurtta 388138032Speter of the Finnish Meteorological Institute. 388238032Speter Use a better heuristic for detecting GDBM. 388338032Speter Log null connections on dropped connections. Problem noted by 388438032Speter Jon Lewis of Florida Digital Turnpike. 388538032Speter If class dbm maps are rebuilt, sendmail will now detect this and 388638032Speter reopen the map. Previously, they could give stale 388738032Speter results during a single message processing (but would 388838032Speter recover when the next message was received). Fix from 388938032Speter Joe Pruett of Q7 Enterprises. 389038032Speter Do not log failures such as "User unknown" on -bv or SMTP VRFY 389138032Speter requests. Problem noted by Kari E. Hurtta of the 389238032Speter Finnish Meteorological Institute. 389338032Speter Do not send a bounce message back to the sender regarding bad 389438032Speter recipients if the SMTP connection is dropped before the 389538032Speter message is accepted. Problem noted by Kari E. Hurtta of the 389638032Speter Finnish Meteorological Institute. 389738032Speter Use "localhost" instead of "[UNIX: localhost]" when connecting to 389838032Speter sendmail via a UNIX pipe. This will allow rulesets using 389938032Speter $&{client_name} to process without sending the string through 390038032Speter dequote. Problem noted by Alan Barrett of Internet Africa. 390138032Speter A combination of deferred delivery mode, a double bounce situation, 390238032Speter and the inability to save a bounce message to 390338032Speter /var/tmp/dead.letter would cause sendmail to send a bounce 390438032Speter to postmaster but not remove the offending envelope from the 390538032Speter queue causing it to create a new bounce message each time the 390638032Speter queue was run. Problem noted by Brad Doctor of Net Daemons 390738032Speter Associates. 390838032Speter Remove newlines from hostname information returned via DNS. There are 390938032Speter no known security implications of newlines in hostnames as 391038032Speter sendmail filters newlines in all vital areas; however, this 391138032Speter could cause confusing error messages. 391238032Speter Starting with sendmail 8.8.6, mail sent with the '-t' option would be 391338032Speter rejected if any of the specified addresses were bad. This 391438032Speter behavior was modified to only reject the bad addresses and not 391538032Speter the entire message. Problem noted by Jozsef Hollosi of 391638032Speter SuperNet, Inc. 391738032Speter Use Timeout.fileopen when delivering mail to a file. Suggested by 391838032Speter Bryan Costales of InfoBeat, Inc. 391938032Speter Display the proper Final-Recipient on DSN messages for non-SMTP 392038032Speter mailers. Problem noted by Kari E. Hurtta of the 392138032Speter Finnish Meteorological Institute. 392238032Speter An error in calculating the available space in the list of addresses 392338032Speter for logging deliveries could cause an address to be silently 392438032Speter dropped. 392538032Speter Include the initial user environment if sendmail is restarted via 392638032Speter a HUP signal. This will give room for the process title. 392738032Speter Problem noted by Jon Lewis of Florida Digital Turnpike. 392838032Speter Mail could be delivered without a body if the machine does not 392938032Speter support flock locking and runs out of processes during 393038032Speter delivery. Fix from Chuck Lever of the University of Michigan. 393138032Speter Drop recipient address from 251 and 551 SMTP responses per RFC 821. 393238032Speter Problem noted by Kari E. Hurtta of the Finnish Meteorological 393338032Speter Institute. 393438032Speter Make sure non-rebuildable database maps are opened before the 393564562Sgshapiro rebuildable maps (i.e., alias files) in case the database maps 393638032Speter are needed for verifying the left hand side of the aliases. 393738032Speter Problem noted by Lloyd Parkes of Victoria University. 393838032Speter Make sure sender RFC822 source route addresses are alias expanded for 393938032Speter bounce messages. Problem noted by Juergen Georgi of 394038032Speter RUS University of Stuttgart. 394138032Speter Minor lint fixes. 394238032Speter Return a temporary error instead of a permanent error if an LDAP map 394338032Speter search returns an error. This will allow sequenced maps which 394438032Speter use other LDAP servers to be checked. Fix from Booker Bense 394538032Speter of Stanford University. 394638032Speter When automatically converting from quoted printable to 8bit text do 394738032Speter not pad bare linefeeds with a space. Problem noted by Theo 394838032Speter Nolte of the University of Technology Aachen, Germany. 394938032Speter Portability: 395038032Speter Non-standard C compilers may have had a problem compiling 395138032Speter conf.c due to a standard C external declaration of 395238032Speter setproctitle(). Problem noted by Ted Roberts of 395338032Speter Electronic Data Systems. 395438032Speter AUX: has a broken O_EXCL implementation. Reported by Jim 395538032Speter Jagielski of jaguNET Access Services. 395638032Speter BSD/OS: didn't compile if HASSETUSERCONTEXT was defined. 395738032Speter Digital UNIX: Digital UNIX (and possibly others) moves 395838032Speter loader environment variables into the loader memory 395938032Speter area. If one of these environment variables (such as 396038032Speter LD_LIBRARY_PATH) was the last environment variable, 396138032Speter an invalid memory address would be used by the process 396238032Speter title routine causing memory corruption. Problem 396338032Speter noted by Sam Hartman of Mesa Internet Systems. 396438032Speter GNU libc: uses an enum for _PC_CHOWN_RESTRICTED which caused 396538032Speter chownsafe() to always return 0 even if the OS does 396638032Speter not permit file giveaways. Problem noted by 396738032Speter Yasutaka Sumi of The University of Tokyo. 396864562Sgshapiro IRIX6: Syslog buffer size set to 512 bytes. Reported by 396938032Speter Gerald Rinske of Siemens Business Services VAS. 397038032Speter Linux: Pad process title with NULLs. Problem noted by 397138032Speter Jon Lewis of Florida Digital Turnpike. 397238032Speter SCO OpenServer 5.0: SIOCGIFCONF ioctl call returns an 397338032Speter incorrect value for the number of interfaces. 397438032Speter Problem noted by Chris Loelke of JetStream Internet 397538032Speter Services. 397638032Speter SINIX: Update for Makefile and syslog buffer size from Gerald 397738032Speter Rinske of Siemens Business Services VAS. 397838032Speter Solaris: Make sure HASGETUSERSHELL setting for SunOS is not 397938032Speter used on a Solaris machine. Problem noted by 398038032Speter Stephen Ma of Jtec Pty Limited. 398138032Speter CONFIG: SINIX: Update from Gerald Rinske of Siemens Business 398238032Speter Services VAS. 398338032Speter MAKEMAP: Use a better heuristic for detecting GDBM. 398438032Speter CONTRIB: expn.pl: Updated version from the author, David Muir Sharnoff. 398538032Speter OP.ME: Document the F=i mailer flag. Problem noted by Per Hedeland of 398638032Speter Ericsson. 398738032Speter 398864562Sgshapiro8.8.7/8.8.7 1997/08/03 398938032Speter If using Berkeley DB on systems without O_EXLOCK (open a file with 399038032Speter an exclusive lock already set -- i.e., almost all systems 399138032Speter except 4.4-BSD derived systems), the initial attempt at 399238032Speter rebuilding aliases file if the database didn't already 399338032Speter exist would fail. Patch from Raymund Will of LST Software 399438032Speter GmbH. 399538032Speter Bogus incoming SMTP commands would reset the SMTP conversation. 399638032Speter Problem noted by Fredrik J�nsson of the Royal Institute 399738032Speter of Technology, Stockholm. 399838032Speter Since TCP Wrappers includes setenv(), unsetenv(), and putenv(), 399938032Speter some environments could give "multiple definitions" for these 400038032Speter routines during compilation. If using TCP Wrappers, assume 400138032Speter that these routines are included as though they were in the 400238032Speter C library. Patch from Robert La Ferla. 400338032Speter When a NEWDB database map was rebuilt at the same time it was being 400438032Speter used by a queue run, the maps could be left locked for the 400538032Speter duration of the queue run, causing other processes to hang. 400638032Speter Problem noted by Kendall Libby of Shore.NET. 400738032Speter In some cases, NoRecipientAction=add-bcc was being ignored, so the 400838032Speter mail was passed on without any recipient header. This could 400938032Speter cause problems downstream. Problem noted by Xander Jansen 401038032Speter of SURFnet ExpertiseCentrum. 401138032Speter Give error when GDBM is used with sendmail. GDBM's locking and 401238032Speter linking of the .dir and .pag files interferes with sendmail's 401338032Speter locking and security checks. Problems noted by Fyodor 401438032Speter Yarochkin of the Kyrgyz Republic FreeNet. 401538032Speter Don't fsync qf files if SuperSafe option is not set. 401638032Speter Avoid extra calls to gethostbyname for addresses for which a 401738032Speter gethostbyaddr found no value. Also, ignore any returns 401838032Speter from gethostbyaddr that look like a dotted quad. 401938032Speter If PTR lookup fails when looking up an SMTP peer, don't tag it as 402038032Speter "may be forged", since at the network level we pretty much 402138032Speter have to assume that the information is good. 402238032Speter In some cases, errors during an SMTP session could leave files 402338032Speter open or locked. 402438032Speter Better handling of missing file descriptors (0, 1, 2) on startup. 402590792Sgshapiro Better handling of non-set-user-ID binaries -- avoids certain obnoxious 402638032Speter errors during testing. 402738032Speter Errors in file locking of NEWDB maps had the incorrect file name 402838032Speter printed in the error message. 402938032Speter If the AllowBogusHELO option were set and an EHLO with a bad or 403038032Speter missing parameter were issued, the EHLO behaved like a HELO. 403138032Speter Load limiting never kicked in for incoming SMTP transactions if the 403243730Speter DeliveryMode=background and any recipient was an alias or 403338032Speter had a .forward file. From Nik Conwell of Boston University. 403438032Speter On some non-Posix systems, the decision of whether chown(2) permits 403538032Speter file giveaway was undefined. From Tetsu Ushijima of the 403638032Speter Tokyo Institute of Technology. 403738032Speter Fix race condition that could cause the body of a message to be 403838032Speter lost (so only the header was delivered). This only occurs 403938032Speter on systems that do not use flock(2), and only when a queue 404038032Speter runner runs during a critical section in another message 404138032Speter delivery. Based on a patch from Steve Schweinhart of 404238032Speter Results Computing. 404338032Speter If a qf file was found in a mail queue directory that had a problem 404438032Speter (wrong ownership, bad format, etc.) and the file name was 404538032Speter exactly MAXQFNAME bytes long, then instead of being tried 404638032Speter once, it would be tried on every queue run. Problem noted 404738032Speter by Bryan Costales of Mercury Mail. 404838032Speter If the system supports an st_gen field in the status structure, 404938032Speter include it when reporting that a file has changed after open. 405038032Speter This adds a new compile flag, HAS_ST_GEN (0/1 option). 405138032Speter This out to be checked as well as reported, since it is 405238032Speter theoretically possible for an attacker to remove a file after 405338032Speter it is opened and replace it with another file that has the 405438032Speter same i-number, but some filesystems (notably AFS) return 405538032Speter garbage in this field, and hence always look like the file 405638032Speter has changed. As a practical matter this is not a security 405738032Speter problem, since the files can be neither hard nor soft links, 405838032Speter and on no filesystem (that I am aware of) is it possible to 405938032Speter have two files on the same filesystem with the same i-number 406038032Speter simultaneously. 406138032Speter Delete the root Makefile from the distribution -- it is only for 406238032Speter use internally, and does not work at customer sites. 406338032Speter Fix botch that caused the second MAIL FROM: command in a single 406438032Speter transaction to clear the entire transaction. Problem 406538032Speter noted by John Kennedy of Cal State University, Chico. 406638032Speter Work properly on machines that have _PATH_VARTMP defined without 406738032Speter a trailing slash. (And a pox on vendors that decide to 406838032Speter ignore the established conventions!) Problem noted by 406938032Speter Gregory Neil Shapiro of WPI. 407038032Speter Internal changes to make it easier to add another protocol family 407138032Speter (intended for IPv6). Patches are from John Kennedy of 407238032Speter CSU Chico. 407338032Speter In certain cases, 7->8 bit MIME decoding of Base64 text could leave 407438032Speter an extra space at the beginning of some lines. Problem 407538032Speter noted by Charles Karney of Princeton University; fix based 407638032Speter on a patch from Christophe Wolfhugel. 407738032Speter Portability: 407838032Speter Allow _PATH_VENDOR_CF to be set in Makefile for consistency 407938032Speter with the _Sendmail_ book, 2nd edition. Note that 408038032Speter the book is actually wrong: _PATH_SENDMAILCF should 408138032Speter be used instead. 408238032Speter AIX 3.x: Include <sys/select.h>. Patch from Gene Rackow 408338032Speter of Argonne National Laboratory. 408438032Speter OpenBSD from from Paul DuBois of the University of Wisconsin. 408538032Speter RISC/os 4.0 from Paul DuBois of the University of Wisconsin. 408638032Speter SunOS: Include <memory.h> to fix warning from util.c. From 408738032Speter James Aldridge of EUnet Ltd. 408838032Speter Solaris: Change STDIR (location of status file) to /etc/mail 408938032Speter in Makefiles. 409038032Speter Linux, Dynix, UNICOS: Remove -DNDBM and -lgdbm from 409138032Speter Makefiles. Use NEWDB on Linux instead. 409238032Speter NCR MP-RAS 3.x with STREAMware TCP/IP: SIOCGIFNUM ioctl 409338032Speter exists but behaves differently than other OSes. 409438032Speter Add SIOCGIFNUM_IS_BROKEN compile flag to get 409538032Speter around the problem. Problem noted by Tom Moore of 409638032Speter NCR Corp. 409738032Speter HP-UX 9.x: fix compile warnings for old select API. Problem 409838032Speter noted by Tom Smith of Digital Equipment Corp. 409938032Speter UnixWare 2.x: compile warnings on offsetof macro. Problem 410038032Speter noted by Tom Good of the Community Access Information 410138032Speter Resource Network 410238032Speter SCO 4.2: compile problems caused by a change in the type of 410338032Speter the "length" parameters passed to accept, getpeername, 410438032Speter getsockname, and getsockopt. Adds new compile flags 410538032Speter SOCKADDR_SIZE_T and SOCKOPT_SIZE_T. Problem reported 410638032Speter by Tom Good of St. Vincent's North Richmond Community 410738032Speter Mental Health Center Residential Services. 410838032Speter AIX 4: Use size_t for SOCKADDR_SIZE_T and SOCKOPT_SIZE_T. 410938032Speter Suggested by Brett Hogden of Rochester Gas & Electric 411038032Speter Corp. 411138032Speter Linux: avoid compile problem for versions of <setjmp.h> that 411238032Speter #define both setjmp and longjmp. Problem pointed out 411338032Speter by J.R. Oldroyd of TerraNet. 411438032Speter CONFIG: SCO UnixWare 2.1: Support for OSTYPE(sco-uw-2.1) 411538032Speter from Christopher Durham of SCO. 411638032Speter CONFIG: NEXTSTEP: define confCW_FILE to 411738032Speter /etc/sendmail/sendmail.cw to match the usual 411838032Speter configuration. Patch from Dennis Glatting of 411938032Speter PlainTalk. 412038032Speter CONFIG: MAILER(fax) called a program that hasn't existed for a long 412138032Speter time. Convert to use the HylaFAX 4.0 conventions. Suggested 412238032Speter by Harry Styron. 412338032Speter CONFIG: Improve sample anti-spam rulesets in cf/cf/knecht.mc. These 412438032Speter are the rulesets in use on sendmail.org. 412538032Speter MAKEMAP: give error on GDBM files. 412638032Speter MAIL.LOCAL: Make error messages a bit more explicit, for example, 412738032Speter telling more details on what actually changed when "file 412838032Speter changed after open". 412938032Speter CONTRIB: etrn.pl: Ignore comments in Fw files. Support multiple Fw 413038032Speter files. 413138032Speter CONTRIB: passwd-to-alias.pl: Handle 8 bit characters and '-'. 413238032Speter NEW FILES: 413338032Speter src/Makefiles/Makefile.OpenBSD 413438032Speter src/Makefiles/Makefile.RISCos.4_0 413538032Speter test/t_exclopen.c 413638032Speter cf/ostype/sco-uw-2.1.m4 413738032Speter DELETED FILES: 413838032Speter Makefile 413938032Speter 414064562Sgshapiro8.8.6/8.8.6 1997/06/14 414138032Speter ************************************************************* 414238032Speter * The extensive assistance of Gregory Neil Shapiro of WPI * 414338032Speter * in preparing this release is gratefully appreciated. * 414438032Speter * Sun Microsystems has also provided resources toward * 414538032Speter * continued sendmail development. * 414638032Speter ************************************************************* 414738032Speter SECURITY: A few systems allow an open with the O_EXCL|O_CREAT open 414838032Speter mode bits set to create a file that is a symbolic link that 414938032Speter points nowhere. This makes it possible to create a root 415038032Speter owned file in an arbitrary directory by inserting the symlink 415138032Speter into a writable directory after the initial lstat(2) check 415238032Speter determined that the file did not exist. The only verified 415338032Speter example of a system having these odd semantics for O_EXCL 415438032Speter and symbolic links was HP-UX prior to version 9.07. Most 415538032Speter systems do not have the problem, since a exclusive create 415638032Speter of a file disallows symbolic links. Systems that have been 415738032Speter verified to NOT have the problem include AIX 3.x, *BSD, 415838032Speter DEC OSF/1, HP-UX 9.07 and higher, Linux, SunOS, Solaris, 415938032Speter and Ultrix. This is a potential exposure on systems that 416038032Speter have this bug and which do not have a MAILER-DAEMON alias 416138032Speter pointing at a legitimate account, since this will cause old 416238032Speter mail to be dropped in /var/tmp/dead.letter. 416338032Speter SECURITY: Problems can occur on poorly managed systems, specifically, 416438032Speter if maps or alias files are in world writable directories. 416538032Speter If your system has alias maps in writable directories, it 416638032Speter is potentially possible for an attacker to replace the .db 416738032Speter (or .dir and .pag) files by symbolic links pointing at 416838032Speter another database; this can be used either to expose 416938032Speter information (e.g., by pointing an alias file at /etc/spwd.db 417038032Speter and probing for accounts), or as a denial-of-service attack 417138032Speter (by trashing the password database). The fix disallows 417238032Speter symbolic links entirely when rebuilding alias files or on 417338032Speter maps that are in writable directories, and always warns on 417438032Speter writable directories; 8.9 will probably consider writable 417538032Speter directories to be fatal errors. This does not represent an 417638032Speter exposure on systems that have alias files in unwritable 417738032Speter system directories. 417838032Speter SECURITY: disallow .forward or :include: files that are links (hard 417938032Speter or soft) if the parent directory (or any directory in the 418038032Speter path) is writable by anyone other than the owner. This is 418138032Speter similar to the previous case for user files. This change 418238032Speter should not affect most systems, but is necessary to prevent 418338032Speter an attacker who can write the directory from pointing such 418438032Speter files at other files that are readable only by the owner. 418538032Speter SECURITY: Tighten safechown rules: many systems will say that they 418638032Speter have a safe (restricted to root) chown even on files that 418738032Speter are mounted from another system that allows owners to give 418838032Speter away files. The new rules are very strict, trusting file 418938032Speter ownership only in those few cases where the system has 419038032Speter been verified to be at least as paranoid as necessary. 419138032Speter However, it is possible to relax the rules to partially 419238032Speter trust the ownership if the directory path is not world or 419338032Speter group writable. This might allow someone who has a legitimate 419438032Speter :include: file (referenced directly from /etc/aliases) to 419538032Speter become another non-root user if the :include: file is in a 419638032Speter non-writable directory on an NFS-mounted filesystem where 419738032Speter the local system says that giveaway is denied but it is 419838032Speter actually permitted. I believe this to be a very small set 419938032Speter of cases. If in doubt, do not point :include: aliases at 420038032Speter NFS-mounted filesystems. 420138032Speter SECURITY: When setting a numeric group id using the RunAsUser option 420238032Speter (e.g., "O RunAsUser=10:20", the group id would not be set. 420338032Speter Implicit group ids (e.g., "O RunAsUser=mailnull") or alpha 420438032Speter group ids (e.g., "O RunAsUser=mailuser:mailgrp") worked fine. 420538032Speter The user id was still set properly. Problem noted by Uli 420638032Speter Pralle of the Technical University of Berlin. 420738032Speter Save the initial gid set for use when checking for if the 420838032Speter PrivacyOptions=restrictmailq option is set. Problem reported 420938032Speter by Wolfgang Ley of DFN-CERT. 421038032Speter Make 55x reply codes to the SMTP DATA-"." be non-sticky (i.e., a 421138032Speter failure on one message won't affect future messages to the 421238032Speter same host). 421338032Speter IP source route printing had an "off by one" error that would 421438032Speter affect any options that came after the route option. Patch 421538032Speter from Theo de Raadt. 421638032Speter The "Message is too large" error didn't successfully bounce the error 421738032Speter back to the sender. Problem reported by Stephen More of 421838032Speter PSI; patch from Gregory Neil Shapiro of WPI. 421938032Speter Change SMTP status code 553 to map into Extended code 5.1.0 (instead 422038032Speter of 5.1.3); it apparently gets used in multiple ways. 422138032Speter Suggested by John Myers of Portola Communications. 422238032Speter Fix possible extra null byte generated during collection if errors 422338032Speter occur at the beginning of the stream. Patch contributed by 422438032Speter Andrey A. Chernov and Gregory Neil Shapiro. 422538032Speter Code changes to avoid possible reentrant call of malloc/free within 422638032Speter a signal handler. Problem noted by John Beck of Sun 422738032Speter Microsystems. 422838032Speter Move map initialization to be earlier so that check_relay ruleset 422938032Speter will have the latest version of the map data. Problem noted 423038032Speter by Paul Forgey of Metainfo; patch from Gregory Neil Shapiro. 423138032Speter If there are fatal errors during the collection phase (e.g., message 423238032Speter too large) don't send the bogus message. 423338032Speter Avoid "cannot open xfAAA00000" messages when sending to aliases that 423438032Speter have errors and have owner- aliases. Problem noted by Michael 423538032Speter Barber of MTU; fix from Gregory Neil Shapiro of WPI. 423638032Speter Avoid null pointer dereference on illegal Boundary= parameters in 423738032Speter multipart/mixed Content-Type: header. Problem noted by 423838032Speter Richard Muirden of RMIT University. 423938032Speter Always print error messages during newaliases (-bi) even if the 424038032Speter ErrorMode is not set to "print". Fix from Gregory Neil 424138032Speter Shapiro. 424238032Speter Test mode could core dump if you did a /map lookup in an optional map 424338032Speter that could not be opened. Based on a fix from John Beck of 424438032Speter Sun Microsystems. 424538032Speter If DNS is misconfigured so that the last MX record tried points to 424638032Speter a host that does not have an A record, but other MX records 424738032Speter pointed to something reasonable, don't bounce the message 424838032Speter with a "host unknown" error. Note that this should really 424938032Speter be fixed in the zone file for the domain. Problem noted by 425038032Speter Joe Rhett of Navigist, Inc. 425138032Speter If a map fails (e.g., DNS times out) on all recipient addresses, mark 425238032Speter the message as having been tried; otherwise the next queue 425338032Speter run will not realize that this is a second attempt and will 425438032Speter retry immediately. Problem noted by Bryan Costales of 425538032Speter Mercury Mail. 425638032Speter If the clock is set backwards, and a MinQueueAge is set, no jobs 425738032Speter will be run until the later setting of the clock is reached. 425838032Speter "Problem" (I use the term loosely) noted by Eric Hagberg of 425938032Speter Morgan Stanley. 426038032Speter If the load average rises above the cutoff threshold (above which 426138032Speter sendmail will not process the queue at all) during a queue 426238032Speter run, abort the queue run immediately. Problem noted by 426338032Speter Bryan Costales of Mercury Mail. 426438032Speter The variable queue processing algorithm (based on the message size, 426538032Speter number of recipients, message precedence, and job age) was 426638032Speter non-functional -- either the entire queue was processed or 426738032Speter none of the queue was processed. The updated algorithm 426838032Speter does no queue run if a single recipient zero size job will 426938032Speter not be run. 427038032Speter If there is a fatal ("panic") message that will cause sendmail to 427138032Speter die immediately, never hold the error message for future 427238032Speter printing. 427338032Speter Force ErrorMode=print in -bt mode so that all errors are printed 427438032Speter regardless of the setting of the ErrorMode option in the 427538032Speter configuration file. Patch from Gregory Neil Shapiro. 427638032Speter New compile flag HASSTRERROR says that this OS has the strerror(3) 427738032Speter routine available in one of the libraries. Use it in conf.h. 427838032Speter The -m (match only) flag now works on host class maps. 427938032Speter If class hash or btree maps are rebuilt, sendmail will now detect 428038032Speter this and reopen the map. Previously, they could give 428138032Speter erroneous results during a single message processing 428238032Speter (but would recover when the next message was received). 428338032Speter Don't delete zero length queue files when doing queue runs until the 428438032Speter files are at least ten minutes old. This avoids a potential 428538032Speter race condition: the creator creates the qf file, getting back 428638032Speter a file descriptor. The queue runner locks it and deletes it 428738032Speter because it is zero length. The creator then writes the 428838032Speter descriptor that is now for a disconnected file, and the 428938032Speter job goes away. Based on a suggestion by Bryan Costales. 429038032Speter When determining the "validated" host name ($_ macro), do a forward 429138032Speter (A) DNS lookup on the result of the PTR lookup and compare 429238032Speter results. If they differ or if the PTR lookup fails, tag the 429338032Speter address as "may be forged". 429438032Speter Log null connections (i.e., hosts that connect but do not do any 429538032Speter substantive activity on the connection before disconnecting; 429638032Speter "substantive" is defined to be MAIL, EXPN, VRFY, or ETRN. 429738032Speter Always permit "writes" to /dev/null regardless of the link count. 429838032Speter This is safe because /dev/null is special cased, and no open 429938032Speter or write is ever actually attempted. Patch from Villy Kruse 430038032Speter of TwinCom. 430138032Speter If a message cannot be sent because of a 552 (exceeded storage 430238032Speter allocation) response to the MAIL FROM:<>, and a SIZE= parameter 430338032Speter was given, don't return the body in the bounce, since there 430438032Speter is a very good chance that the message will double-bounce. 430538032Speter Fix possible line truncation if a quoted-printable had an =00 escape 430638032Speter in the body. Problem noted by Charles Karney of the Princeton 430738032Speter Plasma Physics Laboratory. 430838032Speter Notify flags (e.g., -NSUCCESS) were lost on user+detail addresses. 430938032Speter Problem noted by Kari Hurtta of the Finnish Meteorological 431038032Speter Institute. 431138032Speter The MaxDaemonChildren option wasn't applying to queue runs as 431238032Speter documented. Note that this increases the potential denial 431338032Speter of service problems with this option: an attacker can 431438032Speter connect many times, and thereby lock out queue runs as well 431538032Speter as incoming connections. If you use this option, you should 431638032Speter run the "sendmail -bd" and "sendmail -q30m" jobs separately 431738032Speter to avoid this attack. Failure to limit noted by Matthew 431838032Speter Dillon of BEST Internet Communications. 431938032Speter Always give a message in newaliases if alias files cannot be 432038032Speter opened instead of failing silently. Suggested by Gregory 432138032Speter Neil Shapiro. This change makes the code match the O'Reilly 432238032Speter book (2nd edition). 432338032Speter Some older versions of the resolver could return with h_errno == -1 432438032Speter if no name server could be reached, causing mail to bounce 432538032Speter instead of queueing. Treat this like TRY_AGAIN. Fix from 432638032Speter John Beck of SunSoft. 432738032Speter If a :include: file is owned by a user that does not have an entry 432838032Speter in the passwd file, sendmail could dereference a null pointer. 432938032Speter Problem noted by Satish Mynam of Sun Microsystems. 433038032Speter Take precautions to make sure that the SMTP protocol cannot get out 433138032Speter of sync if (for example) an alias file cannot be opened. 433238032Speter Fix a possible race condition that can cause a SIGALRM to come in 433338032Speter immediately after a SIGHUP, causing the new sendmail to die. 433438032Speter Avoid possible hang on SVr3 systems when doing child reaping. Patch 433538032Speter from Villy Kruse of TwinCom. 433638032Speter Ignore improperly formatted SMTP reply codes. Previously these were 433738032Speter partially processed, which could cause confusing error 433838032Speter returns. 433938032Speter Fix possible bogus pointer dereference when doing ldapx map lookups 434038032Speter on some architectures. 434138032Speter Portability: 434238032Speter A/UX: from Jim Jagielski of NASA/GSFC. 434338032Speter glibc: SOCK_STREAM was changed from a #define to an enum, 434438032Speter thus breaking #ifdef SOCK_STREAM. Only option seems 434538032Speter to be to assume SOCK_STREAM if __GNU_LIBRARY__ is 434638032Speter defined. Problem reported by A Sun of the University 434738032Speter of Washington. 434838032Speter Solaris: use SIOCGIFNUM to get the number of interfaces on 434938032Speter the system rather than guessing at compile time. 435038032Speter Patch contributed by John Beck of Sun Microsystems. 435138032Speter Intel Paragon: from Wendy Lin of Purdue University. 435238032Speter GNU Hurd: from Miles Bader of the GNU project. 435338032Speter RISC/os 4.50 from Harlan Stenn of PFCS Corporation. 435438032Speter ISC Unix: wait never returns if SIGCLD signals are blocked. 435538032Speter Unfortunately releasing them opens a race condition, 435638032Speter but there appears to be no fix for this. Patch from 435738032Speter Gregory Neil Shapiro. 435838032Speter BIND 8.1 for IPv6 compatibility from John Kennedy. 435938032Speter Solaris: a bug in strcasecmp caused characters with the 436038032Speter high order bit set to apparently randomly match 436138032Speter letters -- for example, $| (0233) matches "i" and "I". 436238032Speter Problem noted by John Gregson of the University of 436338032Speter Cambridge. 436438032Speter IRIX 6.x: make Makefile.IRIX.6.2 apply to all 6.x. From 436538032Speter Kari Hurtta. 436638032Speter IRIX 6.x: Create Makefiles for systems that claim to be 436738032Speter IRIX64 but are 6.2 or higher (so use the regular 436838032Speter IRIX Makefile). 436938032Speter IRIX 6.x: Fix load average computation on 64 bit kernels. 437038032Speter Problem noted by Eric Hagberg of Morgan Stanley. 437138032Speter CONFIG: Some canonification was still done for UUCP-like addresses 437238032Speter even if FEATURE(nocanonify) was set. Problem pointed out by 437338032Speter Brian Candler. 437438032Speter CONFIG: In some cases UUCP mailers wouldn't properly recognize all 437538032Speter local names as local. Problem noted by Jeff Polk of BSDI; 437638032Speter fix provided by Gregory Neil Shapiro. 437738032Speter CONFIG: The "local:user" syntax entries in mailertables and other 437838032Speter "mailer:user" syntax locations returned an incorrect value 437938032Speter for the $h macro. Problem noted by Gregory Neil Shapiro. 438038032Speter CONFIG: Retain "+detail" information when forwarding mail to a 438138032Speter MAIL_HUB, LUSER_RELAY, or LOCAL_RELAY. Patch from Philip 438238032Speter Guenther of Gustavus Adolphus College. 438338032Speter CONFIG: Make sure user+detail works for FEATURE(virtusertable); 438438032Speter rules are the same as for aliasing. Based on a patch from 438538032Speter Gregory Neil Shapiro. 438638032Speter CONFIG: Break up parsing rules into several pieces; this should 438738032Speter have no functional change in this release, but makes it 438838032Speter possible to have better anti-spam rulesets in the future. 438938032Speter CONFIG: Disallow double dots in host names to avoid having the 439038032Speter HostStatusDirectory store status under the wrong name. 439138032Speter In some cases this can be used as a denial-of-service attack. 439238032Speter Problem noted by Ron Jarrell of Virginia Tech, patch from 439338032Speter Gregory Neil Shapiro. 439438032Speter CONFIG: Don't use F=m (multiple recipients per invocation) for 439538032Speter MAILER(procmail), but do pass F=Pn9 (include Return-Path:, 439638032Speter don't include From_, and convert to 8-bit). Suggestions 439738032Speter from Kimmo Suominen and Roderick Schertler. 439864562Sgshapiro CONFIG: Domains under $=M (specified with MASQUERADE_DOMAIN) were 439938032Speter being masqueraded as though FEATURE(masquerade_entire_domain) 440038032Speter was specified, even when it wasn't. 440138032Speter MAIL.LOCAL: Solaris 2.6 has snprintf. From John Beck of SunSoft. 440238032Speter MAIL.LOCAL: SECURITY: check to make sure that an attacker doesn't 440338032Speter "slip in" a symbolic link between the lstat(2) call and the 440438032Speter exclusive open. This is only a problem on System V derived 440538032Speter systems that allow an exclusive create on files that are 440638032Speter symbolic links pointing nowhere. 440738032Speter MAIL.LOCAL: If the final mailbox close() failed, the user id was 440838032Speter not reset back to root, which on some systems would cause 440938032Speter later mailboxes to fail. Also, any partial message would 441038032Speter not be truncated, which could result in repeated deliveries. 441138032Speter Problem noted by Bruce Evans via Peter Wemm (FreeBSD 441238032Speter developers). 441338032Speter MAKEMAP: Handle cases where O_EXLOCK is #defined to be 0. A similar 441438032Speter change to the sendmail map code was made in 8.8.3. Problem 441538032Speter noted by Gregory Neil Shapiro. 441638032Speter MAKEMAP: Give warnings on file problems such as map files that are 441790792Sgshapiro symbolic links; although makemap is not set-user-ID root, it is 441838032Speter often run as root and hence has the potential for the same 441938032Speter sorts of problems as alias rebuilds. 442038032Speter MAKEMAP: Change compilation so that it will link properly on 442138032Speter NEXTSTEP. 442238032Speter CONTRIB: etrn.pl: search for Cw as well as Fw lines in sendmail.cf. 442338032Speter Accept an optional list of arguments following the server 442438032Speter name for the ETRN arguments to use (instead of $=w). Other 442538032Speter miscellaneous bug fixes. From Christian von Roques via 442638032Speter John Beck of Sun Microsystems. 442738032Speter CONTRIB: Add passwd-to-alias.pl, contributed by Kari Hurtta. This 442838032Speter Perl script converts GECOS information in the /etc/passwd 442938032Speter file into aliases, allowing for faster access to full name 443038032Speter lookups; it is also clever about adding aliases (to root) 443138032Speter for system accounts. 443238032Speter NEW FILES: 443338032Speter src/safefile.c 443438032Speter cf/ostype/gnuhurd.m4 443538032Speter cf/ostype/irix6.m4 443638032Speter contrib/passwd-to-alias.pl 443738032Speter src/Makefiles/Makefile.IRIX64.6.1 443838032Speter src/Makefiles/Makefile.IRIX64.6.x 443938032Speter RENAMED FILES: 444038032Speter src/Makefiles/Makefile.IRIX.6.2 => Makefile.IRIX.6.x 444138032Speter src/Makefiles/Makefile.IRIX64 => Makefile.IRIX64.6.0 444238032Speter 444364562Sgshapiro8.8.5/8.8.5 1997/01/21 444438032Speter SECURITY: Clear out group list during startup. Without this, sendmail 444538032Speter will continue to run with the group permissions of the caller, 444638032Speter even if RunAsUser is specified. 444738032Speter SECURITY: Make purgestat (-bH) be root-only. This is not in response 444838032Speter to any known attack, but it's best to be conservative. 444938032Speter Suggested by Peter Wemm of DIALix. 445038032Speter SECURITY: Fix buffer overrun problem in MIME code that has possible 445138032Speter security implications. Patch from Alex Garthwaite of the 445238032Speter University of Pennsylvania. 445338032Speter Use of a -f flag with a phrase attached (e.g., "-f 'Full Name <addr>'") 445438032Speter would truncate the address after "Full". Although the -f 445538032Speter syntax is incorrect (since it is in the envelope, it 445638032Speter shouldn't have comments and full names), the failure mode 445738032Speter was unnecessarily awful. 445838032Speter Fix a possible null pointer dereference when converting 8-bit data 445938032Speter to a 7-bit format. Problem noted by Jim Hutchins of 446038032Speter Sandia National Labs and David James of British Telecom. 446138032Speter Clear out stale state that affected F=9 on SMTP mailers in queue 446238032Speter runs. Although this really shouldn't be used (F=9 is for 446338032Speter final delivery only, and using it on an SMTP mailer makes 446438032Speter it possible for a message to be converted from 8->7->8->7 446538032Speter bits several times), it shouldn't have failed with a syserr. 446638032Speter Problem noted by Eric Hagberg of Morgan Stanley. 446738032Speter _Really_ fix the multiple :maildrop code in the user database 446838032Speter module. Patch from Roy Mongiovi of Georgia Tech. 446938032Speter Let F lines in the configuration file actually read root-only 447038032Speter files if the configuration file is safe. Based on a 447138032Speter patch from Keith Reynolds of SCO. 447238032Speter ETRN followed by QUIT would hold the connection open until the queue 447338032Speter run completed. Problem noted by Truck Lewis of TDK 447438032Speter Semiconductor Corp. 447538032Speter It turns out that despite the documentation, the TCP wrappers library 447638032Speter does _not_ log rejected connections. Do the logging ourselves. 447738032Speter Problem noted by Fletcher Mattox of the University of Texas 447838032Speter at Austin. 447938032Speter If sendmail finds a qf file in its queue directory that is an unknown 448038032Speter version (e.g., when backing out to an old version), the 448138032Speter error is reported on every queue run. Change it to only 448238032Speter give the error once (and rename the qf => Qf). Patch from 448338032Speter William A. Gianopoulos of Raytheon Company. 448438032Speter Start a new session when doing background delivery; currently it 448538032Speter ignored signals but didn't start a new signal, that caused 448638032Speter some problems if a background process tried to send mail 448738032Speter under certain circumstances. Problem noted by Eric Hagberg 448838032Speter of Morgan Stanley; fix from Kari Hurtta. 448938032Speter Simplify test for skipping a queue run to just check if the current 449038032Speter load average is >= the queueing load average. Previously 449138032Speter the check factored in some other parameters that caused it 449238032Speter to essentially never skip the queue run. Patch from Bryan 449338032Speter Costales. 449438032Speter If the SMTP server is running in "nullserver" mode (that is, it is 449538032Speter rejecting all commands), start sleeping after MAXBADCOMMAND 449638032Speter (25) commands; this helps prevent a bad guy from putting 449738032Speter you into a tight loop as a denial-of-service attack. Based 449838032Speter on an e-mail conversation with Brad Knowles of AOL. 449938032Speter Slow down when too many "light weight" commands have been issued; 450038032Speter this helps prevent a class of denial-of-service attacks. 450138032Speter The current values and defaults are: 450238032Speter MAXNOOPCOMMANDS 20 NOOP, VERB, ONEX, XUSR 450338032Speter MAXHELOCOMMANDS 3 HELO, EHLO 450438032Speter MAXVRFYCOMMANDS 6 VRFY, EXPN 450538032Speter MAXETRNCOMMANDS 8 ETRN 450638032Speter These will probably be configurable in a future release. 450738032Speter On systems that have uid_t typedefed to be an unsigned short, programs 450838032Speter that had the F=S flag and no U= equate would be invoked with 450938032Speter the real uid set to 65535 rather than being left unchanged. 451038032Speter In some cases, NOTIFY=NEVER was not being honored. Problem noted 451138032Speter by Steve Hubert of the University of Washington, Seattle. 451238032Speter Mail that was Quoted-Printable encoded and had a soft line break on 451338032Speter the last line (i.e., an incomplete continuation) had the last 451438032Speter line dropped. Since this appears to be illegal it isn't 451538032Speter clear what to do with it, but flushing the last line seems 451638032Speter to be a better "fail soft" approach. Based on a patch from 451738032Speter Eric Hagberg. 451838032Speter If AllowBogusHELO and PrivacyOptions=needmailhelo are both set, a 451938032Speter bogus HELO command still causes the "Polite people say HELO 452038032Speter first" error message. Problem pointed out by Chris Thomas 452138032Speter of UCLA; patch from John Beck of SunSoft. 452238032Speter Handle "sendmail -bp -qSfoobar" properly if restrictqrun is set 452371345Sgshapiro in PrivacyOptions. The -q shouldn't turn this command off. 452471345Sgshapiro Problem noted by Murray Kucherawy of Pacific Bell Internet; 452571345Sgshapiro based on a patch from Gregory Neil Shapiro of WPI. 452638032Speter Don't consider SMTP reply codes 452 or 552 (exceeded storage allocation) 452738032Speter in a DATA transaction to be sticky; these can occur because 452838032Speter a message is too large, and smaller messages should still go 452938032Speter through. Problem noted by Matt Dillon of Best Internet 453038032Speter Communications. 453138032Speter In some cases bounces were saved in /var/tmp/dead.letter even if they 453238032Speter had been successfully delivered to the envelope sender. 453338032Speter Problem noted Eric Hagberg of Morgan Stanley; solution from 453438032Speter Gregory Neil Shapiro of WPI. 453538032Speter Give better diagnostics on long alias lines. Based on code contributed 453638032Speter by Patrick Gosling of the University of Cambridge. 453738032Speter Increase the number of virtual interfaces that will be probed for 453838032Speter alternate names. Problem noted by Amy Rich of Shore.Net. 453938032Speter PORTABILITY: 454038032Speter UXP/DS V20L10 for Fujitsu DS/90: Makefile patches from 454138032Speter Toshiaki Nomura of Fujitsu Limited. 454238032Speter SunOS with LDAP support: compile problems with struct timeval. 454338032Speter Patch from Nick Cuccia of TCSI Corporation. 454438032Speter SCO: from Keith Reynolds of SCO. 454538032Speter Solaris: kstat load average computation wasn't being used. 454638032Speter Fixes from Michael Ju. Tokarev of Telecom Service, JSC 454738032Speter (Moscow). 454838032Speter OpenBSD: from Jason Downs of teeny.org. 454938032Speter Altos System V: from Tim Rice. 455038032Speter Solaris 2.5: from Alan Perry of SunSoft. 455138032Speter Solaris 2.6: from John Beck of SunSoft. 455238032Speter Harris Nighthawk PowerUX (mh6000 box): from Bob Miorelli 455338032Speter of Pratt & Whitney <miorelli@pweh.com>. 455438032Speter CONFIG: It seems that I hadn't gotten the Received: line syntax 455538032Speter _just_right_ yet. Tweak it again. I'll omit the names 455638032Speter of the "contributors" (quantity two) in this one case. 455738032Speter As of now, NO MORE DISCUSSION about the syntax of the 455838032Speter Received: line. 455938032Speter CONFIG: Although FEATURE(nullclient) uses EXPOSED_USER (class $=E), 456038032Speter it never inserts that class into the output file. Fix it 456138032Speter so it will honor EXPOSED_USER but will _not_ include root 456238032Speter automatically in this class. Problem noted by Ronan KERYELL 456338032Speter of Centre de Recherche en Informatique de l'�cole Nationale 456438032Speter Sup�rieure des Mines de Paris (CRI-ENSMP). 456538032Speter CONFIG: Clean up handling of "local:" syntax in relay specifications 456638032Speter such as LUSER_RELAY. This change permits the following 456738032Speter syntaxes: ``local:'' will send to the same user on the 456838032Speter local machine (e.g., in a mailertable entry for "host", 456938032Speter ``local:'' will cause an address addressed to user@host to 457038032Speter go to user on the local machone). ``local:user'' will send 457138032Speter to the named user on the local machine. ``local:user@host'' 457238032Speter is equivalent to ``local:user'' (the host is ignored). In 457338032Speter all cases, the original user@host is passed in $@ (i.e., the 457438032Speter detail information). Inspired by a report from Michael Fuhr. 457538032Speter CONFIG: Strip quotes from the first word of an "error:" host 457638032Speter indication. This lets you set (for example) the LUSER_RELAY 457738032Speter to be ``error:\"5.1.1\" Your Message Here''. Note the use 457838032Speter of the \" so that the resulting string is properly quoted. 457938032Speter Problem noted by Gregory Neil Shapiro of WPI. 458038032Speter OP.ME: documentation was inconsistent about whether sendmail did a 458138032Speter NOOP or a RSET to probe the connection (it does a RSET). 458238032Speter Inconsistency noted by Deeran Peethamparam. 458338032Speter OP.ME: insert additional blank pages so it will print properly on 458438032Speter a duplex printer. From Matthew Black of Cal State University, 458538032Speter Long Beach. 458638032Speter 458764562Sgshapiro8.8.4/8.8.4 1996/12/02 458838032Speter SECURITY: under some circumstances, an attacker could get additional 458938032Speter permissions by hard linking to files that were group 459038032Speter writable by the attacker. The solution is to disallow any 459138032Speter files that have hard links -- this will affect .forward, 459238032Speter :include:, and output files. Problem noted by Terry 459338032Speter Kyriacopoulos of Interlog Internet Services. As a 459438032Speter workaround, set UnsafeGroupWrites -- always a good idea. 459538032Speter SECURITY: the TryNullMXList (w) option should not be safe -- if it 459638032Speter is, it is possible to do a denial-of-service attack on 459738032Speter MX hosts that rely on the use of the null MX list. There 459838032Speter is no danger if you have this option turned off (the default). 459938032Speter Problem noted by Dan Bernstein. Also, make the DontInitGroups 460038032Speter unsafe. I know of no specific attack against this, although 460138032Speter a denial-of-service attack is probably possible, but in theory 460238032Speter you should not be able to safely tweak anything that affects 460338032Speter the permissions that are used when mail is delivered. 460438032Speter Purgestat could go into an infinite loop if one of the host status 460538032Speter directories somehow became empty. Problem noted by Roy 460638032Speter Mongiovi of Georgia Tech. 460738032Speter Processes got "lost" when counting children due to a race condition. 460838032Speter This caused "proc_list_probe: lost pid" messages to be logged. 460938032Speter Problem noted by several people. 461038032Speter On systems with System V SIGCLD child signal semantics (notably AIX 461138032Speter and HP-UX), mail transactions would print the message "451 461238032Speter SMTP-MAIL: lost child: No child processes". Problem noted 461338032Speter by several people. 461438032Speter Miscellaneous compiler warnings on picky compilers (or when setting 461538032Speter gcc to high warning levels). From Tom Moore of NCR Corp. 461638032Speter SMTP protocol errors, and most errors on MAIL FROM: lines should 461738032Speter not be persistent between runs, since they are based on the 461838032Speter message rather than the host. Problem noted by Matt Dillon 461938032Speter of Best Internet Communications. 462038032Speter The F=7 flag was ignored on SMTP mailers. Problem noted by Tom Moore 462138032Speter of NCR (a.k.a., AT&T Global Information Solutions). 462238032Speter Avoid the possibility of having a child daemon run to completion 462338032Speter (including closing the SMTP socket) before the parent has 462438032Speter had a chance to close the socket; this can cause the parent 462538032Speter to hang for a long time waiting for the socket to drain. 462638032Speter Patch from Don Lewis of TDK Semiconductor. 462738032Speter If the fork() failed in a queue run, the queue runners would not be 462838032Speter rescheduled (so queue runs would stop). Patch from Don Lewis. 462938032Speter Some error conditions in ETRN could cause output without an SMTP 463038032Speter status code. Problem noted by Don Lewis. 463138032Speter Multiple :maildrop addresses in the user database didn't work properly. 463238032Speter Patch from Roy Mongiovi of Georgia Tech. 463338032Speter Add ".db" automatically onto any user database spec that does not 463438032Speter already have it; this is for consistency with makemap, the 463538032Speter K line, and the documentation. Inconsistency pointed out 463638032Speter by Roy Mongiovi. 463738032Speter Allow sendmail to be properly called in nohup mode. Patch from 463838032Speter Kyle Jones of UUNET. 463938032Speter Change ETRN to ignore but still update host status files; previously 464038032Speter it would ignore them and not save the updated status, which 464138032Speter caused stale information to be maintained. Based on a patch 464238032Speter from Christopher Davis of Kapor Enterprises Inc. Also, have 464338032Speter ETRN ignore the MinQueueAge option. 464438032Speter Patch long term host status to recover more gracefully from an empty 464538032Speter host status file condition. Patch from NAKAMURA Motonori 464638032Speter of Kyoto University. 464738032Speter Several patches to signal handling code to fix potential race 464838032Speter conditions from Don Lewis. 464938032Speter Make it possible to compile with -DDAEMON=0 (previously it had some 465038032Speter compile errors). This turns DAEMON, QUEUE, and SMTP into 465138032Speter 0/1 compilation flags. Note that DAEMON is an obsolete 465238032Speter compile flag; use NETINET instead. Solution based on a 465338032Speter patch from Bryan Costales. 465438032Speter PORTABILITY FIXES: 465538032Speter AIX4: getpwnam() and getpwuid() do a sequential scan of the 465638032Speter /etc/security/passwd file when called as root. This 465738032Speter is very slow on some systems. To speed it up, use the 465838032Speter (undocumented) _getpw{nam,uid}_shadow() routines. 465938032Speter Patch from Chris Thomas of UCLA/OAC Systems Group. 466038032Speter SCO 5.x: include -lprot in the Makefile. Patch from Bill 466138032Speter Glicker of Burrelle's Information Service. 466238032Speter NEWS-OS 4.x: need a definition for MODE_T to compile. Patch 466338032Speter from Makoto MATSUSHITA of Osaka University. 466438032Speter SunOS 4.0.3: compile problems. Patches from Andrew Cole of 466538032Speter Leeds University and SASABE Tetsuro of the University 466638032Speter of Tokyo. 466738032Speter DG/UX 5.4.4.11 from Brian J. Murrell of InterLinx Support 466838032Speter Services, Inc. 466938032Speter Domain/OS from Don (Truck) Lewis of TDK Semiconductor Corp. 467038032Speter I believe this to have only been a problem if you 467138032Speter compiled with -DUSE_VENDOR_CF_PATH -- another reason 467238032Speter to stick with /etc/sendmail.cf as your One True Path. 467338032Speter Digital UNIX (OSF/1 on Alpha) load average computation from 467438032Speter Martin Laubach of the Technischen Universit�t Wien. 467538032Speter CONFIG: change default Received: line to be multiple lines rather 467638032Speter than one long one. By popular demand. 467738032Speter MAIL.LOCAL: warnings weren't being logged on some systems. Patch 467838032Speter from Jerome Berkman of U.C. Berkeley. 467938032Speter MAKEMAP: be sure to zero hinfo to avoid cruft that can cause runs 468038032Speter to take a very long time. Problem noted by Yoshiro YONEYA 468138032Speter of NTT Software Corporation. 468238032Speter CONTRIB: add etrn.pl, contributed by John Beck. 468338032Speter NEW FILES: 468438032Speter contrib/etrn.pl 468538032Speter 468664562Sgshapiro8.8.3/8.8.3 1996/11/17 468738032Speter SECURITY: it was possible to get a root shell by lying to sendmail 468838032Speter about argv[0] and then sending it a signal. Problem noted 468938032Speter by Leshka Zakharoff <leshka@leshka.chuvashia.su> on the 469038032Speter best-of-security list. 469138032Speter Log sendmail binary version number in "Warning: .cf version level 469238032Speter (%d) exceeds program functionality (%d) message" -- this 469338032Speter should make it clearer to people that they are running 469438032Speter the wrong binary. 469538032Speter Fix a problem that occurs when you open an SMTP connection and then 469638032Speter do one or more ETRN commands followed by a MAIL command; at 469738032Speter the end of the DATA phase sendmail would incorrectly report 469838032Speter "451 SMTP-MAIL: lost child: No child processes". Problem 469938032Speter noted by Eric Bishop of Virginia Tech. 470038032Speter When doing text-based host canonification (typically /etc/hosts 470138032Speter lookup), a null host name would match any /etc/hosts entry 470238032Speter with space at the end of the line. Problem noted by Steve 470338032Speter Hubert of the University of Washington, Seattle. 470438032Speter 7 to 8 bit BASE64 MIME conversions could duplicate bits of text. 470538032Speter Problem reported by Tom Smith of Digital Equipment Corp. 470638032Speter Increase the size of the DNS answer buffer -- the standard UDP packet 470738032Speter size PACKETSZ (512) is not sufficient for some nameserver 470838032Speter answers containing very many resource records. The resolver 470938032Speter may also switch to TCP and retry if it detects UDP packet 471038032Speter overflow. Also, allow for the fact that the resolver 471138032Speter routines res_query and res_search return the size of the 471238032Speter *un*truncated answer in case the supplied answer buffer it 471338032Speter not big enough to accommodate the entire answer. Patch from 471438032Speter Eric Wassenaar. 471538032Speter Improvements to MaxDaemonChildren code. If you think you have too 471638032Speter many children, probe the ones you have to verify that they 471738032Speter are still around. Suggested by Jared Mauch of CICnet, Inc. 471838032Speter Also, do this probe before growing the vector of children 471938032Speter pids; this previously caused the vector to grow indefinitely 472038032Speter due to a race condition. Problem reported by Kyle Jones of 472138032Speter UUNET. 472238032Speter On some architectures, <db.h> (from the Berkeley DB library) defines 472338032Speter O_EXLOCK to zero; this fools the map compilation code into 472438032Speter thinking that it can avoid race conditions by locking on open. 472538032Speter Change it to check for O_EXLOCK non-zero. Problem noted by 472638032Speter Leif Erlingsson of Data Lege. 472738032Speter Always call res_init() on startup (if compiled in, of course) to 472838032Speter allow the sendmail.cf file to tweak resolver flags; without 472938032Speter it, flag tweaks in ResolverOptions are ignored. Patch from 473038032Speter Andrew Sun of Merrill Lynch. 473138032Speter Improvements to host status printing code. Suggested by Steve Hubert 473238032Speter of the University of Washington, Seattle. 473338032Speter Change MinQueueAge option processing to do the check for the job age 473438032Speter when reading the queue file, rather than at the end; this 473538032Speter avoids parsing the addresses, which can do DNS lookups. 473638032Speter Problem noted by John Beck of InReference, Inc. 473738032Speter When MIME was being 7->8 bit decoded, "From " lines weren't being 473838032Speter properly escaped. Problem noted by Peter Nilsson of the 473938032Speter University of Linkoping. 474038032Speter In some cases, sendmail would retain root permissions during queue 474138032Speter runs even if RunAsUser was set. Problem noted by Mark 474238032Speter Thomas of Mark G. Thomas Consulting. 474338032Speter If the F=l flag was set on an SMTP mailer to indicate that it is 474438032Speter actually local delivery, and NOTIFY=SUCCESS is specified in 474538032Speter the envelope, and the receiving SMTP server speaks DSN, then 474638032Speter the DSN would be both generated locally and propagated to the 474738032Speter other end. 474838032Speter The U= mailer field didn't correctly extract the group id if the 474938032Speter user id was numeric. Problem noted by Kenneth Herron of 475038032Speter MCI Telecommunications Communications. 475138032Speter If a message exceeded the fixed maximum size on input, the body of 475238032Speter the message was included in the bounce. Note that this did 475338032Speter not occur if it exceeded the maximum _output_ size. Problem 475438032Speter reported by Kyle Jones of UUNET. 475538032Speter PORTABILITY FIXES: 475638032Speter AIX4: 4.1 doesn't have a working setreuid(2); change the 475738032Speter AIX4 defines to use seteuid(2) instead, which 475838032Speter works on 4.1 as well as 4.2. Problem noted by 475938032Speter H�kan Lindholm of interAF, Sweden. 476038032Speter AIX4: use tzname[] vector to determine time zone name. 476138032Speter Patch from NAKAMURA Motonori of Kyoto University. 476238032Speter MkLinux: add Makefile.Linux.ppc and OSTYPE(mklinux) support. 476338032Speter Contributed by Paul DuBois <dubois@primate.wisc.edu>. 476438032Speter Solaris: kstat(3k) support for retrieving the load average. 476538032Speter This adds the LA_KSTAT definition for LA_TYPE. 476638032Speter The outline of the implementation was contributed 476738032Speter by Michael Tokarev of Telecom Service, JSC, Moscow. 476838032Speter HP-UX 10.0 gripes about the (perfectly legal!) forward 476938032Speter declaration of struct rusage at the top of conf.h; 477038032Speter change it to only be included if you are using gcc, 477138032Speter which is apparently the only compiler that requires 477238032Speter it in the first place. Problem noted by Jeff 477338032Speter Earickson of Colby College. 477438032Speter IRIX: don't default to using gcc. IRIX is a civilized 477538032Speter operating system that comes with a decent compiler 477638032Speter by default. Problem noted by Barry Bouwsma and 477738032Speter Kari Hurtta. 477838032Speter CONFIG: specify F=9 as default in FEATURE(local_procmail) for 477938032Speter consistency with other local mailers. Inconsistency 478038032Speter pointed out by Teddy Hogeborn <teddy@fukt.hk-r.se>. 478138032Speter CONFIG: if the "limited best mx" feature is used (to reduce DNS 478238032Speter overhead) as part of the bestmx_is_local feature, the 478338032Speter domain part was dropped from the name. Patch from Steve 478438032Speter Hubert of the University of Washington, Seattle. 478538032Speter CONFIG: catch addresses of the form "user@.dom.ain"; these could 478638032Speter end up being translated to the null host name, which would 478738032Speter return any entry in /etc/hosts that had a space at the end 478838032Speter of the line. Problem noted by Steve Hubert of the 478938032Speter University of Washington, Seattle. 479038032Speter CONFIG: add OSTYPE(aix4). From Michael Sofka of Rensselaer 479138032Speter Polytechnic Institute. 479238032Speter MAKEMAP: tweak hash and btree parameters for better performance. 479338032Speter Patch from Matt Dillon of Best Internet Communications. 479438032Speter NEW FILES: 479538032Speter src/Makefiles/Makefile.Linux.ppc 479638032Speter cf/ostype/aix4.m4 479738032Speter cf/ostype/mklinux.m4 479838032Speter 479964562Sgshapiro8.8.2/8.8.2 1996/10/18 480038032Speter SECURITY: fix a botch in the 7-bit MIME patch; the previous patch 480138032Speter changed the code but didn't fix the problem. 480238032Speter PORTABILITY FIXES: 480338032Speter Solaris: Don't use the system getusershell(3); it can 480438032Speter apparently corrupt the heap in some circumstances. 480538032Speter Problem found by Ken Pizzini of Spry, Inc. 480638032Speter OP.ME: document several mailer flags that were accidentally omitted 480738032Speter from this document. These flags were F=d, F=j, F=R, and F=9. 480838032Speter CONFIG: no changes. 480938032Speter 481064562Sgshapiro8.8.1/8.8.1 1996/10/17 481138032Speter SECURITY: unset all environment variables that the resolver will 481238032Speter examine during queue runs and daemon mode. Problem noted 481338032Speter by Dan Bernstein of the University of Illinois at Chicago. 481438032Speter SECURITY: in some cases an illegal 7-bit MIME-encoded text/plain 481538032Speter message could overflow a buffer if it was converted back 481638032Speter to 8 bits. This caused core dumps and has the potential 481738032Speter for a remote attack. Problem first noted by Gregory Shapiro 481838032Speter of WPI. 481938032Speter Avoid duplicate deliveries of error messages on systems that don't 482038032Speter have flock(2) support. Patch from Motonori Nakamura of 482138032Speter Kyoto University. 482238032Speter Ignore null FallBackMX (V) options. If this option is null (as 482338032Speter opposed to undefined) it can cause "null signature" syserrs 482438032Speter on illegal host names. 482538032Speter If a Base64 encoded text/plain message has no trailing newline in 482638032Speter the encoded text, conversion back to 8 bits will drop the 482738032Speter final line. Problem noted by Pierre David. 482838032Speter If running with a RunAsUser, sendmail would give bogus "cannot 482938032Speter setuid" (or seteuid, or setreuid) messages on some systems. 483038032Speter Problem pointed out by Jordan Mendelson of Web Services, Inc. 483138032Speter Always print error messages in -bv mode -- previously, -bv would 483238032Speter be absolutely silent on errors if the error mode was sent 483338032Speter to (say) mail-back. Problem noted by Kyle Jones of UUNET. 483438032Speter If -qI/R/S is set (or the ETRN command is used), ignore all long 483538032Speter term host status. This is necessary because it is common 483638032Speter to do this when you know a host has just come back up. 483738032Speter Disallow duplicate HELO/EHLO commands as required by RFC 1651 section 483838032Speter 4.2. Excessive permissiveness noted by Lee Flight of the 483938032Speter University of Leicester. 484038032Speter If a service (such as NIS) is specified as the last entry in the 484138032Speter service switch, but that service is not compiled in, sendmail 484238032Speter would return a temporary failure when an entry was not found 484338032Speter in the map. This caused the message to be queued instead of 484438032Speter bouncing immediately. Problem noted by Harry Edmon of the 484538032Speter University of Washington. 484638032Speter PORTABILITY FIXES: 484738032Speter Solaris 2.3 had compilation problems in conf.c. Several 484838032Speter people pointed this out. 484938032Speter NetBSD from Charles Hannum of MIT. 485038032Speter AIX4 improvements based on info from Steve Bauer of South 485138032Speter Dakota School of Mines & Technology. 485238032Speter CONFIG: ``error:code message'' syntax was broken in virtusertable. 485338032Speter Patch from Gil Kloepfer Jr. 485438032Speter CONFIG: if FEATURE(nocanonify) was specified, hosts in $=M (set 485538032Speter using MASQUERADE_DOMAIN) were not masqueraded unless they 485638032Speter were also in $=w. Problem noted by Zoltan Basti of 485738032Speter Softec. 485838032Speter MAIL.LOCAL: patches to compile and link cleanly on AIX. Based 485938032Speter on a patch from Eric Hagberg of Morgan Stanley. 486038032Speter MAIL.LOCAL: patches to compile on NEXTSTEP. From Patrick Nolan 486138032Speter of Stanford via Robert La Ferla. 486238032Speter 486364562Sgshapiro8.8.0/8.8.0 1996/09/26 486438032Speter Under some circumstances, Bcc: headers would not be properly 486538032Speter deleted. Pointed out by Jonathan Kamens of OpenVision. 486638032Speter Log a warning if the sendmail daemon is invoked without a full 486738032Speter pathname, which prevents "kill -1" from working. I was 486838032Speter urged to put this in by Andrey A. Chernov of DEMOS (Russia). 486938032Speter Fix small buffer overflow. Since the data in this buffer was not 487038032Speter read externally, there was no security problem (and in fact 487138032Speter probably wouldn't really overflow on most compilers). Pointed 487238032Speter out by KIZU takashi of Osaka University. 487338032Speter Fix problem causing domain literals such as [1.2.3.4] to be ignored 487438032Speter if a FallbackMXHost was specified in the configuration file 487538032Speter -- all mail would be sent to the fallback even if the original 487638032Speter host was accessible. Pointed out by Munenari Hirayama of 487738032Speter NSC (Japan). 487838032Speter A message that didn't terminate with a newline would (sometimes) not 487938032Speter have the trailing "." added properly in the SMTP dialogue, 488038032Speter causing SMTP to hang. Patch from Per Hedeland of Ericsson. 488138032Speter The DaemonPortOptions suboption to bind to a particular address was 488238032Speter incorrect and nonfunctional due to a misunderstanding of the 488338032Speter semantics of binding on a passive socket. Patch from 488438032Speter NIIBE Yutaka of Mitsubishi Research Institute. 488538032Speter Increase the number of MX hosts for a single name to 100 to better 488638032Speter handle the truly huge service providers such as AOL, which 488738032Speter has 13 at the moment (and climbing). In order to avoid 488838032Speter trashing memory, the buffer for all names has only been 488938032Speter slightly increased in size, to 12.8K from 10.2K -- this means 489038032Speter that if a single name had 100 MX records, the average size 489138032Speter of those records could not exceed 128 bytes. Requested by 489238032Speter Brad Knowles of America On Line. 489338032Speter Restore use of IDENT returns where the OSTYPE field equals "OTHER". 489438032Speter Urged by Dan Bernstein of U.C. Berkeley. 489538032Speter Print q_statdate and q_specificity in address structure debugging 489638032Speter printout. 489738032Speter Expand MCI structure flag bits for debugging output. 489838032Speter Support IPv6-style domain literals, which can have colons between 489938032Speter square braces. 490038032Speter Log open file descriptors for the "cannot dup" messages in deliver(); 490138032Speter this is an attempt to track down a bug that one person seems 490238032Speter to be having (it may be a Solaris bug!). 490338032Speter DSN NOTIFY parameters were not properly propagated across queue runs; 490438032Speter this caused the NOTIFY info to sometimes be lost. Problem 490538032Speter pointed out by Claus Assmann of the 490638032Speter Christian-Albrechts-University of Kiel. 490738032Speter The statistics gathered in the sendmail.st file were too high; in 490838032Speter some cases failures (e.g., user unknown or temporary failure) 490938032Speter would count as a delivery as far as the statistics were 491038032Speter concerned. Problem noted by Tom Moore of AT&T GIS. 491138032Speter Systems that don't have flock() would not send split envelopes in 491238032Speter the initial run. Problem pointed out by Leonard Zubkoff of 491338032Speter Dandelion Digital. 491438032Speter Move buffer overflow checking -- these primarily involve distrusting 491538032Speter results that may come from NIS and DNS. 491638032Speter 4.4-BSD-derived systems, including FreeBSD, NetBSD, and BSD/OS didn't 491738032Speter include <paths.h> and hence had the wrong pathnames for a few 491838032Speter things like /var/tmp. Reported by Matthew Green. 491938032Speter Conditions were reversed for the Priority: header, resulting in all 492038032Speter values being interpreted as non-urgent except for non-urgent, 492138032Speter which was interpreted as normal. Patch from Bryan Costales. 492238032Speter The -o (optional) flag was being ignored on hash and btree maps 492338032Speter since 8.7.2. Fix from Bryan Costales. 492438032Speter Content-Types listed in class "q" will always be encoded as 492538032Speter Quoted-Printable (or more accurately, will never be encoded 492638032Speter as base64). The class can have primary types (e.g., "text") 492738032Speter or full types (e.g., "text/plain"). Based on a suggestion by 492838032Speter Marius Olafsson of the University of Iceland. 492938032Speter Define ${envid} to be the original envelope id (from the ESMTP DSN 493038032Speter dialogue) so it can be passed to programs in mailers. 493138032Speter Define ${bodytype} to be the body type (from the -B flag or the 493238032Speter BODY= ESMTP parameter) so it can be passed to programs in 493338032Speter mailers. 493438032Speter Cause the VRFY command to return 252 instead of 250 unless the F=q 493538032Speter flag is set in the mailer descriptor. Suggested by John 493638032Speter Myers of CMU. 493738032Speter Implement ESMTP ETRN command to flush the queue for a specific host. 493838032Speter The command takes a host name; data for that host is 493938032Speter immediately (and asynchronously) flushed. Because this shares 494038032Speter the -qR implementation, other hosts may be attempted, but 494138032Speter there should be no security implications. Implementation 494238032Speter from John Beck of InReference, Inc. See RFC 1985 for details. 494338032Speter Add three new command line flags to pass in DSN parameters: -V envid 494438032Speter (equivalent to ENVID=envid on the MAIL command), -R ret 494538032Speter (equivalent to RET=ret on the MAIL command), and -Nnotify 494638032Speter (equivalent to NOTIFY=notify on the RCPT command). Note 494738032Speter that the -N flag applies to all recipients; there is no way 494838032Speter to specify per-address notifications on the command line, 494938032Speter nor is there an equivalent for the ORCPT= per-address 495038032Speter parameter. 495138032Speter Restore LogLevel option to be safe (it can only be increased); 495238032Speter apparently I went into paranoid mode between 8.6 and 8.7 495338032Speter and made it unsafe. Pointed out by Dabe Murphy of the 495438032Speter University of Maryland. 495538032Speter New logging on log level 15: all SMTP traffic. Patches from 495638032Speter Andrew Gross of San Diego Supercomputer Center. 495738032Speter NetInfo property value searching code wasn't stopping when it found 495838032Speter a match. This was causing the wrong values to be found (and 495938032Speter had a memory leak). Found by Bastian Schleuter of TU-Berlin. 496038032Speter Add new F=0 (zero) mailer flag to turn off MX lookups. It was pointed 496138032Speter out by Bill Wisner of Electronics for Imaging that you can't 496238032Speter use the bracket address form for the MAIL_HUB macro, since 496338032Speter that causes the brackets to remain in the envelope recipient 496438032Speter address used for delivery. The simple fix (stripping off the 496538032Speter brackets in the config file) breaks the use of IP literal 496638032Speter addresses. This flag will solve that problem. 496738032Speter Add MustQuoteChars option. This is a list of characters that must 496838032Speter be quoted if they are found in the phrase part of an address 496938032Speter (that is, the full name part). The characters @,;:\()[] are 497038032Speter always in this list and cannot be removed. The default is 497138032Speter this list plus . and ' to match RFC 822. 497238032Speter Add AllowBogusHELO option; if set, sendmail will allow HELO commands 497338032Speter that do not include a host name for back compatibility with 497438032Speter some stupid SMTP clients. Setting this violates RFC 1123 497538032Speter section 5.2.5. 497638032Speter Add MaxDaemonChildren option; if this is set, sendmail will start 497738032Speter rejecting connections if it has more than this many 497838032Speter outstanding children accepting mail. Note that you may 497938032Speter see more processes than this because of outgoing mail; this 498038032Speter is for incoming connections only. 498138032Speter Add ConnectionRateThrottle option. If set to a positive value, the 498238032Speter number of incoming SMTP connections that will be permitted 498338032Speter in a single second is limited to this number. Connections are 498438032Speter not refused during this time, just deferred. The intent is to 498538032Speter flatten out demand so that load average limiting can kick in. 498638032Speter It is less radical than MaxDaemonChildren, which will stop 498738032Speter accepting connections even if all the connections are idle 498838032Speter (e.g., due to connection caching). 498938032Speter Add Timeout.hoststatus option. This interval (defaulting to 30m) 499038032Speter specifies how long cached information about the state of a 499138032Speter host will be kept before they are considered stale and the 499238032Speter host is retried. If you are using persistent host status 499338032Speter (i.e., the HostStatusDirectory option is set) this will apply 499438032Speter between runs; otherwise, it applies only within a single queue 499538032Speter run and hence is useful only for hosts that have large queues 499638032Speter that take a very long time to run. 499738032Speter Add SingleLineFromHeader option. If set, From: headers are coerced 499838032Speter into being a single line even if they had newlines in them 499938032Speter when read. This is to get around a botch in Lotus Notes. 500038032Speter Text class maps were totally broken -- if you ever retrieved the last 500138032Speter item in a table it would be truncated. Problem noted by 500238032Speter Gregory Neil Shapiro of WPI. 500338032Speter Extend the lines printed by the mailq command (== the -bp flag) when 500438032Speter -v is given to 120 characters; this allows more information 500538032Speter to be displayed. Suggested by Gregory Neil Shapiro of WPI. 500638032Speter Allow macro definitions (`D' lines) with unquoted commas; previously 500738032Speter this was treated as end-of-input. Problem noted by Bryan 500838032Speter Costales. 500938032Speter The RET= envelope parameter (used for DSNs) wasn't properly written 501038032Speter to the queue file. Fix from John Hughes of Atlantic 501138032Speter Technologies, Inc. 501238032Speter Close /var/tmp/dead.letter after a successful write -- otherwise 501338032Speter if this happens in a queue run it can cause nasty delays. 501438032Speter Problem noted by Mark Horton of AT&T. 501538032Speter If userdb entries pointed to userdb entries, and there were multiple 501638032Speter values for a given key, the database cursor would get 501738032Speter trashed by the recursive call. Problem noted by Roy Mongiovi 501838032Speter of Georgia Tech. Fixed by reading all the values and creating 501938032Speter a comma-separated list; thus, the -v output will be somewhat 502038032Speter different for this case. 502138032Speter Fix buffer allocation problem with Hesiod-based userdb maps when 502238032Speter HES_GETMAILHOST is defined. Based on a patch by Betty Lee 502338032Speter of Stanford University. 502438032Speter When envelopes were split due to aliases with owner- aliases, and 502538032Speter there was some error on one of the lists, more than one of 502638032Speter the owners would get the message. Problem pointed out by 502738032Speter Roy Mongiovi of Georgia Tech. 502838032Speter Detect excessive recursion in macro expansions, e.g., $X defined 502938032Speter in terms of $Y which is defined in terms of $X. Problem 503038032Speter noted by Bryan Costales; patch from Eric Wassenaar. 503138032Speter When using F=U to get "ugly UUCP" From_ lines, a buffer could in 503238032Speter some cases get trashed causing bogus From_ lines. Fix from 503338032Speter Kyle Jones of UUNET. 503438032Speter When doing load average initialization, if the nlist call for avenrun 503538032Speter failed, the second and subsequent lookups wouldn't notice 503638032Speter that fact causing bogus load averages to be returned. Noted 503738032Speter by Casper Dik of Sun Holland. 503838032Speter Fix problem with incompatibility with some versions of inet_aton that 503938032Speter have changed the return value to unsigned, so a check for an 504038032Speter error return of -1 doesn't work. Use INADDR_NONE instead. 504138032Speter This could cause mail to addresses such as [foo.com] to bounce 504238032Speter or get dropped. Problem noted by Christophe Wolfhugel of the 504338032Speter Pasteur Institute. 504438032Speter DSNs were inconsistent if a failure occurred during the DATA phase 504538032Speter rather than the RCPT phase: the Action: would be correct, but 504638032Speter the detailed status information would be wrong. Problem noted 504738032Speter by Bob Snyder of General Electric Company. 504838032Speter Add -U command line flag and the XUSR ESMTP extension, both indicating 504938032Speter that this is the initial MUA->MTA submission. The flag current 505038032Speter does nothing, but in future releases (when MUAs start using 505138032Speter these flags) it will probably turn on things like DNS 505238032Speter canonification. 505338032Speter Default end-of-line string (E= specification on mailer [M] lines) 505438032Speter to \r\n on SMTP mailers. Default remains \n on non-SMTP 505538032Speter mailers. 505638032Speter Change the internal definition for the *file* and *include* mailers 505738032Speter to have $u in the argument vectors so that they aren't 505838032Speter misinterpreted as SMTP mailers and thus use \r\n line 505938032Speter termination. This will affect anyone who has redefined 506038032Speter either of these in their configuration file. 506138032Speter Don't assume that IDENT servers close the connection after a query; 506238032Speter responses can be newline terminated. From Terry Kennedy of 506338032Speter St. Peter's College. 506438032Speter Avoid core dumps on erroneous configuration files that have 506538032Speter $#mailer with nothing following. From Bryan Costales. 506638032Speter Avoid null pointer dereference with high debug values in unlockqueue. 506738032Speter Fix from Randy Martin of Clemson University. 506838032Speter Fix possible buffer overrun when expanding very large macros. Fix 506938032Speter from Kyle Jones of UUNET. 507038032Speter After 25 EXPN or VRFY commands, start pausing for a second before 507138032Speter processing each one. This avoids a certain form of denial 507238032Speter of service attack. Potential attack pointed out by Bryan 507338032Speter Costales. 507438032Speter Allow new named (not numbered!) config file rules to do validity 507538032Speter checking on SMTP arguments: check_mail for MAIL commands and 507638032Speter check_rcpt for RCPT commands. These rulesets can do anything 507738032Speter they want; their result is ignored unless they resolve to the 507838032Speter $#error mailer, in which case the indicated message is printed 507938032Speter and the command is rejected. Similarly, the check_compat 508038032Speter ruleset is called before delivery with "from_addr $| to_addr" 508138032Speter (the $| is a meta-symbol used to separate the two addresses); 508238032Speter it can give a "this sender can't send to this recipient" 508338032Speter notification. Note that this patch allows $| to stand alone 508438032Speter in rulesets. 508538032Speter Define new macros ${client_name}, ${client_addr}, and ${client_port} 508638032Speter that have the name, IP address, and port number (respectively) 508738032Speter of the SMTP client (that is, the entity at the other end of 508838032Speter the connection. These can be used in (e.g.) check_rcpt to 508938032Speter verify that someone isn't trying to relay mail through your 509038032Speter host inappropriately. Be sure to use the deferred evaluation 509138032Speter form, for example $&{client_name}, to avoid having these bound 509238032Speter when sendmail reads the configuration file. 509338032Speter Add new config file rule check_relay to check the incoming connection 509438032Speter information. Like check_compat, it is passed the host name 509538032Speter and host address separated by $| and can reject connections 509638032Speter on that basis. 509738032Speter Allow IDA-style recursive function calls. Code contributed by Mark 509838032Speter Lovell and Paul Vixie. 509938032Speter Eliminate the "No ! in UUCP From address!" message" -- instead, create 510038032Speter a virtual UUCP address using either a domain address or the $k 510138032Speter macro. Based on code contributed by Mark Lovell and Paul 510238032Speter Vixie. 510338032Speter Add Stanford LDAP map. Requires special libraries that are not 510438032Speter included with sendmail. Contributed by Booker C. Bense 510538032Speter <bbense@networking.stanford.edu>; contact him for support. 510638032Speter See also the src/READ_ME file. 510738032Speter Allow -dANSI to turn on ANSI escape sequences in debug output; this 510838032Speter puts metasymbols (e.g., $+) in reverse video. Really useful 510938032Speter only for debugging deep bits of code where it is important to 511038032Speter distinguish between the single-character metasymbol $+ and the 511138032Speter two characters $, +. 511238032Speter Changed ruleset 89 (executed in dumpstate()) to a named ruleset, 511338032Speter debug_dumpstate. 511438032Speter Add new UnsafeGroupWrites option; if set, .forward and :include: 511538032Speter files that are group writable are considered "unsafe" -- that 511638032Speter is, programs and files referenced from such files are not 511738032Speter valid recipients. 511838032Speter Delete bogosity test for FallBackMX host; this prevented it to be a 511938032Speter name that was not in DNS or was a domain-literal. Problem 512038032Speter noted by Tom May. 512138032Speter Change the introduction to error messages to more clearly delineate 512238032Speter permanent from temporary failures; if both existed in a 512338032Speter single message it could be confusing. Suggested by John 512438032Speter Beck of InReference, Inc. 512538032Speter The IngoreDot (i) option didn't work for lines that were terminated 512638032Speter with CRLF. Problem noted by Ted Stockwell of Secure 512738032Speter Computing Corporation. 512838032Speter Add a heuristic to improve the handling of unbalanced `<' signs in 512938032Speter message headers. Problem reported by Matt Dillon of Best 513038032Speter Internet Communications. 513138032Speter Check for bogus characters in the 0200-0237 range; since these are 513238032Speter used internally, very strange errors can occur if those 513338032Speter characters appear in headers. Problem noted by Anders Gertz 513438032Speter of Lysator. 513538032Speter Implement 7 -> 8 bit MIME conversions. This only takes place if the 513638032Speter recipient mailer has the F=9 flag set, and only works on 513738032Speter text/plain body types. Code contributed by Marius Olafsson 513838032Speter of the University of Iceland. 513938032Speter Special case "postmaster" name so that it is always treated as lower 514038032Speter case in alias files regardless of configuration settings; 514138032Speter this prevents some potential problems where "Postmaster" or 514238032Speter "POSTMASTER" might not match "postmaster". In most cases 514338032Speter this change is a no-op. 514438032Speter The -o map flag was ignored for text maps. Problem noted by Bryan 514538032Speter Costales. 514638032Speter The -a map flag was ignored for dequote maps. Problem noted by 514738032Speter Bryan Costales. 514838032Speter Fix core dump when a lookup of a class "prog" map returns no 514938032Speter response. Patch from Bryan Costales. 515038032Speter Log instances where sendmail is deferring or rejecting connections 515138032Speter on LogLevel 14. Suggested by Kyle Jones of UUNET. 515238032Speter Include port number in process title for network daemons. Suggested 515338032Speter by Kyle Jones of UUNET. 515438032Speter Send ``double bounces'' (errors that occur when sending an error 515538032Speter message) to the address indicated in the DoubleBounceAddress 515638032Speter option (default: postmaster). Previously they were always 515738032Speter sent to postmaster. Suggested by Kyle Jones of UUNET. 515838032Speter Add new mode, -bD, that acts like -bd in all respects except that 515938032Speter it runs in foreground. This is useful for using with a 516038032Speter wrapper that "watches" system services. Suggested by Kyle 516138032Speter Jones of UUNET. 516238032Speter Fix botch in spacing around (parenthesized) comments in addresses 516338032Speter when the comment comes before the address. Patch from 516438032Speter Motonori Nakamura of Kyoto University. 516538032Speter Use the prefix "Postmaster notify" on the Subject: lines of messages 516638032Speter that are being bounced to postmaster, rather than "Returned 516738032Speter mail". This permits the person who is postmaster more 516838032Speter easily determine what messages are to their role as 516938032Speter postmaster versus bounces to mail they actually sent. Based 517038032Speter on a suggestion by Motonori Nakamura. 517138032Speter Add new value "time" for QueueSortOrder option; this causes the queue 517238032Speter to be sorted strictly by the time of submission. Note that 517343730Speter this can cause very bad behavior over slow lines (because 517438032Speter large jobs will tend to delay small jobs) and on nodes with 517538032Speter heavy traffic (because old things in the queue for hosts that 517638032Speter are down delay processing of new jobs). Also, this does not 517738032Speter guarantee that jobs will be delivered in submission order 517838032Speter unless you also set DeliveryMode=queue. In general, it should 517938032Speter probably only be used on the command line, and only in 518038032Speter conjunction with -qRhost.domain. In fact, there are very few 518138032Speter cases where it should be used at all. Based on an 518238032Speter implementation by Motonori Nakamura. 518338032Speter If a map lookup in ruleset 5 returns tempfail, queue the message in 518438032Speter the same manner as other rulesets. Previously a temporary 518538032Speter failure in ruleset 5 was ignored. Patch from Booker Bense 518638032Speter of Stanford University. 518738032Speter Don't proceed to the next MX host if an SMTP MAIL command returns a 518838032Speter 5yz (permanent failure) code. The next MX host will still be 518938032Speter tried if the connection cannot be opened in the first place 519038032Speter or if the MAIL command returns a 4yz (temporary failure) code. 519138032Speter (It's hard to know what to do here, since neither RFC 974 nor 519238032Speter RFC 1123 specify when to proceed to the next MX host.) 519338032Speter Suggested by Jonathan Kamens of OpenVision, Inc. 519438032Speter Add new "-t" flag for map definitions (the "K" line in the .cf file). 519538032Speter This causes map lookups that get a temporary failure (e.g., 519638032Speter name server failure) to _not_ defer the delivery of the 519738032Speter message. This should only be used if your configuration file 519838032Speter is prepared to do something sensible in this case. Based on 519938032Speter an idea by Gregory Shapiro of WPI. 520038032Speter Fix problem finding network interface addresses. Patch from 520138032Speter Motonori Nakamura. 520238032Speter Don't reject qf entries that are not owned by your effective uid if 520390792Sgshapiro you are not running set-user-ID; this makes management of 520480785Sgshapiro certain kinds of firewall setups difficult. Patch 520580785Sgshapiro suggested by Eamonn Coleman of Qualcomm. 520638032Speter Add persistent host status. This keeps the information normally 520738032Speter maintained within a single queue run in disk files that are 520838032Speter shared between sendmail instances. The HostStatusDirectory 520938032Speter is the directory in which the information is maintained. If 521038032Speter not set, persistent host status is turned off. If not a full 521138032Speter pathname, it is relative to the queue directory. A common 521238032Speter value is ".hoststat". 521338032Speter There are also two new operation modes: 521438032Speter * -bh prints the status of hosts that have had recent 521538032Speter connections. 521638032Speter * -bH purges the host statuses. No attempt is made to save 521738032Speter recent status information. 521838032Speter This feature was originally written by Paul Vixie of Vixie 521938032Speter Enterprises for KJS and adapted for V8 by Mark Lovell of 522038032Speter Bigrock Consulting. Paul's funding of Mark and Mark's patience 522138032Speter with my insistence that things fit cleanly into the V8 522238032Speter framework is gratefully appreciated. 522338032Speter New SingleThreadDelivery option (requires HostStatusDirectory to 522438032Speter operate). Avoids letting two sendmails on the local machine 522564562Sgshapiro open connections to the same remote host at the same time. 522638032Speter This reduces load on the other machine, but can cause mail to 522738032Speter be delayed (for example, if one sendmail is delivering a huge 522838032Speter message, other sendmails won't be able to send even small 522938032Speter messages). Also, it requires another file descriptor (for the 523038032Speter lock file) per connection, so you may have to reduce 523138032Speter ConnectionCacheSize to avoid running out of per-process 523238032Speter file descriptors. Based on the persistent host status code 523338032Speter contributed by Paul Vixie and Mark Lovell. 523438032Speter Allow sending to non-simple files (e.g., /dev/null) even if the 523538032Speter SafeFileEnvironment option is set. Problem noted by Bryan 523638032Speter Costales. 523738032Speter The -qR flag mistakenly matched flags in the "R" line of the queue 523838032Speter file. Problem noted by Bryan Costales. 523938032Speter If a job was aborted using the interrupt signal (e.g., control-C from 524038032Speter the keyboard), on some occasions an empty df file would be 524138032Speter left around; these would collect in the queue directory. 524238032Speter Problem noted by Bryan Costales. 524338032Speter Change the makesendmail script to enhance the search for Makefiles 524438032Speter based on release number. For example, on SunOS 5.5.1, it will 524538032Speter search for Makefile.SunOS.5.5.1, Makefile.SunOS.5.5, and then 524638032Speter Makefile.SunOS.5.x (in addition to the other rules, e.g., 524738032Speter adding $arch). Problem noted by Jason Mastaler of Atlanta 524838032Speter Webmasters. 524938032Speter When creating maps using "newaliases", always map the keys to lower 525038032Speter case when creating the map unless the -f flag is specified on 525138032Speter the map itself. Previously this was done based on the F=u 525238032Speter flag in the local mailer, which meant you could create aliases 525338032Speter that you could never access. Problem noted by Bob Wu of DEC. 525438032Speter When a job was read from the queue, the bits causing notification on 525538032Speter failure or delay were always set. This caused those 525638032Speter notifications to be sent even if NOTIFY=NEVER had been 525738032Speter specified. Problem noted by Steve Hubert of the University 525838032Speter of Washington, Seattle. 525938032Speter Add new configurable routine validate_connection (in conf.c). This 526038032Speter lets you decide if you are willing to accept traffic from 526138032Speter this host. If it returns FALSE, all SMTP commands will return 526238032Speter "550 Access denied". -DTCPWRAPPERS will include support for 526338032Speter TCP wrappers; you will need to add -lwrap to the link line. 526438032Speter (See src/READ_ME for details.) 526538032Speter Don't include the "THIS IS A WARNING MESSAGE ONLY" banner on postmaster 526638032Speter bounces. Some people seemed to think that this could be 526738032Speter confusing (even though it is true). Suggested by Motonori 526838032Speter Nakamura. 526938032Speter Add new RunAsUser option; this causes sendmail to do a setuid to that 527038032Speter user early in processing to avoid potential security problems. 527138032Speter However, this means that all .forward and :include: files must 527238032Speter be readable by that user, and all files to be written must be 527338032Speter writable by that user and all programs will be executed by that 527438032Speter user. It is also incompatible with the SafeFileEnvironment 527538032Speter option. In other words, it may not actually add much to 527638032Speter security. However, it should be useful on firewalls and other 527738032Speter places where users don't have accounts and the aliases file is 527838032Speter well constrained. 527938032Speter Add Timeout.iconnect. This is like Timeout.connect except it is used 528038032Speter only on the first attempt to delivery to an address. It could 528138032Speter be set to be lower than Timeout.connect on the principle that 528238032Speter the mail should go through quickly to responsive hosts; less 528338032Speter responsive hosts get to wait for the next queue run. 528438032Speter Fix a problem on Solaris that occasionally causes programs 528538032Speter (such as vacation) to hang with their standard input connected 528638032Speter to a UDP port. It also created some signal handling problems. 528738032Speter The problems turned out to be an interaction between vfork(2) 528838032Speter and some of the libraries, particularly NIS/NIS+. I am 528938032Speter indebted to Tor Egge <tegge@idt.ntnu.no> for this fix. 529038032Speter Change user class map to do the same matching that actual delivery 529138032Speter will do instead of just a /etc/passwd lookup. This adds 529238032Speter fuzzy matching to the user map. Patch from Dan Oscarsson. 529338032Speter The Timeout.* options are not safe -- they can be used to create a 529438032Speter denial-of-service attack. Problem noted by Christophe 529538032Speter Wolfhugel. 529643730Speter Don't send PostmasterCopy messages in the event of a "delayed" 529738032Speter notification. Suggested by Barry Bouwsma. 529838032Speter Don't advertise "VERB" ESMTP extension if the "noexpn" privacy 529938032Speter option is set, since this disables VERB mode. Suggested 530038032Speter by John Hawkinson of MIT. 530138032Speter Complain if the QueueDirectory (Q) option is not set. Problem noted 530238032Speter by Motonori Nakamura of Kyoto University. 530338032Speter Only queue messages on transient .forward open failures if there 530443730Speter were no successful opens. The previous behavior caused it 530538032Speter to queue even if a "fall back" .forward was found. Problem 530638032Speter noted by Ann-Kian Yeo of the Dept. of Information Systems 530738032Speter and Computer Science (DISCS), NUS, Singapore. 530838032Speter Don't do 8->7 bit conversions when bouncing a MIME message that 530938032Speter is bouncing because of a MIME error during 8->7 bit conversion; 531038032Speter the encapsulated message will bounce again, causing a loop. 531138032Speter Problem noted by Steve Hubert of the University of Washington. 531238032Speter Create xf (transcript) files using the TempFileMode option value 531338032Speter instead of 0644. Suggested by Ann-Kian Yeo of the 531438032Speter National University of Singapore. 531538032Speter Print errors if setgid/setuid/etc. fail during delivery. This helps 531638032Speter detect cases where DefaultUid is set to something that the 531738032Speter system can't cope with. 531838032Speter PORTABILITY FIXES: 531938032Speter Support for AIX/RS 2.2.1 from Mark Whetzel of Western 532038032Speter Atlas International. 532138032Speter Patches for Intel Paragon OSF/1 1.3 from Leo Bicknell 532238032Speter <bicknell@ufp.org>. 532338032Speter On DEC OSF/1 3.2 and earlier, the MatchGECOS code would only 532438032Speter work on the first recipient of a message due to a 532538032Speter bug in the getpwent family. If this is something you 532638032Speter use, you can define DEC_OSF_BROKEN_GETPWENT=1 for a 532738032Speter workaround. From Maximum Entropy of Sanford C. 532838032Speter Bernstein and Associates. 532938032Speter FreeBSD 1.1.5.1 uname -r returns a string containing 533038032Speter parentheses, which breaks makesendmail. Reported 533138032Speter by Piero Serini <piero@strider.ibenet.it>. 533238032Speter Sequent DYNIX/ptx 4.0.2 patches from Jack Woolley of 533338032Speter Systems and Computer Technology Corporation. 533438032Speter Solaris 2.x: omit the UUCP grade parameter (-g flag) because 533538032Speter it is system-dependent. Problem noted by J.J. Bailey 533638032Speter of Bailey Computer Consulting. 533738032Speter Pyramid NILE running DC/OSx support from Earle F. Ake of 533838032Speter Hassler Communication Systems Technology, Inc. 533938032Speter HP-UX 10.x compile glitches, reported by Anne Brink of the 534038032Speter U.S. Army and James Byrne of Harte & Lyne Limited. 534138032Speter NetBSD from Matthew Green of the NetBSD crew. 534238032Speter SCO 5.x from Keith Reynolds of SCO. 534338032Speter IRIX 6.2 from Robert Tarrall of the University of 534438032Speter Colorado and Kari Hurtta of the Finnish Meteorological 534538032Speter Institute. 534638032Speter UXP/DS (Fujitsu/ICL DS/90 series) support from Diego R. 534738032Speter Lopez, CICA (Seville). 534838032Speter NCR SVR4 MP-RAS 3.x support from Tom Moore of NCR. 534938032Speter PTX 3.2.0 from Kenneth Stailey of the US Department of Labor 535038032Speter Employment Standards Administration. 535138032Speter Altos System V (5.3.1) from Tim Rice of Multitalents. 535238032Speter Concurrent Systems Corporation Maxion from Donald R. Laster 535338032Speter Jr. 535438032Speter NetInfo maps (improved debugging and multi-valued aliases) 535538032Speter from Adrian Steinmann of Steinmann Consulting. 535638032Speter ConvexOS 11.5 (including SecureWare C2 and the Share Scheduler) 535738032Speter from Eric Schnoebelen of Convex. 535838032Speter Linux 2.0 mail.local patches from Horst von Brand. 535938032Speter NEXTSTEP 3.x compilation from Robert La Ferla. 536038032Speter NEXTSTEP 3.x code changes from Allan J. Nathanson of NeXT. 536138032Speter Solaris 2.5 configuration fixes for mail.local by Jim Davis 536238032Speter of the University of Arizona. 536338032Speter Solaris 2.5 has a working setreuid. Noted by David Linn of 536438032Speter Vanderbilt University. 536538032Speter Solaris changes for praliases, makemap, mailstats, and smrsh. 536638032Speter Previously you had to add -DSOLARIS in Makefile.dist; 536738032Speter this auto-detects. Based on a patch from Randall 536838032Speter Winchester of the University of Maryland. 536938032Speter CONFIG: add generic-nextstep3.3.mc file. Contributed by 537038032Speter Robert La Ferla of Hot Software. 537138032Speter CONFIG: allow mailertables to resolve to ``error:code message'' 537238032Speter (where "code" is an exit status) on domains (previously 537338032Speter worked only on hosts). Patch from Cor Bosman of Xs4all 537438032Speter Foundation. 537538032Speter CONFIG: hooks for IPv6-style domain literals. 537638032Speter CONFIG: predefine ALIAS_FILE and change the prototype file so that 537738032Speter if it is undefined the AliasFile option is never set; this 537838032Speter should be transparent for most everyone. Suggested by John 537938032Speter Myers of CMU. 538038032Speter CONFIG: add FEATURE(limited_masquerade). Without this feature, any 538138032Speter domain listed in $=w is masqueraded. With it, only those 538238032Speter domains listed in a MASQUERADE_DOMAIN macro are masqueraded. 538338032Speter CONFIG: add FEATURE(masquerade_entire_domain). This causes 538438032Speter masquerading specified by MASQUERADE_DOMAIN to apply to all 538538032Speter hosts under those domains as well as the domain headers 538638032Speter themselves. For example, if a configuration had 538738032Speter MASQUERADE_DOMAIN(foo.com), then without this feature only 538838032Speter foo.com would be masqueraded; with it, *.foo.com would be 538938032Speter masqueraded as well. Based on an implementation by Richard 539038032Speter (Pug) Bainter of U. Texas. 539138032Speter CONFIG: add FEATURE(genericstable) to do a more general rewriting of 539238032Speter outgoing addresses. Defaults to ``hash -o /etc/genericstable''. 539338032Speter Keys are user names; values are outgoing mail addresses. Yes, 539438032Speter this does overlap with the user database, and figuring out 539538032Speter just when to use which one may be tricky. Based on code 539638032Speter contributed by Richard (Pug) Bainter of U. Texas with updates 539738032Speter from Per Hedeland of Ericsson. 539838032Speter CONFIG: add FEATURE(virtusertable) to do generalized rewriting of 539938032Speter incoming addresses. Defaults to ``hash -o /etc/virtusertable''. 540038032Speter Keys are either fully qualified addresses or just the host 540138032Speter part (with the @ sign). For example, a table containing: 540238032Speter info@foo.com foo-info 540338032Speter info@bar.com bar-info 540438032Speter @baz.org jane@elsewhere.net 540538032Speter would send all mail destined for info@foo.com to foo-info 540638032Speter (which is presumably an alias), mail addressed to info@bar.com 540738032Speter to bar-info, and anything addressed to anyone at baz.org will 540838032Speter be sent to jane@elsewhere.net. The names foo.com, bar.com, 540938032Speter and baz.org must all be in $=w. Based on discussions with 541038032Speter a great many people. 541138032Speter CONFIG: add nullclient configurations to define SMTP_MAILER_FLAGS. 541238032Speter Suggested by Richard Bainter. 541338032Speter CONFIG: add FAX_MAILER_ARGS to tweak the arguments passed to the 541438032Speter "fax" mailer. 541538032Speter CONFIG: allow mailertable entries to resolve to local:user; this 541638032Speter passes the original user@host in to procmail-style local 541738032Speter mailers as the "detail" information to allow them to do 541838032Speter additional clever processing. From Joe Pruett of 541938032Speter Teleport Corporation. Delivery to the original user can 542038032Speter be done by specifying "local:" (with nothing after the colon). 542138032Speter CONFIG: allow any context that takes "mailer:domain" to also take 542238032Speter "mailer:user@domain" to force mailing to the given user; 542338032Speter "local:user" can also be used to do local delivery. This 542438032Speter applies on *_RELAY and in the mailertable entries. Based 542538032Speter on a suggestion by Ribert Kiessling of Easynet. 542638032Speter CONFIG: Allow FEATURE(bestmx_is_local) to take an argument that 542738032Speter limits the possible domains; this reduces the number of DNS 542838032Speter lookups required to support this feature. For example, 542938032Speter FEATURE(bestmx_is_local, my.site.com) limits the lookups 543038032Speter to domains under my.site.com. Code contributed by Anthony 543138032Speter Thyssen <anthony@cit.gu.edu.au>. 543238032Speter CONFIG: LOCAL_RULESETS introduces any locally defined rulesets, 543338032Speter such as the check_rcpt ruleset. Suggested by Gregory Shapiro 543438032Speter of WPI. 543538032Speter CONFIG: MAILER_DEFINITIONS introduces any mailer definitions, in the 543638032Speter event you have to define local mailers. Suggested by 543738032Speter Gregory Shapiro of WPI. 543838032Speter CONFIG: fix cases where a three- (or more-) stage route-addr could 543938032Speter be misinterpreted as a list:...; syntax. Based on a patch by 544038032Speter Vlado Potisk <Vlado_Potisk@tempest.sk>. 544138032Speter CONFIG: Fix masquerading of UUCP addresses when the UUCP relay is 544238032Speter remotely connected. The address host!user was being 544338032Speter converted to host!user@thishost instead of host!user@uurelay. 544438032Speter Problem noted by William Gianopoulos of Raytheon Company. 544538032Speter CONFIG: add confTO_ICONNECT to set Timeout.iconnect. 544638032Speter CONFIG: change FEATURE(redirect) message from "User not local" to 544738032Speter "User has moved"; the former wording was confusing if the 544838032Speter new address is still on the local host. Based on a suggestion 544938032Speter by Andreas Luik. 545038032Speter CONFIG: add support in FEATURE(nullclient) for $=E (exposed users). 545138032Speter However, the class is not pre-initialized to contain root. 545238032Speter Suggested by Gregory Neil Shapiro. 545338032Speter CONTRIB: Remove XLA code at the request of the author, Christophe 545438032Speter Wolfhugel. 545538032Speter CONTRIB: Add re-mqueue.pl, contributed by Paul Pomes of Qualcomm. 545638032Speter MAIL.LOCAL: make it possible to compile mail.local on Solaris. Note 545738032Speter well: this produces a slightly different mailbox format (no 545838032Speter Content-Length: headers), file ownerships and modes are 545938032Speter different (not owned by group mail; mode 600 instead of 660), 546038032Speter and the local mailer flags will have to be tweaked (make them 546138032Speter match bsd4.4) in order to use this mailer. Patches from Paul 546238032Speter Hammann of the Missouri Research and Education Network. 546338032Speter MAIL.LOCAL: in some cases it could return EX_OK even though there 546438032Speter was a delivery error, such as if the ownership on the file 546538032Speter was wrong or the mode changed between the initial stat and 546638032Speter the open. Problem reported by William Colburn of the New 546738032Speter Mexico Institute of Mining and Technology. 546838032Speter MAILSTATS: handle zero length files more reliably. Patch from Bryan 546938032Speter Costales. 547038032Speter MAILSTATS: add man page contributed by Keith Bostic of BSDI. 547138032Speter MAKEMAP: The -d flag (to allow duplicate keys) to a btree map wasn't 547238032Speter honored. Fix from Michael Scott Shappe. 547338032Speter PRALIASES: add man page contributed by Keith Bostic of BSDI. 547438032Speter NEW FILES: 547538032Speter src/Makefiles/Makefile.AIX.2 547638032Speter src/Makefiles/Makefile.IRIX.6.2 547738032Speter src/Makefiles/Makefile.maxion 547838032Speter src/Makefiles/Makefile.NCR.MP-RAS.3.x 547938032Speter src/Makefiles/Makefile.SCO.5.x 548038032Speter src/Makefiles/Makefile.UXPDSV20 548138032Speter mailstats/mailstats.8 548238032Speter praliases/praliases.8 548338032Speter cf/cf/generic-nextstep3.3.mc 548438032Speter cf/feature/genericstable.m4 548538032Speter cf/feature/limited_masquerade.m4 548638032Speter cf/feature/masquerade_entire_domain.m4 548738032Speter cf/feature/virtusertable.m4 548838032Speter cf/ostype/aix2.m4 548938032Speter cf/ostype/altos.m4 549038032Speter cf/ostype/maxion.m4 549138032Speter cf/ostype/solaris2.ml.m4 549238032Speter cf/ostype/uxpds.m4 549338032Speter contrib/re-mqueue.pl 549438032Speter DELETED FILES: 549538032Speter src/Makefiles/Makefile.Solaris 549638032Speter contrib/xla/README 549738032Speter contrib/xla/xla.c 549838032Speter RENAMED FILES: 549938032Speter src/Makefiles/Makefile.NCR3000 => Makefile.NCR.MP-RAS.2.x 550038032Speter src/Makefiles/Makefile.SCO.3.2v4.2 => Makefile.SCO.4.2 550138032Speter src/Makefiles/Makefile.UXPDS => Makefile.UXPDSV10 550238032Speter src/Makefiles/Makefile.NeXT => Makefile.NeXT.2.x 550338032Speter src/Makefiles/Makefile.NEXTSTEP => Makefile.NeXT.3.x 550438032Speter 550564562Sgshapiro8.7.6/8.7.3 1996/09/17 550638032Speter SECURITY: It is possible to force getpwuid to fail when writing the 550738032Speter queue file, causing sendmail to fall back to running programs 550838032Speter as the default user. This is not exploitable from off-site. 550938032Speter Workarounds include using a unique user for the DefaultUser 551038032Speter (old u & g options) and using smrsh as the local shell. 551138032Speter SECURITY: fix some buffer overruns; in at least one case this allows 551238032Speter a local user to get root. This is not known to be exploitable 551338032Speter from off-site. The workaround is to disable chfn(1) commands. 551438032Speter 551564562Sgshapiro8.7.5/8.7.3 1996/03/04 551638032Speter Fix glitch in 8.7.4 when putting certain internal lines; this can 551738032Speter in some case cause connections to hang or messages to have 551838032Speter extra spaces in odd places. Patch from Eric Wassenaar; 551938032Speter reports from Eric Hall of Chiron Corporation, Stephen 552038032Speter Hansen of Stanford University, Dean Gaudet of HotWired, 552138032Speter and others. 552238032Speter 552364562Sgshapiro8.7.4/8.7.3 1996/02/18 552438032Speter SECURITY: In some cases it was still possible for an attacker to 552538032Speter insert newlines into a queue file, thus allowing access to 552638032Speter any user (except root). 552738032Speter CONFIG: no changes -- it is not a bug that the configuration 552838032Speter version number is unchanged. 552938032Speter 553064562Sgshapiro8.7.3/8.7.3 1995/12/03 553138032Speter Fix botch in name server timeout in RCPT code; this problem caused 553238032Speter two responses in SMTP, which breaks things horribly. Fix 553338032Speter from Gregory Neil Shapiro of WPI. 553438032Speter Verify that L= value on M lines cannot be negative, which could cause 553538032Speter negative array subscripting. Not a security problem since 553638032Speter this has to be in the config file, but it could have caused 553738032Speter core dumps. Pointed out by Bryan Costales. 553838032Speter Fix -d21 debug output for long macro names. Pointed out by Bryan 553938032Speter Costales. 554038032Speter PORTABILITY FIXES: 554138032Speter SCO doesn't have ftruncate. From Bill Aten of Computerizers. 554238032Speter IBM's version of arpa/nameser.h defaults to the wrong byte 554338032Speter order. Tweak it to work properly. Based on fixes 554438032Speter from Fletcher Mattox of UTexas and Betty Lee of 554538032Speter Stanford University. 554638032Speter CONFIG: add confHOSTS_FILE m4 variable to set HostsFile option. 554738032Speter Deficiency pointed out by Bryan Costales of ICSI. 554838032Speter 554964562Sgshapiro8.7.2/8.7.2 1995/11/19 555038032Speter REALLY fix the backslash escapes in SmtpGreetingMessage, 555138032Speter OperatorChars, and UnixFromLine options. They were not 555238032Speter properly repaired in 8.7.1. 555338032Speter Completely delete the Bcc: header if and only if there are other 555438032Speter valid recipient headers (To:, Cc: or Apparently-To:, the 555538032Speter last being a historic botch, of course). If Bcc: is the 555638032Speter only recipient header in the message, its value is tossed, 555743730Speter but the header name is kept. The old behavior (always keep 555838032Speter the header name and toss the value) allowed primary recipients 555938032Speter to see that a Bcc: went to _someone_. 556038032Speter Include queue id on ``Authentication-Warning: <host>: <user> set 556138032Speter sender to <address> using -f'' syslog messages. Suggested 556238032Speter by Kari Hurtta. 556338032Speter If a sequence or switch map lookup entry gets a tempfail but then 556438032Speter continues on to another map type, but the name is not found, 556538032Speter return a temporary failure from the sequence or switch map. 556638032Speter For example, if hosts search ``dns files'' and DNS fails 556738032Speter with a tempfail, the hosts map will go on and search files, 556838032Speter but if it fails the whole thing should be a tempfail, not 556938032Speter a permanent (host unknown) failure, even though that is the 557038032Speter failure in the hosts.files map. This error caused hard 557138032Speter bounces when it should have requeued. 557238032Speter Aliases to files such as /users/bar/foo/inbox, with /users/bar/foo 557390792Sgshapiro owned by bar mode 700 and inbox being set-user-ID bar stopped 557438032Speter working properly due to excessive paranoia. Pointed out by 557538032Speter John Hawkinson of Panix. 557638032Speter An SMTP RCPT command referencing a host that gave a nameserver 557738032Speter timeout would return a 451 command (8.6 accepted it and 557843730Speter queued it locally). Revert to the 8.6 behavior in order 557938032Speter to simplify queue management for clustered systems. Suggested 558038032Speter by Gregory Neil Shapiro of WPI. The same problem could break 558138032Speter MH, which assumes that the SMTP session will succeed (tsk, tsk 558238032Speter -- mail gets lost!); this was pointed out by Stuart Pook of 558338032Speter Infobiogen. 558438032Speter Fix possible buffer overflow in munchstring(). This was not a security 558538032Speter problem because you couldn't specify any argument to this 558638032Speter without first giving up root privileges, but it is still a 558738032Speter good idea to avoid future problems. Problem noted by John 558838032Speter Hawkinson and Sam Hartman of MIT. 558938032Speter ``452 Out of disk space for temp file'' messages weren't being 559038032Speter printed. Fix from David Perlin of Nanosoft. 559143730Speter Don't advertise the ESMTP DSN extension if the SendMimeErrors option 559238032Speter is not set, since this is required to get the actual DSNs 559338032Speter created. Problem pointed out by John Gardiner Myers of CMU. 559438032Speter Log permission problems that cause .forward and :include: files to 559538032Speter be untrusted or ignored on log level 12 and higher. Suggested 559638032Speter by Randy Martin of Clemson University. 559738032Speter Allow user ids in U= clauses of M lines to have hyphens and 559838032Speter underscores. 559938032Speter Fix overcounting of recipients -- only happened when sending to an 560038032Speter alias. Pointed out by Mark Andrews of SGI and Jack Woolley 560138032Speter of Systems and Computer Technology Corporation. 560238032Speter If a message is sent to an address that fails, the error message that 560338032Speter is returned could show some extraneous "success" information 560438032Speter included even if the user did not request success notification, 560538032Speter which was confusing. Pointed out by Allan Johannesen of WPI. 560638032Speter Config files that had no AliasFile definition were defaulting to 560738032Speter using /etc/aliases; this caused problems with nullclient 560838032Speter configurations. Change it back to the 8.6 semantics of 560938032Speter having no local alias file unless it is declared. Problem 561038032Speter noted by Charles Karney of Princeton University. 561138032Speter Fix compile problem if NOTUNIX is defined. Pointed out by Bryan 561238032Speter Costales of ICSI. 561338032Speter Map lookups of class "userdb" maps were always case sensitive; they 561438032Speter should be controlled by the -f flag like other maps. Pointed 561538032Speter out by Bjart Kvarme <bjart.kvarme@usit.uio.no>. 561638032Speter Fix problem that caused some addresses to be passed through ruleset 5 561738032Speter even when they were tagged as "sticky" by prefixing the 561838032Speter address with an "@". Patch from Thomas Dwyer III of Michigan 561938032Speter Technological University. 562038032Speter When converting a message to Quoted-Printable, prevent any lines with 562138032Speter dots alone on a line by themselves. This is because of the 562238032Speter preponderance of broken mailers that still get this wrong. 562338032Speter Code contributed by Per Hedeland of Ericsson. 562438032Speter Fix F{macro}/file construct -- it previously did nothing. Pointed 562538032Speter out by Bjart Kvarme of USIT/UiO (Norway). 562638032Speter Announce whether a cached connection is SMTP or ESMTP (in -v mode). 562738032Speter Requested by Allan Johannesen. 562838032Speter Delete check for text format of alias files -- it should be legal 562938032Speter to have the database format of the alias files without the 563038032Speter text version. Problem pointed out by Joe Rhett of Navigist, 563138032Speter Inc. 563238032Speter If "Ot" was specified with no value, the TZ variable was not properly 563338032Speter imported from the environment. Pointed out by Frank Crawford 563438032Speter <frank@ansto.gov.au>. 563538032Speter Some architectures core dumped on "program" maps that didn't have 563638032Speter extra arguments. Patch from Booker C. Bense of Stanford 563738032Speter University. 563838032Speter Queue run processes would re-spawn daemons when given a SIGHUP; only 563938032Speter the parent should do this. Fix from Brian Coan of the 564038032Speter Association for Progressive Communications. 564138032Speter If MinQueueAge was set and a message was considered but not run 564238032Speter during a queue run and the Timeout.queuereturn interval was 564338032Speter reached, a "timed out" error message would be returned that 564438032Speter didn't include the failed address (and claimed to be a warning 564538032Speter even though it was fatal). The fix is to not return such 564638032Speter messages until they are actually tried, i.e., in the next 564738032Speter MinQueueAge interval. Problem noted by Rein Tollevik of 564838032Speter SINTEF RUNIT, Oslo. 564938032Speter Add HES_GETMAILHOST compile flag to support MIT Hesiod distributions 565038032Speter that have the hes_getmailhost() routine. DEC Hesiod 565138032Speter distributions do not have this routine. Based on a patch 565238032Speter from Betty Lee of Stanford University. 565338032Speter Extensive cleanups to map open code to handle a locking race condition 565438032Speter in ndbm, hash, and btree format database files on some (most 565538032Speter non-4.4-BSD based) OS architectures. This should solve the 565638032Speter occasional "user unknown" problem during alias rebuilds that 565738032Speter has plagued me for quite some time. Based on a patch from 565838032Speter Thomas Dwyer III of Michigan Technological University. 565938032Speter PORTABILITY FIXES: 566038032Speter Solaris: Change location of newaliases and mailq from 566138032Speter /usr/ucb to /usr/bin to match Sun settings. From 566238032Speter James B. Davis of TCI. 566338032Speter DomainOS: Makefile.DomainOS doesn't require -ldbm. From 566438032Speter Don Lewis of Silicon Systems. 566538032Speter HP-UX 10: rename Makefile.HP-UX.10 => Makefile.HP-UX.10.x 566638032Speter so that the makesendmail script will find it. Pointed 566738032Speter out by Richard Allen of the University of Iceland. 566838032Speter Also, use -Aa -D_HPUX_SOURCE instead of -Ae, which 566938032Speter isn't supported on all compilers. 567038032Speter UXPDS: compilation fixes from Diego R. Lopez. 567138032Speter CONFIG: FAX mailer wasn't setting .FAX as a pseudo-domain unless 567238032Speter you also had a FAX_RELAY. From Thomas.Tornblom@Hax.SE. 567338032Speter CONFIG: Minor glitch in S21 -- attachment of local domain name 567438032Speter didn't have trailing dot. From Jim Hickstein of Teradyne. 567538032Speter CONFIG: Fix best_mx_is_local feature to allow nested addresses such as 567638032Speter user%host@thishost. From Claude Scarpelli of Infobiogen 567738032Speter (France). 567838032Speter CONFIG: OSTYPE(hpux10) failed to define the location of the help file. 567938032Speter Pointed out by Hannu Martikka of Nokia Telecommunications. 568038032Speter CONFIG: Diagnose some inappropriate ordering in configuration files, 568138032Speter such as FEATURE(smrsh) listed after MAILER(local). Based on 568238032Speter a bug report submitted by Paul Hoffman of Proper Publishing. 568338032Speter CONFIG: Make OSTYPE files consistently not override settings that 568438032Speter have already been set. Previously it worked differently 568538032Speter for different files. 568638032Speter CONFIG: Change relay mailer to do masquerading like 8.6 did. My take 568738032Speter is that this is wrong, but the change was causing problems 568838032Speter for some people. From Per Hedeland of Ericsson. 568938032Speter CONTRIB: bitdomain.c patch from John Gardiner Myers <jgm+@CMU.EDU>; 569038032Speter portability changes for Posix environments (no functional 569138032Speter changes). 569238032Speter 569364562Sgshapiro8.7.1/8.7.1 1995/10/01 569438032Speter Old macros that have become options (SmtpGreetingMessage, 569538032Speter OperatorChars, and UnixFromLine) didn't allow backslash 569638032Speter escapes in the options, where they previously had. Bug 569738032Speter pointed out by John Hawkinson of MIT. 569838032Speter Fix strange case of an executable called by a program map that 569938032Speter returns a value but also a non-zero exit status; this 570038032Speter would give contradictory results in the higher level; in 570138032Speter particular, the default clause in the map lookup would be 570238032Speter ignored. Change to ignore the value if the program returns 570338032Speter non-zero exit status. From Tom Moore of AT&T GIS. 570438032Speter Shorten parameters passed to syslog() in some contexts to avoid a 570538032Speter bug in many vendors' implementations of that routine. Although 570638032Speter this isn't really a bug in sendmail per se, and my solution 570738032Speter has to assume that syslog() has at least a 1K buffer size 570838032Speter internally (I know some vendors have shortened this 570938032Speter dramatically -- they're on their own), sendmail is a popular 571038032Speter target. Also, limit the size of %s arguments in sprintf. 571138032Speter These both have possible security implications. Solutions 571238032Speter suggested by Casper Dik of Sun's Network Security Group 571338032Speter (Holland), Mark Seiden, and others. 571438032Speter Fix a problem that might cause a non-standard -B (body type) 571538032Speter parameter to be passed to the next server with undefined 571638032Speter results. This could have security implications. 571738032Speter If a filesystem was at > 100% utilization, the freediskspace() 571838032Speter routine incorrectly returned an error rather than zero. 571938032Speter Problem noted by G. Paul Ziemba of Alantec. 572038032Speter Change MX sort order so that local hostnames (those in $=w) always 572138032Speter sort first within a given preference. This forces the bestmx 572238032Speter map to always return the local host first, if it is included 572338032Speter in the list of highest priority MX records. From K. Robert 572438032Speter Elz. 572538032Speter Avoid some possible null pointer dereferences. Fixes from Randy 572638032Speter Martin <WOLF@CLEMSON.EDU> 572738032Speter When sendmail starts up on systems that have no fully qualified 572838032Speter domain name (FQDN) anywhere in the first matching host map 572938032Speter (e.g., /etc/hosts if the hosts service searches "files dns"), 573038032Speter sendmail would sleep to try to find a FQDN, which it really 573138032Speter really needs. This has been changed to fall through to the 573238032Speter next map type if it can't find a FQDN -- i.e., if the hosts 573338032Speter file doesn't have a FQDN, it will try dns even though the 573438032Speter short name was found in /etc/hosts. This is probably a crock, 573538032Speter but many people have hosts files without FQDNs. Remember: 573638032Speter domain names are your friends. 573738032Speter Log a high-priority message if you can't find your FQDN during startup. 573838032Speter Suggested by Simon Barnes of Schlumberger Limited. 573938032Speter When using Hesiod, initialize it early to improve error reporting. 574038032Speter Patch from Don Lewis of Silicon Systems, Inc. 574138032Speter Apparently at least some versions of Linux have a 90 !minute! TCP 574238032Speter connection timeout in the kernel. Add a new "connect" timeout 574338032Speter to limit this time. Defaults to zero (use whatever the 574438032Speter kernel provides). Based on code contributed by J.R. Oldroyd 574538032Speter of TerraNet. 574638032Speter Under some circumstances, a failed message would not be properly 574738032Speter removed from the queue, causing tons of bogus error messages. 574838032Speter (This fix eliminates the problematic EF_KEEPQUEUE flag.) 574938032Speter Problem noted by Allan E Johannesen and Gregory Neil Shapiro 575038032Speter of WPI. 575138032Speter PORTABILITY FIXES: 575238032Speter On IRIX 5.x, there was an inconsistency in the setting 575338032Speter of sendmail.st location. Change the Makefile to 575438032Speter install it in /var/sendmail.st to match the OSTYPE 575538032Speter file and SGI standards. From Andre 575638032Speter <andre@curry.zfe.siemens.de>. 575738032Speter Support for Fujitsu/ICL UXP/DS (For the DS/90 Series) 575838032Speter from Diego R. Lopez <drlopez@cica.es>. 575938032Speter Linux compilation patches from J.R. Oldroyd of TerraNet, Inc. 576038032Speter LUNA 2 Mach patches from Motonori Nakamura. 576138032Speter SunOS Makefile was including -ldbm, which is for the old 576238032Speter dbm library. The ndbm library is part of libc. 576338032Speter CONFIG: avoid bouncing ``user@host.'' (note trailing dot) with 576438032Speter ``local configuration error'' in nullclient configuration. 576538032Speter Patch from Gregory Neil Shapiro of WPI. 576638032Speter CONFIG: don't allow an alias file in nullclient configurations -- 576738032Speter since all addresses are relayed, they give errors during 576838032Speter rebuild. Suggested by Per Hedeland of Ericsson. 576938032Speter CONFIG: local mailer on Solaris 2 should always get a -f flag because 577038032Speter otherwise the F=S causes the From_ line to imply that root is 577138032Speter the sender. Problem pointed out by Claude Scarpelli of 577238032Speter Infobiogen (France). 577338032Speter NEW FILES: 577438032Speter cf/feature/use_ct_file.m4 (omitted from 8.7 by mistake) 577538032Speter src/Makefiles/Makefile.KSR (omitted from 8.7 by mistake) 577638032Speter src/Makefiles/Makefile.UXPDS 577738032Speter 577864562Sgshapiro8.7/8.7 1995/09/16 577938032Speter Fix a problem that could cause sendmail to run out of file 578038032Speter descriptors due to a trashed data structure after a 578138032Speter vfork. Fix from Brian Coan of the Institute for 578238032Speter Global Communications. 578338032Speter Change the VRFY response if you have disabled VRFY -- some 578438032Speter people seemed to think that it was too rude. 578538032Speter Avoid reference to uninitialized file descriptor if HASFLOCK 578638032Speter was not defined. This was used "safely" in the sense 578738032Speter that it only did a stat, but it would have set the 578838032Speter map modification time improperly. Problem pointed out 578938032Speter by Roy Mongiovi of Georgia Tech. 579038032Speter Clean up the Subject: line on warning messages and return 579138032Speter receipts so that they don't say "Returned mail:"; this 579238032Speter can be confusing. 579338032Speter Move ruleset entry/exit debugging from 21.2 to 21.1 -- this is 579438032Speter useful enough to make it worthwhile printing on "-d". 579538032Speter Avoid logging alias statistics every time you read the alias 579638032Speter file on systems with no database method compiled in. 579738032Speter If you have a name with a trailing dot, and you try looking it 579838032Speter up using gethostbyname without the dot (for /etc/hosts 579938032Speter compatibility), be sure to turn off RES_DEFNAMES and 580038032Speter RES_DNSRCH to avoid finding the wrong name accidentally. 580138032Speter Problem noted by Charles Amos of the University of 580238032Speter Maryland. 580338032Speter Don't do timeouts in collect if you are not running SMTP. 580438032Speter There is nothing that says you can't have a long 580538032Speter running program piped into sendmail (possibly via 580638032Speter /bin/mail, which just execs sendmail). Problem reported 580738032Speter by Don "Truck" Lewis of Silicon Systems. 580838032Speter Try gethostbyname() even if the DNS lookup fails iff option I 580938032Speter is not set. This allows you to have hosts listed in 581038032Speter NIS or /etc/hosts that are not known to DNS. It's normally 581138032Speter a bad idea, but can be useful on firewall machines. This 581238032Speter should really be broken out on a separate flag, I suppose. 581338032Speter Avoid compile warnings against BIND 4.9.3, which uses function 581438032Speter prototypes. From Don Lewis of Silicon Systems. 581538032Speter Avoid possible incorrect diagnosis of DNS-related errors caused 581638032Speter by things like attempts to resolve uucp names using 581738032Speter $[ ... $] -- the fix is to clear h_errno at appropriate 581838032Speter times. From Kyle Jones of UUNET. 581938032Speter SECURITY: avoid denial-of-service attacks possible by destroying 582038032Speter the alias database file by setting resource limits low. 582138032Speter This involves adding two new compile-time options: 582238032Speter HASSETRLIMIT (indicating that setrlimit(2) support is 582338032Speter available) and HASULIMIT (indicating that ulimit(2) support 582438032Speter is available -- the Release 3 form is used). The former 582538032Speter is assumed on BSD-based systems, the latter on System 582638032Speter V-based systems. Attack noted by Phil Brandenberger of 582738032Speter Swarthmore University. 582838032Speter New syntaxes in test (-bt) mode: 582938032Speter ``.Dmvalue'' will define macro "m" to "value". 583038032Speter ``.Ccvalue'' will add "value" to class "c". 583138032Speter ``=Sruleset'' will dump the contents of the indicated 583238032Speter ruleset. 583338032Speter ``=M'' will display the known mailers. 583438032Speter ``-ddebug-spec'' is equivalent to the command-line 583538032Speter -d debug flag. 583638032Speter ``$m'' will print the value of macro $m. 583738032Speter ``$=c'' will print the contents of class $=c. 583838032Speter ``/mx host'' returns the MX records for ``host''. 583938032Speter ``/parse address'' will parse address, returning the value of 584038032Speter crackaddr (essentially, the comment information) 584138032Speter and the parsed address. 584238032Speter ``/try mailer address'' will rewrite address into the form 584338032Speter it will have when presented to the indicated mailer. 584438032Speter ``/tryflags flags'' will set flags used by parsing. The 584538032Speter flags can be `H' for header or `E' for envelope, 584638032Speter and `S' for sender or `R' for recipient. These 584738032Speter can be combined, so `HR' sets flags for header 584838032Speter recipients. 584938032Speter ``/canon hostname'' will try to canonify hostname and 585038032Speter return the result. 585138032Speter ``/map mapname key'' will look up `key' in the indicated 585238032Speter `mapname' and return the result. 585338032Speter Somewhat better handling of UNIX-domain socket addresses -- it 585438032Speter should show the pathname rather than hex bytes. 585538032Speter Restore ``-ba'' mode -- this reads a file from stdin and parses 585638032Speter the header for envelope sender information and uses 585738032Speter CR-LF as message terminators. It was thought to be 585838032Speter obsolete (used only for Arpanet NCP protocols), but it 585938032Speter turns out that the UK ``Grey Book'' protocols require 586038032Speter that functionality. 586138032Speter Fix a fix in previous release -- if gethostname and gethostbyname 586238032Speter return a name without dots, and if an attempt to canonify 586338032Speter that name fails, wait one minute and try again. This can 586438032Speter result in an extra 60 second delay on startup if your system 586538032Speter hostname (as returned by hostname(1)) has no dot and no names 586638032Speter listed in /etc/hosts or your NIS map have a dot. 586738032Speter Check for proper domain name on HELO and EHLO commands per 586838032Speter RFC 1123 section 5.2.5. Problem noted by Thomas Dwyer III 586938032Speter of Michigan Technological University. 587038032Speter Relax chownsafe rules slightly -- old version said that if you 587138032Speter can't tell if _POSIX_CHOWN_RESTRICTED is set (that is, 587238032Speter if fpathconf returned EINVAL or ENOSYS), assume that 587338032Speter chown is not safe. The new version falls back to whether 587438032Speter you are on a BSD system or not. This is important for 587538032Speter SunOS, which apparently always returns one of those 587638032Speter error codes. This impacts whether you can mail to files 587738032Speter or not. 587838032Speter Syntax errors such as unbalanced parentheses in the configuration 587938032Speter file could be omitted if you had "Oem" prior to the 588038032Speter syntax error in the config file. Change to always print 588138032Speter the error message. It was especially weird because it 588238032Speter would cause a "warning" message to be sent to the Postmaster 588338032Speter for every message sent (but with no transcript). Problem 588438032Speter noted by Gregory Paris of Motorola. 588538032Speter Rewrite collect and putbody to handle full 8-bit data, including 588638032Speter zero bytes. These changes are internally extensive, but 588738032Speter should have minimal impact on external function. 588838032Speter Allow full words for option names -- if the option letter is 588938032Speter (apparently) a space, then take the word following -- e.g., 589038032Speter O MatchGECOS=TRUE 589138032Speter The full list of old and new names is as follows: 589238032Speter 7 SevenBitInput 589338032Speter 8 EightBitMode 589438032Speter A AliasFile 589538032Speter a AliasWait 589638032Speter B BlankSub 589738032Speter b MinFreeBlocks/MaxMessageSize 589838032Speter C CheckpointInterval 589938032Speter c HoldExpensive 590038032Speter D AutoRebuildAliases 590138032Speter d DeliveryMode 590238032Speter E ErrorHeader 590338032Speter e ErrorMode 590438032Speter f SaveFromLine 590538032Speter F TempFileMode 590638032Speter G MatchGECOS 590738032Speter H HelpFile 590838032Speter h MaxHopCount 590938032Speter i IgnoreDots 591038032Speter I ResolverOptions 591138032Speter J ForwardPath 591238032Speter j SendMimeErrors 591338032Speter k ConnectionCacheSize 591438032Speter K ConnectionCacheTimeout 591538032Speter L LogLevel 591638032Speter l UseErrorsTo 591738032Speter m MeToo 591838032Speter n CheckAliases 591938032Speter O DaemonPortOptions 592038032Speter o OldStyleHeaders 592138032Speter P PostmasterCopy 592238032Speter p PrivacyOptions 592338032Speter Q QueueDirectory 592438032Speter q QueueFactor 592538032Speter R DontPruneRoutes 592638032Speter r, T Timeout 592738032Speter S StatusFile 592838032Speter s SuperSafe 592938032Speter t TimeZoneSpec 593038032Speter u DefaultUser 593138032Speter U UserDatabaseSpec 593243730Speter V FallbackMXHost 593338032Speter v Verbose 593438032Speter w TryNullMXList 593538032Speter x QueueLA 593638032Speter X RefuseLA 593738032Speter Y ForkEachJob 593838032Speter y RecipientFactor 593938032Speter z ClassFactor 594038032Speter Z RetryFactor 594138032Speter The old macros that passed information into sendmail have 594238032Speter been changed to options; those correspondences are: 594338032Speter $e SmtpGreetingMessage 594438032Speter $l UnixFromLine 594538032Speter $o OperatorChars 594638032Speter $q (deleted -- not necessary) 594738032Speter To avoid possible problems with an older sendmail, 594838032Speter configuration level 6 is accepted by this version of 594938032Speter sendmail; any config file using the new names should 595038032Speter specify "V6" in the configuration. 595138032Speter Change address parsing to properly note that a phrase before a 595238032Speter colon and a trailing semicolon are essentially the same 595338032Speter as text outside of angle brackets (i.e., sendmail should 595438032Speter treat them as comments). This is to handle the 595538032Speter ``group name: addr1, addr2, ..., addrN;'' syntax (it will 595638032Speter assume that ``group name:'' is a comment on the first 595738032Speter address and the ``;'' is a comment on the last address). 595838032Speter This requires config file support to get right. It does 595938032Speter understand that :: is NOT this syntax, and can be turned 596038032Speter off completely by setting the ColonOkInAddresses option. 596138032Speter Level 6 config files added with new mailer flags: 596238032Speter A Addresses are aliasable. 596338032Speter i Do udb rewriting on envelope as well as header 596438032Speter sender lines. Applies to the from address mailer 596538032Speter flags rather than the recipient mailer flags. 596638032Speter j Do udb rewriting on header recipient addresses. 596738032Speter Applies to the sender mailer flags rather than the 596838032Speter recipient mailer flags. 596938032Speter k Disable check for loops when doing HELO command. 597038032Speter o Always run as the mail recipient, even on local 597138032Speter delivery. 597238032Speter w Check for an /etc/passwd entry for this user. 597338032Speter 5 Pass addresses through ruleset 5. 597438032Speter : Check for :include: on this address. 597538032Speter | Check for |program on this address. 597638032Speter / Check for /file on this address. 597738032Speter @ Look up sender header addresses in the user 597838032Speter database. Applies to the mailer flags for the 597938032Speter mailer corresponding to the envelope sender 598038032Speter address, rather than to recipient mailer flags. 598138032Speter Pre-level 6 configuration files set A, w, 5, :, |, /, and @ 598238032Speter on the "local" mailer, the o flag on the "prog" and "*file*" 598338032Speter mailers, and the ColonOkInAddresses option. 598438032Speter Eight-to-seven bit MIME conversions. This borrows ideas from 598538032Speter John Beck of Hewlett-Packard, who generously contributed 598638032Speter their implementation to me, which I then didn't use (see 598738032Speter mime.c for an explanation of why). This adds the 598838032Speter EightBitMode option (a.k.a. `8') and an F=8 mailer flag 598938032Speter to control handling of 8-bit data. These have to cope with 599038032Speter two types of 8-bit data: unlabelled 8-bit data (that is, 599138032Speter 8-bit data that is entered without declaring it as 8-bit 599238032Speter MIME -- technically this is illegal according to the 599338032Speter specs) and labelled 8-bit data (that is, it was declared 599438032Speter as 8BITMIME in the ESMTP session or by using the 599538032Speter -B8BITMIME command line flag). If the F=8 mailer flag is 599638032Speter set then 8-bit data is sent to non-8BITMIME machines 599738032Speter instead of converting to 7 bit (essentially using 599838032Speter just-send-8 semantics). The values for EightBitMode are: 599938032Speter m convert unlabelled 8-bit input to 8BITMIME, and do 600038032Speter any necessary conversion of 8BITMIME to 7BIT 600138032Speter (essentially, the full MIME option). 600238032Speter p pass unlabelled 8-bit input, but convert labelled 600338032Speter 8BITMIME input to 7BIT as required (default). 600438032Speter s strict adherence: reject unlabelled 8-bit input, 600538032Speter convert 8BITMIME to 7BIT as required. The F=8 600638032Speter flag is ignored. 600738032Speter Unlabelled 8-bit data is rejected in mode `s' regardless of 600838032Speter the setting of F=8. 600938032Speter Add new internal class 'n', which is the set of MIME Content-Types 601038032Speter which can not be 8 to 7 bit encoded because of other 601138032Speter considerations. Types "multipart/*" and "message/*" are 601238032Speter never directly encoded (although their components can be). 601338032Speter Add new internal class 's', which is the set of subtypes of the 601438032Speter MIME message/* content type that can be treated as though 601538032Speter they are an RFC822 message. It is predefined to have 601638032Speter "rfc822". Suggested By Kari Hurtta. 601738032Speter Add new internal class 'e'. This is the set of MIME 601838032Speter Content-Transfer-Encodings that can be converted to 601938032Speter a seven bit format (Quoted-Printable or Base64). It is 602038032Speter preinitialized to contain "7bit", "8bit", and "binary". 602138032Speter Add C=charset mailer parameter and the the DefaultCharSet option (no 602238032Speter short name) to set the default character set to use in the 602338032Speter Content-Type: header when doing encoding of an 8-bit message 602438032Speter which isn't marked as MIME into MIME format. If the C= 602538032Speter parameter is set on the Envelope From address, use that as 602638032Speter the default encoding; else use the DefaultCharSet option. 602738032Speter If neither is set, it defaults to "unknown-8bit" as 602838032Speter suggested by RFC 1428 section 3. 602938032Speter Allow ``U=user:group'' field in mailer definition to set a default 603038032Speter user and group that a mailer will be executed as. This 603138032Speter overrides the 'u' and 'g' options, and if the `F=S' flag is 603238032Speter also set, it is the uid/gid that will always be used (that 603338032Speter is, the controlling address is ignored). The values may be 603438032Speter numeric or symbolic; if only a symbolic user is given (no 603538032Speter group) that user's default group in the passwd file is used 603638032Speter as the group. Based on code donated by Chip Rosenthal of 603738032Speter Unicom. 603838032Speter Allow `u' option to also accept user:group as a value, in the same 603938032Speter fashion as the U= mailer option. 604038032Speter Add the symbolic time zone name in the Arpanet format dates (as 604138032Speter a comment). This adds a new compile-time configuration 604238032Speter flag: TZ_TYPE can be set to TZ_TM_NAME (use the value 604338032Speter of (struct tm *)->tm_name), TZ_TM_ZONE (use the value 604438032Speter of (struct tm *)->tm_zone), TZ_TZNAME (use extern char 604538032Speter *tzname[(struct tm *)->tm_isdst]), TZ_TIMEZONE (use 604638032Speter timezone()), or TZ_NONE (don't include the comment). Code 604738032Speter from Chip Rosenthal. 604838032Speter The "Timeout" option (formerly "r") is extended to allow suboptions. 604938032Speter For example, 605038032Speter O Timeout.helo = 2m 605138032Speter There are also two new suboptions "queuereturn" and 605238032Speter "queuewarn"; these subsume the old T option. Thus, to 605338032Speter set them both the preferred new syntax is 605438032Speter O Timeout.queuereturn = 5d 605538032Speter O Timeout.queuewarn = 4h 605638032Speter Sort queue by host name instead of by message priority if the 605738032Speter QueueSortOrder option (no short name) is set is set to 605838032Speter ``host''. This makes better use of the connection cache, 605938032Speter but may delay more ``interactive'' messages behind large 606038032Speter backlogs under some circumstances. This is probably a 606138032Speter good option if you have high speed links or don't do lots 606238032Speter of ``batch'' messages, but less good if you are using 606338032Speter something like PPP on a 14.4 modem. Based on code 606438032Speter contributed by Roy Mongiovi of Georgia Tech (my main 606538032Speter contribution was to make it configurable). 606638032Speter Save i-number of df file in qf file to simplify rebuilding of queue 606738032Speter after disastrous disk crash. Suggested by Kyle Jones of 606838032Speter UUNET; closely based on code from KJS DECWRL code written 606938032Speter by Paul Vixie. NOTA BENE: The qf files produced by 8.7 607038032Speter are NOT back compatible with 8.6 -- that is, you can convert 607138032Speter from 8.6 to 8.7, but not the other direction. 607238032Speter Add ``F=d'' mailer flag to disable all use of angle brackets in 607338032Speter route-addrs in envelopes; this is because in some cases 607438032Speter they can be sent to the shell, which interprets them as 607538032Speter I/O redirection. 607638032Speter Don't include error file (option E) with return-receipts; this 607738032Speter can be confusing. 607838032Speter Don't send "Warning: cannot send" messages to owner-* or 607938032Speter *-request addresses. Suggested by Christophe Wolfhugel 608038032Speter of the Institut Pasteur, Paris. 608138032Speter Allow -O command line flag to set long form options. 608238032Speter Add "MinQueueAge" option to set the minimum time between attempts 608338032Speter to run the queue. For example, if the queue interval 608438032Speter (-q value) is five minutes, but the minimum queue age 608538032Speter is fifteen minutes, jobs won't be tried more often than 608638032Speter once every fifteen minutes. This can be used to give 608738032Speter you more responsiveness if your delivery mode is set to 608838032Speter queue-only. 608938032Speter Allow "fileopen" timeout (default: 60 seconds) for opening 609038032Speter :include: and .forward files. 609138032Speter Add "-k", "-v", and "-z" flags to map definitions; these set the 609238032Speter key field name, the value field name, and the field 609338032Speter delimiter. The field delimiter can be a single character 609438032Speter or the sequence "\t" or "\n" for tab or newline. 609538032Speter These are for use by NIS+ and similar access methods. 609638032Speter Change maps to always strip quotes before lookups; the -q flag 609743730Speter turns off this behavior. Suggested by Motonori Nakamura. 609838032Speter Add "nisplus" map class. Takes -k and -v flags to choose the 609938032Speter key and value field names respectively. Code donated by 610038032Speter Sun Microsystems. 610138032Speter Add "hesiod" map class. The "file name" is used as the 610238032Speter "HesiodNameType" parameter to hes_resolve(3). Returns the 610338032Speter first value found for the match. Code donated by Scott 610438032Speter Hutton of Indiana University. 610538032Speter Add "netinfo" (NeXT NetInfo) map class. Maps can have a -k flag to 610638032Speter specify the name of the property that is searched as the 610738032Speter key and a -v flag to specify the name of the property that 610838032Speter is returned as the value (defaults to "members"). The 610938032Speter default map is "/aliases". Some code based on code 611038032Speter contributed by Robert La Ferla of Hot Software. 611138032Speter Add "text" map class. This does slow, linear searches through 611238032Speter text files. The -z flag specifies a column delimiter 611338032Speter (defaults to any sequence of white space), the -k flag 611438032Speter sets the key column number, and the -v flag sets the 611538032Speter value column number. Lines beginning with `#' are treated 611638032Speter as comments. 611738032Speter Add "program" map class to execute arbitrary programs. The search 611838032Speter key is presented as the last argument; the output is one 611938032Speter line read from the programs standard output. Exit statuses 612038032Speter are from sysexits.h. 612138032Speter Add "sequence" map class -- searches maps in sequence until it 612238032Speter finds a match. For example, the declarations: 612338032Speter Kmap1 ... 612438032Speter Kmap2 ... 612538032Speter Kmapseq sequence map1 map2 612638032Speter defines a map "mapseq" that first searches map1; if the 612738032Speter value is found it is returned immediately, otherwise 612838032Speter map2 is searched and the value returned. 612938032Speter Add "switch" map class. This is much like "sequence" except that 613038032Speter the ordering is fetched from an external file, usually 613138032Speter the system service switch. The parameter is the name of 613238032Speter the service to switch on, and the maps that it will use 613338032Speter are the name of the switch map followed by ".service_type". 613438032Speter For example, if the declaration of the map is 613538032Speter Ksample switch hosts 613638032Speter and the system service switch specifies that hosts are 613738032Speter looked up using dns and nis in that order, then this is 613838032Speter equivalent to 613938032Speter Ksample sequence sample.dns sample.nis 614038032Speter The subordinate maps (sample.*) must already be defined. 614138032Speter Add "user" map class -- looks up users using getpwnam. Takes a 614238032Speter "-v field" flag on the definition that tells what passwd 614338032Speter entry to return -- legal values are name, passwd, uid, gid, 614438032Speter gecos, dir, and shell. Generally expected to be used with 614538032Speter the -m (matchonly) flag. 614638032Speter Add "bestmx" map class -- returns the best MX value for the host 614738032Speter listed as the value. If there are several "best" MX records 614838032Speter for this host, one will be chosen at random. 614938032Speter Add "userdb" map class -- looks up entries in the user database. 615038032Speter The "file name" is actually the tag that will be used, 615138032Speter typically "mailname". If there are multiple entries 615238032Speter matching the name, the one chosen is undefined. 615338032Speter Add multiple queue timeouts (both return and warning). These are 615438032Speter set by the Precedence: or Priority: header fields to one of 615538032Speter three values. If a Priority: is set and has value "normal", 615664562Sgshapiro "urgent", or "non-urgent" the corresponding timeouts are 615738032Speter used. If no priority is set, the Precedence: is consulted; 615838032Speter if negative, non-urgent timeouts are used; if greater than 615938032Speter zero, urgent timeouts are used. Otherwise, normal timeouts 616038032Speter are used. The timeouts are set by setting the six timeouts 616138032Speter queue{warn,return}.{urgent,normal,non-urgent}. 616238032Speter Fix problem when a mail address is resolved to a $#error mailer 616338032Speter with a temporary failure indication; it works in SMTP, 616438032Speter but when delivering locally the mail is silently discarded. 616538032Speter This patch, from Kyle Jones of UUNET, bounces it instead 616638032Speter of queueing it (queueing is very hard). 616738032Speter When using /etc/hosts or NIS-style lookups, don't assume that 616838032Speter the first name in the list is the best one -- instead, 616938032Speter search for the first one with a dot. For example, if 617038032Speter an /etc/hosts entry reads 617138032Speter 128.32.149.68 mammoth mammoth.CS.Berkeley.EDU 617238032Speter this change will use the second name as the canonical 617338032Speter machine name instead of the initial, unqualified name. 617438032Speter Change dequote map to replace spaces in quoted text with a value 617538032Speter indicated by the -s flag on the dequote map definition. 617638032Speter For example, ``Mdequote dequote -s_'' will change 617738032Speter "Foo Bar" into an unquoted Foo_Bar instead of leaving it 617838032Speter quoted (because of the space character). Suggested by Dan 617938032Speter Oscarsson for use in X.400 addresses. 618038032Speter Implement long macro names as ${name}; long class names can 618138032Speter be similarly referenced as $={name} and $~{name}. 618238032Speter Definitions are (e.g.) ``D{name}value''. Names that have 618338032Speter a leading lower case letter or punctuation characters are 618438032Speter reserved for internal use by sendmail; i.e., config files 618538032Speter should use names that begin with a capital letter. Based 618638032Speter on code contributed by Dan Oscarsson. 618738032Speter Fix core dump if getgrgid returns a null group list (as opposed 618838032Speter to an empty group list, that is, a pointer to a list 618938032Speter with no members). Fix from Andrew Chang of Sun Microsystems. 619038032Speter Fix possible core dump if malloc fails -- if the malloc in xalloc 619138032Speter failed, it called syserr which called newstr which called 619238032Speter xalloc.... The newstr is now avoided for "panic" messages. 619338032Speter Reported by Stuart Kemp of James Cook University. 619438032Speter Improve connection cache timeouts; previously, they were not even 619538032Speter checked if you were delivering to anything other than an 619638032Speter IPC-connected host, so a series of (say) local mail 619738032Speter deliveries could cause cached connections to be open 619838032Speter much longer than the specified timeout. 619938032Speter If an incoming message exceeds the maximum message size, stop 620038032Speter writing the incoming bytes to the queue data file, since 620138032Speter this can fill your mqueue partition -- this is a possible 620238032Speter denial-of-service attack. 620338032Speter Don't reject all numeric local user names unless HESIOD is 620438032Speter defined. It turns out that Posix allows all-numeric 620538032Speter user names. Fix from Tony Sanders of BSDI. 620638032Speter Add service switch support. If the local OS has a service 620738032Speter switch (e.g., /etc/nsswitch.conf on Solaris or /etc/svc.conf 620838032Speter on DEC systems) that will be used; otherwise, it falls back 620938032Speter to using a local mechanism based on the ServiceSwitchFile 621038032Speter option (default: /etc/service.switch). For example, if the 621138032Speter service switch lists "files" and "nis" for the aliases 621238032Speter service, that will be the default lookup order. the "files" 621338032Speter ("local" on DEC) service type expands to any alias files 621438032Speter you listed in the configuration file, even if they aren't 621538032Speter actually file lookups. 621638032Speter Option I (NameServerOptions) no longer sets the "UseNameServer" 621738032Speter variable which tells whether or not DNS should be considered 621838032Speter canonical. This is now determined based on whether or not 621938032Speter "dns" is in the service list for "hosts". 622038032Speter Add preliminary support for the ESMTP "DSN" extension (Delivery 622138032Speter Status Notifications). DSN notifications override 622238032Speter Return-Receipt-To: headers, which are bogus anyhow -- 622338032Speter support for them has been removed. 622438032Speter Add T=mts-name-type/address-type/diagnostic-type keyletter to mailer 622538032Speter definitions to define the types used in DSN returns for 622638032Speter MTA names, addresses, and diagnostics respectively. 622738032Speter Extend heuristic to force running in ESMTP mode to look for the 622838032Speter five-character string "ESMTP" anywhere in the 220 greeting 622938032Speter message (not just the second line). This is to provide 623038032Speter better compatibility with other ESMTP servers. 623138032Speter Print sequence number of job when running the queue so you can 623238032Speter easily see how much progress you have made. Suggested 623338032Speter by Peter Wemm of DIALix. 623438032Speter Map newlines to spaces in logged message-ids; some versions of 623538032Speter syslog truncate the rest of the line after newlines. 623638032Speter Suggested by Fletcher Mattox of U. Texas. 623738032Speter Move up forking for job runs so that if a message is split into 623838032Speter multiple envelopes you don't get "fork storms" -- this 623938032Speter also improves the connection cache utilization. 624038032Speter Accept "<<>>", "<<<>>>", and so forth as equivalent to "<>" for 624138032Speter the purposes of refusing to send error returns. Suggested 624238032Speter by Motonori Nakamura of Ritsumeikan University. 624338032Speter Relax rules on when a file can be written when referenced from 624438032Speter the aliases file: use the default uid/gid instead of the 624538032Speter real uid/gid. This allows you to create a file owned by 624638032Speter and writable only by the default uid/gid that will work 624790792Sgshapiro all the time (without having the set-user-ID bit set). Change 624838032Speter suggested by Shau-Ping Lo and Andrew Cheng of Sun 624938032Speter Microsystems. 625038032Speter Add "DialDelay" option (no short name) to provide an "extra" 625138032Speter delay for dial on demand systems. If this is non-zero 625238032Speter and a connect fails, sendmail will wait this long and 625338032Speter then try again. If it takes longer than the kernel 625438032Speter timeout interval to establish the connection, this 625538032Speter option can give the network software time to establish 625638032Speter the link. The default units are seconds. 625738032Speter Move logging of sender information to be as early as possible; 625838032Speter previously, it could be delayed a while for SMTP mail 625938032Speter sent to aliases. Suggested by Brad Knowles of the 626038032Speter Defense Information Systems Agency. 626138032Speter Call res_init() before setting RES_DEBUG; this is required by 626238032Speter BIND 4.9.3, or so I'm told. From Douglas Anderson of 626338032Speter the National Computer Security Center. 626438032Speter Add xdelay= field in logs -- this is a transaction delay, telling 626538032Speter you how long it took to deliver to this address on the 626638032Speter last try. It is intended to be used for sorting mailing 626738032Speter lists to favor "quick" addresses. Provided for use by 626838032Speter the mailprio scripts (see below). 626938032Speter If a map cannot be opened, and that map is non-optional, and 627038032Speter an address requires that map for resolution, queue the 627138032Speter map instead of bouncing it. This involves creating a 627238032Speter pseudo-class of maps called "bogus-map" -- if a required 627338032Speter map cannot be opened, the class is changed to bogus-map; 627438032Speter all queries against bogus-map return "tempfail". The 627538032Speter bogus-map class is not directly accessible. A sample 627638032Speter implementation was donated by Jem Taylor of Glasgow 627738032Speter University Computing Service. 627838032Speter Fix a possible core dump when mailing to a program that talks 627938032Speter SMTP on its standard input. Fix from Keith Moore of 628038032Speter the University of Kentucky. 628138032Speter Make it possible to resolve filenames to $#local $: @ /filename; 628238032Speter previously, the "@" would cause it to not be recognized 628338032Speter as a file. Problem noted by Brian Hill of U.C. Davis. 628438032Speter Accept a -1 signal to re-exec the daemon. This only works if 628538032Speter argv[0] is a full path to sendmail. 628638032Speter Fix bug in "addr=..." field in O option on little-endian machines 628738032Speter -- the network number wasn't being converted to network 628838032Speter byte order. Patch from Kurt Lidl of Pix Technologies 628938032Speter Corporation. 629038032Speter Pre-initialize the resolver early on; this is to avoid a bug with 629138032Speter BIND 4.9.3 that can cause the _res.retry field to get 629238032Speter reset to zero, causing all name server lookups to time 629338032Speter out. Fix from Matt Day of Artisoft. 629438032Speter Restore T line (trusted users) in config file -- but instead of 629538032Speter locking out the -f flag, they just tell whether or not 629638032Speter an X-Authentication-Warning: will be added. This really 629738032Speter just creates new entries in class 't', so "Ft/file/name" 629838032Speter can be used to read trusted user names from a file. 629938032Speter Trusted users are also allowed to execute programs even 630038032Speter if they have a shell that isn't in /etc/shells. 630138032Speter Improve NEWDB alias file rebuilding so it will create them 630238032Speter properly if they do not already exist. This had been 630338032Speter a MAYBENEXTRELEASE feature in 8.6.9. 630438032Speter Check for @:@ entry in NIS maps before starting up to avoid 630538032Speter (but not prevent, sigh) race conditions. This ought to 630638032Speter be handled properly in ypserv, but isn't. Suggested by 630738032Speter Michael Beirne of Motorola. 630838032Speter Refuse connections if there isn't enough space on the filesystem 630938032Speter holding the queue. Contributed by Robert Dana of Wolf 631038032Speter Communications. 631138032Speter Skip checking for directory permissions in the path to a file 631238032Speter when checking for file permissions iff setreuid() 631338032Speter succeeded -- it is unnecessary in that case. This avoids 631438032Speter significant performance problems when looking for .forward 631538032Speter files. Based on a suggestion by Win Bent of USC. 631638032Speter Allow symbolic ruleset names. Syntax can be "Sname" to get an 631738032Speter arbitrary ruleset number assigned or "Sname = integer" 631838032Speter to assign a specific ruleset number. Reference is 631938032Speter $>name_or_number. Names can be composed of alphas, digits, 632038032Speter underscore, or hyphen (first character must be non-numeric). 632138032Speter Allow -o flag on AliasFile lines to make the alias file optional. 632238032Speter From Bryan Costales of ICSI. 632338032Speter Add NoRecipientAction option to handle the case where there is 632438032Speter no legal recipient header in the message. It can take 632538032Speter on values: 632638032Speter None Leave the message as is. The 632738032Speter message will be passed on even 632838032Speter though it is in technically 632938032Speter illegal syntax. 633038032Speter Add-To Add a To: header with any 633138032Speter recipients that it can find from 633238032Speter the envelope. This risks exposing 633338032Speter Bcc: recipients. 633438032Speter Add-Apparently-To Add an Apparently-To: header. This 633538032Speter has almost no redeeming social value, 633638032Speter and is provided only for back 633738032Speter compatibility. 633838032Speter Add-To-Undisclosed Add a header reading 633938032Speter To: undisclosed-recipients:; 634038032Speter which will have the effect of 634138032Speter making the message legal without 634238032Speter exposing Bcc: recipients. 634338032Speter Add-Bcc To add an empty Bcc: header. 634438032Speter There is a chance that mailers down 634538032Speter the line will delete this header, 634638032Speter which could cause exposure of Bcc: 634738032Speter recipients. 634838032Speter The default is NoRecipientAction=None. 634938032Speter Truncate (rather than delete) Bcc: lines in the header. This 635038032Speter should prevent later sendmails (at least, those that don't 635138032Speter themselves delete Bcc:) from considering this message to 635238032Speter be non-conforming -- although it does imply that non-blind 635338032Speter recipients can see that a Bcc: was sent, albeit not to whom. 635438032Speter Add SafeFileEnvironment option. If declared, files named as delivery 635538032Speter targets must be regular files in addition to the regular 635638032Speter checks. Also, if the option is non-null then it is used as 635738032Speter the name of a directory that is used as a chroot(2) 635838032Speter environment for the delivery; the file names listed in an 635938032Speter alias or forward should include the name of this root. 636038032Speter For example, if you run with 636138032Speter O SafeFileEnvironment=/arch 636238032Speter then aliases should reference "/arch/rest/of/path". If a 636338032Speter value is given, sendmail also won't try to save to 636438032Speter /usr/tmp/dead.letter (instead it just leaves the job in the 636538032Speter queue as Qfxxxxxx). Inspired by *Hobbit*'s sendmail patch kit. 636638032Speter Support -A flag for alias files; this will comma concatenate like 636738032Speter entries. For example, given the aliases: 636838032Speter list: member1 636938032Speter list: member2 637038032Speter and an alias file declared as: 637138032Speter OAhash:-A /etc/aliases 637238032Speter the final alias inserted will be "list: member1,member2"; 637338032Speter without -A you will get an error on the second and subsequent 637438032Speter alias for "list". Contributed by Bryan Costales of ICSI. 637538032Speter Line-buffer transcript file. Suggested by Liudvikas Bukys. 637638032Speter Fix a problem that could cause very long addresses to core dump in 637738032Speter some special circumstances. Problem pointed out by Allan 637838032Speter Johannesen. 637938032Speter (Internal change.) Change interface to expand() (macro expansion) 638038032Speter to be simpler and more consistent. 638138032Speter Delete check for funny qf file names. This didn't really give 638238032Speter any extra security and caused some people some problems. 638338032Speter (If you -really- want this, define PICKY_QF_NAME_CHECK 638438032Speter at compile time.) Suggested by Kyle Jones of UUNET. 638538032Speter (Internal change.) Change EF_NORETURN to EF_NO_BODY_RETN and 638638032Speter merge with DSN code; this is simpler and more consistent. 638738032Speter This may affect some people who have written their own 638838032Speter checkcompat() routine. 638938032Speter (Internal change.) Eliminate `D' line in qf file. The df file 639038032Speter is now assumed to be the same name as the qf file (with 639138032Speter the `q' changed to a `d', of course). 639238032Speter Avoid forking for delivery if all recipient mailers are marked as 639338032Speter "expensive" -- this can be a major cost on some systems. 639438032Speter Essentially, this forces sendmail into "queue only" mode 639538032Speter if all it is going to do is queue anyway. 639638032Speter Avoid sending a null message in some rather unusual circumstances 639738032Speter (specifically, the RCPT command returns a temporary 639838032Speter failure but the connection is lost before the DATA 639938032Speter command). Fix from Scott Hammond of Secure Computing 640038032Speter Corporation. 640138032Speter Change makesendmail to use a somewhat more rational naming scheme: 640238032Speter Makefiles and obj directories are named $os.$rel.$arch, 640338032Speter where $os is the operating system (e.g., SunOS), $rel is 640438032Speter the release number (e.g., 5.3), and $arch is the machine 640538032Speter architecture (e.g., sun4). Any of these can be omitted, 640638032Speter and anything after the first dot in a release number can 640738032Speter be replaced with "x" (e.g., SunOS.4.x.sun4). The previous 640838032Speter version used $os.$arch.$rel and was rather less general. 640938032Speter Change makesendmail to do a "make depend" in the target directory 641038032Speter when it is being created. This involves adding an empty 641138032Speter "depend:" entry in most Makefiles. 641238032Speter Ignore IDENT return value if the OSTYPE field returns "OTHER", 641338032Speter as indicated by RFC 1413. Pointed out by Kari Hurtta 641438032Speter of the Finnish Meteorological Institute. 641538032Speter Fix problem that could cause multiple responses to DATA command 641638032Speter on header syntax errors (e.g., lines beginning with colons). 641738032Speter Problem noted by Jens Thomassen of the University of Oslo. 641838032Speter Don't let null bytes in headers cause truncation of the rest of 641938032Speter the header. 642038032Speter Log Authentication-Warning:s. Suggested by Motonori Nakamura. 642138032Speter Increase timeouts on message data puts to allow time for receivers 642238032Speter to canonify addresses in headers on the fly. This is still 642338032Speter a rather ugly heuristic. From Motonori Nakamura. 642438032Speter Add "HasWildcardMX" suboption to ResolverOptions; if set, MX 642538032Speter records are not used when canonifying names, and when MX 642638032Speter lookups are done for addressing they must be fully 642738032Speter qualified. This is useful if you have a wildcard MX record, 642838032Speter although it may cause other problems. In general, don't use 642938032Speter wildcard MX records. Patch from Motonori Nakamura. 643038032Speter Eliminate default two-line SMTP greeting message. Instead of 643138032Speter adding an extra "ESMTP spoken here" line, the word "ESMTP" 643238032Speter is added between the first and second word of the first 643338032Speter line of the greeting message (i.e., immediately after the 643438032Speter host name). This eliminates the need for the BROKEN_SMTP_PEERS 643538032Speter compile flag. Old sendmails won't see the ESMTP, but that's 643638032Speter acceptable because SIZE was the only useful extension that 643738032Speter old sendmails understand. 643838032Speter Avoid gethostbyname calls on UNIX domain sockets during SIGUSR1 643938032Speter invoked state dumps. From Masaharu Onishi. 644038032Speter Allow on-line comments in .forward and :include: files; they are 644138032Speter introduced by the string "<LWSP>#@#<LWSP>", where <LWSP> 644238032Speter is a space or a tab. This is intended for native 644338032Speter representation of non-ASCII sets such as Japanese, where 644438032Speter existing encodings would be unreadable or would lose 644538032Speter data -- for example, 644638032Speter <motonori@cs.ritsumei.ac.jp> NAKAMURA Motonori 644738032Speter (romanized/less information) 644838032Speter <motonori@cs.ritsumei.ac.jp> =?ISO-2022-JP?B?GyRCQ2ZCPBsoQg==?= 644938032Speter =?ISO-2022-JP?B?GyRCQUdFNRsoQg==?= 645038032Speter (with MIME encoding, not human readable) 645138032Speter <motonori@cs.ritsumei.ac.jp> #@# ^[$BCfB<^[(B ^[$BAGE5^[(B 645238032Speter (native encoding with ISO-2022-JP) 645338032Speter The last form is human readable in the Japanese environment. 645438032Speter Based on a fix from (surprise!) Motonori Nakamura. 645538032Speter Don't make SMTP error returns on MAIL FROM: line be "sticky" for all 645638032Speter messages to that host; these are most frequently associated 645738032Speter with addresses rather than the host, with the exception of 645838032Speter 421 (service shutting down). The effect was to cause queues 645938032Speter to sometimes take an excessive time to flush. Reported by 646038032Speter Robert Sargent of Southern Geographics Technologies and 646138032Speter Eric Prestemon of American University. 646238032Speter Add Nice=N mailer option to set the niceness at which a mailer will 646338032Speter run. This is actually a relative niceness (that is, an 646438032Speter increment on the background value). 646538032Speter Log queue runs that are skipped due to high loads. They are logged 646638032Speter at LOG_INFO priority iff the log level is > 8. Contributed 646738032Speter by Bruce Nagel of Data General. 646838032Speter Allow the error mailer to accept a DSN-style error status code 646938032Speter instead of an sysexits status code in the host part. 647038032Speter Anything with a dot will be interpreted as a DSN-style code. 647138032Speter Add new mailer flag: F=3 will tell translations to Quoted-Printable 647238032Speter to encode characters that might be munged by an EBCDIC system 647338032Speter in addition to the set required by RFC 1521. The additional 647438032Speter characters are !, ", #, $, @, [, \, ], ^, `, {, |, }, and ~. 647538032Speter (Think of "IBM 360" as the mnemonic for this flag.) 647638032Speter Change check for mailing to files to look for a pathname of [FILE] 647738032Speter rather than looking for the mailer named *file*. The mapping 647838032Speter of leading slashes still goes to the *file* mailer. This 647938032Speter allows you to implement the *file* mailer as a separate 648038032Speter program, for example, to insert a Content-Length: header 648138032Speter or do special security policy. However, note that the usual 648238032Speter initial checking for the file permissions is still done, and 648338032Speter the program in question needs to be very careful about how 648438032Speter it does the file write to avoid security problems. 648538032Speter Be able to read ~root/.forward even if the path isn't accessible to 648638032Speter regular users. This is disrecommended because sendmail 648738032Speter sometimes does not run as root (e.g., when an unsafe option 648838032Speter is specified on the command line), but should otherwise be 648938032Speter safe because .forward files must be owned by the user for 649038032Speter whom mail is being forwarded, and cannot be a symbolic link. 649138032Speter Suggested by Forrest Aldrich of Wang Laboratories. 649238032Speter Add new "HostsFile" option that is the pathname to the /etc/hosts 649338032Speter file. This is used for canonifying hostnames when the 649438032Speter service type is "files". 649538032Speter Implement programs on F (read class from file) line. The syntax is 649638032Speter Fc|/path/to/program to read the output from the program 649738032Speter into class "c". 649838032Speter Probe the network interfaces to find alternate names for this 649938032Speter host. Requires the SIOCGIFCONF ioctl call. Code 650038032Speter contributed by SunSoft. 650138032Speter Add "E" configuration line to set or propagate environment 650238032Speter variables into children. "E<envar>" will propagate 650338032Speter the named variable from the environment when sendmail 650438032Speter was invoked into any children it calls; "E<envar>=<value>" 650538032Speter sets the named variable to the indicated value. Any 650638032Speter variables not explicitly named will not be in the child 650738032Speter environment. However, sendmail still forces an 650838032Speter "AGENT=sendmail" environment variable, in part to enforce 650938032Speter at least one environment variable, since many programs and 651038032Speter libraries die horribly if this is not guaranteed. 651138032Speter Change heuristic for rebuilding both NEWDB and NDBM versions of 651238032Speter alias databases -- new algorithm looks for the substring 651338032Speter "/yp/" in the file name. This is more portable and involves 651438032Speter less overhead. Suggested by Motonori Nakamura. 651538032Speter Dynamically allocate the queue work list so that you don't lose 651638032Speter jobs in large queue runs. The old QUEUESIZE compile parameter 651738032Speter is replaced by QUEUESEGSIZE (the unit of allocation, which 651838032Speter should not need to be changed) and the MaxQueueRunSize option, 651938032Speter which is the absolute maximum number of jobs that will ever 652038032Speter be handled in a single queue run. Based on code contributed 652138032Speter by Brian Coan of the Institute for Global Communications. 652238032Speter Log message when a message is dropped because it exceeds the maximum 652338032Speter message size. Suggested by Leo Bicknell of Virginia Tech. 652438032Speter Allow trusted users (those on a T line or in $=t) to use -bs without 652538032Speter an X-Authentication-Warning: added. Suggested by Mark Thomas 652638032Speter of Mark G. Thomas Consulting. 652738032Speter Announce state of compile flags on -d0.1 (-d0.10 throws in the 652838032Speter OS-dependent defines). The old semantic of -d0.1 to not 652938032Speter run the daemon in background has been moved to -d99.100, 653038032Speter and the old 52.5 flag (to avoid disconnect() from closing 653138032Speter all output files) has been moved to 52.100. This makes 653238032Speter things more consistent (flags below .100 don't change 653338032Speter semantics) and separates out the backgrounding so that 653438032Speter it doesn't happen automatically on other unrelated debugging 653538032Speter flags. 653638032Speter If -t is used but no addresses are found in the header, give an 653738032Speter error message rather than just doing nothing. Fix from 653838032Speter Motonori Nakamura. 653938032Speter On systems (like SunOS) where the effective gid is not necessarily 654038032Speter included in the group list returned by getgroups(), the 654138032Speter `restrictmailq' option could sometimes cause an authorized 654238032Speter user to not be able to use `mailq'. Fix from Charles Hannum 654338032Speter of MIT. 654438032Speter Allow symbolic service names for [IPC] mailers. Suggested by 654538032Speter Gerry Magennis of Logica International. 654638032Speter Add DontExpandCnames option to prevent $[ ... $] from expanding CNAMEs 654738032Speter when running DNS. For example, if the name FTP.Foo.ORG is 654838032Speter a CNAME for Cruft.Foo.ORG, then when sitting on a machine in 654938032Speter the Foo.ORG domain a lookup of "FTP" returns "Cruft.Foo.ORG" 655038032Speter if this option is not set, or "FTP.Foo.ORG" if it is set. 655138032Speter This is technically illegal under RFC 822 and 1123, but the 655238032Speter IETF is moving toward legalizing it. Note that turning on 655338032Speter this option is not sufficient to guarantee that a downstream 655438032Speter neighbor won't rewrite the address for you. 655538032Speter Add "-m" flag to makesendmail script -- this tells you what object 655638032Speter directory and Makefile it will use, but doesn't actually do 655738032Speter the make. 655838032Speter Do some additional checking on the contents of the qf file to try 655938032Speter to detect attacks against the qf file. In particular, 656038032Speter abort on any line beginning "From ", and add an "end of 656138032Speter file" line -- any data after that line is prohibited. 656238032Speter Always use /etc/sendmail.cf, regardless of the arbitrary vendor 656338032Speter choices. This can be overridden in the Makefile by using 656438032Speter either -DUSE_VENDOR_CF_PATH to get the vendor location 656538032Speter (to the extent that we know it) or by defining 656638032Speter _PATH_SENDMAILCF (which is a "hard override"). This allows 656738032Speter sendmail 8 to have more consistent installation instructions. 656838032Speter Allow macros on `K' line in config file. Suggested by Andrew Chang 656938032Speter of Sun Microsystems. 657038032Speter Improved symbol table hash function from Eric Wassenaar. This one 657138032Speter is at least 50% faster. 657238032Speter Fix problem that didn't notice that timeout on file open was a 657338032Speter transient error. Fix from Larry Parmelee of Cornell 657438032Speter University. 657538032Speter Allow comments (lines beginning with a `#') in files read for 657638032Speter classes. Suggested by Motonori Nakamura. 657738032Speter Make SIGINT (usually ^C) in test mode return to the prompt instead 657838032Speter of dropping out entirely. This makes testing some of the 657938032Speter name server lookups easier to deal with when there are 658038032Speter hung servers. From Motonori Nakamura. 658138032Speter Add new ${opMode} macro that is set to the current operation mode 658238032Speter (e.g., `s' for -bs, `t' for -bt, etc.). Suggested by 658338032Speter Claude Marinier <MARINIER@emp.ewd.dreo.dnd.ca>. 658438032Speter Add new delivery mode (Odd) that defers all map lookups to queue runs. 658538032Speter Kind of like queue-only mode (Odq) except it tries to avoid 658638032Speter any external service requests; for dial-on-demand hosts that 658738032Speter want to minimize DNS lookups when mail is being queued. For 658838032Speter this to work you will also have to make sure that gethostbyname 658938032Speter of your local host name does not do a DNS lookup. 659038032Speter Improved handling of "out of space" conditions from John Myers of 659138032Speter Carnegie Mellon. 659238032Speter Improved security for mailing to files on systems that have fchmod(2) 659338032Speter support. 659438032Speter Improve "cannot send message for N days" message -- now says "could 659538032Speter not send for past N days". Suggested by Tom Moore of AT&T 659638032Speter Global Information Solutions. 659738032Speter Less misleading Subject: line on messages sent to postmaster only. 659838032Speter From Motonori Nakamura. 659938032Speter Avoid duplicate error messages on bad command line flags. From 660038032Speter Motonori Nakamura. 660138032Speter Better error message for case where ruleset 0 falls off the end 660238032Speter or otherwise does not resolve to a canonical triple. 660338032Speter Fix a problem that could cause multiple bounce messages if a bad 660438032Speter address was sent along with a good address to an SMTP 660538032Speter site where that SMTP site returned a 4yz code in response 660638032Speter to the final dot of the data. Problem reported by David 660738032Speter James of British Telecom. 660838032Speter Add "volatile" declarations so that gcc -O2 will work. Patches 660938032Speter from Alexander Dupuy of System Management ARTS. 661038032Speter Delete duplicates in MX lists -- believe it or not, there are sites 661138032Speter that list the same host twice in an MX list. This deletion 661238032Speter only works on adjacent preferences, so an MX list that 661338032Speter had A=5, B=10, A=15 would leave both As, but one that had 661438032Speter A=5, A=10, B=15 would reduce to A, B. This is intentional, 661538032Speter just in case there is something weird I haven't thought of. 661638032Speter Suggested by Barry Shein of Software Tool & Die. 661738032Speter SECURITY: .forward files cannot be symbolic links. If they are, 661838032Speter a bad guy can read your private files. 661938032Speter PORTABILITY FIXES: 662038032Speter Solaris 2 from Rob McMahon <cudcv@csv.warwick.ac.uk>. 662138032Speter System V Release 4 from Motonori Nakamura of Ritsumeikan 662238032Speter University. This expands the disk size 662338032Speter checking to include all (?) SVR4 configurations. 662438032Speter System V Release 4 from Kimmo Suominen -- initgroups(3) 662538032Speter and setrlimit(2) are both available. 662638032Speter System V Release 4 from sob@sculley.ffg.com -- some versions 662738032Speter apparently "have EX_OK defined in other headerfiles." 662838032Speter Linux Makefile typo. 662938032Speter Linux getusershell(3) is broken in Slackware 2.0 -- 663038032Speter from Andrew Pam of Xanadu Australia. 663138032Speter More Linux tweaking from John Kennedy of California State 663238032Speter University, Chico. 663338032Speter Cray changes from Eric Wassenaar: ``On Cray, shorts, 663438032Speter ints, and longs are all 64 bits, and all structs 663538032Speter are multiples of 64 bits. This means that the 663638032Speter sizeof operator returns only multiples of 8. 663738032Speter This requires adaptation of code that really 663838032Speter deals with 32 bit or 16 bit fields, such as IP 663938032Speter addresses or nameserver fields.'' 664038032Speter DG/UX 5.4.3 from Mark T. Robinson <mtr@ornl.gov>. To 664143730Speter get the old behavior, use -DDGUX_5_4_2. 664238032Speter DG/UX hack: add _FORCE_MAIL_LOCAL_=yes environment 664343730Speter variable to fix bogus /bin/mail behavior. 664438032Speter Tandem NonStop-UX from Rick McCarty <mccarty@mpd.tandem.com>. 664538032Speter This also cleans up some System V Release 4 compile 664638032Speter problems. 664738032Speter Solaris 2: sendmail.cw file should be in /etc/mail to 664838032Speter match all the other configuration files. Fix 664938032Speter from Glenn Barry of Emory University. 665038032Speter Solaris 2.3: compile problem in conf.c. Fix from Alain 665138032Speter Nissen of the University of Liege, Belgium. 665238032Speter Ultrix: freespace calculation was incorrect. Fix from 665338032Speter Takashi Kizu of Osaka University. 665438032Speter SVR4: running in background gets a SIGTTOU because the 665538032Speter emulation code doesn't realize that "getpeername" 665638032Speter doesn't require reading the file. Fix from Peter 665738032Speter Wemm of DIALix. 665838032Speter Solaris 2.3: due to an apparent bug in the socket emulation 665938032Speter library, sockets can get into a "wedged" state where 666038032Speter they just return EPROTO; closing and re-opening the 666138032Speter socket clears the problem. Fix from Bob Manson 666238032Speter of Ohio State University. 666338032Speter Hitachi 3050R & 3050RX running HI-UX/WE2: portability 666438032Speter fixes from Akihiro Hashimoto ("Hash") of Chiba 666538032Speter University. 666638032Speter AIX changes to allow setproctitle to work from Rainer Sch�pf 666738032Speter of Zentrum f�r Datenverarbeitung der Universit�t 666838032Speter Mainz. 666938032Speter AIX changes for load average from Ed Ravin of NASA/Goddard. 667038032Speter SCO Unix from Chip Rosenthal of Unicom (code was using the 667138032Speter wrong statfs call). 667238032Speter ANSI C fixes from Adam Glass (NetBSD project). 667338032Speter Stardent Titan/ANSI C fixes from Kate Hedstrom of Rutgers 667438032Speter University. 667538032Speter DG-UX fixes from Bruce Nagel of Data General. 667638032Speter IRIX64 updates from Mark Levinson of the University of 667738032Speter Rochester Medical Center. 667838032Speter Altos System V (``the first UNIX/XENIX merge the Altos 667938032Speter did for their Series 1000 & Series 2000 line; 668038032Speter their merged code was licensed back to AT&T and 668138032Speter Microsoft and became System V release 3.2'') from 668238032Speter Tim Rice <timr@crl.com>. 668338032Speter OSF/1 running on Intel Paragon from Jeff A. Earickson 668438032Speter <jeff@ssd.intel.com> of Intel Scalable Systems 668538032Speter Division. 668638032Speter Amdahl UTS System V 2.1.5 (SVr3-based) from Janet Jackson 668738032Speter <janet@dialix.oz.au>. 668838032Speter System V Release 4 (statvfs semantic fix) from Alain 668938032Speter Durand of I.M.A.G. 669038032Speter HP-UX 10.x multiprocessor load average changes from 669138032Speter Scott Hutton and Jeff Sumler of Indiana University. 669238032Speter Cray CSOS from Scott Bolte of Cray Computer Corporation. 669338032Speter Unicos 8.0 from Douglas K. Rand of the University of North 669438032Speter Dakota, Scientific Computing Center. 669538032Speter Solaris 2.4 fixes from Sanjay Dani of Dani Communications. 669638032Speter ConvexOS 11.0 from Christophe Wolfhugel. 669738032Speter IRIX 4.0.5 from David Ashton-Reader of CADcentre. 669838032Speter ISC UNIX from J. J. Bailey. 669938032Speter HP-UX 9.xx on the 8xx series machines from Remy Giraud 670038032Speter of Meteo France. 670138032Speter HP-UX configuration from Tom Lane <tgl@sss.pgh.pa.us>. 670238032Speter IRIX 5.2 and 5.3 from Kari E. Hurtta. 670338032Speter FreeBSD 2.0 from Mike Hickey of Federal Data Corporation. 670438032Speter Sony NEWS-OS 4.2.1R and 6.0.3 from Motonori Nakamura. 670538032Speter Omron LUNA unios-b, mach from Motonori Nakamura. 670638032Speter NEC EWS-UX/V 4.2 from Motonori Nakamura. 670738032Speter NeXT 2.1 from Bryan Costales. 670838032Speter AUX patch thanks to Mike Erwin of Apple Computer. 670938032Speter HP-UX 10.0 from John Beck of Hewlett-Packard. 671038032Speter Ultrix: allow -DBROKEN_RES_SEARCH=0 if you are using a 671138032Speter non-DEC resolver. Suggested by Allan Johannesen. 671238032Speter UnixWare 2.0 fixes from Petr Lampa of the Technical 671338032Speter University of Brno (Czech Republic). 671438032Speter KSR OS 1.2.2 support from Todd Miller of the University 671538032Speter of Colorado. 671638032Speter UX4800 support from Kazuhisa Shimizu of NEC. 671738032Speter MAKEMAP: allow -d flag to allow insertion of duplicate aliases 671838032Speter in type ``btree'' maps. The semantics of this are undefined 671938032Speter for regular maps, but it can be useful for the user database. 672038032Speter MAKEMAP: lock database file while rebuilding to avoid sendmail 672138032Speter lookups while the rebuild is going on. There is a race 672238032Speter condition between the open(... O_TRUNC ...) and the lock 672338032Speter on the file, but it should be quite small. 672438032Speter SMRSH: sendmail restricted shell added to the release. This can 672538032Speter be used as an alternative to /bin/sh for the "prog" mailer, 672638032Speter giving the local administrator more control over what 672738032Speter programs can be run from sendmail. 672838032Speter MAIL.LOCAL: add this local mailer to the tape. It is not really 672938032Speter part of the release proper, and isn't fully supported; in 673038032Speter particular, it does not run on System V based systems and 673138032Speter never will. 673238032Speter CONTRIB: a patch to rmail.c from Bill Gianopoulos of Raytheon 673338032Speter to allow rmail to compile on systems that don't have 673438032Speter function prototypes and systems that don't have snprintf. 673538032Speter CONTRIB: add the "mailprio" scripts that will help you sort mailing 673638032Speter lists by transaction delay times so that addresses that 673738032Speter respond quickly get sent first. This is to prevent very 673838032Speter sluggish servers from delaying other peoples' mail. 673938032Speter Contributed by Tony Sanders of BSDI. 674038032Speter CONTRIB: add the "bsdi.mc" file as contributed by Tony Sanders 674138032Speter of BSDI. This has a lot of comments to help people out. 674238032Speter CONFIG: Don't have .mc files include(../m4/cf.m4) -- instead, 674338032Speter put this on the m4 command line. On GNU m4 (which 674438032Speter supports the __file__ primitive) you can run m4 in an 674538032Speter arbitrary directory -- use either: 674638032Speter m4 ${CFDIR}/m4/cf.m4 config.mc > config.cf 674738032Speter or 674838032Speter m4 -I${CFDIR} m4/cf.m4 config.mc > config.cf 674938032Speter On other versions of m4 that don't support __file__, you 675038032Speter can use: 675138032Speter m4 -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ... 675238032Speter (Note the trailing slash on the _CF_DIR_ definition.) 675338032Speter Old versions of m4 will default to _CF_DIR_=.. for back 675438032Speter compatibility. 675538032Speter CONFIG: fix mail from <> so it will properly convert to 675638032Speter MAILER-DAEMON on local addresses. 675738032Speter CONFIG: fix code that was supposed to catch colons in host 675838032Speter names. Problem noted by John Gardiner Myers of CMU. 675938032Speter CONFIG: allow use of SMTP_MAILER_MAX in nullclient configuration. 676038032Speter From Paul Riddle of the University of Maryland, Baltimore 676138032Speter County. 676238032Speter CONFIG: Catch and reject "." as a host address. 676338032Speter CONFIG: Generalize domaintable to look up all domains, not 676438032Speter just unqualified ones. 676538032Speter CONFIG: Delete OLD_SENDMAIL support -- as near as I can tell, it 676638032Speter was never used and didn't work anyway. 676738032Speter CONFIG: Set flags A, w, 5, :, /, |, and @ on the "local" mailer 676838032Speter and d on all mailers in the UUCP class. 676938032Speter CONFIG: Allow "user+detail" to be aliased specially: it will first 677038032Speter look for an alias for "user+detail", then for "user+*", and 677138032Speter finally for "user". This is intended for forwarding mail 677238032Speter for system aliases such as root and postmaster to a 677338032Speter centralized hub. 677438032Speter CONFIG: add confEIGHT_BIT_HANDLING to set option 8 (see above). 677538032Speter CONFIG: add smtp8 mailer; this has the F=8 (just-send-8) flag set. 677638032Speter The F=8 flag is also set on the "relay" mailer, since 677738032Speter this is expected to be another sendmail. 677838032Speter CONFIG: avoid qualifying all UUCP addresses sent via SMTP with 677938032Speter the name of the UUCP_RELAY -- in some cases, this is the 678038032Speter wrong value (e.g., when we have local UUCP connections), 678138032Speter and this can create unreplyable addresses. From Chip 678238032Speter Rosenthal of Unicom. 678338032Speter CONFIG: add confRECEIVED_HEADER to change the format of the 678464562Sgshapiro Received: header inserted into all messages. Suggested by 678538032Speter Gary Mills of the University of Manitoba. 678638032Speter CONFIG: Make "notsticky" the default; use FEATURE(stickyhost) 678743730Speter to get the old behavior. I did this upon observing 678838032Speter that almost everyone needed this feature, and that the 678938032Speter concept I was trying to make happen didn't work with 679038032Speter some user agents anyway. FEATURE(notsticky) still works, 679138032Speter but it is a no-op. 679238032Speter CONFIG: Add LUSER_RELAY -- the host to which unrecognized user 679338032Speter names are sent, rather than immediately diagnosing them 679438032Speter as User Unknown. 679538032Speter CONFIG: Add SMTP_MAILER_ARGS, ESMTP_MAILER_ARGS, SMTP8_MAILER_ARGS, 679638032Speter and RELAY_MAILER_ARGS to set the arguments for the 679738032Speter indicated mailers. All default to "IPC $h". Patch from 679838032Speter Larry Parmelee of Cornell University. 679938032Speter CONFIG: pop mailer needs F=n flag to avoid "annoying side effects 680038032Speter on the client side" and F=P to get an appropriate 680138032Speter return-path. From Kimmo Suominen. 680238032Speter CONFIG: add FEATURE(local_procmail) to use the procmail program 680338032Speter as the local mailer. For addresses of the form "user+detail" 680438032Speter the "detail" part is passed to procmail via the -a flag. 680538032Speter Contributed by Kimmo Suominen. 680638032Speter CONFIG: add MAILER(procmail) to add an interface to procmail for 680738032Speter use from mailertables. This lets you execute arbitrary 680838032Speter procmail scripts. Contributed by Kimmo Suominen. 680938032Speter CONFIG: add T= fields (MTS type) to local, smtp, and uucp mailers. 681038032Speter CONFIG: add OSTYPE(ptx2) for DYNIX/ptx 2.x from Sequent. From 681138032Speter Paul Southworth of CICNet Systems Support. 681238032Speter CONFIG: use -a$g as default to UUCP mailers, instead of -a$f. 681338032Speter This causes the null return path to be rewritten as 681438032Speter MAILER-DAEMON; otherwise UUCP gets horribly confused. 681538032Speter From Michael Hohmuth of Technische Universitat Dresden. 681638032Speter CONFIG: Add FEATURE(bestmx_is_local) to cause any hosts that 681738032Speter list us as the best possible MX record to be treated as 681838032Speter though they were local (essentially, assume that they 681938032Speter are included in $=w). This can cause additional DNS 682038032Speter traffic, but is easier to administer if this fits your 682138032Speter local model. It does not work reliably if there are 682238032Speter multiple hosts that share the best MX preference. 682338032Speter Code contributed by John Oleynick of Rutgers. 682438032Speter CONFIG: Add FEATURE(smrsh) to use smrsh (the SendMail Restricted 682538032Speter SHell) instead of /bin/sh as the program used for delivery 682638032Speter to programs. If an argument is included, it is used as 682738032Speter the path to smrsh; otherwise, /usr/local/etc/smrsh is 682838032Speter assumed. 682938032Speter CONFIG: Add LOCAL_MAILER_MAX and PROCMAILER_MAILER_MAX to limit the 683038032Speter size of messages to the local and procmail mailers 683138032Speter respectively. Contributed by Brad Knowles of the Defense 683238032Speter Information Systems Agency. 683338032Speter CONFIG: Handle leading ``phrase:'' and trailing ``;'' as comments 683438032Speter (just like text outside of angle brackets) in order to 683538032Speter properly deal with ``group: addr1, ... addrN;'' syntax. 683638032Speter CONFIG: Require OSTYPE macro (the defaults really don't apply to 683738032Speter any real systems any more) and tweak the DOMAIN macro 683838032Speter so that it is less likely that users will accidentally use 683938032Speter the Berkeley defaults. Also, create some generic files 684038032Speter that really can be used in the real world. 684138032Speter CONFIG: Add new configuration macros to set character sets for 684238032Speter messages _arriving from_ various mailers: LOCAL_MAILER_CHARSET, 684338032Speter SMTP_MAILER_CHARSET, and UUCP_MAILER_CHARSET. 684438032Speter CONFIG: Change UUCP_MAX_SIZE to UUCP_MAILER_MAX for consistency. 684538032Speter The old name will still be accepted for a while at least. 684638032Speter CONFIG: Implement DECNET_RELAY as spec for host to which DECNET 684738032Speter mail (.DECNET pseudo-domain or node::user) will be sent. 684838032Speter As with all relays, it can be ``mailer:hostname''. Suggested 684938032Speter by Scott Hutton. 685038032Speter CONFIG: Add MAILER(mail11) to get DECnet support. Code contributed 685138032Speter by Barb Dijker of Labyrinth Computer Services. 685238032Speter CONFIG: change confCHECK_ALIASES to default to False -- it has poor 685338032Speter performance for large alias files, and this confused many 685438032Speter people. 685538032Speter CONFIG: Add confCF_VERSION to append local information to the 685638032Speter configuration version number displayed during SMTP startup. 685738032Speter CONFIG: fix some.newsgroup.usenet@local.host syntax (previously it 685838032Speter would only work when locally addressed. Fix from 685938032Speter Edvard Tuinder of Cistron Internet Services. 686038032Speter CONFIG: use ${opMode} to avoid error on .REDIRECT addresses if option 686143730Speter "n" (CheckAliases) is set when rebuilding alias database. 686238032Speter Based on code contributed by Claude Marinier. 686338032Speter CONFIG: Allow mailertable to have values of the form 686438032Speter ``error:code message''. The ``code'' is a status code 686538032Speter derived from the sysexits codes -- e.g., NOHOST or UNAVAILABLE. 686638032Speter Contributed by David James <dwj@agw.bt.co.uk>. 686738032Speter CONFIG: add MASQUERADE_DOMAIN(domain list) to extend the list of 686838032Speter sender domains that will be replaced with the masquerade name. 686938032Speter These domains will not be treated as local, but if mail passes 687038032Speter through with sender addresses in those domains they will be 687138032Speter replaced by the masquerade name. These can also be specified 687238032Speter in a file using MASQUERADE_DOMAIN_FILE(filename). 687338032Speter CONFIG: add FEATURE(masquerade_envelope) to masquerade the envelope 687438032Speter as well as the header. Substantial improvements to this 687538032Speter code were contributed by Per Hedeland. 687638032Speter CONFIG: add MAILER(phquery) to define a new "ph" mailer; this can be 687738032Speter accessed from a mailertable to do CCSO ph lookups. Contributed 687838032Speter by Kimmo Suominen. 687938032Speter CONFIG: add MAILER(cyrus) to define a new Cyrus mailer; this can be 688038032Speter used to define cyrus and cyrusbb mailers (for IMAP support). 688138032Speter Contributed by John Gardiner Myers of Carnegie Mellon. 688238032Speter CONFIG: add confUUCP_MAILER to select default mailer to use for 688338032Speter UUCP addressing. Suggested by Tom Moore of AT&T GIS. 688438032Speter NEW FILES: 688538032Speter cf/cf/cs-hpux10.mc 688638032Speter cf/cf/cs-solaris2.mc 688738032Speter cf/cf/cyrusproto.mc 688838032Speter cf/cf/generic-bsd4.4.mc 688938032Speter cf/cf/generic-hpux10.mc 689038032Speter cf/cf/generic-hpux9.mc 689138032Speter cf/cf/generic-osf1.mc 689238032Speter cf/cf/generic-solaris2.mc 689338032Speter cf/cf/generic-sunos4.1.mc 689438032Speter cf/cf/generic-ultrix4.mc 689538032Speter cf/cf/huginn.cs.mc 689638032Speter cf/domain/berkeley-only.m4 689738032Speter cf/domain/generic.m4 689838032Speter cf/feature/bestmx_is_local.m4 689938032Speter cf/feature/local_procmail.m4 690038032Speter cf/feature/masquerade_envelope.m4 690138032Speter cf/feature/smrsh.m4 690238032Speter cf/feature/stickyhost.m4 690338032Speter cf/feature/use_ct_file.m4 690438032Speter cf/m4/cfhead.m4 690538032Speter cf/mailer/cyrus.m4 690638032Speter cf/mailer/mail11.m4 690738032Speter cf/mailer/phquery.m4 690838032Speter cf/mailer/procmail.m4 690938032Speter cf/ostype/amdahl-uts.m4 691038032Speter cf/ostype/bsdi2.0.m4 691138032Speter cf/ostype/hpux10.m4 691238032Speter cf/ostype/irix5.m4 691338032Speter cf/ostype/isc4.1.m4 691438032Speter cf/ostype/ptx2.m4 691538032Speter cf/ostype/unknown.m4 691638032Speter contrib/bsdi.mc 691738032Speter contrib/mailprio 691838032Speter contrib/rmail.oldsys.patch 691938032Speter mail.local/mail.local.0 692038032Speter makemap/makemap.0 692138032Speter smrsh/README 692238032Speter smrsh/smrsh.0 692338032Speter smrsh/smrsh.8 692438032Speter smrsh/smrsh.c 692538032Speter src/Makefiles/Makefile.CSOS 692638032Speter src/Makefiles/Makefile.EWS-UX_V 692738032Speter src/Makefiles/Makefile.HP-UX.10 692838032Speter src/Makefiles/Makefile.IRIX.5.x 692938032Speter src/Makefiles/Makefile.IRIX64 693038032Speter src/Makefiles/Makefile.ISC 693138032Speter src/Makefiles/Makefile.KSR 693238032Speter src/Makefiles/Makefile.NEWS-OS.4.x 693338032Speter src/Makefiles/Makefile.NEWS-OS.6.x 693438032Speter src/Makefiles/Makefile.NEXTSTEP 693538032Speter src/Makefiles/Makefile.NonStop-UX 693638032Speter src/Makefiles/Makefile.Paragon 693738032Speter src/Makefiles/Makefile.SCO.3.2v4.2 693838032Speter src/Makefiles/Makefile.SunOS.5.3 693938032Speter src/Makefiles/Makefile.SunOS.5.4 694038032Speter src/Makefiles/Makefile.SunOS.5.5 694138032Speter src/Makefiles/Makefile.UNIX_SV.4.x.i386 694238032Speter src/Makefiles/Makefile.uts.systemV 694338032Speter src/Makefiles/Makefile.UX4800 694438032Speter src/aliases.0 694538032Speter src/mailq.0 694638032Speter src/mime.c 694738032Speter src/newaliases.0 694838032Speter src/sendmail.0 694938032Speter test/t_seteuid.c 695038032Speter RENAMED FILES: 695138032Speter cf/cf/alpha.mc => cf/cf/s2k-osf1.mc 695238032Speter cf/cf/chez.mc => cf/cf/chez.cs.mc 695338032Speter cf/cf/hpux-cs-exposed.mc => cf/cf/cs-hpux9.mc 695438032Speter cf/cf/osf1-cs-exposed.mc => cf/cf/cs-osf1.mc 695538032Speter cf/cf/s2k.mc => cf/cf/s2k-ultrix4.mc 695638032Speter cf/cf/sunos4.1-cs-exposed.mc => cf/cf/cs-sunos4.1.mc 695738032Speter cf/cf/ultrix4.1-cs-exposed.mc => cf/cf/cs-ultrix4.mc 695838032Speter cf/cf/vangogh.mc => cf/cf/vangogh.cs.mc 695938032Speter cf/domain/Berkeley.m4 => cf/domain/Berkeley.EDU.m4 696038032Speter cf/domain/cs-exposed.m4 => cf/domain/CS.Berkeley.EDU.m4 696138032Speter cf/domain/eecs-hidden.m4 => cf/domain/EECS.Berkeley.EDU.m4 696238032Speter cf/domain/s2k.m4 => cf/domain/S2K.Berkeley.EDU.m4 696338032Speter cf/ostype/hpux.m4 => cf/ostype/hpux9.m4 696438032Speter cf/ostype/irix.m4 => cf/ostype/irix4.m4 696538032Speter cf/ostype/ultrix4.1.m4 => cf/ostype/ultrix4.m4 696638032Speter src/Makefile.* => src/Makefiles/Makefile.* 696738032Speter src/Makefile.AUX => src/Makefiles/Makefile.A-UX 696838032Speter src/Makefile.BSDI => src/Makefiles/Makefile.BSD-OS 696938032Speter src/Makefile.DGUX => src/Makefiles/Makefile.dgux 697038032Speter src/Makefile.RISCos => src/Makefiles/Makefile.UMIPS 697138032Speter src/Makefile.SunOS.4.0.3 => src/Makefiles/Makefile.SunOS.4.0 697238032Speter OBSOLETED FILES: 697338032Speter cf/cf/cogsci.mc 697438032Speter cf/cf/cs-exposed.mc 697538032Speter cf/cf/cs-hidden.mc 697638032Speter cf/cf/hpux-cs-hidden.mc 697738032Speter cf/cf/knecht.mc 697838032Speter cf/cf/osf1-cs-hidden.mc 697938032Speter cf/cf/sunos3.5-cs-exposed.mc 698038032Speter cf/cf/sunos3.5-cs-hidden.mc 698138032Speter cf/cf/sunos4.1-cs-hidden.mc 698238032Speter cf/cf/ultrix4.1-cs-hidden.mc 698338032Speter cf/domain/cs-hidden.m4 698438032Speter contrib/rcpt-streaming 698538032Speter src/Makefiles/Makefile.SunOS.5.x 698638032Speter 698764562Sgshapiro8.6.13/8.6.12 1996/01/25 698838032Speter SECURITY: In some cases it was still possible for an attacker to 698938032Speter insert newlines into a queue file, thus allowing access to 699038032Speter any user (except root). 699138032Speter CONFIG: no changes -- it is not a bug that the configuration 699238032Speter version number is unchanged. 699338032Speter 699464562Sgshapiro8.6.12/8.6.12 1995/03/28 699538032Speter Fix to IDENT code (it was getting the size of the reply buffer 699638032Speter too small, so nothing was ever accepted). Fix from several 699738032Speter people, including Allan Johannesen, Shane Castle of the 699838032Speter Boulder County Information Services, and Jeff Smith of 699938032Speter Warwick University (all arrived within a few hours of 700038032Speter each other!). 700138032Speter Fix a problem that could cause large jobs to run out of 700238032Speter file descriptors on systems that use vfork() rather 700338032Speter than fork(). 700438032Speter 700564562Sgshapiro8.6.11/8.6.11 1995/03/08 700638032Speter The ``possible attack'' message would be logged more often 700738032Speter than necessary if you are using Pine as a user agent. 700838032Speter The wrong host would be reported in the ``possible attack'' 700938032Speter message when attempted from IDENT. 701038032Speter In some cases the syslog buffer could be overflowed when 701138032Speter reporting the ``possible attack'' message. This can 701238032Speter cause denial of service attacks. Truncate the message 701338032Speter to 80 characters to prevent this problem. 701438032Speter When reading the IDENT response a loop is needed around the 701538032Speter read from the network to ensure that you don't get 701638032Speter partial lines. 701738032Speter Password entries without any shell listed (that is, a null 701838032Speter shell) wouldn't match as "ok". Problem noted by 701938032Speter Rob McMahon. 702038032Speter When running BIND 4.9.x a problem could occur because the 702138032Speter _res.options field is initialized differently than it 702238032Speter was historically -- this requires that sendmail call 702338032Speter res_init before it tweaks any bits. 702438032Speter Fix an incompatibility in openxscript() between the file open mode 702538032Speter and the stdio mode passed to fdopen. This caused UnixWare 702638032Speter 2.0 to have conniptions. Fix from Martin Sohnius of 702738032Speter Novell Labs Europe. 702838032Speter Fix problem with static linking of local getopt routine when 702938032Speter using GNU's ld command. Fix from John Kennedy of 703038032Speter Cal State Chico. 703138032Speter It was possible to turn off privacy flags. Problem noted by 703238032Speter *Hobbit*. 703338032Speter Be more paranoid about writing files. Suggestions by *Hobbit* 703438032Speter and Liudvikas Bukys. 703538032Speter MAKEMAP: fixes for 64 bit machines (DEC Alphas in particular) 703638032Speter from Spider Boardman. 703738032Speter CONFIG: No changes (version number only, to keep it in sync 703838032Speter with the binaries). 703938032Speter 704064562Sgshapiro8.6.10/8.6.10 1995/02/10 704138032Speter SECURITY: Diagnose bogus values to some command line flags that 704238032Speter could allow trash to get into headers and qf files. 704338032Speter Validate the name of the user returned by the IDENT protocol. 704438032Speter Some systems that really dislike IDENT send intentionally 704538032Speter bogus information. Problem pointed out by Michael Bushnell 704638032Speter of the Free Software Foundation. Has some security 704738032Speter implications. 704838032Speter Fix a problem causing error messages about DNS problems when 704938032Speter the host name contained a percent sign to act oddly 705038032Speter because it was passed as a printf-style format string. 705138032Speter In some cases this could cause core dumps. 705238032Speter Avoid possible buffer overrun in returntosender() if error 705338032Speter message is quite long. From Fletcher Mattox of the 705438032Speter University of Texas. 705538032Speter Fix a problem that would silently drop "too many hops" error 705638032Speter messages if and only if you were sending to an alias. 705738032Speter From Jon Giltner of the University of Colorado and 705838032Speter Dan Harton of Oak Ridge National Laboratory. 705938032Speter Fix a bug that caused core dumps on some systems if -d11.2 was 706038032Speter set and e->e_message was null. Fix from Bruce Nagel of 706138032Speter Data General. 706238032Speter Fix problem that can still cause df files to be left around 706338032Speter after "hop count exceeded" messages. Fix from Andrew 706438032Speter Chang and Shau-Ping Lo of SunSoft. 706538032Speter Fix a problem that can cause buffer overflows on very long 706638032Speter user names (as might occur if you piped to a program 706738032Speter with a lot of arguments). 706838032Speter Avoid returning an error and re-queueing if the host signature 706938032Speter is null; this can occur on addresses like ``user@.''. 707038032Speter Problem noted by Wesley Craig and the University of 707138032Speter Michigan. 707238032Speter Avoid possible calls to malloc(0) if MCI caching is turned 707338032Speter off. Bug fix from Pierre David of the Laboratoire 707438032Speter Parallelisme, Reseaux, Systemes et Modelisation (PRiSM), 707538032Speter Universite de Versailles - St Quentin, and Jacky 707638032Speter Thibault. 707738032Speter Make a local copy of the line being sent via senttolist() -- in 707838032Speter some cases, buffers could get trashed by map lookups 707938032Speter causing it to do unexpected things. This also simplifies 708038032Speter some of the map code. 708138032Speter CONFIG: No changes (version number only, to keep it in sync 708238032Speter with the binaries). 708338032Speter 708464562Sgshapiro8.6.9/8.6.9 1994/04/19 708538032Speter Do all mail delivery completely disconnected from any terminal. 708638032Speter This provides consistency with daemon delivery and 708738032Speter may have some security implications. 708838032Speter Make sure that malloc doesn't get called with zero size, 708938032Speter since that fails on some systems. Reported by Ed 709038032Speter Hill of the University of Iowa. 709138032Speter Fix multi-line values for $e (SMTP greeting message). Reported 709238032Speter by Mike O'Connor of Ford Motor Company. 709338032Speter Avoid syserr if no NIS domain name is defined, but the map it 709438032Speter is trying to open is optional. From Win Bent of USC. 709538032Speter Changes for picky compilers from Ed Gould of Digital Equipment. 709638032Speter Hesiod support for UDB from Todd Miller of the University of 709738032Speter Colorado. Use "hesiod" as the service name in the U 709838032Speter option. 709938032Speter Fix a problem that failed to set the "authentic" host name (that 710038032Speter is, the one derived from the socket info) if you called 710138032Speter sendmail -bs from inetd. Based on code contributed by 710238032Speter Todd Miller (this problem was also reported by Guy Helmer 710338032Speter of Dakota State University). This also fixes a related 710438032Speter problem reported by Liudvikas Bukys of the University of 710538032Speter Rochester. 710638032Speter Parameterize "nroff -h" in all the Makefiles so people with 710738032Speter variant versions can use them easily. Suggested by 710838032Speter Peter Collinson of Hillside Systems. 710938032Speter SMTP "MAIL" commands with multiple ESMTP parameters required two 711038032Speter spaces between parameters instead of one. Reported by 711138032Speter Valdis Kletnieks of Virginia Tech. 711238032Speter Reduce the number of system calls during message collection by 711338032Speter using global timeouts around the collect() loop. This 711438032Speter code was contributed by Eric Wassenaar. 711538032Speter If the initial hostname name gathering results in a name 711638032Speter without a dot (usually caused by NIS misconfiguration) 711738032Speter and BIND is compiled in, directly access DNS to get 711838032Speter the canonical name. This should make life easier for 711938032Speter Solaris systems. If it still can't be resolved, and 712038032Speter if the name server is listed as "required", try again 712138032Speter in 30 seconds. If that also fails, exit immediately to 712238032Speter avoid bogus "config error: mail loops back to myself" 712338032Speter messages. 712438032Speter Improve the "MAIL DELETED BECAUSE OF LACK OF DISK SPACE" error 712538032Speter message to explain how much space was available and 712638032Speter sound a bit less threatening. Suggested by Stan Janet 712738032Speter of the National Institute of Standards and Technology. 712838032Speter If mail is delivered to an alias that has an owner, deliver any 712938032Speter requested return-receipt immediately, and strip the 713038032Speter Return-Receipt-To: header from the subsequent message. 713138032Speter This prevents a certain class of denial of service 713238032Speter attack, arguably gives more reasonable semantics, and 713338032Speter moves things more towards what will probably become a 713438032Speter network standard. Suggested by Christopher Davis of 713538032Speter Kapor Enterprises. 713638032Speter Add a "noreceipts" privacy flag to turn off all return receipts 713738032Speter without recompiling. 713838032Speter Avoid printing ESMTP parameters as part of the error message 713938032Speter if there are errors during parsing. This change is 714038032Speter purely cosmetic. 714138032Speter Avoid sending out error messages during the collect phase of 714238032Speter SMTP; there is an MVS mailer from UCLA that gets 714338032Speter confused by this. Of course, I think it's their bug.... 714438032Speter Check for the $j macro getting undefined, losing a dot, or getting 714538032Speter lost from $=w in the daemon before accepting a connection; 714638032Speter if it is, it dumps state, prints a LOG_ALERT message, 714738032Speter and drops core for debugging. This is an attempt to 714838032Speter track down a bug that I thought was long since gone. 714938032Speter If you see this, please forward the log fragment to 715038032Speter sendmail@sendmail.ORG. 715138032Speter Change OLD_NEWDB from a #ifdef to a #if so it can be turned off 715238032Speter with -DOLD_NEWDB=0 on the command line. From Christophe 715338032Speter Wolfhugel. 715438032Speter Instead of trying to truncate the listen queue for the server 715538032Speter SMTP port when the load average is too high, just close 715638032Speter the port completely and reopen it later as needed. 715738032Speter This ensures that the other end gets a quick "connection 715838032Speter refused" response, and that the connection can be 715938032Speter recovered later. In particular, some socket emulations 716038032Speter seem to get confused if you tweak the listen queue 716138032Speter size around and can never start listening to connections 716238032Speter again. The down side is that someone could start up 716338032Speter another daemon process in the interim, so you could 716438032Speter have multiple daemons all not listening to connections; 716538032Speter this could in turn cause the sendmail.pid file to be 716638032Speter incorrect. A better approach might be to accept the 716738032Speter connection and give a 421 code, but that could break 716843730Speter other mailers in mysterious ways and have paging behavior 716938032Speter implications. 717038032Speter Fix a glitch in TCP-level debugging that caused flag 16.101 to 717138032Speter set debugging on the wrong socket. From Eric Wassenaar. 717238032Speter When creating a df* temporary file, be sure you truncate any 717338032Speter existing data in the file -- otherwise system crashes 717438032Speter and the like could result in extra data being sent. 717538032Speter DOC: Replace the CHANGES-R5-R8 readme file with a paper in the 717638032Speter doc directory. This includes some additional 717738032Speter information. 717838032Speter CONFIG: change UUCP rules to never add $U! or $k! on the front 717938032Speter of recipient envelope addresses. This should have been 718038032Speter handled by the $&h trick, but broke if people were 718138032Speter mixing domainized and UUCP addresses. They should 718238032Speter probably have converted all the way over to uucp-uudom 718338032Speter instead of uucp-{new,old}, but the failure mode was to 718438032Speter loop the mail, which was bad news. 718538032Speter Portability fixes: 718638032Speter Newer BSDI systems (several people). 718738032Speter Older BSDI systems from Christophe Wolfhugel. 718838032Speter Intergraph CLIX, from Paul Southworth of CICNet. 718938032Speter UnixWare, from Evan Champion. 719038032Speter NetBSD from Adam Glass. 719138032Speter Solaris from Quentin Campbell of the University of 719238032Speter Newcastle upon Tyne. 719338032Speter IRIX from Dean Cookson and Bill Driscoll of Mitre 719438032Speter Corporation. 719538032Speter NCR 3000 from Kevin Darcy of Chrysler Financial Corporation. 719638032Speter SunOS (it has setsid() and setvbuf() calls) from 719738032Speter Jonathan Kamens of OpenVision Technologies. 719838032Speter HP-UX from Tor Lillqvist. 719938032Speter New Files: 720038032Speter src/Makefile.CLIX 720138032Speter src/Makefile.NCR3000 720238032Speter doc/changes/Makefile 720338032Speter doc/changes/changes.me 720438032Speter doc/changes/changes.ps 720538032Speter 720664562Sgshapiro8.6.8/8.6.6 1994/03/21 720738032Speter SECURITY: it was possible to read any file as root using the 720838032Speter E (error message) option. Reported by Richard Jones; 720938032Speter fixed by Michael Corrigan and Christophe Wolfhugel. 721038032Speter 721164562Sgshapiro8.6.7/8.6.6 1994/03/14 721238032Speter SECURITY: it was possible to get root access by using weird 721338032Speter values to the -d flag. Thanks to Alain Durand of 721438032Speter INRIA for forwarding me the notice from the bugtraq 721538032Speter list. 721638032Speter 721764562Sgshapiro8.6.6/8.6.6 1994/03/13 721838032Speter SECURITY: the ability to give files away on System V-based 721938032Speter systems proved dangerous -- don't run as the owner 722038032Speter of a :include: file on a system that allows giveaways. 722138032Speter Unfortunately, this also applies to determining a 722238032Speter valid shell. 722338032Speter IMPORTANT: Previous versions weren't expiring old connections 722438032Speter in the connection cache for a long time under some 722538032Speter circumstances. This could result in resource exhaustion, 722638032Speter both at your end and at the other end. This checks the 722738032Speter connections for timeouts much more frequently. From 722838032Speter Doug Anderson of NCSC. 722938032Speter Fix a glitch that snuck in that caused programs to be run as 723038032Speter the sender instead of the recipient if the mail was 723138032Speter from a local user to another local user. From 723238032Speter Motonori Nakamura of Kyoto University. 723338032Speter Fix "wildcard" on /etc/shells matching -- instead of looking 723438032Speter for "*", look for "/SENDMAIL/ANY/SHELL/". From 723538032Speter Bryan Costales of ICSI. 723638032Speter Change the method used to declare the "statfs" availability; 723738032Speter instead of HASSTATFS and/or HASUSTAT with a ton of 723838032Speter tweaking in conf.c, there is a single #define called 723938032Speter SFS_TYPE which takes on one of six values (SFS_NONE 724038032Speter for no statfs availability, SFS_USTAT for the ustat(2) 724138032Speter syscall, SFS_4ARGS for a four argument statfs(2) call, 724238032Speter and SFS_VFS, SFS_MOUNT, or SFS_STATFS for a two argument 724338032Speter statfs(2) call with the declarations in <sys/vfs.h>, 724438032Speter <sys/mount.h>, or <sys/statfs.h> respectively). 724538032Speter Fix glitch in NetInfo support that could return garbage if 724638032Speter there was no "/locations/sendmail" property. From 724738032Speter David Meyer of the University of Virginia. 724838032Speter Change HASFLOCK from defined/not-defined to a 0/1 definition 724938032Speter to allow Linux to turn it off even though it is a 725038032Speter BSD-like system. 725138032Speter Allow setting of "ident" timeout to zero to turn off the ident 725238032Speter protocol entirely. 725338032Speter Make 7-bit stripping local to a connection (instead of to a 725438032Speter mailer); this allows you to specify that SMTP is a 725538032Speter 7-bit channel, but revert to 8-bit should it advertise 725638032Speter that it supports 8BITMIME. You still have to specify 725738032Speter mailer flag 7 to get this stripping at all. 725838032Speter Improve makesendmail script so it handles more cases automatically. 725938032Speter Tighten up restrictions on taking ownership of :include: files 726038032Speter to avoid problems on systems that allow you to give away 726138032Speter files. 726238032Speter Fix a problem that made it impossible to rebuild the alias 726338032Speter file if it was on a read-only file system. From 726438032Speter Harry Edmon of the University of Washington. 726538032Speter Improve MX randomization function. From John Gardiner Myers 726638032Speter of CMU. 726738032Speter Fix a minor glitch causing a bogus message to be printed (used 726838032Speter %s instead of %d in a printf string for the line number) 726938032Speter when a bad queue file was read. From Harry Edmon. 727038032Speter Allow $s to remain NULL on locally generated mail. I'm not 727138032Speter sure this is necessary, but a lot of people have complained 727238032Speter about it, and there is a legitimate question as to whether 727338032Speter "localhost" is legal as an 822-style domain. 727438032Speter Fix a problem with very short line lengths (mailer L= flag) in 727538032Speter headers. This causes a leading space to be added onto 727638032Speter continuation lines (including in the body!), and also 727738032Speter tries to wrap headers containing addresses (From:, To:, 727838032Speter etc) intelligently at the shorter line lengths. Problem 727938032Speter Reported by Lars-Johan Liman of SUNET Operations Center. 728038032Speter Log the real user name when logging syserrs, since these can have 728138032Speter security implications. Suggested by several people. 728238032Speter Fix address logging of cached connections -- it used to always 728338032Speter log the numeric address as zero. This is a somewhat 728438032Speter bogus implementation in that it does an extra system 728538032Speter call, but it should be an inexpensive one. Fix from 728638032Speter Motonori Nakamura. 728738032Speter Tighten up handling of short syslog buffers even more -- there 728838032Speter were cases where the outgoing relay= name was too long 728938032Speter to share a line with delay= and mailer= logging. 729038032Speter Limit the overhead on split envelopes to one open file descriptor 729138032Speter per envelope -- previously the overhead was three 729238032Speter descriptors. This was in response to a problem reported 729338032Speter by P{r (Pell) Emanuelsson. 729438032Speter Fixes to better handle the case of unexpected connection closes; 729538032Speter this redirects the output to the transcript so the info 729638032Speter is not lost. From Eric Wassenaar. 729738032Speter Fix potential string overrun if you macro evaluate a string that 729838032Speter has a naked $ at the end. Problem noted by James Matheson 729938032Speter <jmrm@eng.cam.ac.uk>. 730038032Speter Make default error number on $#error messages 553 (``Requested 730138032Speter action not taken: mailbox name not allowed'') instead of 730238032Speter 501 (``Syntax error in parameters or arguments'') to 730338032Speter avoid bogus "protocol error" messages. 730438032Speter Strip off any existing trailing dot on names during $[ ... $] 730538032Speter lookup. This prevents it from ending up with two dots 730638032Speter on the end of dot terminated names. From Wesley Craig 730738032Speter of the University of Michigan and Bryan Costales of ICSI. 730838032Speter Clean up file class reading so that the debugging information is 730938032Speter more informative. It hadn't been using setclass, so you 731038032Speter didn't see the class items being added. 731138032Speter Avoid core dump if you are running a version of sendmail where 731238032Speter NIS is compiled in, and you specify an NIS map, but 731338032Speter NIS is not running. Fix from John Oleynick of 731438032Speter Rutgers. 731538032Speter Diagnose bizarre case where res_search returns a failure value, 731638032Speter but sets h_errno to a success value. 731738032Speter Make sure that "too many hops" messages are considered important 731838032Speter enough to send an error to the Postmaster (that is, the 731938032Speter address specified in the P option). This fix should 732038032Speter help problems that cause the df file to be left around 732138032Speter sometimes -- unfortunately, I can't seem to reproduce 732238032Speter the problem myself. 732338032Speter Avoid core dump (null pointer reference) on EXPN command; this 732438032Speter only occurred if your log level was set to 10 or higher 732538032Speter and the target account was an alias or had a .forward file. 732638032Speter Problem noted by Janne Himanka. 732738032Speter Avoid "denial of service" attacks by someone who is flooding your 732838032Speter SMTP port with bad commands by shutting the connection 732938032Speter after 25 bad commands are issued. From Kyle Jones of 733038032Speter UUNET. 733138032Speter Fix core dump on error messages with very long "to" buffers; 733238032Speter fmtmsg overflows the message buffer. Fixed by trimming 733338032Speter the to address to 203 characters. Problem reported by 733438032Speter John Oleynick. 733538032Speter Fix configuration for HASFLOCK -- there were some spots where 733638032Speter a #ifndef was incorrectly #ifdef. Pointed out by 733738032Speter George Baltz of the University of Maryland. 733838032Speter Fix a typo in savemail() that could cause the error message To: 733938032Speter lists to be incorrect in some places. From Motonori 734038032Speter Nakamura. 734138032Speter Fix a glitch that can cause duplicate error messages on split 734238032Speter envelopes where an address on one of the lists has a 734338032Speter name server failure. Fix from Voradesh Yenbut of the 734438032Speter University of Washington. 734538032Speter Fix possible bogus pointer reference on ESMTP parameters that 734638032Speter don't have an ``=value'' part. 734738032Speter CNAME loops caused an error message to be generated, but also 734838032Speter re-queued the message. Changed to just re-queue the 734938032Speter message (it's really hard to just bounce it because 735038032Speter of the weird way the name server works in the presence 735138032Speter of CNAME loops). Problem noted by James M.R.Matheson 735238032Speter of Cambridge University. 735338032Speter Avoid giving ``warning: foo owned process doing -bs'' messages 735438032Speter if they use ``MAIL FROM:<foo>'' where foo is their true 735538032Speter user name. Suggested by Andreas Stolcke of ICSI. 735638032Speter Change the NAMED_BIND compile flag to be a 0/1 flag so you can 735738032Speter override it easily in the Makefile -- that is, you can 735838032Speter turn it off using -DNAMED_BIND=0. 735938032Speter If a gethostbyname(...) of an address with a trailing dot fails, 736038032Speter try it without the trailing dot. This is because if 736138032Speter you have a version of gethostbyname() that falls back 736238032Speter to NIS or the /etc/hosts file it will fail to find 736338032Speter perfectly reasonable names that just don't happen to 736438032Speter be dot terminated in the hosts file. You don't want to 736538032Speter strip the dot first though because we're trying to ensure 736638032Speter that country names that match one of your subdomains get 736738032Speter a chance. 736838032Speter PRALIASES: fix bogus output on non-null-terminated strings. 736938032Speter From Bill Gianopoulos of Raytheon. 737038032Speter CONFIG: Avoid rewriting anything that matches $w to be $j. 737138032Speter This was in code intended to only catch the self-literal 737238032Speter address (that is, [1.2.3.4], where 1.2.3.4 is your 737338032Speter IP address), but the code was broken. However, it will 737438032Speter still do this if $M is defined; this is necessary to 737538032Speter get client configurations to work (sigh). Note that this 737638032Speter means that $M overrides :mailname entries in the user 737738032Speter database! Problem noted by Paul Southworth. 737838032Speter CONFIG: Fix definition of Solaris help file location. From 737938032Speter Steve Cliffe <steve@gorgon.cs.uow.edu.au>. 738038032Speter CONFIG: Fix bug that broke news.group.USENET mappings. 738138032Speter CONFIG: Allow declaration of SMTP_MAILER_MAX, FAX_MAILER_MAX, 738238032Speter and USENET_MAILER_MAX to tweak the maximum message 738338032Speter size for various mailers. 738438032Speter CONFIG: Change definition of USENET_MAILER_ARGS to include argv[0] 738538032Speter instead of assuming that it is "inews" for consistency 738638032Speter with other mailers. From Michael Corrigan of UC San Diego. 738738032Speter CONFIG: When mail is forwarded to a LOCAL_RELAY or a MAIL_HUB, 738838032Speter qualify the address in the SMTP envelope as user@{relay|hub} 738938032Speter instead of user@$j. From Bill Wisner of The Well. 739038032Speter CONFIG: Fix route-addr syntax in nullrelay configuration set. 739138032Speter CONFIG: Don't turn off case mapping of user names in the local 739238032Speter mailer for IRIX. This was different than most every other 739338032Speter system. 739438032Speter CONFIG: Avoid infinite loops on certainly list:; syntaxes in 739538032Speter envelope. Noted by Thierry Besancon 739638032Speter <besancon@excalibur.ens.fr>. 739738032Speter CONFIG: Don't include -z by default on uux line -- most systems 739838032Speter don't want it set by default. Pointed out by Philippe 739938032Speter Michel of Thomson CSF. 740038032Speter CONFIG: Fix some bugs with mailertables -- for example, if your 740138032Speter host name was foo.bar.ray.com and you matched against 740238032Speter ".ray.com", the old implementation bound %1 to "bar" 740338032Speter instead of "foo.bar". Also, allow "." in the mailertable 740438032Speter to match anything -- essentially, take over SMART_HOST. 740538032Speter This also moves matching of explicit local host names 740638032Speter before the mailertable so they don't have to be special 740738032Speter cased in the mailertable data. Reported by Bill 740838032Speter Gianopoulos of Raytheon; the fix for the %1 binding 740938032Speter problem was contributed by Nicholas Comanos of the 741038032Speter University of Sydney. 741138032Speter CONFIG: Don't include "root" in class $=L (users to deliver 741238032Speter locally, even if a hub or relay exists) by default. 741338032Speter This is because of the known bug where definition of 741438032Speter both a LOCAL_RELAY and a MAIL_HUB causes $=L to ignore 741538032Speter both and deliver into the local mailbox. 741638032Speter CONFIG: Move up bitdomain and uudomain handling so that they 741738032Speter are done before .UUCP class matching; uudomain was 741838032Speter reported as ineffective before. This also frees up 741938032Speter diversion 8 for future use. Problem reported by Kimmo 742038032Speter Suominen. 742138032Speter CONFIG: Don't try to convert dotted IP address (e.g., [1.2.3.4]) 742238032Speter into host names. As pointed out by Jonathan Kamens, 742338032Speter these are often used because either the forward or reverse 742438032Speter mapping is broken; this translation makes it broken again. 742538032Speter DOC: Clarify $@ and $: in the Install & Op Guide. From Kimmo 742638032Speter Suominen. 742738032Speter Portability fixes: 742838032Speter Unicos from David L. Kensiski of Sterling Software. 742938032Speter DomainOS from Don Lewis of Silicon Systems. 743038032Speter GNU m4 1.0.3 from Karst Koymans of Utrecht University. 743138032Speter Convex from Kimmo Suominen <kim@tac.nyc.ny.us>. 743238032Speter NetBSD from Adam Glass <glass@sun-lamp.cs.berkeley.edu>. 743338032Speter BSD/386 from Tony Sanders of BSDI. 743438032Speter Apollo from Eric Wassenaar. 743538032Speter DGUX from Doug Anderson. 743638032Speter Sequent DYNIX/ptx 2.0 from Tim Wright of Sequent. 743738032Speter NEW FILES: 743838032Speter src/Makefile.DomainOS 743938032Speter src/Makefile.PTX 744038032Speter src/Makefile.SunOS.5.1 744138032Speter src/Makefile.SunOS.5.2 744238032Speter src/Makefile.SunOS.5.x 744338032Speter src/mailq.1 744438032Speter cf/ostype/domainos.m4 744538032Speter doc/op/Makefile 744638032Speter doc/intro/Makefile 744738032Speter doc/usenix/Makefile 744838032Speter 744964562Sgshapiro8.6.5/8.6.5 1994/01/13 745038032Speter Security fix: /.forward could be owned by anyone (the test 745138032Speter to allow root to own any file was backwards). From 745238032Speter Bob Campbell at U.C. Berkeley. 745338032Speter Security fix: group ids were not completely set when programs 745438032Speter were invoked. This caused programs to have group 745538032Speter permissions they should not have had (usually group 745638032Speter daemon instead of their own group). In particular, 745738032Speter Perl scripts would refuse to run. 745838032Speter Security: check to make sure files that are written are not 745938032Speter symbolic links (at least under some circumstances). 746038032Speter Although this does not respond to a specific known 746138032Speter attack, it's just a good idea. Suggested by 746238032Speter Christian Wettergren. 746338032Speter Security fix: if a user had an NFS mounted home directory on 746438032Speter a system with a restricted shell listed in their 746538032Speter /etc/passwd entry, they could still execute any 746638032Speter program by putting that in their .forward file. 746738032Speter This fix prevents that by insisting that their shell 746838032Speter appear in /etc/shells before allowing a .forward to 746938032Speter execute a program or write a file. You can disable 747038032Speter this by putting "*" in /etc/shells. It also won't 747138032Speter permit world-writable :include: files to reference 747238032Speter programs or files (there's no way to disable this). 747343730Speter These behaviors are only one level deep -- for 747438032Speter example, it is legal for a world-writable :include: 747538032Speter file to reference an alias that writes a file, on 747638032Speter the assumption that the alias file is well controlled. 747738032Speter Security fix: root was not treated suspiciously enough when 747838032Speter looking into subdirectories. This would potentially 747938032Speter allow a cracker to examine files that were publicly 748038032Speter readable but in a non-publicly searchable directory. 748138032Speter Fix a problem that causes an error on QUIT on a cached 748238032Speter connection to create problems on the current job. 748338032Speter These are typically unrelated, so errors occur in 748438032Speter the wrong place. 748538032Speter Reset CurrentLA in sendall() -- this makes sendmail queue 748638032Speter runs more responsive to load average, and fixes a 748738032Speter problem that ignored the load average in locally 748838032Speter generated mail. From Eric Wassenaar. 748938032Speter Fix possible core dump on aliases with null LHS. From 749038032Speter John Orthoefer of BB&N. 749138032Speter Revert to using flock() whenever possible -- there are just 749238032Speter too many bugs in fcntl() locking, particularly over 749338032Speter NFS, that cause sendmail to fail in perverse ways. 749438032Speter Fix a bug that causes the connection cache to get confused 749538032Speter when sending error messages. This resulted in 749638032Speter "unexpected close" messages. It should fix itself 749738032Speter on the following queue run. Problem noted by 749838032Speter Liudvikas Bukys of the University of Rochester. 749938032Speter Include $k in $=k as documented in the Install & Op Guide. 750038032Speter This seems odd, but it was documented.... From 750138032Speter Michael Corrigan of UCSD. 750238032Speter Fix problem that caused :include:s from alias files to be 750338032Speter forced to be owned by root instead of daemon 750438032Speter (actually DefUid). From Tim Irvin. 750538032Speter Diagnose unrecognized I option values -- from Mortin Forssen 750638032Speter of the Chalmers University of Technology. 750738032Speter Make "error" mailer work consistently when there is no error 750838032Speter code associated with it -- previously it returned OK 750938032Speter even though there was a real problem. Now it assumes 751038032Speter EX_UNAVAILABLE. 751138032Speter Fix bug that caused the last header line of messages that had 751238032Speter no body and which were terminated with EOF instead of 751338032Speter "." to be discarded. Problem noted by Liudvikas Bukys. 751438032Speter Fix core dump on SMTP mail to programs that failed -- it tried 751538032Speter to go to a "next MX host" when none existed, causing 751638032Speter a core dump. From der Mouse at McGill University. 751738032Speter Change IDENTPROTO from a defined/not defined to a 0/1 switch; 751838032Speter this makes it easier to turn it off (using 751938032Speter -DIDENTPROTO=0 in the Makefile). From der Mouse. 752038032Speter Fix YP_MASTER_NAME store to use the unupdated result of 752138032Speter gethostname() (instead of myhostname(), which tries 752238032Speter to fully qualify the name) to be consistent with 752338032Speter SunOS. If your hostname is unqualified, this fixes 752438032Speter transfers to slave servers. Bug noted by Keith 752538032Speter McMillan of Ameritech Services, Inc. 752638032Speter Fix Ultrix problem: gethostbyname() can return a very large 752738032Speter (> 500) h_length field, which causes the sockaddr 752838032Speter to be trashed. Use the size of the sockaddr instead. 752938032Speter Fix from Bob Manson of Ohio State. 753038032Speter Don't assume "-a." on host lookups if NAMED_BIND is not 753138032Speter defined -- this confuses gethostbyname on hosts 753238032Speter file lookups, which doesn't understand the trailing 753338032Speter dot convention. 753438032Speter Log SMTP server subprocesses that die with a signal instead 753538032Speter of from a clean exit. 753638032Speter If you don't have option "I" set, don't assume that a DNS 753738032Speter "host unknown" message is authoritative -- it 753838032Speter might still be found in /etc/hosts. 753938032Speter Fix a problem that would cause Deferred: messages to be sent 754038032Speter as the subject of an error message, even though the 754138032Speter actual cause of a message was more severe than that. 754238032Speter Problem noted by Chris Seabrook of OSSI. 754338032Speter Fix race condition in DBM alias file locking. From Kyle 754438032Speter Jones of UUNET. 754538032Speter Limit delivery syslog line length to avoid bugs in some 754638032Speter versions of syslog(3). This adds a new compile time 754738032Speter variable SYSLOG_BUFSIZE. From Jay Plett of Princeton 754838032Speter University, which is in turn derived from IDA. 754938032Speter Fix quotes inside of comments in addresses -- previously 755038032Speter it insisted that they be balanced, but the 822 spec 755138032Speter says that they should be ignored. 755238032Speter Dump open file state to syslog upon receiving SIGUSR1 (for 755338032Speter debugging). This also evaluates ruleset 89, if set 755438032Speter (with the null input), and logs the result. This 755538032Speter should be used sparingly, since the rewrite process 755638032Speter is not reentrant. 755738032Speter Change -qI, -qR, and -qS flags to be case-insensitive as 755838032Speter documented in the Bat Book. 755938032Speter If the mailer returned EX_IOERR or EX_OSERR, sendmail did not 756038032Speter return an error message and did not requeue the message. 756138032Speter Fix based on code from Roland Dirlewanger of 756238032Speter Reseau Regional Aquarel, Bordeaux, France. 756338032Speter Fix a problem that caused a seg fault if you got a 421 error 756438032Speter code during some parts of connection initialization. 756538032Speter I've only seen this when talking to buggy mailers on 756638032Speter the other end, but it shouldn't give a seg fault in 756738032Speter any case. From Amir Plivatsky. 756838032Speter Fix core dump caused by a ruleset call that returns null. 756938032Speter Fix from Bryan Costales of ICSI. 757038032Speter Full-Name: field was being ignored. Fix from Motonori Nakamura 757138032Speter of Kyoto University. 757238032Speter Fix a possible problem with very long input lines in setproctitle. 757338032Speter From P{r Emanuelsson. 757438032Speter Avoid putting "This is a warning message" out on return receipts. 757538032Speter Suggested by Douglas Anderson. 757638032Speter Detect loops caused by recursive ruleset calls. Suggested by 757738032Speter Bryan Costales. 757838032Speter Initialize non-alias maps during alias rebuilds -- they may be 757938032Speter needed for parsing. Problem noted by Douglas Anderson. 758038032Speter Log sender address even if no message was collected in SMTP 758138032Speter (e.g., if all RCPTs failed). Suggested by Motonori 758238032Speter Nakamura. 758338032Speter Don't reflect the owner-list contents into the envelope sender 758438032Speter address if the value contains ", :, /, or | (to avoid 758538032Speter illegal addresses appearing there). 758638032Speter Efficiency hack for toktype macro -- from Craig Partridge of 758738032Speter BB&N. 758838032Speter Clean up DNS error printing so that a host name is always 758938032Speter included. 759038032Speter Remember to set $i during queue runs. Reported by Stephen 759138032Speter Campbell of Dartmouth University. 759238032Speter If the environment variable HOSTALIASES is set, use it during 759338032Speter canonification as the name of a file with per-user host 759438032Speter translations so that headers are properly mapped. Reported 759538032Speter by Anne Bennett of Concordia University. 759638032Speter Avoid printing misleading error message if SMTP mailer (not 759738032Speter using [IPC]) should die on a core dump. 759838032Speter Avoid incorrect diagnosis of "file 1 closed" when it is caused 759938032Speter by the other end closing the connection. From 760038032Speter Dave Morrison of Oracle. 760138032Speter Improve several of the error messages printed by "mailq" 760238032Speter to include a host name or other useful information. 760338032Speter Add NetInfo preliminary support for NeXT systems. From Vince 760438032Speter DeMarco. 760538032Speter Fix a glitch that sometimes caused :include:s that pointed to 760638032Speter NFS filesystems that were down to give an "aliasing/ 760738032Speter forwarding loop broken" message instead of queueing 760838032Speter the message for retry. Noted by William C Fenner of 760938032Speter the NRL Connection Machine Facility. 761038032Speter Fix a problem that could cause a core dump if the input sequence 761138032Speter had (or somehow acquired) a \231 character. 761238032Speter Make sure that route-addrs always have <angle brackets> around 761338032Speter them in non-SMTP envelopes (SMTP envelopes already do 761438032Speter this properly). 761538032Speter Avoid weird headers on unbalanced punctuation of the form: 761638032Speter ``Joe User <user)'' -- this caused reference to the 761738032Speter null macro. Fix from Rick McCarty of IO.COM. 761838032Speter Fix a problem that caused an alias "user: user@local.host" to 761938032Speter not have the QNOTREMOTE bit set; this caused configs 762038032Speter to act as if FEATURE(notsticky) was defined even when 762138032Speter it was not. The effect of the problem was to make it 762238032Speter very hard to to set up satellite sites that had a few 762338032Speter local accounts, with everything else forwarded to a 762438032Speter corporate hub. Reported by Detlef Drewanz of the 762538032Speter University of Rostock and Mark Frost of NCD. 762638032Speter Change queuing to not call rulesets 3, {1 or 2}, 4 on header 762738032Speter addresses. This is more efficient (fewer name server 762838032Speter calls) and fixes certain unusual configurations, such 762938032Speter as those that have ruleset 4 do something that is 763038032Speter non-idempotent unless a mailer-specific ruleset did 763138032Speter something else. Problem reported by Brian J. Coan 763238032Speter of the Institute for Global Communications. 763338032Speter Fix the "obsolete argument" routine in main to better understand 763438032Speter new arguments. For example, if you used ``sendmail 763538032Speter -C config -v -q'' it would choke on the -q because 763638032Speter the -C would stop looking for old-format arguments. 763738032Speter Fix the code that was intended to allow two users to forward their 763838032Speter mail to the same program and have them appear unique. 763938032Speter Portability fixes for: 764038032Speter SCO UNIX from Murray Kucherawy. 764138032Speter SCO Open Server 3.2v4 from Philippe Brand. 764238032Speter System V Release 4 from Rick Ellis and others. 764338032Speter OSF/1 from Steve Campbell. 764438032Speter DG/UX from Ben Mesander of the USGS and Bryan Curnutt 764538032Speter of Stoner Associates. 764638032Speter Motorola SysV88 from Kevin Johnson of Motorola. 764738032Speter Solaris 2.3 from Casper H.S. Dik of the University 764838032Speter of Amsterdam and John Caruso of University 764938032Speter of Maryland. 765038032Speter FreeBSD from Ollivier Robert. 765138032Speter NetBSD from Adam Glass. 765238032Speter TitanOS from Kate Hedstrom of Rutgers University. 765338032Speter Irix from Bryan Curnutt. 765438032Speter Dynix from Jim Davis of the University of Arizona. 765538032Speter RISC/os. 765638032Speter Linux from John Kennedy of California State University 765738032Speter at Chico. 765838032Speter Solaris 2.x from Tony Boner of the U.S. Air Force. 765938032Speter NEXTSTEP 3.x from Vince DeMarco. 766038032Speter HP-UX from various people. NOTA BENE: the location 766138032Speter of the config file has moved to /usr/lib 766238032Speter to match the HP-UX version of sendmail. 766338032Speter CONFIG: Don't do any recipient rewriting on relay mailer; 766438032Speter since this is intended only for internal use, the 766538032Speter usual RFC 821/822/1123 rules can be relaxed. The 766638032Speter main point of this is to avoid munging (ugh) UUCP 766738032Speter addresses when relaying internally. 766838032Speter CONFIG: fix typo in mailer/uucp.m4 that mutilates list:; 766938032Speter syntax addresses delivered via UUCP. Solution 767038032Speter provided by Peter Wemm. 767138032Speter CONFIG: fix thumb-fumble in default UUCP relaying in ruleset 767238032Speter zero; it caused double @ signs in addresses. From 767338032Speter Irving Reid of the University of Toronto. 767438032Speter CONFIG: Portability fixes for SCO Unix 3.2 with TCP/IP 1.2.1 767538032Speter from Markku Toijala of ICL Personal Systems Oy. 767638032Speter CONFIG: Add trailing "." on pseudo-domains for consistency; 767738032Speter this fixes a problem (noted by Al Whaley of Sunnyside) 767838032Speter that made it hard to recognize your own pseudodomain 767938032Speter names. 768038032Speter CONFIG: catch "@host" syntax errors (i.e., null local-parts) 768138032Speter rather than letting them get "local configuration 768238032Speter error"s. Problem noted by John Gardiner Myers. 768338032Speter CONFIG: add uucp-uudom mailer variant, based on code posted 768438032Speter by Spider Boardman <spider@Orb.Nashua.NH.US>; this 768538032Speter has uucp-dom semantics but old UUCP syntax. This 768638032Speter also permits "uucp-old" as an alias for "uucp" and 768738032Speter "uucp-new" as a synonym for "suucp" for consistency. 768838032Speter CONFIG: add POP mailer support (from Kimmo Suominen 768938032Speter <kim@grendel.lut.fi>). 769038032Speter CONFIG: drop CSNET_RELAY support -- CSNET is long gone. 769138032Speter CONFIG: fix bug caused with domain literal addresses (e.g., 769238032Speter ``[128.32.131.12]'') when FEATURE(allmasquerade) 769338032Speter was set; it would get an additional @masquerade.host 769438032Speter added to the address. Problem noted by Peter Wan 769538032Speter of Georgia Tech. 769638032Speter CONFIG: make sure that the local UUCP name is in $=w. From 769738032Speter Jim Murray of Stratus. 769838032Speter CONFIG: changes to UUCP rewriting to simulate IDA-style "V" 769938032Speter mailer flag. Briefly, if you are sending to host 770038032Speter "foo", then it rewrites "foo!...!baz" to "...!baz", 770138032Speter "foo!baz" remains "foo!baz", and anything else has 770238032Speter the local name prepended. 770338032Speter CONFIG: portability fixes for HP-UX. 770438032Speter DOC: several minor problems fixed in the Install & Op Guide. 770538032Speter MAKEMAP: fix core dump problem on lines that are too long or 770638032Speter which lack newline. From Mark Delany. 770738032Speter MAILSTATS: print sums of columns (total messages & kbytes 770838032Speter in and out of the system). From Tom Ferrin of UC 770938032Speter San Francisco Computer Graphics Lab. 771038032Speter SIGNIFICANT USER- OR SYSAD-VISIBLE CHANGES: 771138032Speter On HP-UX, /etc/sendmail.cf has been moved to 771238032Speter /usr/lib/sendmail.cf to match HP sendmail. 771338032Speter Permissions have been tightened up on world-writable 771438032Speter :include: files and accounts that have shells 771538032Speter that are not listed in /etc/shells. This may 771638032Speter cause some .forward files that have worked 771738032Speter before to start failing. 771838032Speter SIGUSR1 dumps some state to the log. 771938032Speter NEW FILES: 772038032Speter src/Makefile.DGUX 772138032Speter src/Makefile.Dynix 772238032Speter src/Makefile.FreeBSD 772338032Speter src/Makefile.Mach386 772438032Speter src/Makefile.NetBSD 772538032Speter src/Makefile.RISCos 772638032Speter src/Makefile.SCO 772738032Speter src/Makefile.SVR4 772838032Speter src/Makefile.Titan 772938032Speter cf/mailer/pop.m4 773038032Speter cf/ostype/bsdi1.0.m4 773138032Speter cf/ostype/dgux.m4 773238032Speter cf/ostype/dynix3.2.m4 773338032Speter cf/ostype/sco3.2.m4 773438032Speter makemap/Makefile.dist 773538032Speter praliases/Makefile.dist 773638032Speter 773764562Sgshapiro8.6.4/8.6.4 1993/10/31 773838032Speter Repair core-dump problem (write to read-only memory segment) 773938032Speter if you fall back to the return-to-Postmaster case in 774038032Speter savemail. Problem reported by Richard Liu. 774138032Speter Immediately diagnose bogus sender addresses in SMTP. This 774238032Speter makes quite certain that crackers can't use this 774338032Speter class of attack. 774438032Speter Reliability Fix: check return value from fclose() and fsync() 774538032Speter in a few critical places. 774638032Speter Minor problem in initsys() that reversed a condition for 774738032Speter redirecting the output channel on queue runs. It's 774838032Speter not clear this code even does anything. From Eric 774938032Speter Wassenaar of the Dutch National Institute for Nuclear 775038032Speter and High-Energy Physics. 775138032Speter Fix some problems that caused queue runs to do "too much work", 775238032Speter such as double-reading the Errors-To: header. From 775338032Speter Eric Wassenaar. 775438032Speter Error messages on writing the temporary file (including the 775538032Speter data file) were getting suppressed in SMTP -- this 775638032Speter fix causes them to be properly reported. From Eric 775738032Speter Wassenaar. 775838032Speter Some changes to support AF_UNIX sockets -- this will only 775938032Speter really become relevant in the next release, but some 776038032Speter people need it for local patches. From Michael 776138032Speter Corrigan of UC San Diego. 776238032Speter Use dynamically allocated memory (instead of static buffers) 776338032Speter for macros defined in initsys() and settime(); since 776438032Speter these can have different values depending on which 776538032Speter envelope they are in. From Eric Wassenaar. 776638032Speter Improve logging to show ctladdr on to= logging; this tells you 776738032Speter what uid/gid processes ran as. 776838032Speter Fix a problem that caused error messages to be discarded if 776938032Speter the sender address was unparseable for some reason; 777038032Speter this was supposed to fall back to the "return to 777138032Speter postmaster" case. 777238032Speter Improve aliaswait backoff algorithm. 777338032Speter Portability patches for Linux (8.6.3 required another header 777438032Speter file) (from Karl London) and SCO UNIX. 777538032Speter CONFIG: patch prog mailer to not strip host name off of envelope 777638032Speter addresses (so that it matches local again). From 777738032Speter Christopher Davis. 777838032Speter CONFIG: change uucp-dom mailer so that "<>" translates to $n; 777938032Speter this prevents uux from seeing lines with null names like 778038032Speter ``From Sat Oct 30 14:55:31 1993''. From Motonori 778138032Speter Nakamura of Kyoto University. 778238032Speter CONFIG: handle <list:;> syntax correctly. This isn't legal, but 778338032Speter it shouldn't fail miserably. From Motonori Nakamura. 778438032Speter 778564562Sgshapiro8.6.2/8.6.2 1993/10/15 778638032Speter Put a "successful delivery" message in the transcript for 778738032Speter addresses that get return-receipts. 778838032Speter Put a prominent "this is only a warning" message in warning 778938032Speter messages -- some people don't read carefully enough 779038032Speter and end up sending the message several times. 779138032Speter Include reason for temporary failure in the "warning" return 779238032Speter message. Currently, it just says "cannot send for 779338032Speter four hours". 779438032Speter Fix the "Original message received" time generated for 779538032Speter returntosender messages. It was previously listed as 779638032Speter the current time. Bug reported by Eric Hagberg of 779738032Speter Cornell University Medical College. 779838032Speter If there is an error when writing the body of a message, 779938032Speter don't send the trailing dot and wait for a response 780038032Speter in sender SMTP, as this could cause the connection to 780138032Speter hang up under some bizarre circumstances. From Eric 780238032Speter Wassenaar. 780338032Speter Fix some server SMTP synchronization problems caused when 780438032Speter connections fail during message collection. From 780538032Speter Eric Wassenaar. 780638032Speter Fix a problem that can cause srvrsmtp to reject mail if the 780738032Speter name server is down -- it accepts the RCPT but rejects 780838032Speter the DATA command. Problem reported by Jim Murray of 780938032Speter Stratus. 781038032Speter Fix a problem that can cause core dumps if the config file 781138032Speter incorrectly resolves to a null hostname. Reported by 781238032Speter Allan Johannesen of WPI. 781338032Speter Non-root use of -C flag, dangerous -f flags, and use of -oQ 781438032Speter by non-root users were not put into 781538032Speter X-Authentication-Warning:s as intended because the 781643730Speter config file hadn't set the PrivacyOptions yet. Fix 781738032Speter from Sven-Ove Westberg of the University of Lulea. 781838032Speter Under very odd circumstances, the alias file rebuild code 781938032Speter could get confused as to whether a database was 782038032Speter open or not. 782138032Speter Check "vendor code" on the end of V lines -- this is 782238032Speter intended to provide a hook for vendor-specific 782338032Speter configuration syntax. (This is a "new feature", 782438032Speter but I've made an exception to my rule in a belief 782538032Speter that this is a highly exceptional case.) 782638032Speter Portability fixes for DG/UX (from Douglas Anderson of NCSC), 782738032Speter SCO Unix (from Murray Kucherawy), A/UX, and OSF/1 782838032Speter (from Jon Forrest of UC Berkeley) 782938032Speter CONFIG: fix ``mailer:host'' form of UUCP relay naming. 783038032Speter 783164562Sgshapiro8.6.1/8.6 1993/10/08 783238032Speter Portability fixes for A/UX and Encore UMAX V. 783338032Speter Fix error message handling -- if you had a name server down 783438032Speter causing an error during parsing, that message was never 783538032Speter propagated to the queue file. 783638032Speter 783764562Sgshapiro8.6/8.6 1993/10/05 783838032Speter Configuration cleanup: make it easier to undo IDENTPROTO in 783938032Speter conf.h (other systems have the same bug). 784038032Speter If HASGETDTABLESIZE and _SC_OPEN_MAX are both defined, assume 784138032Speter getdtablesize() instead of sysconf(); a disturbingly 784238032Speter large number of systems defined _SC_OPEN_MAX in the 784338032Speter header files but don't have the syscall. 784438032Speter Another patch to really truly ignore MX records in getcanonname 784538032Speter if trymx == FALSE. 784638032Speter Fix problem that caused the "250 IAA25499 Message accepted for 784738032Speter delivery" message to be omitted if there was an error 784838032Speter in the header of the message (e.g., a bad Errors-To: 784938032Speter line). Pointed out by Michael Corrigan of UCSD. 785038032Speter Announce name of host we are chatting when we get errors; this 785138032Speter is an IDA-ism suggested by Christophe Wolfhugel. 785238032Speter Portability fixes for Alpha OSF/1 (from Anthony Baxter of the 785338032Speter Australian Artificial Intelligence Institute), SCO Unix 785438032Speter (from Murray Kucherawy of Hookup Communication Corp.), 785538032Speter NeXT (from Vince DeMarco and myself), Linux (from 785638032Speter Karl London <karl@borg.demon.co.uk>), BSDI (from 785738032Speter Christophe Wolfhugel, and SVR4 on Dell (from Kimmo 785838032Speter Suominen), AUX 3.0 on Macintosh, and ANSI C compilers. 785938032Speter Some changes to get around gcc optimizer bugs. From Takahiro 786038032Speter Kanbe. 786138032Speter Fix error recovery in queueup if another tf file of the same 786238032Speter name already exists. Problem stumbled over by Bill 786338032Speter Wisner of The Well. 786438032Speter Output YP_MASTER_NAME and YP_LAST_MODIFIED without null bytes. 786538032Speter Problem noted by Keith McMillan of Ameritech Services. 786638032Speter Deal with group permissions properly when opening .forward and 786738032Speter :include: files. This relaxes the 8.1C restrictions 786838032Speter slightly more. This includes proper setting of groups 786938032Speter when reading :include: files, allowing you to read some 787038032Speter files that you should be able to read but have previously 787138032Speter been denied unless you owned them or they had "other" 787238032Speter read permission. 787338032Speter Make certain that $j is in $=w (after the .cf is read) so that 787438032Speter if the user is forced to override some silly system, 787538032Speter MX suppression will still work. 787638032Speter Fix a couple of efficiency problems where newstr was double- 787738032Speter calling expensive routines. In at least one case, it 787838032Speter wasn't guaranteed that they would always return the 787938032Speter same result. Problem noted by Christophe Wolfhugel. 788038032Speter Fix null pointer dereference in putoutmsg -- only on an error 788138032Speter condition from a non-SMTP mailer. From Motonori 788238032Speter Nakamura. 788338032Speter Macro expand "C" line class definitions before scanning so that 788438032Speter "CX $Z" works. 788538032Speter Fix problem that caused error message to be sent while still 788638032Speter trying to send the original message if the connection 788738032Speter is closed during a DATA command after getting an error 788838032Speter on an RCPT command (pretty obscure). Problem reported 788938032Speter by John Myers of CMU. 789038032Speter Fix reply to NOOP to be 250 instead of 200 -- this is a long 789138032Speter term bug. 789238032Speter Fix a nasty bug causing core dumps when returning the "warning: 789338032Speter cannot deliver for N hours -- will keep trying" message; 789443730Speter it only occurred if you had PostmasterCopy set and 789538032Speter only on some architectures. Although sendmail would 789638032Speter keep trying, it would send error messages on each 789738032Speter queue interval. This is an important fix. 789838032Speter Allow u and g options to take user and group names respectively. 789938032Speter Don't do a chdir into the queue directory in -bt mode to make 790038032Speter ruleset testing a bit easier. 790138032Speter Don't allow users to turn off logging (using -oL) on the command 790238032Speter line -- command line can only raise, not lower, logging 790338032Speter level. 790438032Speter Set $u to the original recipient on the SMTP transaction or on 790538032Speter the command line. This is only done if there is exactly 790638032Speter one recipient. Technically, this does not meet the 790738032Speter specs, because it does not guarantee a domain on the 790838032Speter address. 790938032Speter Fix a problem that dumped error messages on bad addresses if 791038032Speter you used the -t flag. Problem noted by Josh Smith of 791138032Speter Harvey Mudd College. 791238032Speter Given an address such as ``<foo> <bar>'', auto-quote the first 791338032Speter ``<foo>'' part, giving ``"<foo>" <bar>''. This is to 791438032Speter avoid the problem of people who use angle brackets in 791538032Speter their full name information. 791638032Speter Fix a null pointer dereference if you set option "l", have 791738032Speter an Errors-To: header in the message, and have Errors-To: 791838032Speter defined in the config file H lines. From J.R. Oldroyd. 791938032Speter Put YPCOMPAT on #ifdef NIS instead -- it's one less thing to get 792038032Speter wrong when compiling. Suggested by Rick McCarty of TI. 792138032Speter Fix a problem that could pass negative SIZE parameter if the 792238032Speter df file got lost; this would cause servers to always 792338032Speter give a temporary failure, making the problem even worse. 792438032Speter Problem noted by Allan Johannesen of WPI. 792538032Speter Add "ident" timeout (one of the "r" option selectors) for IDENT 792638032Speter protocol timeouts (30s default). Requested by Murray 792738032Speter Kucherawy of HookUp Communication Corp. to handle bogus 792838032Speter PC TCP/IP implementations. 792938032Speter Change $w default definition to be just the first component of 793038032Speter the domain name on config level 5. The $j macro defaults 793138032Speter to the FQDN; $m remains as before. This lets well-behaved 793238032Speter config files use any of the short, long, or subdomain 793338032Speter names. 793438032Speter Add makesendmail script in src to try to automate multi-architecture 793538032Speter builds. I know, this is sub-optimal, but it is still 793638032Speter helpful. 793738032Speter Fix very obscure race condition that can cause a queue run to 793838032Speter get a queue file for an already completed job. This 793938032Speter problem has existed for years. Problem noted by the 794038032Speter long suffering Allan Johannesen of WPI. 794138032Speter Fix a problem that caused the raw sender name to be passed to 794238032Speter udbsender instead of the canonified name -- this caused 794338032Speter it to sometimes miss records that it should have found. 794438032Speter Relax check of name on HELO packet so that a program using -bs 794538032Speter that claims to be itself works properly. 794638032Speter Restore rewriting of $: part of address through 2, R, 4 in 794738032Speter buildaddr -- this requires passing a lot of flags to get 794838032Speter it right. Unlike old versions, this ONLY rewrites 794938032Speter recipient addresses, not sender addresses. 795038032Speter Fix a bug that caused core dumps in config files that cannot 795138032Speter resolve /file/name style addresses. Fix from Jonathan 795238032Speter Kamens of OpenVision Technologies. 795338032Speter Fix problem with fcntl locking that can cause error returns to 795438032Speter be lost if the lock is lost; this required fully 795538032Speter queueing everything, dropping the envelope (so errors 795638032Speter would get returned), and then re-reading the queue from 795738032Speter scratch. 795838032Speter Fix a problem that caused aliases that redefine an otherwise 795938032Speter true address to still send to the original address 796038032Speter if and only if the alias failed in certain bizarre 796138032Speter ways (e.g, if they pointed at a list:; syntax address). 796238032Speter Problem pointed out by Jonathan Kamens. 796338032Speter Remove support for frozen configuration files. They caused 796438032Speter more trouble than it was worth. 796538032Speter Fix problem that can cause error messages to get ignored when 796638032Speter using both -odb and -t flags. Problem noted by Rob 796738032Speter McNicholas at U.C. Berkeley. 796838032Speter Include all "normal" variations on hostname in $=w. For example, 796938032Speter if the host name is vangogh.cs.berkeley.edu, $=w will 797038032Speter contain vangogh, vangogh.cs, and vangogh.cs.berkeley.edu. 797138032Speter Add "restrictqrun" privacy flag -- without this, anyone can run 797238032Speter the queue. 797338032Speter Reset SmtpPhase global on initial connection creation so that 797438032Speter messages don't come out with stale information. 797538032Speter Pass an "ext" argument to lockfile so that error/log messages 797638032Speter will properly reflect the true filename being locked. 797738032Speter Put all [...] address forms into $=w -- this eliminates the need 797838032Speter for MAXIPADDR in conf.h. Suggested by John Gardiner 797938032Speter Myers of CMU. 798038032Speter Fix a bug that can cause qf files to be left around even after 798138032Speter an SMTP RSET command. Problem and fix from Michael 798238032Speter Corrigan. 798343730Speter Don't send a PostmasterCopy to errors when the Precedence: is 798438032Speter negative. Error reports still go to the envelope 798538032Speter sender address. 798638032Speter Add LA_SHORT for load averages. 798738032Speter Lock sendmail.st file when posting statistics. 798838032Speter Add "SendBufSize" and "RcvBufSize" suboptions to "O" option to 798938032Speter set the size of the TCP send and receive buffers; if you 799038032Speter run over a slow slip line you may need to set these down 799138032Speter (although it would be better to fix the SLIP implementation 799238032Speter so that it's not necessary to recompile every program 799338032Speter that does bulk data transfer). 799438032Speter Allow null defaults on $( ... $) lookups. Problem reported by 799538032Speter Amir Plivatsky. 799638032Speter Diagnose crufty S and V config lines. This resulted from an 799738032Speter observation that some people were using the SITE macro 799838032Speter without the SITECONFIG macro first, which was causing 799938032Speter bogus config files that were not caught. 800038032Speter Fix makemap -f flag to turn off case folding (it was turning it 800138032Speter on instead). THIS IS A USER VISIBLE CHANGE!!! 800238032Speter Fix a problem that caused multiple error messages to be sent if 800338032Speter you used "sendmail -t -oem -odb", your system uses fcntl 800438032Speter locking, and one of the recipient addresses is unknown. 800538032Speter Reset uid earlier in include() so that recursive .forwards or 800638032Speter :include:s don't use the wrong uid. 800738032Speter If file descriptor 0, 1, or 2 was closed when sendmail was 800838032Speter called, the code to recover the descriptor was broken. 800938032Speter This sometimes (only sometimes) caused problems with the 801038032Speter alias file. Fix from Motonori Nakamura. 801138032Speter Fix a problem that caused aliaswait to go into infinite recursion 801238032Speter if the @:@ metasymbol wasn't found in the alias file. 801338032Speter Improve error message on newaliases if database files cannot be 801438032Speter opened or if running with no database format defined. 801538032Speter Do a better estimation of the size of error messages when NoReturn 801638032Speter is set. Problem noted by P{r (Pell) Emanuelsson. 801738032Speter Fix a problem causing the "c" option (don't connect to expensive 801838032Speter mailers) to be ignored in SMTP. Problem noted and the 801938032Speter solution suggested by Robert Elz of The University of 802038032Speter Melbourne. 802138032Speter Improve connection caching algorithm by passing "[host]" to 802238032Speter hostsignature, which strips the square brackets and 802338032Speter returns the real name. This allows mailertable entries 802438032Speter to match regular entries. 802538032Speter Re-enable Return-Receipt-To: -- people seem to want this stupid 802638032Speter feature, even if it doesn't work right. 802738032Speter Catch and log attempts to try the "wiz" command in server SMTP. 802838032Speter This also ups the log level from LOG_NOTICE to LOG_CRIT. 802938032Speter Be more generous at assigning $z to the home directory -- do this 803038032Speter for programs that are specified through a .forward file. 803138032Speter Fix from Andrew Chang of Sun Microsystems. 803238032Speter Always save a fatal error message in preference to a non-fatal 803338032Speter error message so that the "subject" line of return 803438032Speter messages is the best possible. 803538032Speter CONFIG: reduce the number of quotes needed to quote configuration 803638032Speter parameters with commas: two quotes should work now, e.g., 803738032Speter define(ALIAS_FILE, ``/etc/aliases,/etc/aliases.local''). 803838032Speter CONFIG: class $=Z is a set of UUCP hosts that use uucp-dom 803938032Speter connections (domain-ized UUCP). 804038032Speter CONFIG: fix bug in default maps (-o must be before database file 804164562Sgshapiro name). Pointed out by Christophe Wolfhugel. 804238032Speter CONFIG: add FEATURE(nodns) to state that we are not relying on 804338032Speter DNS. This would presumably be used in UUCP islands. 804438032Speter CONFIG: add OSTYPE(nextstep) and OSTYPE(linux). 804538032Speter CONFIG: log $u in Received: line. This is in technical violation 804638032Speter of the standards, since it doesn't guarantee a domain 804738032Speter on the address. 804838032Speter CONFIG: don't assume "m" in local mailer flags -- this means that 804938032Speter if you redefine LOCAL_MAILER_FLAGS you will have to include 805038032Speter the "m" flag should you want it. Apparently some Solaris 2.2 805138032Speter installations can't handle multiple local recipients. 805238032Speter Problem noted by Josh Smith. 805338032Speter CONFIG: add confDOMAIN_NAME to set $j (if undefined, $j defaults). 805438032Speter CONFIG: change default version level from 4 to 5. 805538032Speter CONFIG: add FEATURE(nullclient) to create a config file that 805638032Speter forwards all mail to a hub without ever looking at the 805738032Speter addresses in any detail. 805838032Speter CONFIG: properly strip mailer: information off of relays when 805938032Speter used to change .BITNET form into %-hack form. 806038032Speter CONFIG: fix a problem that caused infinite loops if presented 806138032Speter with an address such as "!foo". 806238032Speter CONFIG: check for self literal (e.g., [128.32.131.12]) even if 806338032Speter the reverse "PTR" mapping is broken. There's a better 806438032Speter way to do this, but the change is fairly major and I 806538032Speter want to hold it for another release. Problem noted by 806638032Speter Bret Marquis. 806738032Speter 806864562Sgshapiro8.5/8.5 1993/07/23 806938032Speter Serious bug: if you used a command line recipient that was unknown 807038032Speter sendmail would not send a return message (it was treating 807138032Speter everything as though it had an SMTP-style client that 807238032Speter would do the return itself). Problem noted by Josh Smith. 807338032Speter Change "trymx" option in getcanonname() to ignore all MX data, 807438032Speter even during a T_ANY query. This actually didn't break 807538032Speter anything, because the only time you called getcanonname 807638032Speter with !trymx was if you already knew there were no MX 807738032Speter records, but it is somewhat cleaner. From Motonori 807838032Speter Nakamura. 807938032Speter Don't call getcanonname from getmxrr if you already know there 808038032Speter are no DNS records matching the name. 808138032Speter Fix a problem causing error messages to always include "The 808238032Speter original message was received ... from localhost". 808338032Speter The correct original host information is now included. 808438032Speter Previous change to cf/sh/makeinfo.sh doesn't port to Ultrix (their 808538032Speter version of "test" doesn't have the -x flag). Change it 808638032Speter to use -f instead. From John Myers. 808738032Speter CONFIG: 8.4 mistakenly set the default SMTP-style mailer to 808838032Speter esmtp -- it should be smtp. 808938032Speter CONFIG: send all relayed mail using confRELAY_MAILER (defaults 809038032Speter to "relay" (a variant of "smtp") if MAILER(smtp) is used, 809138032Speter else "suucp" if MAILER(uucp) is used, else "unknown"); 809238032Speter this cleans up the configs somewhat. This fixes a serious 809338032Speter problem that caused route-addrs to get mistaken as relays, 809438032Speter pointed out by John Myers. WARNING: this also causes 809538032Speter the default on SMART_HOST to change from "suucp" to 809638032Speter "relay" if you have MAILER(smtp) specified. 809738032Speter 809864562Sgshapiro8.4/8.4 1993/07/22 809938032Speter Add option `w'. If you receive a message that comes to you because 810038032Speter you are the best (lowest preference) target of an MX, and 810138032Speter you haven't explicitly recognized the source MX host in 810238032Speter your .cf file, this option will cause you to try the target 810338032Speter host directly (as if there were no MX for it at all). If 810438032Speter `w' is not set, this case is a configuration error. 810538032Speter Beware: if `w' is set, senders may get bogus errors like 810638032Speter "message timed out" or "host unknown" for problems that 810738032Speter are really configuration errors. This option is 810838032Speter disrecommended, provided only for compatibility with 810938032Speter UIUC sendmail. 811038032Speter Fix a problem that caused the incoming socket to be left open 811138032Speter when sendmail forks after the DATA command. This caused 811238032Speter calling systems to wait in FIN_WAIT_2 state until the 811338032Speter entire list was processed and the child closed -- a 811438032Speter potentially prodigious amount of time. Problem noted 811538032Speter by Neil Rickert. 811638032Speter Fix problem (created in 6.64) that caused mail sent to multiple 811738032Speter addresses, one of which was a bad address, to completely 811838032Speter suppress the sending of the message. This changes 811938032Speter handling of EF_FATALERRS somewhat, and adds an 812038032Speter EF_GLOBALERRS flag. This also fixes a potential problem 812138032Speter with duplicate error messages if there is a syntax error 812238032Speter in the header of a message that isn't noticed until late 812338032Speter in processing. Original problem pointed out by Josh Smith 812438032Speter of Harvey Mudd College. This release includes quite a bit 812538032Speter of dickering with error handling (see below). 812638032Speter Back out SMTP transaction if MAIL gets nested 501 error. This 812738032Speter will only hurt already-broken software and should help 812838032Speter humans. 812938032Speter Fix a problem that broke aliases when neither NDBM nor NEWDB were 813038032Speter compiled in. It would never read the alias file. 813138032Speter Repair unbalanced `)' and `>' (the "open" versions are already 813238032Speter repaired). 813338032Speter Logging of "done" in dropenvelope() was incorrect: it would 813438032Speter log this even when the queue file still existed. Change 813538032Speter this to only log "done" (at log level 11) when the 813638032Speter queue file is actually removed. From John Myers. 813738032Speter Log "lost connection" in server SMTP at log level 20 if there 813838032Speter is no pending transaction. Some senders just close the 813938032Speter connection rather than sending QUIT. 814038032Speter Fix a bug causing getmxrr to add a dot to the end of unqualified 814138032Speter domains that do not have MX records -- this would cause 814238032Speter the subsequent host name lookup to fail. The problem 814338032Speter only occurred if you had FEATURE(nocanonify) set. 814438032Speter Problem noted by Rick McCarty of Texas Instruments. 814538032Speter Fix invocation of setvbuf when passed a -X flag -- I had 814638032Speter unwittingly used an ANSI C extension, and this caused 814738032Speter core dumps on some machines. 814838032Speter Diagnose self-destructive alias loops on RCPT as well as EXPN. 814938032Speter Previously it just gave an empty send queue, which 815038032Speter then gave either "Need RCPT (recipient)" at the DATA 815138032Speter (confusing, since you had given an RCPT command which 815238032Speter returned 250) or just dropped the email, depending on 815338032Speter whether you were running VERBose mode. Now it usually 815438032Speter diagnoses this case as "aliasing/forwarding loop broken". 815538032Speter Unfortunately, it still doesn't adequately diagnose 815638032Speter some true error conditions. 815738032Speter Add internal concept of "warning messages" using 6xx codes. 815838032Speter These are not reported only to Postmaster. Unbalanced 815938032Speter parens, brackets, and quotes are printed as 653 codes. 816038032Speter They are always mapped to 5xx codes before use in SMTP. 816138032Speter Clean up error messages to tell both the actual address that 816238032Speter failed and the alias they arose from. This makes it 816338032Speter somewhat easier to diagnose problems. Difficulty noted 816438032Speter by Motonori Nakamura. 816538032Speter Fix a problem that inappropriately added a ctladdr to addresses 816638032Speter that shouldn't have had one during a queue run. This 816738032Speter caused error messages to be handled differently during 816838032Speter a queue run than a direct run. 816938032Speter Don't print the qf name and line number if you get errors during 817038032Speter the direct run of the queue from srvrsmtp -- this was 817138032Speter just extra stuff for users to crawl through. 817238032Speter Put command line flags on second line of pid file so you can 817338032Speter auto-restart the daemon with all appropriate arguments. 817438032Speter Use "kill `head -1 /etc/sendmail.pid`" to stop the 817538032Speter daemon, and "eval `tail -1 /etc/sendmail.pid`" to 817638032Speter restart it. 817738032Speter Remove the ``setuid(getuid())'' in main -- this caused the 817838032Speter IDENT daemon to screw up. This required that I change 817938032Speter HASSETEUID to HASSETREUID and complicate the mode 818038032Speter changing somewhat because both Ultrix and SunOS seem 818138032Speter to have a bug causing seteuid() to set the saved uid 818238032Speter as well as the effective. The program test/t_setreuid.c 818338032Speter will test to see if your implementation of setreuid(2) 818438032Speter is appropriately functional. 818538032Speter The FallBackMX (option V) handling failed to properly identify 818638032Speter fallback to yourself -- most of the code was there, 818738032Speter but it wasn't being enabled. Problem noted by Murray 818838032Speter Kucherawy of the University of Waterloo. 818938032Speter Change :include: open timeout from ETIMEDOUT to an internal 819038032Speter code EOPENTIMEOUT; this avoids adding "during SmtpPhase 819138032Speter with CurHostName" in error messages, which can be 819238032Speter confusing. Reported by Jonathan Kamens of OpenVision 819338032Speter Technologies. 819438032Speter Back out setpgrp (setpgid on POSIX systems) call to reset the 819538032Speter process group id. The original fix was to get around 819638032Speter some problems with recalcitrant MUAs, but it breaks 819738032Speter any call from a shell that creates a process group id 819838032Speter different from the process id. I could try to fix 819938032Speter this by diddling the tty owner (using tcsetpgrp or 820038032Speter equivalent) but this is too likely to break other 820138032Speter things. 820238032Speter Portability changes: 820338032Speter Support -M as equivalent to -oM on Ultrix -- apparently 820438032Speter DECnet calls sendmail with -MrDECnet -Ms<HOST> -bs 820538032Speter instead of using standard flags. Oh joy. This 820643730Speter behavior reported by Jon Giltner of University 820738032Speter of Colorado. 820838032Speter SGI IRIX -- this includes several changes that should 820938032Speter help other strict ANSI compilers. 821038032Speter SCO Unix -- from Murray Kucherawy of HookUp Communication 821138032Speter Corporation. 821238032Speter Solaris running the Sun C compiler (which despite the 821338032Speter documentation apparently doesn't define 821438032Speter __STDC__ by default). 821538032Speter ConvexOS from Eric Schnoebelen of Convex. 821638032Speter Sony NEWS workstations and Omron LUNA workstations from 821738032Speter Motonori Nakamura. 821838032Speter CONFIG: add confTRY_NULL_MX_LIST to set option `w'. 821938032Speter CONFIG: delete `C' and `e' from default SMTP mailers flags; 822038032Speter several people have made a good argument that this 822138032Speter creates more problems than it solves (although this 822238032Speter may prove painful in the short run). 822338032Speter CONFIG: generalize all the relays to accept a "mailer:host" 822438032Speter format. 822538032Speter CONFIG: move local processing in ruleset 0 into a new ruleset 822638032Speter 98 (8 on old sendmail). Domain literal [a.b.c.d] 822738032Speter addresses are also passed through this ruleset. 822838032Speter CONFIG: if neither SMART_HOST nor MAILER(smtp) were defined, 822938032Speter internet-style addresses would "fall off the end" of 823038032Speter ruleset zero and be interpreted as local -- however, 823138032Speter the angle brackets confused the recursive call. 823238032Speter These are now diagnosed as "Unrecognized host name". 823338032Speter CONFIG: USENET rules weren't included in S0 because of a mistaken 823438032Speter ifdef(`_MAILER_USENET_') instead of 823538032Speter ifdef(`_MAILER_usenet_'). Problem found by Rein Tollevik 823638032Speter of SINTEF RUNIT, Oslo. 823738032Speter CONFIG: move up LOCAL_RULE_0 processing so that it happens very 823838032Speter early in ruleset 0; this allows .mc authors to bypass 823938032Speter things like the "short circuit" code for local addresses. 824038032Speter Prompted by a comment by Bill Wisner of The Well. 824138032Speter CONFIG: add confSMTP_MAILER to define the mailer used (smtp or 824238032Speter esmtp) to send SMTP mail. This allows you to default 824338032Speter to esmtp but use a mailertable or other override to 824438032Speter deal with broken servers. This logic was pointed out 824538032Speter to me by Bill Wisner. Ditto for confLOCAL_MAILER. 824638032Speter Changes to cf/sh/makeinfo.sh to make it portable to SVR4 824738032Speter environments. Ugly as sin. 824838032Speter 824964562Sgshapiro8.3/8.3 1993/07/13 825038032Speter Fix setuid problems introduced in 8.2 that caused messages 825138032Speter like "Cannot create qfXXXXXX: Invalid argument" 825238032Speter or "Cannot reopen dfXXXXXX: Permission denied". This 825338032Speter involved a new compile flag "HASSETEUID" that takes 825438032Speter the place of the old _POSIX_SAVED_IDS -- it turns out 825538032Speter that the POSIX interface is broken enough to break 825638032Speter some systems badly. This includes some fixes for 825738032Speter HP-UX. Also fixes problems where the real uid is 825838032Speter not reset properly on startup (from Neil Rickert). 825938032Speter Fix a problem that caused timed out messages to not report the 826038032Speter addresses that timed out. Error messages are also more 826138032Speter "user friendly". 826238032Speter Drop required bandwidth on connections from 64 bytes/sec to 826338032Speter 16 bytes/sec. 826438032Speter Further Solaris portability changes -- doesn't require the BSD 826538032Speter compatibility library. This also adds a new 826638032Speter "HASGETDTABLESIZE" compile flag which can be used if 826738032Speter you want to use getdtablesize(2) instead of sysconf(2). 826838032Speter These are loosely based on changes from David Meyer at 826938032Speter University of Oregon. This now seems to work, at least 827038032Speter for quick test cases. 827138032Speter Fix a problem that can cause duplicate error messages to be 827238032Speter sent if you are in SMTP, you send to multiple addresses, 827338032Speter and at least one of those addresses is good and points 827438032Speter to an account that has a .forward file (whew!). 827538032Speter Fix a problem causing messages to be discarded if checkcompat() 827638032Speter returned EX_TEMPFAIL (because it didn't properly mark 827738032Speter the "to" address). Problem noted by John Myers. 827838032Speter Fix dfopen to return NULL if the open failed; I was depending 827938032Speter on fdopen(-1) returning NULL, which isn't the case. This 828038032Speter isn't serious, but does result in weird error diagnoses. 828138032Speter From Michael Corrigan. 828238032Speter CONFIG: add UUCP_MAX_SIZE M4 macro to set the maximum size of 828338032Speter messages sent through UUCP-family mailers. Suggested 828438032Speter by Bill Wisner of The Well. 828538032Speter CONFIG: if both MAILER(uucp) and MAILER(smtp) are specified, 828638032Speter include a "uucp-dom" mailer that uses domain-style 828738032Speter addressing. Suggested by Bill Wisner. 828838032Speter CONFIG: Add LOCAL_SHELL_FLAGS and LOCAL_SHELL_ARGS to match 828938032Speter LOCAL_MAILER_FLAGS and LOCAL_MAILER_ARGS. Suggested by 829038032Speter Christophe Wolfhugel. 829138032Speter CONFIG: Add OSTYPE(aix3). From Christophe Wolfhugel. 829238032Speter 829364562Sgshapiro8.2/8.2 1993/07/11 829438032Speter Don't drop out on config file parse errors in -bt mode. 829538032Speter On older configuration files, assume option "l" (use Errors-To 829638032Speter header) for back compatibility. NOTE: this DOES NOT 829738032Speter imply an endorsement of the Errors-To: header in any way. 829838032Speter Accept -x flag on AIX-3 as well as OSF/1. Why, why, why??? 829938032Speter Don't log errors on EHLO -- it isn't a "real" error for an old 830038032Speter SMTP server to give an error on this command, and 830138032Speter logging it in the transcript can be confusing. Fix 830238032Speter from Bill Wisner. 830338032Speter IRIX compatibility changes provided by Dan Rich 830438032Speter <drich@sandman.lerc.nasa.gov>. 830538032Speter Solaris 2 compatibility changes. Provided by Bob Cunningham 830638032Speter <bob@kahala.soest.hawaii.edu>, John Oleynick 830738032Speter <juo@klinzhai.rutgers.edu> 830838032Speter Debugging: -d17 was overloaded (hostsignature and usersmtp.c); 830938032Speter move usersmtp (smtpinit and smtpmailfrom) to -d18 to 831038032Speter match the other flags in that file. 831138032Speter Flush transcript before fork in mailfile(). From Eric Wassenaar. 831238032Speter Save h_errno in mci struct and improve error message display. 831338032Speter Changes from Eric Wassenaar. 831438032Speter Open /dev/null for the transcript if the create of the xf file 831538032Speter failed; this avoids at least one possible null pointer 831638032Speter reference in very weird cases. From Eric Wassenaar. 831738032Speter Clean up statistics gathering; it was over-reporting because of 831838032Speter forks. From Eric Wassenaar. 831938032Speter Fix problem that causes old Return-Path: line to override new 832038032Speter Return-Path: line (conf.c needs H_FORCE to avoid 832138032Speter re-using old value). From Motonori Nakamura. 832238032Speter Fix broken -m flag in K definition -- even if -m (match only) 832338032Speter was specified, it would still replace the key with the 832438032Speter value. Noted by Rick McCarty of Texas Instruments. 832538032Speter If the name server timed out over several days, no "timed out" 832638032Speter message would ever be sent back. The timeout code 832738032Speter has been moved from markfailure() to dropenvelope() 832838032Speter so that all such failures should be diagnosed. Pointed 832938032Speter out by Christophe Wolfhugel and others. 833038032Speter Relax safefile() constraints: directories in an include or 833138032Speter forward path must be readable by self if the controlling 833238032Speter user owns the entry, readable by all otherwise (e.g., 833338032Speter when reading your .forward file, you have to own and 833438032Speter have X permission in it; everyone needs X permission in 833538032Speter the root and directories leading up to your home); 833638032Speter include files must be readable by anyone, but need not 833738032Speter be owned by you. 833838032Speter If _POSIX_SAVED_IDS is defined, setuid to the owner before 833938032Speter reading a .forward file; this gets around some problems 834038032Speter on NFS mounts if root permission is not exported and 834138032Speter the user's home directory isn't x'able. 834238032Speter Additional NeXT portability enhancements from Axel Zinser. 834338032Speter Additional HP-UX portability enhancements from Brian Bullen. 834438032Speter Add a timeout around SMTP message writes; this assumes you can 834538032Speter get throughput of at least 64 bytes/second. Note that 834638032Speter this does not impact the "datafinal" default, which 834738032Speter is separate; this is just intended to work around 834838032Speter network clogs that will occur before the final dot 834938032Speter is sent. From Eric Wassenaar. 835038032Speter Change map code to set the "include null" flag adaptively -- 835138032Speter it initially tries both, but if it finds anything 835238032Speter matching without a null it never tries again with a 835338032Speter null and vice versa. If -N is specified, it never 835438032Speter tries without the null and creates new maps with a 835538032Speter null byte. If -O is specified, it never tries with 835638032Speter the null (for efficiency). If -N and -O are specified, 835738032Speter you get -NO (get it?) lookup at all, so this would 835838032Speter be a bad idea. If you don't specify either -N or -O, 835938032Speter it adapts. 836038032Speter Fix recognition of "same from address" so that MH submissions 836138032Speter will insert the appropriate full name information; 836238032Speter this used to work and got broken somewhere along the 836338032Speter way. 836438032Speter Some changes to eliminate some unnecessary SYSERRs in the 836538032Speter log. For example, if you lost a connection, don't 836638032Speter bother reporting that fact on the connection you lost. 836738032Speter Add some "extended debugging" flags to try to track down 836838032Speter why we get occasional problems with file descriptor 836938032Speter one being closed when execing a mailer; it seems to 837038032Speter only happen when there has been another error in the 837138032Speter same transaction. This requires XDEBUG, defined 837238032Speter by default in conf.h. 837338032Speter Add "-X filename" command line flag, which logs both sides of 837438032Speter all SMTP transactions. This is intended ONLY for 837538032Speter debugging bad implementations of other mailers; start 837638032Speter it up, send a message from a mailer that is failing, 837738032Speter and then kill it off and examine the indicated log. 837838032Speter This output is not intended to be particularly human 837938032Speter readable. This also adds the HASSETVBUF compile 838038032Speter flag, defaulted on if your compiler defines __STDC__. 838138032Speter CONFIG: change SMART_HOST to override an SMTP mailer. If you 838238032Speter have a local net that should get direct connects, you 838338032Speter will need to use LOCAL_NET_CONFIG to catch these hosts. 838438032Speter See cf/README for an example. 838538032Speter CONFIG: add LOCAL_MAILER_ARGS (default: `mail -d $u') to handle 838638032Speter sites that don't use the -d flag. 838738032Speter CONFIG: hide recipient addresses as well as sender addresses 838838032Speter behind $M if FEATURE(allmasquerade) is specified; this 838938032Speter has been requested by several people, but can break 839038032Speter local aliases. For example, if you mail to "localalias" 839138032Speter this will be rewritten as "localalias@masqueradehost"; 839238032Speter although initial delivery will work, replies will be 839338032Speter broken. Use it sparingly. 839438032Speter CONFIG: add FEATURE(domaintable). This maps unqualified domains 839538032Speter to qualified domains in headers. I believe this is 839638032Speter largely equivalent to the IDA feature of the same name. 839738032Speter CONFIG: use $U as UUCP name instead of $k. This permits you 839838032Speter to override the "system name" as your UUCP name -- 839938032Speter in particular, to use domain-ized UUCP names. From 840038032Speter Bill Wisner of The Well. 840138032Speter CONFIG: create new mailer "esmtp" that always tries EHLO 840238032Speter first. This is currently unused in the config files, 840338032Speter but could be used in a mailertable entry. 840438032Speter 840564562Sgshapiro8.1C/8.1B 1993/06/27 840638032Speter Serious security bug fix: it was possible to read any file on 840738032Speter the system, regardless of ownership and permissions. 840838032Speter If a subroutine returns a fully qualified address, return it 840938032Speter immediately instead of feeding it back into rewriting. 841038032Speter This fixes a problem with mailertable lookups. 841138032Speter CONFIG: fix some M4 frotz (concat => CONCAT) 841238032Speter 841364562Sgshapiro8.1B/8.1A 1993/06/12 841438032Speter Serious bug fix: pattern matching backup algorithm stepped by 841538032Speter two tokens in classes instead of one. Found by Claus 841638032Speter Assmann at University of Kiel, Germany. 841738032Speter 841864562Sgshapiro8.1A/8.1A 1993/06/08 841938032Speter Another mailertable fix.... 842038032Speter 842164562Sgshapiro8.1/8.1 1993/06/07 842238032Speter 4.4BSD freeze. No semantic changes. 8423