166352Seric SENDMAIL RELEASE NOTES 2*66432Seric @(#)RELEASE_NOTES 8.6.8.1 (Berkeley) 03/21/94 366352Seric 466352SericThis listing shows the version of the sendmail binary, the version 566352Sericof the sendmail configuration files, the date of release, and a 666352Sericsummary of the changes in that release. 766352Seric 8*66432Seric8.6.8/8.6.6 94/03/21 9*66432Seric SECURITY: it was possible to read any file as root using the 10*66432Seric E (error message) option. Reported by Richard Jones; 11*66432Seric fixed by Michael Corrigan and Christophe Wolfhugel. 12*66432Seric 1366356Seric8.6.7/8.6.6 94/03/14 1466356Seric SECURITY: it was possible to get root access by using wierd 1566356Seric values to the -d flag. Thanks to Alain Durand of 1666356Seric INRIA for forwarding me the notice from the bugtraq 1766356Seric list. 1866356Seric 1966352Seric8.6.6/8.6.6 94/03/13 2066352Seric SECURITY: the ability to give files away on System V-based 2166352Seric systems proved dangerous -- don't run as the owner 2266352Seric of a :include: file on a system that allows giveaways. 2366352Seric Unfortunately, this also applies to determining a 2466352Seric valid shell. 2566352Seric IMPORTANT: Previous versions weren't expiring old connections 2666352Seric in the connection cache for a long time under some 2766352Seric circumstances. This could result in resource exhaustion, 2866352Seric both at your end and at the other end. This checks the 2966352Seric connections for timeouts much more frequently. From 3066352Seric Doug Anderson of NCSC. 3166352Seric Fix a glitch that snuck in that caused programs to be run as 3266352Seric the sender instead of the recipient if the mail was 3366352Seric from a local user to another local user. From 3466352Seric Motonori Nakamura of Kyoto University. 3566352Seric Fix "wildcard" on /etc/shell matching -- instead of looking 3666352Seric for "*", look for "/SENDMAIL/ANY/SHELL/". From 3766352Seric Bryan Costales of ICSI. 3866352Seric Change the method used to declare the "statfs" availability; 3966352Seric instead of HASSTATFS and/or HASUSTAT with a ton of 4066352Seric tweaking in conf.c, there is a single #define called 4166352Seric SFS_TYPE which takes on one of six values (SFS_NONE 4266352Seric for no statfs availability, SFS_USTAT for the ustat(2) 4366352Seric syscall, SFS_4ARGS for a four argument statfs(2) call, 4466352Seric and SFS_VFS, SFS_MOUNT, or SFS_STATFS for a two argument 4566352Seric statfs(2) call with the declarations in <sys/vfs.h>, 4666352Seric <sys/mount.h>, or <sys/statfs.h> respectively). 4766352Seric Fix glitch in NetInfo support that could return garbage if 4866352Seric there was no "/locations/sendmail" property. From 4966352Seric David Meyer of the University of Virginia. 5066352Seric Change HASFLOCK from defined/not-defined to a 0/1 definition 5166352Seric to allow Linux to turn it off even though it is a 5266352Seric BSD-like system. 5366352Seric Allow setting of "ident" timeout to zero to turn off the ident 5466352Seric protocol entirely. 5566352Seric Make 7-bit stripping local to a connection (instead of to a 5666352Seric mailer); this allows you to specify that SMTP is a 5766352Seric 7-bit channel, but revert to 8-bit should it advertise 5866352Seric that it supports 8BITMIME. You still have to specify 5966352Seric mailer flag 7 to get this stripping at all. 6066352Seric Improve makesendmail script so it handles more cases automatically. 6166352Seric Tighten up restrictions on taking ownership of :include: files 6266352Seric to avoid problems on systems that allow you to give away 6366352Seric files. 6466352Seric Fix a problem that made it impossible to rebuild the alias 6566352Seric file if it was on a read-only file system. From 6666352Seric Harry Edmon of the University of Washington. 6766352Seric Improve MX randomization function. From John Gardiner Myers 6866352Seric of CMU. 6966352Seric Fix a minor glitch causing a bogus message to be printed (used 7066352Seric %s instead of %d in a printf string for the line number) 7166352Seric when a bad queue file was read. From Harry Edmon. 7266352Seric Allow $s to remain NULL on locally generated mail. I'm not 7366352Seric sure this is necessary, but a lot of people have complained 7466352Seric about it, and there is a legitimate question as to whether 7566352Seric "localhost" is legal as an 822-style domain. 7666352Seric Fix a problem with very short line lengths (mailer L= flag) in 7766352Seric headers. This causes a leading space to be added onto 7866352Seric continuation lines (including in the body!), and also 7966352Seric tries to wrap headers containing addresses (From:, To:, 8066352Seric etc) intelligently at the shorter line lengths. Problem 8166352Seric Reported by Lars-Johan Liman of SUNET Operations Center. 8266352Seric Log the real user name when logging syserrs, since these can have 8366352Seric security implications. Suggested by several people. 8466352Seric Fix address logging of cached connections -- it used to always 8566352Seric log the numeric address as zero. This is a somewhat 8666352Seric bogus implementation in that it does an extra system 8766352Seric call, but it should be an inexpensive one. Fix from 8866352Seric Motonori Nakamura. 8966352Seric Tighten up handling of short syslog buffers even more -- there 9066352Seric were cases where the outgoing relay= name was too long 9166352Seric to share a line with delay= and mailer= logging. 9266352Seric Limit the overhead on split envelopes to one open file descriptor 9366352Seric per envelope -- previously the overhead was three 9466352Seric descriptors. This was in response to a problem reported 9566352Seric by P{r (Pell) Emanuelsson. 9666352Seric Fixes to better handle the case of unexpected connection closes; 9766352Seric this redirects the output to the transcript so the info 9866352Seric is not lost. From Eric Wassenaar. 9966352Seric Fix potential string overrun if you macro evaluate a string that 10066352Seric has a naked $ at the end. Problem noted by James Matheson 10166352Seric <jmrm@eng.cam.ac.uk>. 10266352Seric Make default error number on $#error messages 553 (``Requested 10366352Seric action not taken: mailbox name not allowed'') instead of 10466352Seric 501 (``Syntax error in parameters or arguments'') to 10566352Seric avoid bogus "protocol error" messages. 10666352Seric Strip off any existing trailing dot on names during $[ ... $] 10766352Seric lookup. This prevents it from ending up with two dots 10866352Seric on the end of dot terminated names. From Wesley Craig 10966352Seric of the University of Michigan and Bryan Costales of ICSI. 11066352Seric Clean up file class reading so that the debugging information is 11166352Seric more informative. It hadn't been using setclass, so you 11266352Seric didn't see the class items being added. 11366352Seric Avoid core dump if you are running a version of sendmail where 11466352Seric NIS is compiled in, and you specify an NIS map, but 11566352Seric NIS is not running. Fix from John Oleynick of 11666352Seric Rutgers. 11766352Seric Diagnose bizarre case where res_search returns a failure value, 11866352Seric but sets h_errno to a success value. 11966352Seric Make sure that "too many hops" messages are considered important 12066352Seric enough to send an error to the Postmaster (that is, the 12166352Seric address specified in the P option). This fix should 12266352Seric help problems that cause the df file to be left around 12366352Seric sometimes -- unfortunately, I can't seem to reproduce 12466352Seric the problem myself. 12566352Seric Avoid core dump (null pointer reference) on EXPN command; this 12666352Seric only occurred if your log level was set to 10 or higher 12766352Seric and the target account was an alias or had a .forward file. 12866352Seric Problem noted by Janne Himanka. 12966352Seric Avoid "denial of service" attacks by someone who is flooding your 13066352Seric SMTP port with bad commands by shutting the connection 13166352Seric after 25 bad commands are issued. From Kyle Jones of 13266352Seric UUNET. 13366352Seric Fix core dump on error messages with very long "to" buffers; 13466352Seric fmtmsg overflows the message buffer. Fixed by trimming 13566352Seric the to address to 203 characters. Problem reported by 13666352Seric John Oleynick. 13766352Seric Fix configuration for HASFLOCK -- there were some spots where 13866352Seric a #ifndef was incorrectly #ifdef. Pointed out by 13966352Seric George Baltz of the University of Maryland. 14066352Seric Fix a typo in savemail() that could cause the error message To: 14166352Seric lists to be incorrect in some places. From Motonori 14266352Seric Nakamura. 14366352Seric Fix a glitch that can cause duplicate error messages on split 14466352Seric envelopes where an address on one of the lists has a 14566352Seric name server failure. Fix from Voradesh Yenbut of the 14666352Seric University of Washington. 14766352Seric Fix possible bogus pointer reference on ESMTP parameters that 14866352Seric don't have an ``=value'' part. 14966352Seric CNAME loops caused an error message to be generated, but also 15066352Seric re-queued the message. Changed to just re-queue the 15166352Seric message (it's really hard to just bounce it because 15266352Seric of the wierd way the name server works in the presence 15366352Seric of CNAME loops). Problem noted by James M.R.Matheson 15466352Seric of Cambridge University. 15566352Seric Avoid giving ``warning: foo owned process doing -bs'' messages 15666352Seric if they use ``MAIL FROM:<foo>'' where foo is their true 15766352Seric user name. Suggested by Andreas Stolcke of ICSI. 15866352Seric Change the NAMED_BIND compile flag to be a 0/1 flag so you can 15966352Seric override it easily in the Makefile -- that is, you can 16066352Seric turn it off using -DNAMED_BIND=0. 16166352Seric If a gethostbyname(...) of an address with a trailing dot fails, 16266352Seric try it without the trailing dot. This is because if 16366352Seric you have a version of gethostbyname() that falls back 16466352Seric to NIS or the /etc/hosts file it will fail to find 16566352Seric perfectly reasonable names that just don't happen to 16666352Seric be dot terminated in the hosts file. You don't want to 16766352Seric strip the dot first though because we're trying to ensure 16866352Seric that country names that match one of your subdomains get 16966352Seric a chance. 17066352Seric PRALIASES: fix bogus output on non-null-terminated strings. 17166352Seric From Bill Gianopoulos of Raytheon. 17266352Seric CONFIG: Avoid rewriting anything that matches $w to be $j. 17366352Seric This was in code intended to only catch the self-literal 17466352Seric address (that is, [1.2.3.4], where 1.2.3.4 is your 17566352Seric IP address), but the code was broken. However, it will 17666352Seric still do this if $M is defined; this is necessary to 17766352Seric get client configurations to work (sigh). Note that this 17866352Seric means that $M overrides :mailname entries in the user 17966352Seric database! Problem noted by Paul Southworth. 18066352Seric CONFIG: Fix definition of Solaris help file location. From 18166352Seric Steve Cliffe <steve@gorgon.cs.uow.edu.au>. 18266352Seric CONFIG: Fix bug that broke news.group.USENET mappings. 18366352Seric CONFIG: Allow declaration of SMTP_MAILER_MAX, FAX_MAILER_MAX, 18466352Seric and USENET_MAILER_MAX to tweak the maximum message 18566352Seric size for various mailers. 18666352Seric CONFIG: Change definition of USENET_MAILER_ARGS to include argv[0] 18766352Seric instead of assuming that it is "inews" for consistency 18866352Seric with other mailers. From Michael Corrigan of UC San Diego. 18966352Seric CONFIG: When mail is forwarded to a LOCAL_RELAY or a MAIL_HUB, 19066352Seric qualify the address in the SMTP envelope as user@{relay|hub} 19166352Seric instead of user@$j. From Bill Wisner of The Well. 19266352Seric CONFIG: Fix route-addr syntax in nullrelay configuration set. 19366352Seric CONFIG: Don't turn off case mapping of user names in the local 19466352Seric mailer for IRIX. This was different than most every other 19566352Seric system. 19666352Seric CONFIG: Avoid infinite loops on certainly list:; syntaxes in 19766352Seric envelope. Noted by Thierry Besancon 19866352Seric <besancon@excalibur.ens.fr>. 19966352Seric CONFIG: Don't include -z by default on uux line -- most systems 20066352Seric don't want it set by default. Pointed out by Philippe 20166352Seric Michel of Thomson CSF. 20266352Seric CONFIG: Fix some bugs with mailertables -- for example, if your 20366352Seric host name was foo.bar.ray.com and you matched against 20466352Seric ".ray.com", the old implementation bound %1 to "bar" 20566352Seric instead of "foo.bar". Also, allow "." in the mailertable 20666352Seric to match anything -- essentially, take over SMART_HOST. 20766352Seric This also moves matching of explicit local host names 20866352Seric before the mailertable so they don't have to be special 20966352Seric cased in the mailertable data. Reported by Bill 21066352Seric Gianopoulos of Raytheon; the fix for the %1 binding 21166352Seric problem was contributed by Nicholas Comanos of the 21266352Seric University of Sydney. 21366352Seric CONFIG: Don't include "root" in class $=L (users to deliver 21466352Seric locally, even if a hub or relay exists) by default. 21566352Seric This is because of the known bug where definition of 21666352Seric both a LOCAL_RELAY and a MAIL_HUB causes $=L to ignore 21766352Seric both and deliver into the local mailbox. 21866352Seric CONFIG: Move up bitdomain and uudomain handling so that they 21966352Seric are done before .UUCP class matching; uudomain was 22066352Seric reported as ineffective before. This also frees up 22166352Seric diversion 8 for future use. Problem reported by Kimmo 22266352Seric Suominen. 22366352Seric CONFIG: Don't try to convert dotted IP address (e.g., [1.2.3.4]) 22466352Seric into host names. As pointed out by Jonathan Kamens, 22566352Seric these are often used because either the forward or reverse 22666352Seric mapping is broken; this translation makes it broken again. 22766352Seric DOC: Clarify $@ and $: in the Install & Op Guide. From Kimmo 22866352Seric Suominen. 22966352Seric Portability fixes: 23066352Seric Unicos from David L. Kensiski of Sterling Sofware. 23166352Seric DomainOS from Don Lewis of Silicon Systems. 23266352Seric GNU m4 1.0.3 from Karst Koymans of Utrecht University. 23366352Seric Convex from Kimmo Suominen <kim@tac.nyc.ny.us>. 23466352Seric NetBSD from Adam Glass <glass@sun-lamp.cs.berkeley.edu>. 23566352Seric BSD/386 from Tony Sanders of BSDI. 23666352Seric Apollo from Eric Wassenaar. 23766352Seric DGUX from Doug Anderson. 23866352Seric Sequent DYNIX/ptx 2.0 from Tim Wright of Sequent. 23966352Seric NEW FILES: 24066352Seric src/Makefile.DomainOS 24166352Seric src/Makefile.PTX 24266352Seric src/Makefile.SunOS.5.1 24366352Seric src/Makefile.SunOS.5.2 24466352Seric src/Makefile.SunOS.5.x 24566352Seric src/mailq.1 24666352Seric cf/ostype/domainos.m4 24766352Seric doc/op/Makefile 24866352Seric doc/intro/Makefile 24966352Seric doc/usenix/Makefile 25066352Seric 25166348Seric8.6.5/8.6.5 94/01/13 25266348Seric Security fix: /.forward could be owned by anyone (the test 25366348Seric to allow root to own any file was backwards). From 25466348Seric Bob Campbell at U.C. Berkeley. 25566348Seric Security fix: group ids were not completely set when programs 25666348Seric were invoked. This caused programs to have group 25766348Seric permissions they should not have had (usually group 25866348Seric daemon instead of their own group). In particular, 25966348Seric Perl scripts would refuse to run. 26066348Seric Security: check to make sure files that are written are not 26166348Seric symbolic links (at least under some circumstances). 26266348Seric Although this does not respond to a specific known 26366348Seric attack, it's just a good idea. Suggested by 26466348Seric Christian Wettergren. 26566348Seric Security fix: if a user had an NFS mounted home directory on 26666348Seric a system with a restricted shell listed in their 26766348Seric /etc/passwd entry, they could still execute any 26866348Seric program by putting that in their .forward file. 26966348Seric This fix prevents that by insisting that their shell 27066348Seric appear in /etc/shells before allowing a .forward to 27166348Seric execute a program or write a file. You can disable 27266348Seric this by putting "*" in /etc/shells. It also won't 27366348Seric permit world-writable :include: files to reference 27466348Seric programs or files (there's no way to disable this). 27566348Seric These behaviours are only one level deep -- for 27666348Seric example, it is legal for a world-writable :include: 27766348Seric file to reference an alias that writes a file, on 27866348Seric the assumption that the alias file is well controlled. 27966348Seric Security fix: root was not treated suspiciously enough when 28066348Seric looking into subdirectories. This would potentially 28166348Seric allow a cracker to examine files that were publically 28266348Seric readable but in a non-publically searchable directory. 28366348Seric Fix a problem that causes an error on QUIT on a cached 28466348Seric connection to create problems on the current job. 28566348Seric These are typically unrelated, so errors occur in 28666348Seric the wrong place. 28766348Seric Reset CurrentLA in sendall() -- this makes sendmail queue 28866348Seric runs more responsive to load average, and fixes a 28966348Seric problem that ignored the load average in locally 29066348Seric generated mail. From Eric Wassenaar. 29166348Seric Fix possible core dump on aliases with null LHS. From 29266348Seric John Orthoefer of BB&N. 29366348Seric Revert to using flock() whenever possible -- there are just 29466348Seric too many bugs in fcntl() locking, particularly over 29566348Seric NFS, that cause sendmail to fail in perverse ways. 29666348Seric Fix a bug that causes the connection cache to get confused 29766348Seric when sending error messages. This resulted in 29866348Seric "unexpected close" messages. It should fix itself 29966348Seric on the following queue run. Problem noted by 30066348Seric Liudvikas Bukys of Rochester University. 30166348Seric Include $k in $=k as documented in the Install & Op Guide. 30266348Seric This seems odd, but it was documented.... From 30366348Seric Michael Corrigan of UCSD. 30466348Seric Fix problem that caused :include:s from alias files to be 30566348Seric forced to be owned by root instead of daemon 30666348Seric (actually DefUid). From Tim Irvin. 30766348Seric Diagnose unrecognized I option values -- from Mortin Forssen 30866348Seric of the Chalmers University of Technology. 30966348Seric Make "error" mailer work consistently when there is no error 31066348Seric code associated with it -- previously it returned OK 31166348Seric even though there was a real problem. Now it assumes 31266348Seric EX_UNAVAILABLE. 31366348Seric Fix bug that caused the last header line of messages that had 31466348Seric no body and which were terminated with EOF instead of 31566348Seric "." to be discarded. Problem noted by Liudvikas Bukys. 31666348Seric Fix core dump on SMTP mail to programs that failed -- it tried 31766348Seric to go to a "next MX host" when none existed, causing 31866348Seric a core dump. From der Mouse at McGill University. 31966348Seric Change IDENTPROTO from a defined/not defined to a 0/1 switch; 32066348Seric this makes it easier to turn it off (using 32166348Seric -DIDENTPROTO=0 in the Makefile). From der Mouse. 32266348Seric Fix YP_MASTER_NAME store to use the unupdated result of 32366348Seric gethostname() (instead of myhostname(), which tries 32466348Seric to fully qualify the name) to be consistent with 32566348Seric SunOS. If your hostname is unqualified, this fixes 32666348Seric transfers to slave servers. Bug noted by Keith 32766348Seric McMillan of Ameritech Services, Inc. 32866348Seric Fix Ultrix problem: gethostbyname() can return a very large 32966348Seric (> 500) h_length field, which causes the sockaddr 33066348Seric to be trashed. Use the size of the sockaddr instead. 33166348Seric Fix from Bob Manson of Ohio State. 33266348Seric Don't assume "-a." on host lookups if NAMED_BIND is not 33366348Seric defined -- this confuses gethostbyname on hosts 33466348Seric file lookups, which doesn't understand the trailing 33566348Seric dot convention. 33666348Seric Log SMTP server subprocesses that die with a signal instead 33766348Seric of from a clean exit. 33866348Seric If you don't have option "I" set, don't assume that a DNS 33966348Seric "host unknown" message is authoritative -- it 34066348Seric might still be found in /etc/hosts. 34166348Seric Fix a problem that would cause Deferred: messages to be sent 34266348Seric as the subject of an error message, even though the 34366348Seric actual cause of a message was more severe than that. 34466348Seric Problem noted by Chris Seabrook of OSSI. 34566348Seric Fix race condition in DBM alias file locking. From Kyle 34666348Seric Jones of UUNET. 34766348Seric Limit delivery syslog line length to avoid bugs in some 34866348Seric versions of syslog(3). This adds a new compile time 34966348Seric variable SYSLOG_BUFSIZE. From Jay Plett of Princeton 35066348Seric University, which is in turn derived from IDA. 35166348Seric Fix quotes inside of comments in addresses -- previously 35266348Seric it insisted that they be balanced, but the 822 spec 35366348Seric says that they should be ignored. 35466348Seric Dump open file state to syslog upon receiving SIGUSR1 (for 35566348Seric debugging). This also evaluates ruleset 89, if set 35666348Seric (with the null input), and logs the result. This 35766348Seric should be used sparingly, since the rewrite process 35866348Seric is not reentrant. 35966348Seric Change -qI, -qR, and -qS flags to be case-insensitive as 36066348Seric documented in the Bat Book. 36166348Seric If the mailer returned EX_IOERR or EX_OSERR, sendmail did not 36266348Seric return an error message and did not requeue the message. 36366348Seric Fix based on code from Roland Dirlewanger of 36466348Seric Reseau Regional Aquarel, Bordeaux, France. 36566348Seric Fix a problem that caused a seg fault if you got a 421 error 36666348Seric code during some parts of connection initialization. 36766348Seric I've only seen this when talking to buggy mailers on 36866348Seric the other end, but it shouldn't give a seg fault in 36966348Seric any case. From Amir Plivatsky. 37066348Seric Fix core dump caused by a ruleset call that returns null. 37166348Seric Fix from Bryan Costales of ICSI. 37266348Seric Full-Name: field was being ignored. Fix from Motonori Nakamura 37366348Seric of Kyoto University. 37466348Seric Fix a possible problem with very long input lines in setproctitle. 37566348Seric From P{r Emanuelsson. 37666348Seric Avoid putting "This is a warning message" out on return receipts. 37766348Seric Suggested by Douglas Anderson. 37866348Seric Detect loops caused by recursive ruleset calls. Suggested by 37966348Seric Bryan Costales. 38066348Seric Initialize non-alias maps during alias rebuilds -- they may be 38166348Seric needed for parsing. Problem noted by Douglas Anderson. 38266348Seric Log sender address even if no message was collected in SMTP 38366348Seric (e.g., if all RCPTs failed). Suggested by Motonori 38466348Seric Nakamura. 38566348Seric Don't reflect the owner-list contents into the envelope sender 38666348Seric address if the value contains ", :, /, or | (to avoid 38766348Seric illegal addresses appearing there). 38866348Seric Efficiency hack for toktype macro -- from Craig Partridge of 38966348Seric BB&N. 39066348Seric Clean up DNS error printing so that a host name is always 39166348Seric included. 39266348Seric Remember to set $i during queue runs. Reported by Stephen 39366348Seric Campbell of Dartmouth University. 39466348Seric If ${HOSTALIASES} is set, use it during canonification so that 39566348Seric headers are properly mapped. Reported by Anne Bennett 39666348Seric of Concordia University. 39766348Seric Avoid printing misleading error message if SMTP mailer (not 39866348Seric using [IPC]) should die on a core dump. 39966348Seric Avoid incorrect diagnosis of "file 1 closed" when it is caused 40066348Seric by the other end closing the connection. From 40166348Seric Dave Morrison of Oracle. 40266348Seric Improve several of the error messages printed by "mailq" 40366348Seric to include a host name or other useful information. 40466348Seric Add NetInfo preliminary support for NeXT systems. From Vince 40566348Seric DeMarco. 40666348Seric Fix a glitch that sometimes caused :include:s that pointed to 40766348Seric NFS filesystems that were down to give an "aliasing/ 40866348Seric forwarding loop broken" message instead of queueing 40966348Seric the message for retry. Noted by William C Fenner of 41066348Seric the NRL Connection Machine Facility. 41166348Seric Fix a problem that could cause a core dump if the input sequence 41266348Seric had (or somehow acquired) a \231 character. 41366348Seric Make sure that route-addrs always have <angle brackets> around 41466348Seric them in non-SMTP envelopes (SMTP envelopes already do 41566348Seric this properly). 41666348Seric Avoid wierd headers on unbalanced punctuation of the form: 41766348Seric ``Joe User <user)'' -- this caused reference to the 41866348Seric null macro. Fix from Rick McCarty of IO.COM. 41966348Seric Fix a problem that caused an alias "user: user@local.host" to 42066348Seric not have the QNOTREMOTE bit set; this caused configs 42166348Seric to act as if FEATURE(notsticky) was defined even when 42266348Seric it was not. The effect of the problem was to make it 42366348Seric very hard to to set up satellite sites that had a few 42466348Seric local accounts, with everything else forwarded to a 42566348Seric corporate hub. Reported by Detlef Drewanz of the 42666348Seric University of Rostock and Mark Frost of NCD. 42766348Seric Change queuing to not call rulesets 3, {1 or 2}, 4 on header 42866348Seric addresses. This is more efficient (fewer name server 42966348Seric calls) and fixes certain unusual configurations, such 43066348Seric as those that have ruleset 4 do something that is 43166348Seric non-idempotent unless a mailer-specific ruleset did 43266348Seric something else. Problem reported by Brian J. Coan 43366348Seric of the Institute for Global Communications. 43466348Seric Fix the "obsolete argument" routine in main to better understand 43566348Seric new arguments. For example, if you used ``sendmail 43666348Seric -C config -v -q'' it would choke on the -q because 43766348Seric the -C would stop looking for old-format arguments. 43866348Seric Fix the code that was intended to allow two users to forward their 43966348Seric mail to the same program and have them appear unique. 44066348Seric Portability fixes for: 44166348Seric SCO UNIX from Murray Kucherawy. 44266348Seric SCO Open Server 3.2v4 from Philippe Brand. 44366348Seric System V Release 4 from Rick Ellis and others. 44466348Seric OSF/1 from Steve Campbell. 44566348Seric DG/UX from Ben Mesander of the USGS and Bryan Curnutt 44666348Seric of Stoner Associates. 44766348Seric Motorola SysV88 from Kevin Johnson of Motorola. 44866348Seric Solaris 2.3 from Casper H.S. Dik of the University 44966348Seric of Amsterdam and John Caruso of University 45066348Seric of Maryland. 45166348Seric FreeBSD from Ollivier Robert. 45266348Seric NetBSD from Adam Glass. 45366348Seric TitanOS from Kate Hedstrom of Rutgers University. 45466348Seric Irix from Bryan Curnutt. 45566348Seric Dynix from Jim Davis of the University of Arizona. 45666348Seric RISC/os. 45766348Seric Linux from John Kennedy of California State University 45866348Seric at Chico. 45966348Seric Solaris 2.x from Tony Boner of the U.S. Air Force. 46066348Seric NEXTSTEP 3.x from Vince DeMarco. 46166348Seric HP-UX from various people. NOTA BENE: the location 46266348Seric of the config file has moved to /usr/lib 46366348Seric to match the HP-UX version of sendmail. 46466348Seric CONFIG: Don't do any recipient rewriting on relay mailer; 46566348Seric since this is intended only for internal use, the 46666348Seric usual RFC 821/822/1123 rules can be relaxed. The 46766348Seric main point of this is to avoid munging (ugh) UUCP 46866348Seric addresses when relaying internally. 46966348Seric CONFIG: fix typo in mailer/uucp.m4 that mutilates list:; 47066348Seric syntax addresses delivered via UUCP. Solution 47166348Seric provided by Peter Wemm. 47266348Seric CONFIG: fix thumb-fumble in default UUCP relaying in ruleset 47366348Seric zero; it caused double @ signs in addresses. From 47466348Seric Irving Reid of the University of Toronto. 47566348Seric CONFIG: Portability fixes for SCO Unix 3.2 with TCP/IP 1.2.1 47666348Seric from Markku Toijala of ICL Personal Systems Oy. 47766348Seric CONFIG: Add trailing "." on pseudo-domains for consistency; 47866348Seric this fixes a problem (noted by Al Whaley of Sunnyside) 47966348Seric that made it hard to recognize your own pseudodomain 48066348Seric names. 48166348Seric CONFIG: catch "@host" syntax errors (i.e., null local-parts) 48266348Seric rather than letting them get "local configuration 48366348Seric error"s. Problem noted by John Gardiner Myers. 48466348Seric CONFIG: add uucp-uudom mailer variant, based on code posted 48566348Seric by Spider Boardman <spider@Orb.Nashua.NH.US>; this 48666348Seric has uucp-dom semantics but old UUCP syntax. This 48766348Seric also permits "uucp-old" as an alias for "uucp" and 48866348Seric "uucp-new" as a synonym for "suucp" for consistency. 48966348Seric CONFIG: add POP mailer support (from Kimmo Suominen 49066348Seric <kim@grendel.lut.fi>). 49166348Seric CONFIG: drop CSNET_RELAY support -- CSNET is long gone. 49266348Seric CONFIG: fix bug caused with domain literal addresses (e.g., 49366348Seric ``[128.32.131.12]'') when FEATURE(allmasquerade) 49466348Seric was set; it would get an additional @masquerade.host 49566348Seric added to the address. Problem noted by Peter Wan 49666348Seric of Georgia Tech. 49766348Seric CONFIG: make sure that the local UUCP name is in $=w. From 49866348Seric Jim Murray of Stratus. 49966348Seric CONFIG: changes to UUCP rewriting to simulate IDA-style "V" 50066348Seric mailer flag. Briefly, if you are sending to host 50166348Seric "foo", then it rewrites "foo!...!baz" to "...!baz", 50266348Seric "foo!baz" remains "foo!baz", and anything else has 50366348Seric the local name prepended. 50466348Seric CONFIG: portability fixes for HP-UX. 50566348Seric DOC: several minor problems fixed in the Install & Op Guide. 50666348Seric MAKEMAP: fix core dump problem on lines that are too long or 50766348Seric which lack newline. From Mark Delany. 50866348Seric MAILSTATS: print sums of columns (total messages & kbytes 50966348Seric in and out of the system). From Tom Ferrin of UC 51066348Seric San Francisco Computer Graphics Lab. 51166348Seric SIGNIFICANT USER- OR SYSAD-VISIBLE CHANGES: 51266348Seric On HP-UX, /etc/sendmail.cf has been moved to 51366348Seric /usr/lib/sendmail.cf to match HP sendmail. 51466348Seric Permissions have been tightened up on world-writable 51566348Seric :include: files and accounts that have shells 51666348Seric that are not listed in /etc/shells. This may 51766348Seric cause some .forward files that have worked 51866348Seric before to start failing. 51966348Seric SIGUSR1 dumps some state to the log. 52066348Seric NEW FILES: 52166348Seric src/Makefile.DGUX 52266348Seric src/Makefile.Dynix 52366348Seric src/Makefile.FreeBSD 52466348Seric src/Makefile.Mach386 52566348Seric src/Makefile.NetBSD 52666348Seric src/Makefile.RISCos 52766348Seric src/Makefile.SCO 52866348Seric src/Makefile.SVR4 52966348Seric src/Makefile.Titan 53066348Seric cf/mailer/pop.m4 53166348Seric cf/ostype/bsdi1.0.m4 53266348Seric cf/ostype/dgux.m4 53366348Seric cf/ostype/dynix3.2.m4 53466348Seric cf/ostype/sco3.2.m4 53566348Seric makemap/Makefile.dist 53666348Seric praliases/Makefile.dist 53766348Seric 53866347Seric8.6.4/8.6.4 93/10/31 53966347Seric Repair core-dump problem (write to read-only memory segment) 54066347Seric if you fall back to the return-to-Postmaster case in 54166347Seric savemail. Problem reported by Richard Liu. 54266347Seric Immediately diagnose bogus sender addresses in SMTP. This 54366347Seric makes quite certain that crackers can't use this 54466347Seric class of attack. 54566347Seric Reliability Fix: check return value from fclose() and fsync() 54666347Seric in a few critical places. 54766347Seric Minor problem in initsys() that reversed a condition for 54866347Seric redirecting the output channel on queue runs. It's 54966347Seric not clear this code even does anything. From Eric 55066347Seric Wassenaar of the Dutch National Institute for Nuclear 55166347Seric and High-Energy Physics. 55266347Seric Fix some problems that caused queue runs to do "too much work", 55366347Seric such as double-reading the Errors-To: header. From 55466347Seric Eric Wassenaar. 55566347Seric Error messages on writing the temporary file (including the 55666347Seric data file) were getting suppressed in SMTP -- this 55766347Seric fix causes them to be properly reported. From Eric 55866347Seric Wassenaar. 55966347Seric Some changes to support AF_UNIX sockets -- this will only 56066347Seric really become relevant in the next release, but some 56166347Seric people need it for local patches. From Michael 56266347Seric Corrigan of UC San Diego. 56366347Seric Use dynamically allocated memory (instead of static buffers) 56466347Seric for macros defined in initsys() and settime(); since 56566347Seric these can have different values depending on which 56666347Seric envelope they are in. From Eric Wassenaar. 56766347Seric Improve logging to show ctladdr on to= logging; this tells you 56866347Seric what uid/gid processes ran as. 56966347Seric Fix a problem that caused error messages to be discarded if 57066347Seric the sender address was unparseable for some reason; 57166347Seric this was supposed to fall back to the "return to 57266347Seric postmaster" case. 57366347Seric Improve aliaswait backoff algorithm. 57466347Seric Portability patches for Linux (8.6.3 required another header 57566347Seric file) (from Karl London) and SCO UNIX. 57666347Seric CONFIG: patch prog mailer to not strip host name off of envelope 57766347Seric addresses (so that it matches local again). From 57866347Seric Christopher Davis. 57966347Seric CONFIG: change uucp-dom mailer so that "<>" translates to $n; 58066347Seric this prevents uux from seeing lines with null names like 58166347Seric ``From Sat Oct 30 14:55:31 1993''. From Motonori 58266347Seric Nakamura of Kyoto University. 58366347Seric CONFIG: handle <list:;> syntax correctly. This isn't legal, but 58466347Seric it shouldn't fail miserably. From Motonori Nakamura. 58566347Seric 58666346Seric8.6.3/8.6.3 93/10/24 58766346Seric IMPORTANT FIX: Fix several problems that caused open files to 58866346Seric be "lost" during queue runs; this overflowed the open 58966346Seric file table on large runs. An assumption that fdopen 59066346Seric always succeeds sometimes resulted in core dumps when 59166346Seric this happens; sometimes the message is delivered twice, 59266346Seric sometimes (probably) infinite times. This problem in 59366346Seric various form was reported by P{r (Pell) Emanuelsson and 59466346Seric Robert Campbell of U.C. Berkeley. 59566346Seric Special diagnosis of EMFILE error conditions -- it now prints 59666346Seric the known open file descriptors so you can figure out 59766346Seric what is consuming so much resources. 59866346Seric Fix a couple of problems caused by early address parsing 59966346Seric errors -- one caused it to return a "this is only a 60066346Seric warning" when it really wasn't, and the other started 60166346Seric parsing through a random pointer. The first was 60266346Seric noted by Eric Wassenaar. 60366346Seric Fix an infinite loop problem caused by null components in the 60466346Seric host signature. Problem noted by Jan Sorensen. 60566346Seric Be sure to reset the "current date" when sending an error 60666346Seric message -- PostMasterCopy messages were being sent 60766346Seric with an old Date: header. 60866346Seric Fix a problem that caused duplicated mail when sendmail was 60966346Seric (1) compiled without HASFLOCK, (2) you are sending to 61066346Seric an alias that has an owner-* alias, (3) you execute 61166346Seric sendmail with -t flag, (4) you run in -odb mode, and 61266346Seric (5) the sender specifies both the alias name and 61366346Seric another alias [i.e., the envelope is split], then 61466346Seric duplicate messages are sent. The problem description 61566346Seric and one-line fix are from Motonori Nakamura of Kyoto 61666346Seric University. 61766346Seric Avoid a problem that causes error messages to be discarded 61866346Seric in some cases -- this was the result of a "fix" to 61966346Seric avoid duplicate error messages, but two are better 62066346Seric than zero. Reported by Tim Rylance. 62166346Seric Fix a minor botch in checkfd012() -- fix from Dave Hill of 62266346Seric Computervision R&D Ltd. 62366346Seric Remove "X-Authentication-Warning: <user> set sender to <address> 62466346Seric using -f" entirely -- it is far too eager to include 62566346Seric this, and it is confusing folks. I'll try to make it 62666346Seric work "right" in 8.7. Problem noted by Yoshitaka 62766346Seric Tokugawa of dit Co., Ltd. 62866346Seric Fix a race condition with the errno value in tick() and 62966346Seric reapchild() -- this caused occasional misdiagnosis 63066346Seric of problems. Kyle Jones of UUNET helped this along. 63166346Seric Repair rule loop-detection code. From Michael Corrigan of 63266346Seric U.C. San Diego. 63366346Seric Fix a problem that caused sender domain addition (C mailer 63466346Seric flag to be ignored if you use -odq or use -odb with 63566346Seric a high load average. Problem reported by Jim Murray 63666346Seric of Stratus. 63766346Seric Fix ident protocol on multi-homed machines. It was not 63866346Seric always using the correct interface. Fix from J.R. 63966346Seric Oldroyd of Opal. 64066346Seric Previously, sendmail assumed that any SMTP greeting message 64166346Seric that wasn't 2xx was a temporary failure -- it should 64266346Seric only take 4xx as a temporary failure, and return a 64366346Seric solid error message on anything else -- for example, 64466346Seric to allow you to reject connections on a workstation 64566346Seric that is MXed to a mail server. 64666346Seric Portability enhancements for 386BSD/FreeBSD/NetBSD from 64766346Seric Ollivier Robert. 64866346Seric CONFIG: FEATURE(always_add_domain) didn't always add the domain; 64966346Seric in particular, on local mail it modified the header sender 65066346Seric but not the header recipient address(es). Reported by 65166346Seric Jeffrey Honig of Cornell University. Also, strip 65266346Seric any host from envelope recipient address(es), since 65366346Seric local mailers don't understand host names -- this is 65466346Seric to help mailertable entries. From Christopher Davis. 65566346Seric CONFIG: masquerading didn't apply to addresses that already 65666346Seric had a domain. This change replaces a local hostname 65766346Seric by the masquerade name in the SMTP mailer (previously 65866346Seric it only added the masquerade name if it didn't already 65966346Seric have a domain name). Several people complained about 66066346Seric this. 66166346Seric 66266345Seric8.6.2/8.6.2 93/10/15 66366345Seric Put a "successful delivery" message in the transcript for 66466345Seric addresses that get return-receipts. 66566345Seric Put a prominent "this is only a warning" message in warning 66666345Seric messages -- some people don't read carefully enough 66766345Seric and end up sending the message several times. 66866345Seric Include reason for temporary failure in the "warning" return 66966345Seric message. Currently, it just says "cannot send for 67066345Seric four hours". 67166345Seric Fix the "Original message received" time generated for 67266345Seric returntosender messages. It was previously listed as 67366345Seric the current time. Bug reported by Eric Hagberg of 67466345Seric Cornell University Medical College. 67566345Seric If there is an error when writing the body of a message, 67666345Seric don't send the trailing dot and wait for a response 67766345Seric in sender SMTP, as this could cause the connection to 67866345Seric hang up under some bizarre circumstances. From Eric 67966345Seric Wassenaar. 68066345Seric Fix some server SMTP synchronization problems caused when 68166345Seric connections fail during message collection. From 68266345Seric Eric Wassenaar. 68366345Seric Fix a problem that can cause srvrsmtp to reject mail if the 68466345Seric name server is down -- it accepts the RCPT but rejects 68566345Seric the DATA command. Problem reported by Jim Murray of 68666345Seric Stratus. 68766345Seric Fix a problem that can cause core dumps if the config file 68866345Seric incorrectly resolves to a null hostname. Reported by 68966345Seric Allan Johannesen of WPI. 69066345Seric Non-root use of -C flag, dangerous -f flags, and use of -oQ 69166345Seric by non-root users were not put into 69266345Seric X-Authentication-Warning:s as intended because the 69366345Seric config file hadn't set the PrivacyFlags yet. Fix 69466345Seric from Sven-Ove Westberg of the University of Lulea. 69566345Seric Under very odd circumstances, the alias file rebuild code 69666345Seric could get confused as to whether a database was 69766345Seric open or not. 69866345Seric Check "vendor code" on the end of V lines -- this is 69966345Seric intended to provide a hook for vendor-specific 70066345Seric configuration syntax. (This is a "new feature", 70166345Seric but I've made an exception to my rule in a belief 70266345Seric that this is a highly exceptional case.) 70366345Seric Portability fixes for DG/UX (from Douglas Anderson of NCSC), 70466345Seric SCO Unix (from Murray Kucherawy), A/UX, and OSF/1 70566345Seric (from Jon Forrest of UC Berkeley) 70666345Seric CONFIG: fix ``mailer:host'' form of UUCP relay naming. 70766345Seric 70866344Seric8.6.1/8.6 93/10/08 70966344Seric Portability fixes for A/UX and Encore UMAX V. 71066344Seric Fix error message handling -- if you had a name server down 71166344Seric causing an error during parsing, that message was never 71266344Seric propogated to the queue file. 71366344Seric 71466343Seric8.6/8.6 93/10/05 71566343Seric Configuration cleanup: make it easier to undo IDENTPROTO in 71666343Seric conf.h (other systems have the same bug). 71766343Seric If HASGETDTABLESIZE and _SC_OPEN_MAX are both defined, assume 71866343Seric getdtablesize() instead of sysconf(); a disturbingly 71966343Seric large number of systems defined _SC_OPEN_MAX in the 72066343Seric header files but don't have the syscall. 72166343Seric Another patch to really truly ignore MX records in getcanonname 72266343Seric if trymx == FALSE. 72366343Seric Fix problem that caused the "250 IAA25499 Message accepted for 72466343Seric delivery" message to be omitted if there was an error 72566343Seric in the header of the message (e.g., a bad Errors-To: 72666343Seric line). Pointed out by Michael Corrigan of UCSD. 72766343Seric Announce name of host we are chatting when we get errors; this 72866343Seric is an IDA-ism suggested by Christophe Wolfhugel. 72966343Seric Portability fixes for Alpha OSF/1 (from Anthony Baxter of the 73066343Seric Australian Artificial Intelligence Institute), SCO Unix 73166343Seric (from Murray Kucherawy of Hookup Communication Corp.), 73266343Seric NeXT (from Vince DeMarco and myself), Linux (from 73366343Seric Karl London <karl@borg.demon.co.uk>), BSDI (from 73466343Seric Christophe Wolfhugel, and SVR4 on Dell (from Kimmo 73566343Seric Suominen), AUX 3.0 on Macintosh, and ANSI C compilers. 73666343Seric Some changes to get around gcc optimizer bugs. From Takahiro 73766343Seric Kanbe. 73866343Seric Fix error recovery in queueup if another tf file of the same 73966343Seric name already exists. Problem stumbled over by Bill 74066343Seric Wisner of The Well. 74166343Seric Output YP_MASTER_NAME and YP_LAST_MODIFIED without null bytes. 74266343Seric Problem noted by Keith McMillan of Ameritech Services. 74366343Seric Deal with group permissions properly when opening .forward and 74466343Seric :include: files. This relaxes the 8.1C restrictions 74566343Seric slightly more. This includes proper setting of groups 74666343Seric when reading :include: files, allowing you to read some 74766343Seric files that you should be able to read but have previously 74866343Seric been denied unless you owned them or they had "other" 74966343Seric read permission. 75066343Seric Make certain that $j is in $=w (after the .cf is read) so that 75166343Seric if the user is forced to override some silly system, 75266343Seric MX suppression will still work. 75366343Seric Fix a couple of efficiency problems where newstr was double- 75466343Seric calling expensive routines. In at least one case, it 75566343Seric wasn't guaranteed that they would always return the 75666343Seric same result. Problem noted by Christophe Wolfhugel. 75766343Seric Fix null pointer dereference in putoutmsg -- only on an error 75866343Seric condition from a non-SMTP mailer. From Motonori 75966343Seric Nakamura. 76066343Seric Macro expand "C" line class definitions before scanning so that 76166343Seric "CX $Z" works. 76266343Seric Fix problem that caused error message to be sent while still 76366343Seric trying to send the original message if the connection 76466343Seric is closed during a DATA command after getting an error 76566343Seric on an RCPT command (pretty obscure). Problem reported 76666343Seric by John Myers of CMU. 76766343Seric Fix reply to NOOP to be 250 instead of 200 -- this is a long 76866343Seric term bug. 76966343Seric Fix a nasty bug causing core dumps when returning the "warning: 77066343Seric cannot deliver for N hours -- will keep trying" message; 77166343Seric it only occurred if you had PostMasterCopy set and 77266343Seric only on some architectures. Although sendmail would 77366343Seric keep trying, it would send error messages on each 77466343Seric queue interval. This is an important fix. 77566343Seric Allow u and g options to take user and group names respectively. 77666343Seric Don't do a chdir into the queue directory in -bt mode to make 77766343Seric ruleset testing a bit easier. 77866343Seric Don't allow users to turn off logging (using -oL) on the command 77966343Seric line -- command line can only raise, not lower, logging 78066343Seric level. 78166343Seric Set $u to the original recipient on the SMTP transaction or on 78266343Seric the command line. This is only done if there is exactly 78366343Seric one recipient. Technically, this does not meet the 78466343Seric specs, because it does not guarantee a domain on the 78566343Seric address. 78666343Seric Fix a problem that dumped error messages on bad addresses if 78766343Seric you used the -t flag. Problem noted by Josh Smith of 78866343Seric Harvey Mudd College. 78966343Seric Given an address such as ``<foo> <bar>'', auto-quote the first 79066343Seric ``<foo>'' part, giving ``"<foo>" <bar>''. This is to 79166343Seric avoid the problem of people who use angle brackets in 79266343Seric their full name information. 79366343Seric Fix a null pointer dereference if you set option "l", have 79466343Seric an Errors-To: header in the message, and have Errors-To: 79566343Seric defined in the config file H lines. From J.R. Oldroyd. 79666343Seric Put YPCOMPAT on #ifdef NIS instead -- it's one less thing to get 79766343Seric wrong when compiling. Suggested by Rick McCarty of TI. 79866343Seric Fix a problem that could pass negative SIZE parameter if the 79966343Seric df file got lost; this would cause servers to always 80066343Seric give a temporary failure, making the problem even worse. 80166343Seric Problem noted by Allan Johannesen of WPI. 80266343Seric Add "ident" timeout (one of the "r" option selectors) for IDENT 80366343Seric protocol timeouts (30s default). Requested by Murray 80466343Seric Kucherawy of HookUp Communication Corp. to handle bogus 80566343Seric PC TCP/IP implementations. 80666343Seric Change $w default definition to be just the first component of 80766343Seric the domain name on config level 5. The $j macro defaults 80866343Seric to the FQDN; $m remains as before. This lets well-behaved 80966343Seric config files use any of the short, long, or subdomain 81066343Seric names. 81166343Seric Add makesendmail script in src to try to automate multi-architecture 81266343Seric builds. I know, this is sub-optimal, but it is still 81366343Seric helpful. 81466343Seric Fix very obscure race condition that can cause a queue run to 81566343Seric get a queue file for an already completed job. This 81666343Seric problem has existed for years. Problem noted by the 81766343Seric long suffering Allan Johannesen of WPI. 81866343Seric Fix a problem that caused the raw sender name to be passed to 81966343Seric udbsender instead of the canonified name -- this caused 82066343Seric it to sometimes miss records that it should have found. 82166343Seric Relax check of name on HELO packet so that a program using -bs 82266343Seric that claims to be itself works properly. 82366343Seric Restore rewriting of $: part of address through 2, R, 4 in 82466343Seric buildaddr -- this requires passing a lot of flags to get 82566343Seric it right. Unlike old versions, this ONLY rewrites 82666343Seric recipient addresses, not sender addresses. 82766343Seric Fix a bug that caused core dumps in config files that cannot 82866343Seric resolve /file/name style addresses. Fix from Jonathan 82966343Seric Kamens of OpenVision Technologies. 83066343Seric Fix problem with fcntl locking that can cause error returns to 83166343Seric be lost if the lock is lost; this required fully 83266343Seric queueing everything, dropping the envelope (so errors 83366343Seric would get returned), and then re-reading the queue from 83466343Seric scratch. 83566343Seric Fix a problem that caused aliases that redefine an otherwise 83666343Seric true address to still send to the original address 83766343Seric if and only if the alias failed in certain bizarre 83866343Seric ways (e.g, if they pointed at a list:; syntax address). 83966343Seric Problem pointed out by Jonathan Kamens. 84066343Seric Remove support for frozen configuration files. They caused 84166343Seric more trouble than it was worth. 84266343Seric Fix problem that can cause error messages to get ignored when 84366343Seric using both -odb and -t flags. Problem noted by Rob 84466343Seric McNicholas at U.C. Berkeley. 84566343Seric Include all "normal" variations on hostname in $=w. For example, 84666343Seric if the host name is vangogh.cs.berkeley.edu, $=w will 84766343Seric contain vangogh, vangogh.cs, and vangogh.cs.berkeley.edu. 84866343Seric Add "restrictqrun" privacy flag -- without this, anyone can run 84966343Seric the queue. 85066343Seric Reset SmtpPhase global on initial connection creation so that 85166343Seric messages don't come out with stale information. 85266343Seric Pass an "ext" argument to lockfile so that error/log messages 85366343Seric will properly reflect the true filename being locked. 85466343Seric Put all [...] address forms into $=w -- this eliminates the need 85566343Seric for MAXIPADDR in conf.h. Suggested by John Gardiner 85666343Seric Myers of CMU. 85766343Seric Fix a bug that can cause qf files to be left around even after 85866343Seric an SMTP RSET command. Problem and fix from Michael 85966343Seric Corrigan. 86066343Seric Don't send a PostMasterCopy to errors when the Precedence: is 86166343Seric negative. Error reports still go to the envelope 86266343Seric sender address. 86366343Seric Add LA_SHORT for load averages. 86466343Seric Lock sendmail.st file when posting statistics. 86566343Seric Add "SendBufSize" and "RcvBufSize" suboptions to "O" option to 86666343Seric set the size of the TCP send and receive buffers; if you 86766343Seric run over a slow slip line you may need to set these down 86866343Seric (although it would be better to fix the SLIP implementation 86966343Seric so that it's not necessary to recompile every program 87066343Seric that does bulk data transfer). 87166343Seric Allow null defaults on $( ... $) lookups. Problem reported by 87266343Seric Amir Plivatsky. 87366343Seric Diagnose crufty S and V config lines. This resulted from an 87466343Seric observation that some people were using the SITE macro 87566343Seric without the SITECONFIG macro first, which was causing 87666343Seric bogus config files that were not caught. 87766343Seric Fix makemap -f flag to turn off case folding (it was turning it 87866343Seric on instead). THIS IS A USER VISIBLE CHANGE!!! 87966343Seric Fix a problem that caused multiple error messages to be sent if 88066343Seric you used "sendmail -t -oem -odb", your system uses fcntl 88166343Seric locking, and one of the recipient addresses is unknown. 88266343Seric Reset uid earlier in include() so that recursive .forwards or 88366343Seric :include:s don't use the wrong uid. 88466343Seric If file descriptor 0, 1, or 2 was closed when sendmail was 88566343Seric called, the code to recover the descriptor was broken. 88666343Seric This sometimes (only sometimes) caused problems with the 88766343Seric alias file. Fix from Motonori Nakamura. 88866343Seric Fix a problem that caused aliaswait to go into infinite recursion 88966343Seric if the @:@ metasymbol wasn't found in the alias file. 89066343Seric Improve error message on newaliases if database files cannot be 89166343Seric opened or if running with no database format defined. 89266343Seric Do a better estimation of the size of error messages when NoReturn 89366343Seric is set. Problem noted by P{r (Pell) Emanuelsson. 89466343Seric Fix a problem causing the "c" option (don't connect to expensive 89566343Seric mailers) to be ignored in SMTP. Problem noted and the 89666343Seric solution suggested by Robert Elz of Munnari University. 89766343Seric Improve connection caching algorithm by passing "[host]" to 89866343Seric hostsignature, which strips the square brackets and 89966343Seric returns the real name. This allows mailertable entries 90066343Seric to match regular entries. 90166343Seric Re-enable Return-Receipt-To: -- people seem to want this stupid 90266343Seric feature, even if it doesn't work right. 90366343Seric Catch and log attempts to try the "wiz" command in server SMTP. 90466343Seric This also ups the log level from LOG_NOTICE to LOG_CRIT. 90566343Seric Be more generous at assigning $z to the home directory -- do this 90666343Seric for programs that are specified through a .forward file. 90766343Seric Fix from Andrew Chang of Sun Microsystems. 90866343Seric Always save a fatal error message in preference to a non-fatal 90966343Seric error message so that the "subject" line of return 91066343Seric messages is the best possible. 91166343Seric CONFIG: reduce the number of quotes needed to quote configuration 91266343Seric parameters with commas: two quotes should work now, e.g., 91366343Seric define(ALIAS_FILE, ``/etc/aliases,/etc/aliases.local''). 91466343Seric CONFIG: class $=Z is a set of UUCP hosts that use uucp-dom 91566343Seric connections (domain-ized UUCP). 91666343Seric CONFIG: fix bug in default maps (-o must be before database file 91766343Seric name). Pointed out by Christophe Wolfhugel. 91866343Seric CONFIG: add FEATURE(nodns) to state that we are not relying on 91966343Seric DNS. This would presumably be used in UUCP islands. 92066343Seric CONFIG: add OSTYPE(nextstep) and OSTYPE(linux). 92166343Seric CONFIG: log $u in Received: line. This is in technical violation 92266343Seric of the standards, since it doesn't guarantee a domain 92366343Seric on the address. 92466343Seric CONFIG: don't assume "m" in local mailer flags -- this means that 92566343Seric if you redefine LOCAL_MAILER_FLAGS you will have to include 92666343Seric the "m" flag should you want it. Apparently some Solaris 2.2 92766343Seric installations can't handle multiple local recipients. 92866343Seric Problem noted by Josh Smith. 92966343Seric CONFIG: add confDOMAIN_NAME to set $j (if undefined, $j defaults). 93066343Seric CONFIG: change default version level from 4 to 5. 93166343Seric CONFIG: add FEATURE(nullclient) to create a config file that 93266343Seric forwards all mail to a hub without ever looking at the 93366343Seric addresses in any detail. 93466343Seric CONFIG: properly strip mailer: information off of relays when 93566343Seric used to change .BITNET form into %-hack form. 93666343Seric CONFIG: fix a problem that caused infinite loops if presented 93766343Seric with an address such as "!foo". 93866343Seric CONFIG: check for self literal (e.g., [128.32.131.12]) even if 93966343Seric the reverse "PTR" mapping is broken. There's a better 94066343Seric way to do this, but the change is fairly major and I 94166343Seric want to hold it for another release. Problem noted by 94266343Seric Bret Marquis. 94366343Seric 94466342Seric8.5/8.5 93/07/23 94566342Seric Serious bug: if you used a command line recipient that was unknown 94666342Seric sendmail would not send a return message (it was treating 94766342Seric everything as though it had an SMTP-style client that 94866342Seric would do the return itself). Problem noted by Josh Smith. 94966342Seric Change "trymx" option in getcanonname() to ignore all MX data, 95066342Seric even during a T_ANY query. This actually didn't break 95166342Seric anything, because the only time you called getcanonname 95266342Seric with !trymx was if you already knew there were no MX 95366342Seric records, but it is somewhat cleaner. From Motonori 95466342Seric Nakamura. 95566342Seric Don't call getcanonname from getmxrr if you already know there 95666342Seric are no DNS records matching the name. 95766342Seric Fix a problem causing error messages to always include "The 95866342Seric original message was received ... from localhost". 95966342Seric The correct original host information is now included. 96066342Seric Previous change to cf/sh/makeinfo.sh doesn't port to Ultrix (their 96166342Seric version of "test" doesn't have the -x flag). Change it 96266342Seric to use -f instead. From John Myers. 96366342Seric CONFIG: 8.4 mistakenly set the default SMTP-style mailer to 96466342Seric esmtp -- it should be smtp. 96566342Seric CONFIG: send all relayed mail using confRELAY_MAILER (defaults 96666342Seric to "relay" (a variant of "smtp") if MAILER(smtp) is used, 96766342Seric else "suucp" if MAILER(uucp) is used, else "unknown"); 96866342Seric this cleans up the configs somewhat. This fixes a serious 96966342Seric problem that caused route-addrs to get mistaken as relays, 97066342Seric pointed out by John Myers. WARNING: this also causes 97166342Seric the default on SMART_HOST to change from "suucp" to 97266342Seric "relay" if you have MAILER(smtp) specified. 97366342Seric 97466341Seric8.4/8.4 93/07/22 97566341Seric Add option `w'. If you receive a message that comes to you because 97666341Seric you are the best (lowest preference) target of an MX, and 97766341Seric you haven't explicitly recognized the source MX host in 97866341Seric your .cf file, this option will cause you to try the target 97966341Seric host directly (as if there were no MX for it at all). If 98066341Seric `w' is not set, this case is a configuration error. 98166341Seric Beware: if `w' is set, senders may get bogus errors like 98266341Seric "message timed out" or "host unknown" for problems that 98366341Seric are really configuration errors. This option is 98466341Seric disrecommended, provided only for compatibility with 98566341Seric UIUC sendmail. 98666341Seric Fix a problem that caused the incoming socket to be left open 98766341Seric when sendmail forks after the DATA command. This caused 98866341Seric calling systems to wait in FIN_WAIT_2 state until the 98966341Seric entire list was processed and the child closed -- a 99066341Seric potentially prodigious amount of time. Problem noted 99166341Seric by Neil Rickert. 99266341Seric Fix problem (created in 6.64) that caused mail sent to multiple 99366341Seric addresses, one of which was a bad address, to completely 99466341Seric suppress the sending of the message. This changes 99566341Seric handling of EF_FATALERRS somewhat, and adds an 99666341Seric EF_GLOBALERRS flag. This also fixes a potential problem 99766341Seric with duplicate error messages if there is a syntax error 99866341Seric in the header of a message that isn't noticed until late 99966341Seric in processing. Original problem pointed out by Josh Smith 100066341Seric of Harvey Mudd College. This release includes quite a bit 100166341Seric of dickering with error handling (see below). 100266341Seric Back out SMTP transaction if MAIL gets nested 501 error. This 100366341Seric will only hurt already-broken software and should help 100466341Seric humans. 100566341Seric Fix a problem that broke aliases when neither NDBM nor NEWDB were 100666341Seric compiled in. It would never read the alias file. 100766341Seric Repair unbalanced `)' and `>' (the "open" versions are already 100866341Seric repaired). 100966341Seric Logging of "done" in dropenvelope() was incorrect: it would 101066341Seric log this even when the queue file still existed. Change 101166341Seric this to only log "done" (at log level 11) when the 101266341Seric queue file is actually removed. From John Myers. 101366341Seric Log "lost connection" in server SMTP at log level 20 if there 101466341Seric is no pending transaction. Some senders just close the 101566341Seric connection rather than sending QUIT. 101666341Seric Fix a bug causing getmxrr to add a dot to the end of unqualified 101766341Seric domains that do not have MX records -- this would cause 101866341Seric the subsequent host name lookup to fail. The problem 101966341Seric only occurred if you had FEATURE(nocanonify) set. 102066341Seric Problem noted by Rick McCarty of Texas Instruments. 102166341Seric Fix invocation of setvbuf when passed a -X flag -- I had 102266341Seric unwittingly used an ANSI C extension, and this caused 102366341Seric core dumps on some machines. 102466341Seric Diagnose self-destructive alias loops on RCPT as well as EXPN. 102566341Seric Previously it just gave an empty send queue, which 102666341Seric then gave either "Need RCPT (recipient)" at the DATA 102766341Seric (confusing, since you had given an RCPT command which 102866341Seric returned 250) or just dropped the email, depending on 102966341Seric whether you were running VERBose mode. Now it usually 103066341Seric diagnoses this case as "aliasing/forwarding loop broken". 103166341Seric Unfortunately, it still doesn't adequately diagnose 103266341Seric some true error conditions. 103366341Seric Add internal concept of "warning messages" using 6xx codes. 103466341Seric These are not reported only to Postmaster. Unbalanced 103566341Seric parens, brackets, and quotes are printed as 653 codes. 103666341Seric They are always mapped to 5xx codes before use in SMTP. 103766341Seric Clean up error messages to tell both the actual address that 103866341Seric failed and the alias they arose from. This makes it 103966341Seric somewhat easier to diagnose problems. Difficulty noted 104066341Seric by Motonori Nakamura. 104166341Seric Fix a problem that inappropriately added a ctladdr to addresses 104266341Seric that shouldn't have had one during a queue run. This 104366341Seric caused error messages to be handled differently during 104466341Seric a queue run than a direct run. 104566341Seric Don't print the qf name and line number if you get errors during 104666341Seric the direct run of the queue from srvrsmtp -- this was 104766341Seric just extra stuff for users to crawl through. 104866341Seric Put command line flags on second line of pid file so you can 104966341Seric auto-restart the daemon with all appropriate arguments. 105066341Seric Use "kill `head -1 /etc/sendmail.pid`" to stop the 105166341Seric daemon, and "eval `tail -1 /etc/sendmail.pid`" to 105266341Seric restart it. 105366341Seric Remove the ``setuid(getuid())'' in main -- this caused the 105466341Seric IDENT daemon to screw up. This required that I change 105566341Seric HASSETEUID to HASSETREUID and complicate the mode 105666341Seric changing somewhat because both Ultrix and SunOS seem 105766341Seric to have a bug causing seteuid() to set the saved uid 105866341Seric as well as the effective. The program test/t_setreuid.c 105966341Seric will test to see if your implementation of setreuid(2) 106066341Seric is appropriately functional. 106166341Seric The FallBackMX (option V) handling failed to properly identify 106266341Seric fallback to yourself -- most of the code was there, 106366341Seric but it wasn't being enabled. Problem noted by Murray 106466341Seric Kucherawy of the University of Waterloo. 106566341Seric Change :include: open timeout from ETIMEDOUT to an internal 106666341Seric code EOPENTIMEOUT; this avoids adding "during SmtpPhase 106766341Seric with CurHostName" in error messages, which can be 106866341Seric confusing. Reported by Jonathan Kamens of OpenVision 106966341Seric Technologies. 107066341Seric Back out setpgrp (setpgid on POSIX systems) call to reset the 107166341Seric process group id. The original fix was to get around 107266341Seric some problems with recalcitrant MUAs, but it breaks 107366341Seric any call from a shell that creates a process group id 107466341Seric different from the process id. I could try to fix 107566341Seric this by diddling the tty owner (using tcsetpgrp or 107666341Seric equivalent) but this is too likely to break other 107766341Seric things. 107866341Seric Portability changes: 107966341Seric Support -M as equivalent to -oM on Ultrix -- apparently 108066341Seric DECnet calls sendmail with -MrDECnet -Ms<HOST> -bs 108166341Seric instead of using standard flags. Oh joy. This 108266341Seric behaviour reported by Jon Giltner of University 108366341Seric of Colorado. 108466341Seric SGI IRIX -- this includes several changes that should 108566341Seric help other strict ANSI compilers. 108666341Seric SCO Unix -- from Murray Kucherawy of HookUp Communication 108766341Seric Corporation. 108866341Seric Solaris running the Sun C compiler (which despite the 108966341Seric documentation apparently doesn't define 109066341Seric __STDC__ by default). 109166341Seric ConvexOS from Eric Schnoebelen of Convex. 109266341Seric Sony NEWS workstations and Omron LUNA workstations from 109366341Seric Motonori Nakamura. 109466341Seric CONFIG: add confTRY_NULL_MX_LIST to set option `w'. 109566341Seric CONFIG: delete `C' and `e' from default SMTP mailers flags; 109666341Seric several people have made a good argument that this 109766341Seric creates more problems than it solves (although this 109866341Seric may prove painful in the short run). 109966341Seric CONFIG: generalize all the relays to accept a "mailer:host" 110066341Seric format. 110166341Seric CONFIG: move local processing in ruleset 0 into a new ruleset 110266341Seric 98 (8 on old sendmail). Domain literal [a.b.c.d] 110366341Seric addresses are also passed through this ruleset. 110466341Seric CONFIG: if neither SMART_HOST nor MAILER(smtp) were defined, 110566341Seric internet-style addresses would "fall off the end" of 110666341Seric ruleset zero and be interpreted as local -- however, 110766341Seric the angle brackets confused the recursive call. 110866341Seric These are now diagnosed as "Unrecognized host name". 110966341Seric CONFIG: USENET rules weren't included in S0 because of a mistaken 111066341Seric ifdef(`_MAILER_USENET_') instead of 111166341Seric ifdef(`_MAILER_usenet_'). Problem found by Rein Tollevik 111266341Seric of SINTEF RUNIT, Oslo. 111366341Seric CONFIG: move up LOCAL_RULE_0 processing so that it happens very 111466341Seric early in ruleset 0; this allows .mc authors to bypass 111566341Seric things like the "short circuit" code for local addresses. 111666341Seric Prompted by a comment by Bill Wisner of The Well. 111766341Seric CONFIG: add confSMTP_MAILER to define the mailer used (smtp or 111866341Seric esmtp) to send SMTP mail. This allows you to default 111966341Seric to esmtp but use a mailertable or other override to 112066341Seric deal with broken servers. This logic was pointed out 112166341Seric to me by Bill Wisner. Ditto for confLOCAL_MAILER. 112266341Seric Changes to cf/sh/makeinfo.sh to make it portable to SVR4 112366341Seric environments. Ugly as sin. 112466341Seric 112566340Seric8.3/8.3 93/07/13 112666340Seric Fix setuid problems introduced in 8.2 that caused messages 112766340Seric like "Cannot create qfXXXXXX: Invalid argument" 112866340Seric or "Cannot reopen dfXXXXXX: Permission denied". This 112966340Seric involved a new compile flag "HASSETEUID" that takes 113066340Seric the place of the old _POSIX_SAVED_IDS -- it turns out 113166340Seric that the POSIX interface is broken enough to break 113266340Seric some systems badly. This includes some fixes for 113366340Seric HP-UX. Also fixes problems where the real uid is 113466340Seric not reset properly on startup (from Neil Rickert). 113566340Seric Fix a problem that caused timed out messages to not report the 113666340Seric addresses that timed out. Error messages are also more 113766340Seric "user friendly". 113866340Seric Drop required bandwidth on connections from 64 bytes/sec to 113966340Seric 16 bytes/sec. 114066340Seric Further Solaris portability changes -- doesn't require the BSD 114166340Seric compatibility library. This also adds a new 114266340Seric "HASGETDTABLESIZE" compile flag which can be used if 114366340Seric you want to use getdtablesize(2) instead of sysconf(2). 114466340Seric These are loosely based on changes from David Meyer at 114566340Seric University of Oregon. This now seems to work, at least 114666340Seric for quick test cases. 114766340Seric Fix a problem that can cause duplicate error messages to be 114866340Seric sent if you are in SMTP, you send to multiple addresses, 114966340Seric and at least one of those addresses is good and points 115066340Seric to an account that has a .forward file (whew!). 115166340Seric Fix a problem causing messages to be discarded if checkcompat() 115266340Seric returned EX_TEMPFAIL (because it didn't properly mark 115366340Seric the "to" address). Problem noted by John Myers. 115466340Seric Fix dfopen to return NULL if the open failed; I was depending 115566340Seric on fdopen(-1) returning NULL, which isn't the case. This 115666340Seric isn't serious, but does result in wierd error diagnoses. 115766340Seric From Michael Corrigan. 115866340Seric CONFIG: add UUCP_MAX_SIZE M4 macro to set the maximum size of 115966340Seric messages sent through UUCP-family mailers. Suggested 116066340Seric by Bill Wisner of The Well. 116166340Seric CONFIG: if both MAILER(uucp) and MAILER(smtp) are specified, 116266340Seric include a "uucp-dom" mailer that uses domain-style 116366340Seric addressing. Suggested by Bill Wisner. 116466340Seric CONFIG: Add LOCAL_SHELL_FLAGS and LOCAL_SHELL_ARGS to match 116566340Seric LOCAL_MAILER_FLAGS and LOCAL_MAILER_ARGS. Suggested by 116666340Seric Christophe Wolfhugel. 116766340Seric CONFIG: Add OSTYPE(aix3). From Christophe Wolfhugel. 116866340Seric 116966339Seric8.2/8.2 93/07/11 117066339Seric Don't drop out on config file parse errors in -bt mode. 117166339Seric On older configuration files, assume option "l" (use Errors-To 117266339Seric header) for back compatibility. NOTE: this DOES NOT 117366339Seric imply an endorsement of the Errors-To: header in any way. 117466339Seric Accept -x flag on AIX-3 as well as OSF/1. Why, why, why??? 117566339Seric Don't log errors on EHLO -- it isn't a "real" error for an old 117666339Seric SMTP server to give an error on this command, and 117766339Seric logging it in the transcript can be confusing. Fix 117866339Seric from Bill Wisner. 117966339Seric IRIX compatibility changes provided by Dan Rich 118066339Seric <drich@sandman.lerc.nasa.gov>. 118166339Seric Solaris 2 compatibility changes. Provided by Bob Cunningham 118266339Seric <bob@kahala.soest.hawaii.edu>, John Oleynick 118366339Seric <juo@klinzhai.rutgers.edu> 118466339Seric Debugging: -d17 was overloaded (hostsignature and usersmtp.c); 118566339Seric move usersmtp (smtpinit and smtpmailfrom) to -d18 to 118666339Seric match the other flags in that file. 118766339Seric Flush transcript before fork in mailfile(). From Eric Wassenaar. 118866339Seric Save h_errno in mci struct and improve error message display. 118966339Seric Changes from Eric Wassenaar. 119066339Seric Open /dev/null for the transcript if the create of the xf file 119166339Seric failed; this avoids at least one possible null pointer 119266339Seric reference in very wierd cases. From Eric Wassenaar. 119366339Seric Clean up statistics gathering; it was over-reporting because of 119466339Seric forks. From Eric Wassenaar. 119566339Seric Fix problem that causes old Return-Path: line to override new 119666339Seric Return-Path: line (conf.c needs H_FORCE to avoid 119766339Seric re-using old value). From Motonori Nakamura. 119866339Seric Fix broken -m flag in K definition -- even if -m (match only) 119966339Seric was specified, it would still replace the key with the 120066339Seric value. Noted by Rick McCarty of Texas Instruments. 120166339Seric If the name server timed out over several days, no "timed out" 120266339Seric message would ever be sent back. The timeout code 120366339Seric has been moved from markfailure() to dropenvelope() 120466339Seric so that all such failures should be diagnosted. Pointed 120566339Seric out by Christophe Wolfhugel and others. 120666339Seric Relax safefile() constraints: directories in an include or 120766339Seric forward path must be readable by self if the controlling 120866339Seric user owns the entry, readable by all otherwise (e.g., 120966339Seric when reading your .forward file, you have to own and 121066339Seric have X permssion in it; everyone needs X permission in 121166339Seric the root and directories leading up to your home); 121266339Seric include files must be readable by anyone, but need not 121366339Seric be owned by you. 121466339Seric If _POSIX_SAVED_IDS is defined, setuid to the owner before 121566339Seric reading a .forward file; this gets around some problems 121666339Seric on NFS mounts if root permission is not exported and 121766339Seric the user's home directory isn't x'able. 121866339Seric Additional NeXT portability enhancements from Axel Zinser. 121966339Seric Additional HP-UX portability enhancements from Brian Bullen. 122066339Seric Add a timeout around SMTP message writes; this assumes you can 122166339Seric get throughput of at least 64 bytes/second. Note that 122266339Seric this does not impact the "datafinal" default, which 122366339Seric is separate; this is just intended to work around 122466339Seric network clogs that will occur before the final dot 122566339Seric is sent. From Eric Wassenaar. 122666339Seric Change map code to set the "include null" flag adaptively -- 122766339Seric it initially tries both, but if it finds anything 122866339Seric matching without a null it never tries again with a 122966339Seric null and vice versa. If -N is specified, it never 123066339Seric tries without the null and creates new maps with a 123166339Seric null byte. If -O is specified, it never tries with 123266339Seric the null (for efficiency). If -N and -O are specified, 123366339Seric you get -NO (get it?) lookup at all, so this would 123466339Seric be a bad idea. If you don't specify either -N or -O, 123566339Seric it adapts. 123666339Seric Fix recognition of "same from address" so that MH submissions 123766339Seric will insert the appropriate full name information; 123866339Seric this used to work and got broken somewhere along the 123966339Seric way. 124066339Seric Some changes to eliminate some unnecessary SYSERRs in the 124166339Seric log. For example, if you lost a connection, don't 124266339Seric bother reporting that fact on the connection you lost. 124366339Seric Add some "extended debugging" flags to try to track down 124466339Seric why we get occassional problems with file descriptor 124566339Seric one being closed when execing a mailer; it seems to 124666339Seric only happen when there has been another error in the 124766339Seric same transaction. This requires XDEBUG, defined 124866339Seric by default in conf.h. 124966339Seric Add "-X filename" command line flag, which logs both sides of 125066339Seric all SMTP transactions. This is intended ONLY for 125166339Seric debugging bad implementations of other mailers; start 125266339Seric it up, send a message from a mailer that is failing, 125366339Seric and then kill it off and examine the indicated log. 125466339Seric This output is not intended to be particularly human 125566339Seric readable. This also adds the HASSETVBUF compile 125666339Seric flag, defaulted on if your compiler defines __STDC__. 125766339Seric CONFIG: change SMART_HOST to override an SMTP mailer. If you 125866339Seric have a local net that should get direct connects, you 125966339Seric will need to use LOCAL_NET_CONFIG to catch these hosts. 126066339Seric See cf/README for an example. 126166339Seric CONFIG: add LOCAL_MAILER_ARGS (default: `mail -d $u') to handle 126266339Seric sites that don't use the -d flag. 126366339Seric CONFIG: hide recipient addresses as well as sender addresses 126466339Seric behind $M if FEATURE(allmasquerade) is specified; this 126566339Seric has been requested by several people, but can break 126666339Seric local aliases. For example, if you mail to "localalias" 126766339Seric this will be rewritten as "localalias@masqueradehost"; 126866339Seric although initial delivery will work, replies will be 126966339Seric broken. Use it sparingly. 127066339Seric CONFIG: add FEATURE(domaintable). This maps unqualified domains 127166339Seric to qualified domains in headers. I believe this is 127266339Seric largely equivalent to the IDA feature of the same name. 127366339Seric CONFIG: use $U as UUCP name instead of $k. This permits you 127466339Seric to override the "system name" as your UUCP name -- 127566339Seric in particular, to use domain-ized UUCP names. From 127666339Seric Bill Wisner of The Well. 127766339Seric CONFIG: create new mailer "esmtp" that always tries EHLO 127866339Seric first. This is currently unused in the config files, 127966339Seric but could be used in a mailertable entry. 128066339Seric 128166338Seric8.1C/8.1B 93/06/27 128266338Seric Serious security bug fix: it was possible to read any file on 128366338Seric the system, regardless of ownership and permissions. 128466338Seric If a subroutine returns a fully qualified address, return it 128566338Seric immediately instead of feeding it back into rewriting. 128666338Seric This fixes a problem with mailertable lookups. 128766338Seric CONFIG: fix some M4 frotz (concat => CONCAT) 128866338Seric 128966338Seric8.1B/8.1A 93/06/12 129066338Seric Serious bug fix: pattern matching backup algorithm stepped by 129166338Seric two tokens in classes instead of one. Found by Claus 129266338Seric Assmann at University of Kiel, Germany. 129366338Seric 129466338Seric8.1A/8.1A 93/06/08 129566338Seric Another mailertable fix.... 129666338Seric 129766338Seric8.1/8.1 93/06/07 129866338Seric 4.4BSD freeze. No semantic changes. 129966338Seric 130066338Seric6.65/6.34 93/06/06 130166338Seric Fix some lintish problems. 130266338Seric Fix some cases where server SMTP behaved poorly when handed bogus 130366338Seric input, pointed out by Eric Wassenaar. 130466338Seric CONFIG: fix some more (sigh) mailertable bugs -- thanks to 130566338Seric Motonori Nakamura of Kyoto University (again). 130666338Seric 130766338Seric6.64/6.33 93/06/05 130866338Seric Don't send 050 (-v) information after the 250 response to a QUIT 130966338Seric command in srvrsmtp -- clients usually close the connection 131066338Seric at this point, and it causes bogus error messages. 131166338Seric Don't send messages that have errors on input (such as unbalanced 131266338Seric parentheses) during SMTP transactions, since a return 131366338Seric message has (probably) already been sent. 131466338Seric Give better diagnostics on timeouts during network reads, including 131566338Seric information similar to the SMTP phase. 131666338Seric Fix bug that caused SMTP messages to deliver synchronously; this 131766338Seric happened after the DATA 250, and hence caused reading the 131866338Seric next command to be delayed. 131966338Seric Ignore Errors-To: header unless 'l' (lower case el) header is 132066338Seric specified. The Errors-To: header violates RFC 1123. 132166338Seric Errors-To: was only needed to take the place of the 132266338Seric envelope sender in the days when most Unix mailers 132366338Seric didn't understand about the two kinds of senders. 132466338Seric Don't send warning messages in response to automatically generated 132566338Seric messages (that is, those From:<>). 132666338Seric CONFIG: fix some rather stupid typos in the mailertable code 132766338Seric pointed out by Motonori Nakamura of Kyoto University. 132866338Seric CONFIG: add confUSE_ERRORS_TO configuration option. 132966338Seric CONFIG: if ALWAYS_ADD_DOMAIN is selected, try to use $M 133066338Seric (masquerade name) instead of $j. 133166338Seric CONFIG: don't add dots to relay names (added in 6.29); it breaks 133266338Seric several things, and can be simulated by dot terminating 133366338Seric the names of relays. For example, use: 133466338Seric DBbit.net.relay. 133566338Seric (note the trailing dot). 133666338Seric 133766338Seric6.63/6.32 93/06/01 133866338Seric Fix prototypes to eliminate chars in argument lists -- some 133966338Seric compilers are pissy about this. 134066338Seric Log protocol ($r) and body type if set so we can determine if 134166338Seric the adaptive algorithms are working. 134266338Seric Pessimize on locking of database files (particularly for NEWDB 134366338Seric databases) during opens. There were problems with 134466338Seric processes opening the file while it was rebuilt; since 134566338Seric NEWDB caches heavily, the reader opened an empty file, 134666338Seric which is an error. If your system has the ability to 134766338Seric lock atomically on open, this works properly; otherwise, 134866338Seric there are race conditions. 134966338Seric Check mod time on .pag file instead of .dir in NDBM aliases 135066338Seric because the .dir file doesn't get updated for small 135166338Seric alias files. From John Gardiner Myers of CMU. 135266338Seric More Solaris portability -- it now compiles on Solaris, but 135366338Seric hangs up in gethostbyname(). 135466338Seric Move setting of RES_DEBUG flag before first myhostname() call 135566338Seric so we can see name server traffic on that call. 135666338Seric Fsync() queue files. 135766338Seric Fix a problem that causes -bi to try to rebuild maps other than 135866338Seric the alias file(s). 135966338Seric Fix a problem that caused udb to reject entries from any but 136066338Seric the first database listed. 136166338Seric Rearrange doc subdirectory for 4.4BSD release tape. 136266338Seric CONFIG: put $r into the Received line. This was an oversight. 136366338Seric CONFIG: fix typo (call to ruleset 99 should have been rulset 90). 136466338Seric CONFIG: move "auxiliary" subroutines to be in ruleset 90-99 136566338Seric range -- in the long run, single digit rulesets may 136666338Seric become reserved for builtin use by sendmail. 136766338Seric CONFIG: fix major problem that causes host aliases (that is, 136866338Seric anything in $=w != $j) to not be recognized. This has 136966338Seric been around since 6.30. 137066338Seric 137166338Seric6.62/6.31 93/05/28 137266338Seric BETA RELEASE 137366338Seric Fix recursive syserr (if there is an error printing a syserr 137466338Seric message). This makes the code much less eager to consider 137566338Seric a write error as serious. This also includes some 137666338Seric heuristics to be clever about closed connections. 137766338Seric Lock NEWDB files during gets. This requires version 1.5 or later 137866338Seric of the db library. If you have an older version, you 137966338Seric can use -DOLD_NEWDB. This will go away in a few weeks. 138066338Seric Fix problem causing aliases that use host maps to get overwritten. 138166338Seric Do appropriate byte swapping on port numbers in ident protocol 138266338Seric code. Fix from Allan Johannesen of WPI. 138366338Seric Defer opening of map files to the same time as alias files so that 138466338Seric the daemon will tend to pick up new versions more promptly. 138566338Seric Prototype a bunch more functions. 138666338Seric Some Solaris 2.1 changes (still doesn't link though). 138766338Seric Try to simplify Makefiles by including more subordinate #defines 138866338Seric in conf.h (based on OS type). 138966338Seric CONFIG: check for domains if FEATURE(mailertable) is defined. 139066338Seric For example, if the host name is "knecht.cs.berkeley.edu" 139166338Seric it will search the following mailertable keys: 139266338Seric knecht.cs.berkeley.edu 139366338Seric .cs.berkeley.edu 139466338Seric .berkeley.edu 139566338Seric .edu 139666338Seric This could be used to replace the special relays for bitnet 139766338Seric and similar nets. 139866338Seric 139966338Seric6.61/6.30 93/05/24 140066338Seric Fix problem that prevented appending dots on canonified host 140166338Seric names. This breaks tons of config files -- very 140266338Seric important fix. 140366338Seric Fix improper pointer dereference in response to HELO command. 140466338Seric Fix core dump if debugging set in map_rewrite. 140566338Seric CONFIG: add FEATURE(always_add_domain) to always attach the 140666338Seric local domain (only impacts local mail). 140766338Seric CONFIG: try to avoid turning names into $j -- although 140866338Seric technically a host can only have one "canonical name", 140966338Seric it seems to be common practice to have several. 141066338Seric 141166338Seric6.60/6.29 93/05/22 141266338Seric Major change: merge alias databases with maps. This expands and 141366338Seric changes the map class interface but fixes a bunch of bugs. 141466338Seric The important user-visible change is that the file name 141566338Seric in a K line now does not include the ".db" extension; this 141666338Seric is added automatically. Also, the -d (NIS domain) flag is 141766338Seric missing from the K config line; use @domain instead. 141866338Seric When compiling, the *_MAP names are gone -- just compile 141966338Seric in NDBM, NEWDB, and/or NIS support. 142066338Seric Announce mailer/host/user triple on -bv flag -- from Brian 142166338Seric Bullen of Stirling University. 142266338Seric Don't send more than one line in response to HELO -- it confuses 142366338Seric Pony Express, which then behaves very badly. However, 142466338Seric this change does send two line 220 greetings, with the 142566338Seric second line reading "ESMTP spoken here". The usersmtp 142666338Seric module recognizes this and goes into ESMTP mode regardless 142766338Seric of the setting of the "a" mailer flag. Thus, "a" means 142866338Seric "always try EHLO". 142966338Seric AIX portability changes (thanks to Christophe Wolfhugel of 143066338Seric Herve Schauer Consultants (Paris) for providing me with 143166338Seric an INSA account for this purpose). Lightly tested. Use 143266338Seric -D_AIX3. This probably breaks compatibility with some 143366338Seric older systems (e.g., 4.2bsd) but still works on SunOS 143466338Seric 4.1.2, Ultrix 4.2A, HP-UX 8.07, OSF/1 T1.3, and AIX 3.2.3. 143566338Seric Fix a problem causing an error message loop if the output channel 143666338Seric is hosed. 143766338Seric Add the Makefiles that I use for various environments -- some are 143866338Seric Berkeley make versions and some are old make versions. 143966338Seric My makefile for the NeXT box has gotten lost, alas! 144066338Seric PRALIASES: support for printing NEWDB databases. From 144166338Seric Michael J. Corrigan of U.C. San Diego. 144266338Seric CONFIG: don't pass pseudo-domains to $[ ... $] (if you have 144366338Seric a wildcard MX it can have wierd results). From 144466338Seric Christophe Wolfhugel. 144566338Seric CONFIG: dot terminate relay hostnames in S0. From Christophe 144666338Seric Wolfhugel. 144766338Seric 144866338Seric6.59/6.28 93/05/13 144966338Seric Log version with SMTP daemon startup message. 145066338Seric Adjust setproctitle to work on NetBSD and BSD/386. 145166338Seric Fix null pointer reference in MX fallback code. 145266338Seric A bunch of minor fixes from Eric Wassenaar: 145366338Seric If deliver cannot execv the mailer, return EX_OSERR 145466338Seric instead of EX_TEMPFAIL (to give better 145566338Seric error messages). 145666338Seric Consistently malloc e_message. 145766338Seric Catch degenerate case of calling returntosender() 145866338Seric with an empty returnq. 145966338Seric MIME reformatting. 146066338Seric 146166338Seric6.58/6.28 93/05/13 146266338Seric Fix bug that can cause incorrect verbose display of user smtp 146366338Seric messages. 146466338Seric Disable SMTP VERB command if PRIV_NOEXPN is set (since this 146566338Seric could reveal the same information. 146666338Seric Allow failure when reading SMTP greeting message to go on to 146766338Seric next MX host. 146866338Seric Add "MIME-Version: 1.0" header if using MIME (this was NOT 146966338Seric included in RFC 1344, but Bill King of Allan-Bradley 147066338Seric Company forwarded me email from Nathaniel Borenstein 147166338Seric claiming that it was an inadvertent omission). 147266338Seric Don't use Content-Type: X-message-header. According to John 147366338Seric Myers of CMU, many MIME readers will completely ignore 147466338Seric the data if they don't recognize it. Instead, just 147566338Seric add a blank line to make it a legal (empty) message. 147666338Seric Fix problem causing dots to keep getting appended to cached 147766338Seric hostnames. This can cause buffer overrun conditions. 147866338Seric The problem was found by Erik Forsberg of Retix, 147966338Seric although I used a different bug fix than he provided. 148066338Seric Fix parsing of split header/envelope rewriting specs -- from 148166338Seric Eric Forsberg. 148266338Seric Fix from Eric Wassenaar to correct To: lists in error messages. 148366338Seric 148466338Seric6.57/6.28 93/05/11 148566338Seric Fix minor glitch causing extra ctladdrs to be output to queue 148666338Seric file. Just an annoyance. 148766338Seric Cache results of name server canonification lookups to avoid 148866338Seric backed up queue runs. 148966338Seric Major rewrite of alias.c: considerable cleanup, plus sample 149066338Seric (untested) support for NIS aliases. The "A" option 149166338Seric can now be a comma separated list (or be repeated) -- 149266338Seric that is, you can have multiple alias databases. Each 149366338Seric database can have the syntax ``class:file''; if no class 149466338Seric is specified, the "implicit" class is assumed. Implicit 149566338Seric searches through a list of compiled in types -- hash, 149666338Seric dbm, nis, and stab. Alias files are searched in the 149766338Seric order they are listed. For example: 149866338Seric OAhash:/etc/aliases.local,/etc/aliases 149966338Seric OAnis:mail.aliases@my.nis.domain 150066338Seric first searches the hash database /etc/aliases.local, 150166338Seric then the regular /etc/aliases database, then the NIS 150266338Seric map "mail.aliases" in the NIS domain "my.nis.domain". 150366338Seric If in Verbose mode (probably from VERB command) run SMTP job 150466338Seric in foreground and don't do RCPT optimizations. 150566338Seric Add udb :mailsender as equivalent to owner- for regular aliases. 150666338Seric Delete option 8; add option 7 that means the opposite. That is, 150766338Seric default to 8-bit mode; a special option is needed to 150866338Seric force sendmail into 7 bit mode. 150966338Seric Send error messages in encapsulated MIME format. 151066338Seric New compile flag "NIS" that turns on NIS alias and NIS map 151166338Seric support. 151266338Seric Add "j" option to send error messages in MIME (RFC 1341) 151366338Seric encapsulated message format per RFC 1344. The 151466338Seric syntax is pretty ugly if you don't have MIME-aware 151566338Seric user agents. 151666338Seric Clean up message handling (for display in mailq output). 151766338Seric New setproctitle implementation for 4.4bsd. 151866338Seric Create files (such as ~/dead.letter) using mode FileMode (the 151966338Seric F option value) instead of 0666. 152066338Seric Fix bug causing output of EXPN command to not be fully qualified. 152166338Seric This may cause some problems with UUCP addresses that 152266338Seric will require some config file assistance -- specifically, 152366338Seric the $: part has to include the host name for this output 152466338Seric to make sense. 152566338Seric Fix a problem that sometimes diagnosed errors and still sent the 152666338Seric message if the header syntax was bad. 152766338Seric Fix a bug that caused an error message to be emailed when sendmail 152866338Seric was operating in -bv mode. 152966338Seric Add "ListenQueueSize" keyword to daemon options option (OO) to 153066338Seric set the queue size parameter passed to listen(). You 153166338Seric will normally have to tweak your kernel to up this. 153266338Seric Strip spaces off of beginning of message-id before logging (in 153366338Seric case it was folded across lines). 153466338Seric Tweak compile flags in daemon.c -- there were some cases where 153566338Seric it wouldn't work without NETINET. 153666338Seric Change *file* mailer to output all the usual default headers 153766338Seric (From, Date, Message-Id). It gets used when sending 153866338Seric back error messages. 153966338Seric CONFIG: explicitly catch and diagnose list:; syntax in ruleset 154066338Seric zero -- this is not a valid recipient syntax according 154166338Seric to RFC 821. 154266338Seric CONFIG: add confMIME_FORMAT_ERRORS to send error messages in 154366338Seric MIME format. Defaults to on. 154466338Seric CONFIG: add SMTP_MAILER_FLAGS and UUCP_MAILER_FLAGS to augment 154566338Seric the flags for those mailers. 154666338Seric 154766338Seric6.56/6.27 93/05/01 154866338Seric Fix problem that causes the fallback mail to postmaster 154966338Seric (case ESM_POSTMASTER in savemail()) to not look at 155066338Seric aliases (ugh). 155166338Seric Some more HPUX tweaking (compile flag hpux => __hpux so it 155266338Seric still works in ANSI mode). 155366338Seric Don't try to flock non-regular files when mailing to a file. 155466338Seric In particular, this was a problem if you tried to 155566338Seric send to /dev/null. 155666338Seric Fix a wierd bug that can cause senders to be queued as 155766338Seric recipients if the name server is down when the mail 155866338Seric is initially sent. This hack just ignores sender 155966338Seric deletion (essentially, it sets the MeToo flag) if there 156066338Seric is a TEMPFAIL during processing of the sender address. 156166338Seric Obscure. 156266338Seric Fix a dangling else problem -- from Brian Bullen from University 156366338Seric of Stirling, UK. 156466338Seric Add the "b" mailer flag to force a blank line on the end of 156566338Seric messages. Some brilliant versions of /bin/mail insist 156666338Seric on this but do not add it themselves. 156766338Seric Add the "g" mailer flag to prevent user SMTP from sending 156866338Seric "MAIL From:<>". This is only intended to be a 156966338Seric transitional gesture, and should not be used if at 157066338Seric all possible. It appears that Berkeley and IDA 157166338Seric config files have always handled this properly; the 157266338Seric UK config kit apparently does not. 157366338Seric Don't lowercase and then capitalize header field names -- leave 157466338Seric them with original capitalization. Fixes from Bill 157566338Seric King of Allen-Bradley Company. 157666338Seric Further cleanup and improved reporting of error messages, 157766338Seric particularly conditions that cause messages to be 157866338Seric requeued for future delivery. 157966338Seric Tweak syslog priorities in some cases. 158066338Seric CONFIG: clean up route-addr on UUCP addresses. 158166338Seric 158266338Seric6.55/6.25 93/04/27 158366338Seric HPUX 8.07 compatibility changes in getla() -- I had to make 158466338Seric these changes to get it to work at Berkeley, although 158566338Seric others seem to have been working before (???). 158666338Seric Various patches to XLA code. 158766338Seric Fix problem that causes setuid bit on files to be ignored from 158866338Seric SMTP or in queue runs. Problem noted by Jason Ornstein 158966338Seric of Under The Wire, Inc. 159066338Seric Fix problem that can cause CNAMEs to be ignored. 159166338Seric Generalize getmxrr to match local host in $=w instead of a 159266338Seric single name passed in. 159366338Seric Some cleanup from Eric Wassenaar: 159466338Seric Use FileMailer instead of ProgMailer in two places. 159566338Seric Eliminate duplicate 8th-bit stripping in commaize. 159666338Seric Fix a problem with mis-parsing of backslash escapes 159766338Seric under some circumstances. 159866338Seric NIS map fix (was always including trailing null character) 159966338Seric from Mike Glendinning of Ingres UK. 160066338Seric Add "a" mailer flag to try using ESMTP. It tries the EHLO 160166338Seric command and if that fails falls back to regular SMTP. 160266338Seric Also parses EHLO option keywords. If host supports 160366338Seric SIZE extension, this is added to the MAIL FROM: 160466338Seric command. 160566338Seric Extend "b" option to include a second value which is the 160666338Seric maximum message size this server is willing to accept. 160766338Seric For example, a value of "10/1000000" says that there 160866338Seric must be ten blocks free, and sendmail will reject 160966338Seric any message larger than one megabyte. 161066338Seric Some portability hooks for NeXT (this could be applicable 161166338Seric to Mach in general). You have to create an empty 161266338Seric file called "unistd.h" to get it to compile. 161366338Seric Adjust config values (MAXLINE, MAXATOM, and PSBUFSIZE) to 161466338Seric be more generous. 161566338Seric Add X400-Received: to the list of headers tagged with H_TRACE 161666338Seric in conf.c. From Bill King, Allen-Bradley Co. 161766338Seric 161866338Seric6.54/6.25 93/04/19 161966338Seric Fix problem that caused redefinition of SMTP and QUEUE compile 162066338Seric flags. Pointed out by Jon Forrest of the Sequoia 2000 162166338Seric project at Berkeley. 162266338Seric Properly handle \! hack -- it was treating host\!user as one 162366338Seric token (host!user) instead of three (host, !, user). 162466338Seric Fix from Eric Wassenaar of NIKHEF-H. 162566338Seric Fix compilation problem in getauthinfo() if IDENTPROTO is off. 162666338Seric Turn off DEFNAMES and DNSRCH when getting the hostsignature 162766338Seric (i.e., MX records) in level 1 configuration files; this 162866338Seric matches the old behaviour. From Motonori Nakamura of 162966338Seric Kyoto University. 163066338Seric Improve error message printing -- if sent through an alias, 163166338Seric error messages include the name of the alias in the 163266338Seric message. Unfortunately, in order to make this work 163366338Seric properly in queue runs, this changes the format of the 163466338Seric C line in the qf file. The relatively uselessness of 163566338Seric the previous information was pointed out to me by 163666338Seric Allan E Johannesen of WPI. 163766338Seric Add XLA compile flag to add hooks to Christophe Wolfhugel's 163866338Seric extended load average code. This is still in very early 163966338Seric form. For information regarding the guts of the xla 164066338Seric code, contact Christophe.Wolfhugel@grasp.insa-lyon.fr. 164166338Seric Additional hooks for detecting tempfails in rewriting rules 164266338Seric (that is, in map lookups). 164366338Seric 164466338Seric6.53/6.25 93/04/15 164566338Seric Properly diagnose ruleset zero returning null (instead of a mailer 164666338Seric triple). From Motonori Nakamura of Kyoto University. 164766338Seric More generalization of socket code for other protocols. 164866338Seric Shorten timeouts on reverse name lookups -- since they are done 164966338Seric during connection establishment, long timeouts here can 165066338Seric cause higher level timeouts. This mainly serves to accept 165166338Seric mail from hosts that do not have proper reverse (PTR) DNS 165266338Seric records set up. 165366338Seric Reset e_statmsg before each mailer invocation to avoid bogus 165466338Seric messages in the log. 165566338Seric Redefine $r, $s, and $_ in error envelopes so you don't get 165666338Seric incorrect cruft in the error message. Problem noted by 165766338Seric Motonori Nakamura of Kyoto University. 165866338Seric Fix a problem that can cause failure to return errors to Postmaster 165966338Seric in certain cases. From Motonori Nakamura. 166066338Seric Fix a problem that can cause some systems to give duplicate error 166166338Seric messages when a bad syntax address such as "<a" is presented 166266338Seric to an SMTP server. It doesn't seem to occur on all 166366338Seric machines. From Motonori Nakamura. 166466338Seric Default IDENTPROTO off for Ultrix and HPUX, which apparently have 166566338Seric the interesting "feature" that when they receive a "Host 166666338Seric unreachable" message they closes all open connections to 166766338Seric that host. However, some firewall gateways send this message 166866338Seric if you try to connect to an unauthorized port, such as the 166966338Seric IDENT port (113). Thus, no email can be received from such 167066338Seric hosts. There is some evidence that versions of Ultrix before 167166338Seric 4.3 do not have this problem. Thanks to Tom Ivar Helbekkmo 167266338Seric for pointing out this behaviour to me and to Michael Corrigan 167366338Seric of U.C. San Diego for informing me about the HPUX problem. 167466338Seric Allow IPC mailers to return a colon-separated list of hosts in the 167566338Seric $@ clause; these are searched in order as though they were 167666338Seric MX records. 167766338Seric When sending an error report, print the list of addresses tagged 167866338Seric as bad. Requested by Allan E Johannesen of WPI. 167966338Seric Change map function calls to return a status code. This gets 168066338Seric passed back as the result of rewrite. Parseaddr marks 168166338Seric the address as a QUEUEUP address if the return code is 168266338Seric EX_TEMPFAIL. All this to queue properly if the name 168366338Seric server is down. This code is not well tested. This code 168466338Seric changes the interface to map lookup functions (a fifth 168566338Seric parameter, int *statp, is added). Feature requested by 168666338Seric Dan Oscarsson. 168766338Seric Don't delete quotes (in the dequote map) if there are spaces in 168866338Seric the string, since this would cause them to be replaced by 168966338Seric the SpaceSub character. 169066338Seric Accept BODY=8BITMIME on SMTP MAIL command. This isn't advertised 169166338Seric because the 8BIT to 7BIT translation doesn't exist yet. 169266338Seric This does add a "bodytype" field to both envelope and 169366338Seric queue file and a -B command line flag to pass the type in 169466338Seric during direct invocations. 169566338Seric Discard return error messages only on responses to responses to 169666338Seric responses, not on responses to responses. That is, the 169766338Seric algorithm is to try return to sender, then return to 169866338Seric postmaster, then discard. Previously it discarded 169966338Seric immediately if the return to sender pass failed. 170066338Seric CONFIG: back out change to hide unqualified hostnames behind %-hack. 170166338Seric This screws up local aliases and .forward files. 170266338Seric CONFIG: add FEATURE(nocanonify) to turn off calls to $[ ... $]; 170366338Seric some sites only handle completely canonified names. 170466338Seric Requested by John Gardiner Myers of CMU. 170566338Seric CONFIG: some UUCP code was still included even if FEATURE(nouucp) 170666338Seric was specified. 170766338Seric 170866338Seric6.52/6.24 93/04/10 170966338Seric Clean up some minor glitches on error return messages pointed out 171066338Seric by Motonori Nakamura of Kyoto University. 171166338Seric Fix reply() to not reset SmtpReplyBuffer on fatal errors; this 171266338Seric was supposed to reset SmtpMsg Buffer. This makes the 171366338Seric client side code virtually useless. Reported by Allan 171466338Seric E Johannesen of WPI and Phil Brandenberger of Swarthmore. 171566338Seric Better debug messages if fuzzy is disabled, suggested by Allan 171666338Seric E Johannesen of WPI. 171766338Seric Offset SmtpReplyBuffer by four in usersmtp when checking for 171866338Seric loopback. From Eric Wassenaar. 171966338Seric Don't set $s until after runinchild in srvrsmtp -- otherwise 172066338Seric it gets cleared. From Eric Wassenaar. 172166338Seric Implement IDA-style $&x for deferred macro expansion. 172266338Seric More POSIX compatibility. 172366338Seric CONFIG: Hide unqualified hostnames behind %-hack using $s as the 172466338Seric actual sender. This is only done if $r is non-null, that 172566338Seric is, if this is not locally submitted mail. 172666338Seric CONFIG: Add FEATURE(bitdomain) allowing mapping of BITNET host 172766338Seric names to internet domains. A program contributed by 172866338Seric John Gardiner Myers of CMU to create the maps is included 172966338Seric in the contrib directory (in the "misc" tar file). 173066338Seric CONFIG: Add FEATURE(uucpdomain) for a similar mapping for UUCP 173166338Seric hosts. There is currently no tool to create this map. 173266338Seric 173366338Seric6.51/6.23 93/04/04 173466338Seric Add D= mailer flag to specify a path of possible working directories 173566338Seric in which to execute the mailer. This is intended for the 173666338Seric prog mailer; some shells can get upset if they don't have 173766338Seric access to the current directory. 173866338Seric Add RFC 1413 (IDENT) protocol support. This is only very loosely 173966338Seric tested. This adds a $_ macro to be the authenticated 174066338Seric info (in ``user@domain [address]'' form) and debug flag 174166338Seric 9 to trace the protocol. 174266338Seric Check for loopbacks in usersmtp instead of srvrsmtp -- there is no 174366338Seric reason for a local agent to not be talking to the localhost 174466338Seric (although the inverse is not true). 174566338Seric Add a few hooks for automated map rebuilding. This is certainly 174666338Seric not done yet. 174766338Seric CONFIG: Have prog mailer specify a path of ``D=$z:/'' -- that is, 174866338Seric user's home directory then the root. 174966338Seric CONFIG: Log RFC 1413 identification in Received: line. 175066338Seric 175166338Seric6.50/6.22 93/04/01 175266338Seric Fixes to requeueing code to make it compute priority, nrcpts, 175366338Seric and the like properly. 175466338Seric 175566338Seric6.49/6.22 93/04/01 175666338Seric Diagnose incorrect privacy flags. Suggested by Bryan Costales 175766338Seric of ICSI. 175866338Seric Some ANSI C fixes. 175966338Seric Arrange to quote backslashes as well as other special characters 176066338Seric in the phrase part of a route-addr. 176166338Seric Some fixes to FallBackMX code suggested by Motonori Nakamura of 176266338Seric Kyoto University. 176366338Seric More vigorous zeroing of CurHostAddr to avoid logging of bogus 176466338Seric host addresses when you are actually just printing 176566338Seric information from the MCI structure; problem noted by 176666338Seric Michael Corrigan of U.C. San Diego. 176766338Seric Don't ignore rest of queue if any job is not runnable. This can 176866338Seric also cause an incorrect job to be lost. Fix from 176966338Seric Eric Wassenaar. 177066338Seric Always respond "quickly" to RCPT command; do alias expansion and 177166338Seric the like later. This also means that mail for lists that 177266338Seric have errors will be acccepted, and an error sent back 177366338Seric later. This is done by instantiating the queue file 177466338Seric and then immediately running and requeueing it. 177566338Seric 177666338Seric6.48/6.22 93/03/30 177766338Seric Fix incorrect diagnosis of infinite loop in ruleset. Problem noted 177866338Seric by several people. 177966338Seric Improve information printed when infinite loops are discovered. 178066338Seric Zero CurHostAddr to fix erroneous internet addresses in log when no 178166338Seric addresses can be bound. Pointed out by Motonori Nakamura 178266338Seric of Kyoto University. 178366338Seric "Probe" SMTP connections using RSET instead of NOOP "just in case". 178466338Seric Suggested by John Gardiner Myers of CMU. 178566338Seric Don't warn about -f if you are setting sender to yourself. 178666338Seric 178766338Seric6.47/6.22 93/03/29 178866338Seric Fix incompatible call to endmailer in smtpquit which causes core 178966338Seric dumps. Noted by Allan E Johannesen of WPI. 179066338Seric HPUX portability changes from Michael J. Corrigan of UC San Diego. 179166338Seric Require MAIL before RCPT command in srvrsmtp.c. This had been 179266338Seric intentional from the 821 draft days when the order wasn't 179366338Seric clear, but is silly now. 179466338Seric Fix bug in nis_magic routine that was initializing parameters 179566338Seric incorrectly. Fix from Takahiro Kanbe of Fuji Xerox 179666338Seric Information Systems Co., Ltd. 179766338Seric Change default for PrivacyFlags in conf.c to 0 -- since it always 179866338Seric "or"s in new values, there was no way to turn off the 179966338Seric AuthWarning stuff. 180066338Seric Add O option to set SMTP daemon options. 180166338Seric Add V option to set fallback MX host. This always sorts at lower 180266338Seric priority than anything it gets from the name server. It 180366338Seric should only be used for environments with very bad network 180466338Seric connectivity. Requested by several people. 180566338Seric Log sending info. It's not clear this is a good idea. 180666338Seric CONFIG: fix typo in mailertable code. Noted by Phil Brandenberger 180766338Seric of Swarthmore. 180866338Seric CONFIG: add confDAEMON_OPTIONS and confFALLBACK_MX to set options 180966338Seric O and V, respectively. 181066338Seric 181166338Seric6.46/6.21 93/03/26 181266338Seric Fix botch in server SMTP that broke transactions that did not 181366338Seric use HELO first (like MH). Fix from Michael Corrigan 181466338Seric of U.C. San Diego. 181566338Seric Fall back to other MX records if there is an error anywhere 181666338Seric in delivery (actually on MAIL or DATA -- RCPT is harder). 181766338Seric Suggested by John Gardiner Myers and Motonori Nakamura. 181866338Seric Revert to non-prototypes -- it turns out that our ANSI C 181966338Seric compiler is more forgiving than most others about 182066338Seric mixing prototyped extern declarations with non-prototyped 182166338Seric function definitions. 182266338Seric Fix a problem with multi-word class matching pointed out by 182366338Seric Neil Rickert. Given: 182466338Seric CX b a.b.c 182566338Seric R$+ $=X $+ $: $1 < $2 > $3 182666338Seric the input "user@a.b.c" failed instead of being properly 182766338Seric rewritten as "user@a.<b>.c". 182866338Seric Neil also convinced me that it was correct that $~ should match 182966338Seric only one token -- the problem is that it's always possible 183066338Seric to add another token, so $~ matches far too eagerly. 183166338Seric 183266338Seric6.45/6.21 93/03/25 183366338Seric Implement multi-word classes (properly!). 183466338Seric 183566338Seric6.44/6.21 93/03/25 183666338Seric Add X-Authentication-Warning: headers to clue users into possible 183766338Seric attempts to forge mail. This is on the authwarnings 183866338Seric privacy flag, but is the default. Suggested by Bryan 183966338Seric Costales of ICSI. 184066338Seric Pass default units for convtime in so they can be more reasonable. 184166338Seric Allow config files to always add a new Comments: header (i.e., 184266338Seric they will be added even if an old one already exists). 184366338Seric Suggested by Bryan Costales of ICSI. 184466338Seric Allow config files to delete an existing Return-Path: header. 184566338Seric These should only be added at final delivery. Suggested 184666338Seric by Bryan Costales of ICSI. 184766338Seric Some debugging additions. Suggested by Bryan Costales of ICSI. 184866338Seric Clean up logging of Family 0 addresses. Noted by David Muir 184966338Seric Sharnoff and others. 185066338Seric Add a "dequote" map class. This allows config files to strip 185166338Seric quotes off of addresses. Note that this is not a builtin 185266338Seric map, just a class -- so you have to define the map 185366338Seric using the K line. 185466338Seric Fix a bug in the queueup() loop getting a locked tf where in 185566338Seric very odd cases it can fall off the bottom and core dump. 185666338Seric Of course, it was P{r Emanuelsson who found it.... 185766338Seric Open a new transcript when splitting an envelope. Problem found 185866338Seric by Allan E Johannesen of WPI. 185966338Seric Improved error output in endmailer if the mailer core dumps. 186066338Seric CONFIG: Fix typo in UUCP mailer definition. 186166338Seric CONFIG: Default several of the new options on: eight bit input, 186266338Seric privacy flags set to "authwarnings", and message warning 186366338Seric set to 4h. 186466338Seric CONFIG: Use dequote map. 186566338Seric 186666338Seric6.43/6.20 93/03/23 186766338Seric Fix problem with assumption of an sa_len field in a generic 186866338Seric sockaddr -- it turns out that most vendors haven't 186966338Seric picked up this (very important) fix. 187066338Seric Change compilation flags for daemon code -- select one or both 187166338Seric of NETINET or NETISO, but don't ever set DAEMON manually. 187266338Seric CONFIG: add FEATURE(mailertable) to do IDA-style mailertables. 187366338Seric 187466338Seric6.42/6.19 93/03/19 187566338Seric Use Postmaster as default fallback return address, not root. 187666338Seric POSIX changes for file descriptor handling. 187766338Seric Diagnose errors writing new queue file. 187866338Seric If you change the owner using an owner- alias, also change the 187966338Seric error mode to EM_MAIL so that errors don't get dropped 188066338Seric into an inappropriate directory. Problem noted by 188166338Seric Allan E Johannesen of WPI. 188266338Seric If you are su'ed to root, send email as who you really are, not 188366338Seric as root. From Brian Kantor of U.C. San Diego. 188466338Seric Allow warning messages to be sent after a configurable interval 188566338Seric has passed without delivery. The message is sent only 188666338Seric once per envelope. This changes the format of the qf 188766338Seric file to have an F line, and the format of the T option 188866338Seric to accept take the format "return/warn" (both intervals). 188966338Seric Don't force all local names to lower case -- this was left over 189066338Seric from the wierd handling of case mapping on aliases. It 189166338Seric is now driven (as expected) by the "u" mailer flag. 189266338Seric Problem noted by P{r Emanuelsson. 189366338Seric Fix problem that caused headers on returned email to be trashed; 189466338Seric they were getting freed, but are still accessible via 189566338Seric BlankEnvelope. 189666338Seric Fix problem that caused bogus ids to be created on returned 189766338Seric mail. 189866338Seric Add support for ISO and other non-INET networking. This is by 189966338Seric no means finished yet. This does assume a lot of other 190066338Seric system support, like a version of gethostbyname that 190166338Seric returns non-AF_INET addresses. 190266338Seric CONFIG: change default on prog mailer to keep upper case in 190366338Seric user names (i.e., in the program command line). 190466338Seric CONFIG: strip trailing dots off of hosts in uucp mailer before 190566338Seric convert to bang format. 190666338Seric CONFIG: create new "relay" mailer for $R (LOCAL_RELAY) and $H 190766338Seric (MAIL_HUB) delivery that doesn't add local domain. Note 190866338Seric that this violates 821, but is probably "more correct" 190966338Seric for what we are trying to do. Problem pointed out by 191066338Seric Michael Graff of Iowa State. 191166338Seric 191266338Seric6.41/6.18 93/03/18 191366338Seric Clean up unnecessary creates of queue ids (i.e., empty qf files) 191466338Seric when not needed, such as when starting up an SMTP 191566338Seric connection. 191666338Seric Fix problem where split envelopes aren't instantiated in the queue. 191766338Seric This is quite a serious bug. 191866338Seric Owner- aliases had problems with leading spaces causing a 191966338Seric premature delimitation. 192066338Seric 192166338Seric6.40/6.18 93/03/18 192266338Seric Have ending 250 (after DATA) include the id; suggested by 192366338Seric Brian Kantor of UC San Diego. 192466338Seric Add logging on envelope splitting. 192566338Seric Change queue ids to have one more letter encoding the hour of 192666338Seric the day so that during a single day there is a greater 192766338Seric likelihood of uniqueness; requested by Brian Kantor. 192866338Seric 192966338Seric6.39/6.18 93/03/18 193066338Seric Fix minor compile problem if LOCKF is defined. 193166338Seric Define size of tobuf in conf.h. Observed by Toshinari Takahashi 193266338Seric of Toshiba. 193366338Seric Restore e_sender -- this is equivalent to e_from.q_paddr without 193466338Seric decorations such as angle brackets and comments. 193566338Seric OSF/1 on Alpha changes from Allan E Johannesen of WPI. 193666338Seric CONFIG: fix typo in S3 for list syntax (;: => :;). Thanks to 193766338Seric Christopher Hoover for noting the problem. 193866338Seric 193966338Seric6.38/6.17 93/03/17 194066338Seric Pass envelope to disconnect to avoid another use of CurEnv, which 194166338Seric can apparently end up being null at inopportune times. 194266338Seric Log "received from" as "relay=" for consistency (suggested by 194366338Seric John Gardiner Myers). 194466338Seric Fix major bug in header handling: if no From: line existed in 194566338Seric the header (so sendmail inserts one), and the sender is 194666338Seric an alias that has an owner, the From: line shows the 194766338Seric owner (as well as the envelope). Fixed by early binding 194866338Seric the headers (which will change debugging output). 194966338Seric HPUX portability patches from Michael J. Corrigan of UC San Diego. 195066338Seric Some attempts to adapt better to out of open file conditions. 195166338Seric Some changes to ctladdr handling in queue files. 195266338Seric 195366338Seric6.37/6.17 93/03/16 195466338Seric MAJOR CHANGE: delete e_sender and e_returnpath (why are these 195566338Seric different from e_from?) and $< macro. 195666338Seric Log correct IP address in relay= field even if the connection 195766338Seric times out. 195866338Seric Log "received from [RESPONSE]" on EF_RESPONSE messages (from 195966338Seric John Gardiner Myers). 196066338Seric Fixes to SysExMsg logging (sometimes just got "message: %s" 196166338Seric instead of "message: error message"), noted by Eric 196266338Seric Wassenaar. Also reported by Motonori Nakamura. 196366338Seric Improvements to MX piggybacking code, from Motonori Nakamura. 196466338Seric Fix case where CurHostName points to an auto variable that has 196566338Seric been deallocated (from Motonori Nakamura). 196666338Seric Fix bug causing newlines to be included in aliases if option 196766338Seric "n" (check alias RHS) is set; bug noted by David Muir 196866338Seric Sharnoff. 196966338Seric Fix problem causing user names that should be mapped to lower 197066338Seric case to not be mapped if they are sent during a queue 197166338Seric run. This greatly simplifies the case mapping code. 197266338Seric Problem noted by Allan E Johannesen of WPI. 197366338Seric Don't do recipient address rewriting in buildaddr. This 197466338Seric improperly did recipient rewriting on sender addresses, 197566338Seric and just seems bogus in general -- but the change could 197666338Seric break some .cf files. 197766338Seric Pass TZ envariable to child processes for System V. 197866338Seric CONFIG: allow LOCAL_RULE_1 and LOCAL_RULE_2 if you want to 197966338Seric define those rulesets. 198066338Seric KNOWN PROBLEM: I have seen some problems on SunOS that causes 198166338Seric the User Data Base to give errors on some addresses. I 198266338Seric have tracked the problem back at least as far as 93.02.15 198366338Seric (version 6.22). Running with debugging on makes it 198466338Seric go away, so I conclude that it is referencing uninitialized 198566338Seric stack data. I haven't been able to track this down yet. 198666338Seric 198766338Seric6.36/6.16 93/03/08 198866338Seric Allow local mailer to specify $@host -- this lets you assign the 198966338Seric "foo" part of jgm+foo to $h for passing in to the local 199066338Seric mailer. 199166338Seric Additional debug printing in getcanonname (show query type). 199266338Seric Don't add the e_fromdomain on sender addresses -- this interacts 199366338Seric wierdly with the owner- code. 199466338Seric Improve delivery logging to not log obvious or meaningless stuff. 199566338Seric Include numeric IP address in Received: lines per RFC 1123 section 199666338Seric 5.2.8. 199766338Seric Fixed a bug in checking stat() return value if restrictmailq is 199866338Seric set. Also, check the entire group set instead of just the 199966338Seric primary group. Both from John Gardiner Myers. 200066338Seric Don't have usrerr automatically print errno, since this is often 200166338Seric misleading. 200266338Seric Use transienterror() in makeconnection after connect() fails and 200366338Seric in openmailer after execve() fails (from Eric Wassenaar). 200466338Seric Also moved transienterror() from util.c to conf.c. 200566338Seric Clean up from= logging on response messages. 200666338Seric Undo patch allowing prescan to return a null vector -- it breaks 200766338Seric too many things. 200866338Seric Config: FEATURE(notsticky) lets you use UDB for everything coming 200966338Seric in to the machine, even if it is specifically targetted 201066338Seric to this machine. Without it, UDB is bypassed if the user 201166338Seric name is fully qualified. 201266338Seric Config: fix another minor botch with <> (local mailer wasn't 201366338Seric mapping them properly). 201466338Seric 201566338Seric6.35/6.15 93/03/05 201666338Seric Fix getrealhostname to return null if sinlen <= 0 -- this can 201766338Seric occur if stdin is a pipe. 201866338Seric Avoid infinite loop in getcanonname if name server return 201966338Seric NO_DATA (for example). 202066338Seric Config: avoid having C flag qualify list syntax and error syntax. 202166338Seric 202266338Seric6.34/6.14 93/03/05 202366338Seric Fix logging in deliver to not pass too many parameters to Ultrix 202466338Seric versions of syslog. 202566338Seric Don't write the pid file until after the daemon has actually 202666338Seric opened and conditioned the connection. 202766338Seric Consider addresses "different" if their q_uids differ (so that 202866338Seric two users forwarding to the same program will be seen 202966338Seric as different, rather than the same). 203066338Seric Fix problem with bad parameters in main() -- they set ExitStat 203166338Seric but don't exit. 203266338Seric Fix null pointer references through RealHostName -- painfully 203366338Seric discovered by Allan E Johannesen of WPI. 203466338Seric Fix bug causing user@@localhost to core dump (yuch). 203566338Seric Config: don't put two @host.dom.ain on users in $=E in SMTP 203666338Seric mailer. Also, catch user@ (no host) in ruleset 0. 203766338Seric 203866338Seric6.33/6.13 93/03/03 203966338Seric Config: add confCW_FILE as the name of the cw configuration file 204066338Seric (defaults to /etc/sendmail.cw). From P{r Emanuelsson. 204166338Seric Allow prescan to return a pointer to an empty list -- this is 204266338Seric not an error. Also, clean up error reporting to avoid 204366338Seric double errors (prescan reports once, then the caller 204466338Seric reports again). 204566338Seric Changes to avoid trusting T_ANY queries -- run them, but if you 204666338Seric don't get the info you expected, do T_A and T_MX queries 204766338Seric anyhow. This also fixes an oversight where _res.options 204866338Seric bits were being ignored. 204966338Seric If PRIV_NOVRFY is set, use 252 response code instead of 502 per 205066338Seric RFC 1123 section 5.2.3. It's not 100% clear that this 205166338Seric is correct, but it probably works better with stupid 205266338Seric mailers that do a VRFY and only check the first digit. 205366338Seric 205466338Seric6.32/6.12 93/03/02 205566338Seric Fix uninitialized variable "protocol" in smtp code. 205666338Seric Include <unistd.h> in sendmail.h -- move towards POSIX/ANSI. 205766338Seric Additional hooks for RFC 1427 (ESMTP SIZE extension). This 205866338Seric includes requiring that enoughspace() know the system 205966338Seric block size, which will undoubtedly break most ports. 206066338Seric Trace flag 19 in use for srvrsmtp.c. 206166338Seric Additional logging -- notably the sending mailer name. This 206266338Seric also changes the delivery logging to strict field=value 206366338Seric syntax. 206466338Seric Fix some problems with messages getting sent even to addresses 206566338Seric that had been marked bad -- from Eric Wassenaar. 206666338Seric More WIDE changes: accept host name inside [...] as non-MXed 206766338Seric host. This is intended ONLY for use inside firewalled 206866338Seric environments, where the MX points at the gateway. 206966338Seric Change .cf file conventions so that mapping for <> addresses 207066338Seric don't have an @ in them (to avoid confusing the C mailer 207166338Seric flag). Pointed out by Neil Rickert. 207266338Seric Config extensions for Sam Leffler's FlexFAX software. 207366338Seric 207466338Seric6.31/6.10 93/02/28 207566338Seric Fix some more bugs in alias owner code -- there were some wierd 207666338Seric cases where an error in a non-aliased name would override 207766338Seric the return info in an aliased name with an owner. 207866338Seric Changes from WIDE Project, forwarded to me by Motonori Nakamura: 207966338Seric Log actual delivery host (after MX et al); from 208066338Seric yasuhiro@dcl.co.jp. 208166338Seric Log daemon startup. 208266338Seric Deliver Postmaster copies without a body. 208366338Seric Better logging of SMTP senders. 208466338Seric Send all program email as daemon even when local. 208566338Seric As requested in various forms from many people, accept -qIstring 208666338Seric to limit queue runs to jobs with queue-id matching string. 208766338Seric Similarly for -qRstring for recipients, -qSstring for 208866338Seric senders. 208966338Seric Initial hooks for ESMTP support (see RFC 1425). 209066338Seric Fixed a syntax error in the UUCP mailer specification that caused 209166338Seric core dumps on startup. 209266338Seric Check for missing A= or P= arguments in mailer definitions. 209366338Seric 209466338Seric6.30/6.10 93/02/27 209566338Seric Require FROZENCONFIG compilation flag to include frozen 209666338Seric configuration code. Frozen configuration is really 209766338Seric not a very good idea any more, particularly in shared 209866338Seric library environments. 209966338Seric Do better checking of errno after opens of :include: and .forward 210066338Seric files to defer delivery on network and other transient 210166338Seric errors. Suggestion from Craig Everhart. 210266338Seric Fix minor botch in read timeout macro processing. 210366338Seric Add FEATURE(nouucp) to config files for sites that know absolutely 210466338Seric nothing about UUCP. 210566338Seric Add built cf files to distribution tape and clarify how to build 210666338Seric them if you don't have the Berkeley make. 210766338Seric Some sizeof(long) portability changes for the Alpha, from Allan 210866338Seric E Johannesen. 210966338Seric Add "restrictmailq" privacy flag -- if set, only people in the same 211066338Seric group as your queue directory can print the queue. If you 211166338Seric set this, be sure you also restrict access to log files.... 211266338Seric Fix another bug in owner-list stuff that can cause data files to 211366338Seric be "lost". 211466338Seric Fix a bug with queue runs that cause forwards to yourself to go 211566338Seric into alias/forwarding loops. I'm still iffy about this 211666338Seric fix. 211766338Seric Fix from Eric Wassenaar for suppression of return message code. 211866338Seric 211966338Seric6.29/6.9 93/02/24 212066338Seric Fix yet another problem in alias owner code -- put the wrong return 212166338Seric address on the enclosed return-to-sender letter. 212266338Seric 212366338Seric6.28/6.9 93/02/24 212466338Seric Fix botch in alias owner code that caused it to not operate if the 212566338Seric error was detected locally. 212666338Seric 212766338Seric6.27/6.9 93/02/24 212866338Seric M_LOCAL => M_LOCALMAILER to avoid conflict with Ultrix include 212966338Seric file <sys/mount.h>. 213066338Seric Miscellaneous bug fixes from Eric Wassenaar: 213166338Seric sendmail -bv -t logs the from line even though in verify 213266338Seric mode only. 213366338Seric sendmail -v can go into queue mode if shouldqueue returns 213466338Seric TRUE. 213566338Seric Add route-addr pruning per RFC 1123 section 5.3.3. This can be 213666338Seric disabled using the "R" option. 213766338Seric Delete (always undocumented) -R flag (save original recipients); 213866338Seric there are ways to syslog(3) these now. 213966338Seric Clean up SMTP reply codes -- specify them as needed in the code, 214066338Seric instead of in conf.c -- this was needed during the NCP to 214166338Seric TCP transition, but seems silly now. This also changes 214266338Seric parameters to message and nmessage. 214366338Seric Have mailstats read the .cf file to find the sendmail.st file and 214466338Seric get text versions of mailer names. An initial version of 214566338Seric this code was provided by Tuominen Keijo (although the 214666338Seric comments indicate the good bits were written by "E.V."). 214766338Seric Add yet more System V compatibility hacks. 214866338Seric Fix bug in VRFY code (assumes everything must be a local user). 214966338Seric Allow specification of any of the hard-wired pathnames in the 215066338Seric Makefile. 215166338Seric Delete concept of "trusted users" -- this really didn't provide 215266338Seric any security anyway, and caused some problems. 215366338Seric Delete last vestige of support for the word "at" as an equivalent 215466338Seric to the character "@". 215566338Seric Propagate owner-foo alias information into the envelope sender. 215666338Seric Based on code from John Gardiner Myers. This is a major 215766338Seric semantic change -- beware! 215866338Seric Allow $@ on LHS to indicate "match zero" -- this is used to match 215966338Seric the null expression. 216066338Seric 216166338Seric6.26/6.8 93/02/21 216266338Seric Don't "lose" queue runs. Very important fix from (who else?) 216366338Seric Eric Wassenaar. 216466338Seric Completely reset state on RSET command -- from Eric Wassenaar. 216566338Seric Send error messages and return receipts using an envelope sender 216666338Seric of <> regardless of the setting of $n. Rewriting rules 216766338Seric can undo this if they feel the necessity, as might be 216866338Seric needed for networks that don't understand the syntax. 216966338Seric This is permitted by RFC 821 section 3.6 and required by 217066338Seric RFC 1123 section 5.3.3. THIS REQUIRES VERSION 4 CONFIG 217166338Seric FILES because the rulesets must be able to parse <> 217266338Seric properly. 217366338Seric Don't ever send error messages to "<>" -- they will get sent to 217466338Seric the local postmaster or dumped in /usr/tmp/dead.letter 217566338Seric instead. Per RFC 1123 section 5.3.3. 217666338Seric Explicitly check for email to yourself as a dotted quad. You 217766338Seric have to call $[ [ ... ] $] to get this. 217866338Seric Up the message timeout to five days per RFC 1123 section 5.3.1.1. 217966338Seric Make all read timeouts individually configurable, as strongly 218066338Seric recommended by RFC 1123 section 5.3.2. 218166338Seric Use f_bavail (blocks available to regular users) instead of f_bfree 218266338Seric (blocks available to superuser) in free block checks. 218366338Seric Change $d macro to be the current time, not the origination time, 218466338Seric since this is consistent with how it is used now. 218566338Seric Generalization of enoughspace from Eric Wassenaar covering 218666338Seric SGI, Apollo, HPUX, Ultrix, and SunOS. 218766338Seric Ignore process group signals -- some front ends can do this if 218866338Seric you kill a window too quickly. From Eric Wassenaar. 218966338Seric Change umask to 022. 219066338Seric 219166338Seric6.25/6.8 93/02/20 219266338Seric Close all cached connections before calling mailers and after 219366338Seric forking for delivery (caused double closes which resulted 219466338Seric in false errors). 219566338Seric Add FEATURE(redirect) in config files -- this allows you to alias 219666338Seric old addresses to a pointer to the new address that will 219766338Seric give a 551 error message, but not deliver the mail. 219866338Seric Some code changes to make the 551 errors look pretty. 219966338Seric Names of M4 program paths in config files have changed -- they 220066338Seric are all XXX_MAILER_PATH now, to match XXX_MAILER_FLAGS. 220166338Seric Fix a bug in the QSELFREF code having to do with empty .forward 220266338Seric files, reported by Eric Wassenaar. 220366338Seric Add option "p" (privacy flags); this allows you to tune how 220466338Seric picky the SMTP server will be. This also adds the 220566338Seric confPRIVACY_FLAGS M4 macro in the config files. 220666338Seric Add option "b" (minimum blocks free). If there are fewer than 220766338Seric this number of blocks free on the filesystem containing 220866338Seric the queue directory, the SMTP MAIL command will return 220966338Seric a 452 response and ask you to try again later. This 221066338Seric also adds the confMIN_FREE_BLOCKS M4 macro in the config 221166338Seric files. 221266338Seric Made VRFY just verify (doesn't expand aliases and .forward files); 221366338Seric EXPN does full expansion. RCPT in queue-only mode also 221466338Seric doesn't chase aliases and .forward. 221566338Seric 221666338Seric6.24/6.7 93/02/19 221766338Seric Increase the number of domain search entries in domain.c to allow 221866338Seric for the extra "" entry indicating the root domain. 221966338Seric Reported by Motonori Nakamura of Kyoto U. 222066338Seric Add a "SMART_HOST" in the configs for UUCP-connected sites that 222166338Seric want to forward all mail with extra "@"s to that site. 222266338Seric Also allows SMART_HOST, LOCAL_RELAY, and MAIL_HUB to 222366338Seric be specified as ``mailer:hostname'' to use an alternate 222466338Seric mailer. 222566338Seric Clarified and updated some wording in the Operations Guide. 222666338Seric Add the "c" mailer flag -- this suppresses all comment parts of 222766338Seric addresses (requested by John Curran of NEARnet). 222866338Seric Have -v print prompts in -bt mode even if stdin is not a terminal 222966338Seric (default behaviour is to be silent if not reading from 223066338Seric a terminal). Suggested by Bryan Costales, ICSI. 223166338Seric Move the metacharacters from C0 space (\001-\037) into C1 space 223266338Seric (\201-\237). This also fixes a bunch of potential bugs 223366338Seric with G1 characters (\240-\276) in headers relating to 223466338Seric negative numbers passed to isspace() et al. 223566338Seric Add YP_LAST_MODIFIED and YP_MASTER_NAME to DBM version of alias 223666338Seric database if YPCOMPAT is #defined. Enhancement from 223766338Seric Takahiro Kanbe of Fuji Xerox Information Systems Co., Ltd. 223866338Seric Add "list" Precedence (-30); this can be used with old sendmails 223966338Seric which will map to precedence 0 (which will return error 224066338Seric messages). Suggested by Stephen R. van den Berg. 224166338Seric Many bug fixes from Eric Wassenaar of the National Institute for 224266338Seric Nuclear and High-Energy Physics, Amsterdam: 224366338Seric Clear timeouts properly on open failures in include(). 224466338Seric Don't dereference through NULL if no home directory found. 224566338Seric Re-establish SIGCHLD signal on System 5 in reapchild(). 224666338Seric Avoid NULL pointer reference on -pFOO flag. 224766338Seric Properly handle backslash escapes in comments. 224866338Seric Correctly check reply status on SMTP NOOP command. 224966338Seric Properly save SMTP error message if peer gives 225066338Seric "Service Shutting Down" message. 225166338Seric Avoid writing to the transcript if it couldn't be opened. 225266338Seric Signal errors in SMTP children to parent properly. 225366338Seric Handle self references in a list more globally (include a 225466338Seric QSELFREF bit in the address flags). This enhancement 225566338Seric was suggested by Eric Wassenaar. 225666338Seric Use initgroups() in hpux, even though it's System-V based. The 225766338Seric HASINITGROUPS compile flag can set this on other systems. 225866338Seric This HPUX behaviour was pointed out by Eric Wassenaar. 225966338Seric 226066338Seric6.23/6.6 93/02/16 226166338Seric Clean up handling of LogLevel to make it easier to figure out 226266338Seric what's on what level. 226366338Seric Change log levels to have some consistency: 226466338Seric 1 serious system failures, security problems 226566338Seric 2 lost communications, protocol failures 226666338Seric 3 other serious failures 226766338Seric 4 minor errors 226866338Seric 5 message collection 226966338Seric 6 vrfy logging, creation of return-to-sender 227066338Seric 7 delivery failures 227166338Seric 8 delivery successes 227266338Seric 9 delivery tempfails (queue ups) 227366338Seric 10 database expansion 227466338Seric >64 debugging 227566338Seric Allow IDA-style separated processing on S= and R= in Mailer 227666338Seric definition lines. Note that rulesets 1 and 2 are 227766338Seric still used for both addresses as before. Bruce Lilly 227866338Seric gave a convincing argument that RFC976 insists on 227966338Seric this behaviour. 228066338Seric Added some time zones to arpatounix -- they may not be in the 228166338Seric standards, but they are in use. However, I may delete 228266338Seric arpatounix entirely -- there appears to be no reason 228366338Seric for it to exist. 228466338Seric Change to UUCP mailer (in cf directory) to try to do a saner job. 228566338Seric I'm still not certain about this mailer in general. 228666338Seric 228766338Seric6.22/6.5 93/02/15 228866338Seric Fix bug that prevents saving letters in ~/dead.letter. 228966338Seric Don't add angle brackets in VRFY command if angle brackets already 229066338Seric exist in the address. 229166338Seric Fix bogus error message in udbexpand. 229266338Seric Null terminate host buffers in buildaddr (broken in 6.21) -- 229366338Seric IMPORTANT FIX!! 229466338Seric 229566338Seric6.21/6.5 93/02/15 229666338Seric Fix another incorrect error message in alias.c, found by Azuma 229766338Seric Okamoto. 229866338Seric Fix a couple of problems in the more-configurable config files, 229966338Seric found by Tom Ivar Helbekkmo. 230066338Seric Fix problem with quoted :include: entries. 230166338Seric Don't duplicate the filename on verbose printing of .forward and 230266338Seric :include: contents. 230366338Seric Extend size of prescan buffer (to allow bigger addresses). Also, 230466338Seric detect some buffer overflows. 230566338Seric Log user SMTP protocol errors (log level 4). 230666338Seric 230766338Seric6.20/6.4 93/02/14 230866338Seric Fix another problem in the MCI state machine caused when there 230966338Seric were errors generated from the other end to commands 231066338Seric other than RCPT. 231166338Seric 231266338Seric6.19/6.4 93/02/14 231366338Seric Include load average support for DEC Alpha running OSF/1. 231466338Seric Fix multiple-response problem with errors in MAIL From: line. 231566338Seric Fix SMTP reply codes for invalid address syntaxes (give 501; 231666338Seric never give multiple error messages for a single message). 231766338Seric Fix problem where a cached connection timeout rejects all 231866338Seric later connects to that host. 231966338Seric Fix incorrect error message if alias.c is compiled with DBM only. 232066338Seric Additional changes to fix nested conditionals (from Bruce Lilly). 232166338Seric Recover more gracefully from operating system failures, particularly 232266338Seric NULL returns from openmailer (from Noritoshi Demizu, 232366338Seric OMRON Corporation). 232466338Seric Log forward, alias, and userdb expand operations on log level 10; 232566338Seric concept suggested by P{r (Pell) Emanuelsson. 232666338Seric Changes for HPUX 8.07 compatibility. 232766338Seric 232866338Seric6.18/6.4 93/02/12 232966338Seric Allow any config option to be set using an M4 define. 233066338Seric Change UNAME compile flag to HASUNAME for IDA compatibility 233166338Seric (besides, it's a better name). 233266338Seric Note in README that on SunOS it must be linked -Bstatic. 233366338Seric Fairly major change in domain.c to handle wildcard MX records 233466338Seric more rationally. NOTE: the "w" option (no wildcard MX 233566338Seric records match local domain) has been eliminated. 233666338Seric Fix some unset variable references pointed out by Bruce Lilly. 233766338Seric Fix host name in process titles when using cached connection. 233866338Seric 233966338Seric6.17/6.3 93/01/28 234066338Seric Fix System 5 compatibility changes to be compatible with the rest 234166338Seric of the world. 234266338Seric 234366338Seric6.16/6.3 93/01/28 234466338Seric Experimental fix for problem handling errors in the SMTP 234566338Seric protocol in conjunction with connection caching. 234666338Seric System 5 compatibility changes. 234766338Seric 234866338Seric6.15/6.3 93/01/26 234966338Seric Fix a bug that causes local mail delivered using -odq to be 235066338Seric eliminated as a duplicate (because it matched the 235166338Seric ctladdr, now passed in as a C line). These changes 235266338Seric are pretty tricky...... 235366338Seric 235466338Seric6.14/6.3 93/01/25 235566338Seric Add debugging for some MCI errors. 235666338Seric 235766338Seric6.13/6.3 93/01/22 235866338Seric Fix -e compatibility flag to take a value. 235966338Seric Fix a couple of minor compilation warnings on Sun cc. 236066338Seric Improve error messages in a few cases to be more self-explanatory. 236166338Seric 236266338Seric6.12/6.3 93/01/21 236366338Seric Fix yet-another problem with environment handling, pointed out 236466338Seric by Yoshitaka Tokugawa and Tom Ivar Helbekkmo. 236566338Seric Some heuristics to try to limit resource exhaustion problems 236666338Seric if a downstream host has been down for a long time. 236766338Seric Fix problem with incorrect host name being logged in "Connection 236866338Seric timed out" messages (from Tom Ivar Helbekkmo). 236966338Seric Fix some ANSI C problems (from Takahiro Kanbe). 237066338Seric Properly log message sender on returned mail during queue run. 237166338Seric Count number of recipients properly. 237266338Seric Fix a problem in yp map code. 237366338Seric Diagnose "message timed out" (from Motonori Nakamura). 237466338Seric 237566338Seric6.11/6.3 93/01/20 237666338Seric Fix problem with address delimitor inside quotes. 237766338Seric Define $k and $=k to be the UUCP name (from the uname call) 237866338Seric based on code from Bruce Lilly. 237966338Seric 238066338Seric6.10/6.2 93/01/18 238166338Seric Implement arpatounix (largely code from Bruce Lilly). 238266338Seric Log more info (suggested by John Myers). 238366338Seric Allow nested $?...$|...$. (inspired by code from Bruce Lilly of 238466338Seric Sony US). 238566338Seric POSIX compatibility (noted by Keith Bostic). 238666338Seric Handle SMTP MAIL command errors properly (urged by several people, 238766338Seric notably John Myers of CMU). 238866338Seric Do early diagnosis of .cf errors (notably referencing a RHS 238966338Seric substitution that isn't on the LHS). 239066338Seric Adjust checkpointing to better handle batched recipients, suggested 239166338Seric by John Myers. 239266338Seric Fix miscellaneous bugs. 239366338Seric (config files:) Implement MAIL_HUB for all local mail (to handle 239466338Seric NFS-mounted directories) as urged by Tom Ivar Helbekkmo 239566338Seric of the Norwegian School of Economics. 239666338Seric 239766338Seric6.9/6.1 93/01/13 239866338Seric Environment handling simplification/bug fix -- child processes 239966338Seric get a minimal, fixed environment. This avoids different 240066338Seric behaviour in queue runs. 240166338Seric Handle commas inside comments properly. 240266338Seric Properly limit large messages submitted in -obq mode. 240366338Seric 240466338Seric6.8/6.1 93/01/10 240566338Seric Check mtime of thaw file against .cf and sendmail binary, based on 240666338Seric code from John Myers. 240766338Seric 240866338Seric6.7/6.1 93/01/10 240966338Seric MX piggybacking, based on code from John Myers@CMU. 241066338Seric Allow checkcompat to return -1 to mean tempfail. 241166338Seric Bug fix in m_mno computation. 241266338Seric 241366338Seric6.6/6.1 93/01/09 241466338Seric Tuning of queueing functions as recommended by John Gardiner Myers. 241566338Seric Return mail headers (no body) on messages with negative precedence. 241666338Seric Minor other bug fixes. 241766338Seric 241866338Seric6.5/6.1 93/01/03 241966338Seric Fix botch causing queued headers to have ?XX? prefixes. 242066338Seric 242166338Seric6.4/6.1 93/01/02 242266338Seric Changes to recognize special mailer types (e.g., file) early. 242366338Seric 242466338Seric6.3/6.1 93/01/01 242566338Seric Pass timeouts to sfgets. 242666338Seric Check for control characters in addresses. 242766338Seric Fixed deferred error reporting. 242866338Seric Report duplicate aliases. 242966338Seric Handle mixed case recursive aliases. 243066338Seric Misc bug fixes. 243166338Seric 243266338Seric6.2/6.1 92/12/30 243366338Seric Put return-receipt-to on a conf.c flag (but don't set it). 243466338Seric Fix minor syslog problem. 2435