1*66344Seric8.6.1/8.6 93/10/08 2*66344Seric Portability fixes for A/UX and Encore UMAX V. 3*66344Seric Fix error message handling -- if you had a name server down 4*66344Seric causing an error during parsing, that message was never 5*66344Seric propogated to the queue file. 6*66344Seric 766343Seric8.6/8.6 93/10/05 866343Seric Configuration cleanup: make it easier to undo IDENTPROTO in 966343Seric conf.h (other systems have the same bug). 1066343Seric If HASGETDTABLESIZE and _SC_OPEN_MAX are both defined, assume 1166343Seric getdtablesize() instead of sysconf(); a disturbingly 1266343Seric large number of systems defined _SC_OPEN_MAX in the 1366343Seric header files but don't have the syscall. 1466343Seric Another patch to really truly ignore MX records in getcanonname 1566343Seric if trymx == FALSE. 1666343Seric Fix problem that caused the "250 IAA25499 Message accepted for 1766343Seric delivery" message to be omitted if there was an error 1866343Seric in the header of the message (e.g., a bad Errors-To: 1966343Seric line). Pointed out by Michael Corrigan of UCSD. 2066343Seric Announce name of host we are chatting when we get errors; this 2166343Seric is an IDA-ism suggested by Christophe Wolfhugel. 2266343Seric Portability fixes for Alpha OSF/1 (from Anthony Baxter of the 2366343Seric Australian Artificial Intelligence Institute), SCO Unix 2466343Seric (from Murray Kucherawy of Hookup Communication Corp.), 2566343Seric NeXT (from Vince DeMarco and myself), Linux (from 2666343Seric Karl London <karl@borg.demon.co.uk>), BSDI (from 2766343Seric Christophe Wolfhugel, and SVR4 on Dell (from Kimmo 2866343Seric Suominen), AUX 3.0 on Macintosh, and ANSI C compilers. 2966343Seric Some changes to get around gcc optimizer bugs. From Takahiro 3066343Seric Kanbe. 3166343Seric Fix error recovery in queueup if another tf file of the same 3266343Seric name already exists. Problem stumbled over by Bill 3366343Seric Wisner of The Well. 3466343Seric Output YP_MASTER_NAME and YP_LAST_MODIFIED without null bytes. 3566343Seric Problem noted by Keith McMillan of Ameritech Services. 3666343Seric Deal with group permissions properly when opening .forward and 3766343Seric :include: files. This relaxes the 8.1C restrictions 3866343Seric slightly more. This includes proper setting of groups 3966343Seric when reading :include: files, allowing you to read some 4066343Seric files that you should be able to read but have previously 4166343Seric been denied unless you owned them or they had "other" 4266343Seric read permission. 4366343Seric Make certain that $j is in $=w (after the .cf is read) so that 4466343Seric if the user is forced to override some silly system, 4566343Seric MX suppression will still work. 4666343Seric Fix a couple of efficiency problems where newstr was double- 4766343Seric calling expensive routines. In at least one case, it 4866343Seric wasn't guaranteed that they would always return the 4966343Seric same result. Problem noted by Christophe Wolfhugel. 5066343Seric Fix null pointer dereference in putoutmsg -- only on an error 5166343Seric condition from a non-SMTP mailer. From Motonori 5266343Seric Nakamura. 5366343Seric Macro expand "C" line class definitions before scanning so that 5466343Seric "CX $Z" works. 5566343Seric Fix problem that caused error message to be sent while still 5666343Seric trying to send the original message if the connection 5766343Seric is closed during a DATA command after getting an error 5866343Seric on an RCPT command (pretty obscure). Problem reported 5966343Seric by John Myers of CMU. 6066343Seric Fix reply to NOOP to be 250 instead of 200 -- this is a long 6166343Seric term bug. 6266343Seric Fix a nasty bug causing core dumps when returning the "warning: 6366343Seric cannot deliver for N hours -- will keep trying" message; 6466343Seric it only occurred if you had PostMasterCopy set and 6566343Seric only on some architectures. Although sendmail would 6666343Seric keep trying, it would send error messages on each 6766343Seric queue interval. This is an important fix. 6866343Seric Allow u and g options to take user and group names respectively. 6966343Seric Don't do a chdir into the queue directory in -bt mode to make 7066343Seric ruleset testing a bit easier. 7166343Seric Don't allow users to turn off logging (using -oL) on the command 7266343Seric line -- command line can only raise, not lower, logging 7366343Seric level. 7466343Seric Set $u to the original recipient on the SMTP transaction or on 7566343Seric the command line. This is only done if there is exactly 7666343Seric one recipient. Technically, this does not meet the 7766343Seric specs, because it does not guarantee a domain on the 7866343Seric address. 7966343Seric Fix a problem that dumped error messages on bad addresses if 8066343Seric you used the -t flag. Problem noted by Josh Smith of 8166343Seric Harvey Mudd College. 8266343Seric Given an address such as ``<foo> <bar>'', auto-quote the first 8366343Seric ``<foo>'' part, giving ``"<foo>" <bar>''. This is to 8466343Seric avoid the problem of people who use angle brackets in 8566343Seric their full name information. 8666343Seric Fix a null pointer dereference if you set option "l", have 8766343Seric an Errors-To: header in the message, and have Errors-To: 8866343Seric defined in the config file H lines. From J.R. Oldroyd. 8966343Seric Put YPCOMPAT on #ifdef NIS instead -- it's one less thing to get 9066343Seric wrong when compiling. Suggested by Rick McCarty of TI. 9166343Seric Fix a problem that could pass negative SIZE parameter if the 9266343Seric df file got lost; this would cause servers to always 9366343Seric give a temporary failure, making the problem even worse. 9466343Seric Problem noted by Allan Johannesen of WPI. 9566343Seric Add "ident" timeout (one of the "r" option selectors) for IDENT 9666343Seric protocol timeouts (30s default). Requested by Murray 9766343Seric Kucherawy of HookUp Communication Corp. to handle bogus 9866343Seric PC TCP/IP implementations. 9966343Seric Change $w default definition to be just the first component of 10066343Seric the domain name on config level 5. The $j macro defaults 10166343Seric to the FQDN; $m remains as before. This lets well-behaved 10266343Seric config files use any of the short, long, or subdomain 10366343Seric names. 10466343Seric Add makesendmail script in src to try to automate multi-architecture 10566343Seric builds. I know, this is sub-optimal, but it is still 10666343Seric helpful. 10766343Seric Fix very obscure race condition that can cause a queue run to 10866343Seric get a queue file for an already completed job. This 10966343Seric problem has existed for years. Problem noted by the 11066343Seric long suffering Allan Johannesen of WPI. 11166343Seric Fix a problem that caused the raw sender name to be passed to 11266343Seric udbsender instead of the canonified name -- this caused 11366343Seric it to sometimes miss records that it should have found. 11466343Seric Relax check of name on HELO packet so that a program using -bs 11566343Seric that claims to be itself works properly. 11666343Seric Restore rewriting of $: part of address through 2, R, 4 in 11766343Seric buildaddr -- this requires passing a lot of flags to get 11866343Seric it right. Unlike old versions, this ONLY rewrites 11966343Seric recipient addresses, not sender addresses. 12066343Seric Fix a bug that caused core dumps in config files that cannot 12166343Seric resolve /file/name style addresses. Fix from Jonathan 12266343Seric Kamens of OpenVision Technologies. 12366343Seric Fix problem with fcntl locking that can cause error returns to 12466343Seric be lost if the lock is lost; this required fully 12566343Seric queueing everything, dropping the envelope (so errors 12666343Seric would get returned), and then re-reading the queue from 12766343Seric scratch. 12866343Seric Fix a problem that caused aliases that redefine an otherwise 12966343Seric true address to still send to the original address 13066343Seric if and only if the alias failed in certain bizarre 13166343Seric ways (e.g, if they pointed at a list:; syntax address). 13266343Seric Problem pointed out by Jonathan Kamens. 13366343Seric Remove support for frozen configuration files. They caused 13466343Seric more trouble than it was worth. 13566343Seric Fix problem that can cause error messages to get ignored when 13666343Seric using both -odb and -t flags. Problem noted by Rob 13766343Seric McNicholas at U.C. Berkeley. 13866343Seric Include all "normal" variations on hostname in $=w. For example, 13966343Seric if the host name is vangogh.cs.berkeley.edu, $=w will 14066343Seric contain vangogh, vangogh.cs, and vangogh.cs.berkeley.edu. 14166343Seric Add "restrictqrun" privacy flag -- without this, anyone can run 14266343Seric the queue. 14366343Seric Reset SmtpPhase global on initial connection creation so that 14466343Seric messages don't come out with stale information. 14566343Seric Pass an "ext" argument to lockfile so that error/log messages 14666343Seric will properly reflect the true filename being locked. 14766343Seric Put all [...] address forms into $=w -- this eliminates the need 14866343Seric for MAXIPADDR in conf.h. Suggested by John Gardiner 14966343Seric Myers of CMU. 15066343Seric Fix a bug that can cause qf files to be left around even after 15166343Seric an SMTP RSET command. Problem and fix from Michael 15266343Seric Corrigan. 15366343Seric Don't send a PostMasterCopy to errors when the Precedence: is 15466343Seric negative. Error reports still go to the envelope 15566343Seric sender address. 15666343Seric Add LA_SHORT for load averages. 15766343Seric Lock sendmail.st file when posting statistics. 15866343Seric Add "SendBufSize" and "RcvBufSize" suboptions to "O" option to 15966343Seric set the size of the TCP send and receive buffers; if you 16066343Seric run over a slow slip line you may need to set these down 16166343Seric (although it would be better to fix the SLIP implementation 16266343Seric so that it's not necessary to recompile every program 16366343Seric that does bulk data transfer). 16466343Seric Allow null defaults on $( ... $) lookups. Problem reported by 16566343Seric Amir Plivatsky. 16666343Seric Diagnose crufty S and V config lines. This resulted from an 16766343Seric observation that some people were using the SITE macro 16866343Seric without the SITECONFIG macro first, which was causing 16966343Seric bogus config files that were not caught. 17066343Seric Fix makemap -f flag to turn off case folding (it was turning it 17166343Seric on instead). THIS IS A USER VISIBLE CHANGE!!! 17266343Seric Fix a problem that caused multiple error messages to be sent if 17366343Seric you used "sendmail -t -oem -odb", your system uses fcntl 17466343Seric locking, and one of the recipient addresses is unknown. 17566343Seric Reset uid earlier in include() so that recursive .forwards or 17666343Seric :include:s don't use the wrong uid. 17766343Seric If file descriptor 0, 1, or 2 was closed when sendmail was 17866343Seric called, the code to recover the descriptor was broken. 17966343Seric This sometimes (only sometimes) caused problems with the 18066343Seric alias file. Fix from Motonori Nakamura. 18166343Seric Fix a problem that caused aliaswait to go into infinite recursion 18266343Seric if the @:@ metasymbol wasn't found in the alias file. 18366343Seric Improve error message on newaliases if database files cannot be 18466343Seric opened or if running with no database format defined. 18566343Seric Do a better estimation of the size of error messages when NoReturn 18666343Seric is set. Problem noted by P{r (Pell) Emanuelsson. 18766343Seric Fix a problem causing the "c" option (don't connect to expensive 18866343Seric mailers) to be ignored in SMTP. Problem noted and the 18966343Seric solution suggested by Robert Elz of Munnari University. 19066343Seric Improve connection caching algorithm by passing "[host]" to 19166343Seric hostsignature, which strips the square brackets and 19266343Seric returns the real name. This allows mailertable entries 19366343Seric to match regular entries. 19466343Seric Re-enable Return-Receipt-To: -- people seem to want this stupid 19566343Seric feature, even if it doesn't work right. 19666343Seric Catch and log attempts to try the "wiz" command in server SMTP. 19766343Seric This also ups the log level from LOG_NOTICE to LOG_CRIT. 19866343Seric Be more generous at assigning $z to the home directory -- do this 19966343Seric for programs that are specified through a .forward file. 20066343Seric Fix from Andrew Chang of Sun Microsystems. 20166343Seric Always save a fatal error message in preference to a non-fatal 20266343Seric error message so that the "subject" line of return 20366343Seric messages is the best possible. 20466343Seric CONFIG: reduce the number of quotes needed to quote configuration 20566343Seric parameters with commas: two quotes should work now, e.g., 20666343Seric define(ALIAS_FILE, ``/etc/aliases,/etc/aliases.local''). 20766343Seric CONFIG: class $=Z is a set of UUCP hosts that use uucp-dom 20866343Seric connections (domain-ized UUCP). 20966343Seric CONFIG: fix bug in default maps (-o must be before database file 21066343Seric name). Pointed out by Christophe Wolfhugel. 21166343Seric CONFIG: add FEATURE(nodns) to state that we are not relying on 21266343Seric DNS. This would presumably be used in UUCP islands. 21366343Seric CONFIG: add OSTYPE(nextstep) and OSTYPE(linux). 21466343Seric CONFIG: log $u in Received: line. This is in technical violation 21566343Seric of the standards, since it doesn't guarantee a domain 21666343Seric on the address. 21766343Seric CONFIG: don't assume "m" in local mailer flags -- this means that 21866343Seric if you redefine LOCAL_MAILER_FLAGS you will have to include 21966343Seric the "m" flag should you want it. Apparently some Solaris 2.2 22066343Seric installations can't handle multiple local recipients. 22166343Seric Problem noted by Josh Smith. 22266343Seric CONFIG: add confDOMAIN_NAME to set $j (if undefined, $j defaults). 22366343Seric CONFIG: change default version level from 4 to 5. 22466343Seric CONFIG: add FEATURE(nullclient) to create a config file that 22566343Seric forwards all mail to a hub without ever looking at the 22666343Seric addresses in any detail. 22766343Seric CONFIG: properly strip mailer: information off of relays when 22866343Seric used to change .BITNET form into %-hack form. 22966343Seric CONFIG: fix a problem that caused infinite loops if presented 23066343Seric with an address such as "!foo". 23166343Seric CONFIG: check for self literal (e.g., [128.32.131.12]) even if 23266343Seric the reverse "PTR" mapping is broken. There's a better 23366343Seric way to do this, but the change is fairly major and I 23466343Seric want to hold it for another release. Problem noted by 23566343Seric Bret Marquis. 23666343Seric 23766342Seric8.5/8.5 93/07/23 23866342Seric Serious bug: if you used a command line recipient that was unknown 23966342Seric sendmail would not send a return message (it was treating 24066342Seric everything as though it had an SMTP-style client that 24166342Seric would do the return itself). Problem noted by Josh Smith. 24266342Seric Change "trymx" option in getcanonname() to ignore all MX data, 24366342Seric even during a T_ANY query. This actually didn't break 24466342Seric anything, because the only time you called getcanonname 24566342Seric with !trymx was if you already knew there were no MX 24666342Seric records, but it is somewhat cleaner. From Motonori 24766342Seric Nakamura. 24866342Seric Don't call getcanonname from getmxrr if you already know there 24966342Seric are no DNS records matching the name. 25066342Seric Fix a problem causing error messages to always include "The 25166342Seric original message was received ... from localhost". 25266342Seric The correct original host information is now included. 25366342Seric Previous change to cf/sh/makeinfo.sh doesn't port to Ultrix (their 25466342Seric version of "test" doesn't have the -x flag). Change it 25566342Seric to use -f instead. From John Myers. 25666342Seric CONFIG: 8.4 mistakenly set the default SMTP-style mailer to 25766342Seric esmtp -- it should be smtp. 25866342Seric CONFIG: send all relayed mail using confRELAY_MAILER (defaults 25966342Seric to "relay" (a variant of "smtp") if MAILER(smtp) is used, 26066342Seric else "suucp" if MAILER(uucp) is used, else "unknown"); 26166342Seric this cleans up the configs somewhat. This fixes a serious 26266342Seric problem that caused route-addrs to get mistaken as relays, 26366342Seric pointed out by John Myers. WARNING: this also causes 26466342Seric the default on SMART_HOST to change from "suucp" to 26566342Seric "relay" if you have MAILER(smtp) specified. 26666342Seric 26766341Seric8.4/8.4 93/07/22 26866341Seric Add option `w'. If you receive a message that comes to you because 26966341Seric you are the best (lowest preference) target of an MX, and 27066341Seric you haven't explicitly recognized the source MX host in 27166341Seric your .cf file, this option will cause you to try the target 27266341Seric host directly (as if there were no MX for it at all). If 27366341Seric `w' is not set, this case is a configuration error. 27466341Seric Beware: if `w' is set, senders may get bogus errors like 27566341Seric "message timed out" or "host unknown" for problems that 27666341Seric are really configuration errors. This option is 27766341Seric disrecommended, provided only for compatibility with 27866341Seric UIUC sendmail. 27966341Seric Fix a problem that caused the incoming socket to be left open 28066341Seric when sendmail forks after the DATA command. This caused 28166341Seric calling systems to wait in FIN_WAIT_2 state until the 28266341Seric entire list was processed and the child closed -- a 28366341Seric potentially prodigious amount of time. Problem noted 28466341Seric by Neil Rickert. 28566341Seric Fix problem (created in 6.64) that caused mail sent to multiple 28666341Seric addresses, one of which was a bad address, to completely 28766341Seric suppress the sending of the message. This changes 28866341Seric handling of EF_FATALERRS somewhat, and adds an 28966341Seric EF_GLOBALERRS flag. This also fixes a potential problem 29066341Seric with duplicate error messages if there is a syntax error 29166341Seric in the header of a message that isn't noticed until late 29266341Seric in processing. Original problem pointed out by Josh Smith 29366341Seric of Harvey Mudd College. This release includes quite a bit 29466341Seric of dickering with error handling (see below). 29566341Seric Back out SMTP transaction if MAIL gets nested 501 error. This 29666341Seric will only hurt already-broken software and should help 29766341Seric humans. 29866341Seric Fix a problem that broke aliases when neither NDBM nor NEWDB were 29966341Seric compiled in. It would never read the alias file. 30066341Seric Repair unbalanced `)' and `>' (the "open" versions are already 30166341Seric repaired). 30266341Seric Logging of "done" in dropenvelope() was incorrect: it would 30366341Seric log this even when the queue file still existed. Change 30466341Seric this to only log "done" (at log level 11) when the 30566341Seric queue file is actually removed. From John Myers. 30666341Seric Log "lost connection" in server SMTP at log level 20 if there 30766341Seric is no pending transaction. Some senders just close the 30866341Seric connection rather than sending QUIT. 30966341Seric Fix a bug causing getmxrr to add a dot to the end of unqualified 31066341Seric domains that do not have MX records -- this would cause 31166341Seric the subsequent host name lookup to fail. The problem 31266341Seric only occurred if you had FEATURE(nocanonify) set. 31366341Seric Problem noted by Rick McCarty of Texas Instruments. 31466341Seric Fix invocation of setvbuf when passed a -X flag -- I had 31566341Seric unwittingly used an ANSI C extension, and this caused 31666341Seric core dumps on some machines. 31766341Seric Diagnose self-destructive alias loops on RCPT as well as EXPN. 31866341Seric Previously it just gave an empty send queue, which 31966341Seric then gave either "Need RCPT (recipient)" at the DATA 32066341Seric (confusing, since you had given an RCPT command which 32166341Seric returned 250) or just dropped the email, depending on 32266341Seric whether you were running VERBose mode. Now it usually 32366341Seric diagnoses this case as "aliasing/forwarding loop broken". 32466341Seric Unfortunately, it still doesn't adequately diagnose 32566341Seric some true error conditions. 32666341Seric Add internal concept of "warning messages" using 6xx codes. 32766341Seric These are not reported only to Postmaster. Unbalanced 32866341Seric parens, brackets, and quotes are printed as 653 codes. 32966341Seric They are always mapped to 5xx codes before use in SMTP. 33066341Seric Clean up error messages to tell both the actual address that 33166341Seric failed and the alias they arose from. This makes it 33266341Seric somewhat easier to diagnose problems. Difficulty noted 33366341Seric by Motonori Nakamura. 33466341Seric Fix a problem that inappropriately added a ctladdr to addresses 33566341Seric that shouldn't have had one during a queue run. This 33666341Seric caused error messages to be handled differently during 33766341Seric a queue run than a direct run. 33866341Seric Don't print the qf name and line number if you get errors during 33966341Seric the direct run of the queue from srvrsmtp -- this was 34066341Seric just extra stuff for users to crawl through. 34166341Seric Put command line flags on second line of pid file so you can 34266341Seric auto-restart the daemon with all appropriate arguments. 34366341Seric Use "kill `head -1 /etc/sendmail.pid`" to stop the 34466341Seric daemon, and "eval `tail -1 /etc/sendmail.pid`" to 34566341Seric restart it. 34666341Seric Remove the ``setuid(getuid())'' in main -- this caused the 34766341Seric IDENT daemon to screw up. This required that I change 34866341Seric HASSETEUID to HASSETREUID and complicate the mode 34966341Seric changing somewhat because both Ultrix and SunOS seem 35066341Seric to have a bug causing seteuid() to set the saved uid 35166341Seric as well as the effective. The program test/t_setreuid.c 35266341Seric will test to see if your implementation of setreuid(2) 35366341Seric is appropriately functional. 35466341Seric The FallBackMX (option V) handling failed to properly identify 35566341Seric fallback to yourself -- most of the code was there, 35666341Seric but it wasn't being enabled. Problem noted by Murray 35766341Seric Kucherawy of the University of Waterloo. 35866341Seric Change :include: open timeout from ETIMEDOUT to an internal 35966341Seric code EOPENTIMEOUT; this avoids adding "during SmtpPhase 36066341Seric with CurHostName" in error messages, which can be 36166341Seric confusing. Reported by Jonathan Kamens of OpenVision 36266341Seric Technologies. 36366341Seric Back out setpgrp (setpgid on POSIX systems) call to reset the 36466341Seric process group id. The original fix was to get around 36566341Seric some problems with recalcitrant MUAs, but it breaks 36666341Seric any call from a shell that creates a process group id 36766341Seric different from the process id. I could try to fix 36866341Seric this by diddling the tty owner (using tcsetpgrp or 36966341Seric equivalent) but this is too likely to break other 37066341Seric things. 37166341Seric Portability changes: 37266341Seric Support -M as equivalent to -oM on Ultrix -- apparently 37366341Seric DECnet calls sendmail with -MrDECnet -Ms<HOST> -bs 37466341Seric instead of using standard flags. Oh joy. This 37566341Seric behaviour reported by Jon Giltner of University 37666341Seric of Colorado. 37766341Seric SGI IRIX -- this includes several changes that should 37866341Seric help other strict ANSI compilers. 37966341Seric SCO Unix -- from Murray Kucherawy of HookUp Communication 38066341Seric Corporation. 38166341Seric Solaris running the Sun C compiler (which despite the 38266341Seric documentation apparently doesn't define 38366341Seric __STDC__ by default). 38466341Seric ConvexOS from Eric Schnoebelen of Convex. 38566341Seric Sony NEWS workstations and Omron LUNA workstations from 38666341Seric Motonori Nakamura. 38766341Seric CONFIG: add confTRY_NULL_MX_LIST to set option `w'. 38866341Seric CONFIG: delete `C' and `e' from default SMTP mailers flags; 38966341Seric several people have made a good argument that this 39066341Seric creates more problems than it solves (although this 39166341Seric may prove painful in the short run). 39266341Seric CONFIG: generalize all the relays to accept a "mailer:host" 39366341Seric format. 39466341Seric CONFIG: move local processing in ruleset 0 into a new ruleset 39566341Seric 98 (8 on old sendmail). Domain literal [a.b.c.d] 39666341Seric addresses are also passed through this ruleset. 39766341Seric CONFIG: if neither SMART_HOST nor MAILER(smtp) were defined, 39866341Seric internet-style addresses would "fall off the end" of 39966341Seric ruleset zero and be interpreted as local -- however, 40066341Seric the angle brackets confused the recursive call. 40166341Seric These are now diagnosed as "Unrecognized host name". 40266341Seric CONFIG: USENET rules weren't included in S0 because of a mistaken 40366341Seric ifdef(`_MAILER_USENET_') instead of 40466341Seric ifdef(`_MAILER_usenet_'). Problem found by Rein Tollevik 40566341Seric of SINTEF RUNIT, Oslo. 40666341Seric CONFIG: move up LOCAL_RULE_0 processing so that it happens very 40766341Seric early in ruleset 0; this allows .mc authors to bypass 40866341Seric things like the "short circuit" code for local addresses. 40966341Seric Prompted by a comment by Bill Wisner of The Well. 41066341Seric CONFIG: add confSMTP_MAILER to define the mailer used (smtp or 41166341Seric esmtp) to send SMTP mail. This allows you to default 41266341Seric to esmtp but use a mailertable or other override to 41366341Seric deal with broken servers. This logic was pointed out 41466341Seric to me by Bill Wisner. Ditto for confLOCAL_MAILER. 41566341Seric Changes to cf/sh/makeinfo.sh to make it portable to SVR4 41666341Seric environments. Ugly as sin. 41766341Seric 41866340Seric8.3/8.3 93/07/13 41966340Seric Fix setuid problems introduced in 8.2 that caused messages 42066340Seric like "Cannot create qfXXXXXX: Invalid argument" 42166340Seric or "Cannot reopen dfXXXXXX: Permission denied". This 42266340Seric involved a new compile flag "HASSETEUID" that takes 42366340Seric the place of the old _POSIX_SAVED_IDS -- it turns out 42466340Seric that the POSIX interface is broken enough to break 42566340Seric some systems badly. This includes some fixes for 42666340Seric HP-UX. Also fixes problems where the real uid is 42766340Seric not reset properly on startup (from Neil Rickert). 42866340Seric Fix a problem that caused timed out messages to not report the 42966340Seric addresses that timed out. Error messages are also more 43066340Seric "user friendly". 43166340Seric Drop required bandwidth on connections from 64 bytes/sec to 43266340Seric 16 bytes/sec. 43366340Seric Further Solaris portability changes -- doesn't require the BSD 43466340Seric compatibility library. This also adds a new 43566340Seric "HASGETDTABLESIZE" compile flag which can be used if 43666340Seric you want to use getdtablesize(2) instead of sysconf(2). 43766340Seric These are loosely based on changes from David Meyer at 43866340Seric University of Oregon. This now seems to work, at least 43966340Seric for quick test cases. 44066340Seric Fix a problem that can cause duplicate error messages to be 44166340Seric sent if you are in SMTP, you send to multiple addresses, 44266340Seric and at least one of those addresses is good and points 44366340Seric to an account that has a .forward file (whew!). 44466340Seric Fix a problem causing messages to be discarded if checkcompat() 44566340Seric returned EX_TEMPFAIL (because it didn't properly mark 44666340Seric the "to" address). Problem noted by John Myers. 44766340Seric Fix dfopen to return NULL if the open failed; I was depending 44866340Seric on fdopen(-1) returning NULL, which isn't the case. This 44966340Seric isn't serious, but does result in wierd error diagnoses. 45066340Seric From Michael Corrigan. 45166340Seric CONFIG: add UUCP_MAX_SIZE M4 macro to set the maximum size of 45266340Seric messages sent through UUCP-family mailers. Suggested 45366340Seric by Bill Wisner of The Well. 45466340Seric CONFIG: if both MAILER(uucp) and MAILER(smtp) are specified, 45566340Seric include a "uucp-dom" mailer that uses domain-style 45666340Seric addressing. Suggested by Bill Wisner. 45766340Seric CONFIG: Add LOCAL_SHELL_FLAGS and LOCAL_SHELL_ARGS to match 45866340Seric LOCAL_MAILER_FLAGS and LOCAL_MAILER_ARGS. Suggested by 45966340Seric Christophe Wolfhugel. 46066340Seric CONFIG: Add OSTYPE(aix3). From Christophe Wolfhugel. 46166340Seric 46266339Seric8.2/8.2 93/07/11 46366339Seric Don't drop out on config file parse errors in -bt mode. 46466339Seric On older configuration files, assume option "l" (use Errors-To 46566339Seric header) for back compatibility. NOTE: this DOES NOT 46666339Seric imply an endorsement of the Errors-To: header in any way. 46766339Seric Accept -x flag on AIX-3 as well as OSF/1. Why, why, why??? 46866339Seric Don't log errors on EHLO -- it isn't a "real" error for an old 46966339Seric SMTP server to give an error on this command, and 47066339Seric logging it in the transcript can be confusing. Fix 47166339Seric from Bill Wisner. 47266339Seric IRIX compatibility changes provided by Dan Rich 47366339Seric <drich@sandman.lerc.nasa.gov>. 47466339Seric Solaris 2 compatibility changes. Provided by Bob Cunningham 47566339Seric <bob@kahala.soest.hawaii.edu>, John Oleynick 47666339Seric <juo@klinzhai.rutgers.edu> 47766339Seric Debugging: -d17 was overloaded (hostsignature and usersmtp.c); 47866339Seric move usersmtp (smtpinit and smtpmailfrom) to -d18 to 47966339Seric match the other flags in that file. 48066339Seric Flush transcript before fork in mailfile(). From Eric Wassenaar. 48166339Seric Save h_errno in mci struct and improve error message display. 48266339Seric Changes from Eric Wassenaar. 48366339Seric Open /dev/null for the transcript if the create of the xf file 48466339Seric failed; this avoids at least one possible null pointer 48566339Seric reference in very wierd cases. From Eric Wassenaar. 48666339Seric Clean up statistics gathering; it was over-reporting because of 48766339Seric forks. From Eric Wassenaar. 48866339Seric Fix problem that causes old Return-Path: line to override new 48966339Seric Return-Path: line (conf.c needs H_FORCE to avoid 49066339Seric re-using old value). From Motonori Nakamura. 49166339Seric Fix broken -m flag in K definition -- even if -m (match only) 49266339Seric was specified, it would still replace the key with the 49366339Seric value. Noted by Rick McCarty of Texas Instruments. 49466339Seric If the name server timed out over several days, no "timed out" 49566339Seric message would ever be sent back. The timeout code 49666339Seric has been moved from markfailure() to dropenvelope() 49766339Seric so that all such failures should be diagnosted. Pointed 49866339Seric out by Christophe Wolfhugel and others. 49966339Seric Relax safefile() constraints: directories in an include or 50066339Seric forward path must be readable by self if the controlling 50166339Seric user owns the entry, readable by all otherwise (e.g., 50266339Seric when reading your .forward file, you have to own and 50366339Seric have X permssion in it; everyone needs X permission in 50466339Seric the root and directories leading up to your home); 50566339Seric include files must be readable by anyone, but need not 50666339Seric be owned by you. 50766339Seric If _POSIX_SAVED_IDS is defined, setuid to the owner before 50866339Seric reading a .forward file; this gets around some problems 50966339Seric on NFS mounts if root permission is not exported and 51066339Seric the user's home directory isn't x'able. 51166339Seric Additional NeXT portability enhancements from Axel Zinser. 51266339Seric Additional HP-UX portability enhancements from Brian Bullen. 51366339Seric Add a timeout around SMTP message writes; this assumes you can 51466339Seric get throughput of at least 64 bytes/second. Note that 51566339Seric this does not impact the "datafinal" default, which 51666339Seric is separate; this is just intended to work around 51766339Seric network clogs that will occur before the final dot 51866339Seric is sent. From Eric Wassenaar. 51966339Seric Change map code to set the "include null" flag adaptively -- 52066339Seric it initially tries both, but if it finds anything 52166339Seric matching without a null it never tries again with a 52266339Seric null and vice versa. If -N is specified, it never 52366339Seric tries without the null and creates new maps with a 52466339Seric null byte. If -O is specified, it never tries with 52566339Seric the null (for efficiency). If -N and -O are specified, 52666339Seric you get -NO (get it?) lookup at all, so this would 52766339Seric be a bad idea. If you don't specify either -N or -O, 52866339Seric it adapts. 52966339Seric Fix recognition of "same from address" so that MH submissions 53066339Seric will insert the appropriate full name information; 53166339Seric this used to work and got broken somewhere along the 53266339Seric way. 53366339Seric Some changes to eliminate some unnecessary SYSERRs in the 53466339Seric log. For example, if you lost a connection, don't 53566339Seric bother reporting that fact on the connection you lost. 53666339Seric Add some "extended debugging" flags to try to track down 53766339Seric why we get occassional problems with file descriptor 53866339Seric one being closed when execing a mailer; it seems to 53966339Seric only happen when there has been another error in the 54066339Seric same transaction. This requires XDEBUG, defined 54166339Seric by default in conf.h. 54266339Seric Add "-X filename" command line flag, which logs both sides of 54366339Seric all SMTP transactions. This is intended ONLY for 54466339Seric debugging bad implementations of other mailers; start 54566339Seric it up, send a message from a mailer that is failing, 54666339Seric and then kill it off and examine the indicated log. 54766339Seric This output is not intended to be particularly human 54866339Seric readable. This also adds the HASSETVBUF compile 54966339Seric flag, defaulted on if your compiler defines __STDC__. 55066339Seric CONFIG: change SMART_HOST to override an SMTP mailer. If you 55166339Seric have a local net that should get direct connects, you 55266339Seric will need to use LOCAL_NET_CONFIG to catch these hosts. 55366339Seric See cf/README for an example. 55466339Seric CONFIG: add LOCAL_MAILER_ARGS (default: `mail -d $u') to handle 55566339Seric sites that don't use the -d flag. 55666339Seric CONFIG: hide recipient addresses as well as sender addresses 55766339Seric behind $M if FEATURE(allmasquerade) is specified; this 55866339Seric has been requested by several people, but can break 55966339Seric local aliases. For example, if you mail to "localalias" 56066339Seric this will be rewritten as "localalias@masqueradehost"; 56166339Seric although initial delivery will work, replies will be 56266339Seric broken. Use it sparingly. 56366339Seric CONFIG: add FEATURE(domaintable). This maps unqualified domains 56466339Seric to qualified domains in headers. I believe this is 56566339Seric largely equivalent to the IDA feature of the same name. 56666339Seric CONFIG: use $U as UUCP name instead of $k. This permits you 56766339Seric to override the "system name" as your UUCP name -- 56866339Seric in particular, to use domain-ized UUCP names. From 56966339Seric Bill Wisner of The Well. 57066339Seric CONFIG: create new mailer "esmtp" that always tries EHLO 57166339Seric first. This is currently unused in the config files, 57266339Seric but could be used in a mailertable entry. 57366339Seric 57466338Seric8.1C/8.1B 93/06/27 57566338Seric Serious security bug fix: it was possible to read any file on 57666338Seric the system, regardless of ownership and permissions. 57766338Seric If a subroutine returns a fully qualified address, return it 57866338Seric immediately instead of feeding it back into rewriting. 57966338Seric This fixes a problem with mailertable lookups. 58066338Seric CONFIG: fix some M4 frotz (concat => CONCAT) 58166338Seric 58266338Seric8.1B/8.1A 93/06/12 58366338Seric Serious bug fix: pattern matching backup algorithm stepped by 58466338Seric two tokens in classes instead of one. Found by Claus 58566338Seric Assmann at University of Kiel, Germany. 58666338Seric 58766338Seric8.1A/8.1A 93/06/08 58866338Seric Another mailertable fix.... 58966338Seric 59066338Seric8.1/8.1 93/06/07 59166338Seric 4.4BSD freeze. No semantic changes. 59266338Seric 59366338Seric6.65/6.34 93/06/06 59466338Seric Fix some lintish problems. 59566338Seric Fix some cases where server SMTP behaved poorly when handed bogus 59666338Seric input, pointed out by Eric Wassenaar. 59766338Seric CONFIG: fix some more (sigh) mailertable bugs -- thanks to 59866338Seric Motonori Nakamura of Kyoto University (again). 59966338Seric 60066338Seric6.64/6.33 93/06/05 60166338Seric Don't send 050 (-v) information after the 250 response to a QUIT 60266338Seric command in srvrsmtp -- clients usually close the connection 60366338Seric at this point, and it causes bogus error messages. 60466338Seric Don't send messages that have errors on input (such as unbalanced 60566338Seric parentheses) during SMTP transactions, since a return 60666338Seric message has (probably) already been sent. 60766338Seric Give better diagnostics on timeouts during network reads, including 60866338Seric information similar to the SMTP phase. 60966338Seric Fix bug that caused SMTP messages to deliver synchronously; this 61066338Seric happened after the DATA 250, and hence caused reading the 61166338Seric next command to be delayed. 61266338Seric Ignore Errors-To: header unless 'l' (lower case el) header is 61366338Seric specified. The Errors-To: header violates RFC 1123. 61466338Seric Errors-To: was only needed to take the place of the 61566338Seric envelope sender in the days when most Unix mailers 61666338Seric didn't understand about the two kinds of senders. 61766338Seric Don't send warning messages in response to automatically generated 61866338Seric messages (that is, those From:<>). 61966338Seric CONFIG: fix some rather stupid typos in the mailertable code 62066338Seric pointed out by Motonori Nakamura of Kyoto University. 62166338Seric CONFIG: add confUSE_ERRORS_TO configuration option. 62266338Seric CONFIG: if ALWAYS_ADD_DOMAIN is selected, try to use $M 62366338Seric (masquerade name) instead of $j. 62466338Seric CONFIG: don't add dots to relay names (added in 6.29); it breaks 62566338Seric several things, and can be simulated by dot terminating 62666338Seric the names of relays. For example, use: 62766338Seric DBbit.net.relay. 62866338Seric (note the trailing dot). 62966338Seric 63066338Seric6.63/6.32 93/06/01 63166338Seric Fix prototypes to eliminate chars in argument lists -- some 63266338Seric compilers are pissy about this. 63366338Seric Log protocol ($r) and body type if set so we can determine if 63466338Seric the adaptive algorithms are working. 63566338Seric Pessimize on locking of database files (particularly for NEWDB 63666338Seric databases) during opens. There were problems with 63766338Seric processes opening the file while it was rebuilt; since 63866338Seric NEWDB caches heavily, the reader opened an empty file, 63966338Seric which is an error. If your system has the ability to 64066338Seric lock atomically on open, this works properly; otherwise, 64166338Seric there are race conditions. 64266338Seric Check mod time on .pag file instead of .dir in NDBM aliases 64366338Seric because the .dir file doesn't get updated for small 64466338Seric alias files. From John Gardiner Myers of CMU. 64566338Seric More Solaris portability -- it now compiles on Solaris, but 64666338Seric hangs up in gethostbyname(). 64766338Seric Move setting of RES_DEBUG flag before first myhostname() call 64866338Seric so we can see name server traffic on that call. 64966338Seric Fsync() queue files. 65066338Seric Fix a problem that causes -bi to try to rebuild maps other than 65166338Seric the alias file(s). 65266338Seric Fix a problem that caused udb to reject entries from any but 65366338Seric the first database listed. 65466338Seric Rearrange doc subdirectory for 4.4BSD release tape. 65566338Seric CONFIG: put $r into the Received line. This was an oversight. 65666338Seric CONFIG: fix typo (call to ruleset 99 should have been rulset 90). 65766338Seric CONFIG: move "auxiliary" subroutines to be in ruleset 90-99 65866338Seric range -- in the long run, single digit rulesets may 65966338Seric become reserved for builtin use by sendmail. 66066338Seric CONFIG: fix major problem that causes host aliases (that is, 66166338Seric anything in $=w != $j) to not be recognized. This has 66266338Seric been around since 6.30. 66366338Seric 66466338Seric6.62/6.31 93/05/28 66566338Seric BETA RELEASE 66666338Seric Fix recursive syserr (if there is an error printing a syserr 66766338Seric message). This makes the code much less eager to consider 66866338Seric a write error as serious. This also includes some 66966338Seric heuristics to be clever about closed connections. 67066338Seric Lock NEWDB files during gets. This requires version 1.5 or later 67166338Seric of the db library. If you have an older version, you 67266338Seric can use -DOLD_NEWDB. This will go away in a few weeks. 67366338Seric Fix problem causing aliases that use host maps to get overwritten. 67466338Seric Do appropriate byte swapping on port numbers in ident protocol 67566338Seric code. Fix from Allan Johannesen of WPI. 67666338Seric Defer opening of map files to the same time as alias files so that 67766338Seric the daemon will tend to pick up new versions more promptly. 67866338Seric Prototype a bunch more functions. 67966338Seric Some Solaris 2.1 changes (still doesn't link though). 68066338Seric Try to simplify Makefiles by including more subordinate #defines 68166338Seric in conf.h (based on OS type). 68266338Seric CONFIG: check for domains if FEATURE(mailertable) is defined. 68366338Seric For example, if the host name is "knecht.cs.berkeley.edu" 68466338Seric it will search the following mailertable keys: 68566338Seric knecht.cs.berkeley.edu 68666338Seric .cs.berkeley.edu 68766338Seric .berkeley.edu 68866338Seric .edu 68966338Seric This could be used to replace the special relays for bitnet 69066338Seric and similar nets. 69166338Seric 69266338Seric6.61/6.30 93/05/24 69366338Seric Fix problem that prevented appending dots on canonified host 69466338Seric names. This breaks tons of config files -- very 69566338Seric important fix. 69666338Seric Fix improper pointer dereference in response to HELO command. 69766338Seric Fix core dump if debugging set in map_rewrite. 69866338Seric CONFIG: add FEATURE(always_add_domain) to always attach the 69966338Seric local domain (only impacts local mail). 70066338Seric CONFIG: try to avoid turning names into $j -- although 70166338Seric technically a host can only have one "canonical name", 70266338Seric it seems to be common practice to have several. 70366338Seric 70466338Seric6.60/6.29 93/05/22 70566338Seric Major change: merge alias databases with maps. This expands and 70666338Seric changes the map class interface but fixes a bunch of bugs. 70766338Seric The important user-visible change is that the file name 70866338Seric in a K line now does not include the ".db" extension; this 70966338Seric is added automatically. Also, the -d (NIS domain) flag is 71066338Seric missing from the K config line; use @domain instead. 71166338Seric When compiling, the *_MAP names are gone -- just compile 71266338Seric in NDBM, NEWDB, and/or NIS support. 71366338Seric Announce mailer/host/user triple on -bv flag -- from Brian 71466338Seric Bullen of Stirling University. 71566338Seric Don't send more than one line in response to HELO -- it confuses 71666338Seric Pony Express, which then behaves very badly. However, 71766338Seric this change does send two line 220 greetings, with the 71866338Seric second line reading "ESMTP spoken here". The usersmtp 71966338Seric module recognizes this and goes into ESMTP mode regardless 72066338Seric of the setting of the "a" mailer flag. Thus, "a" means 72166338Seric "always try EHLO". 72266338Seric AIX portability changes (thanks to Christophe Wolfhugel of 72366338Seric Herve Schauer Consultants (Paris) for providing me with 72466338Seric an INSA account for this purpose). Lightly tested. Use 72566338Seric -D_AIX3. This probably breaks compatibility with some 72666338Seric older systems (e.g., 4.2bsd) but still works on SunOS 72766338Seric 4.1.2, Ultrix 4.2A, HP-UX 8.07, OSF/1 T1.3, and AIX 3.2.3. 72866338Seric Fix a problem causing an error message loop if the output channel 72966338Seric is hosed. 73066338Seric Add the Makefiles that I use for various environments -- some are 73166338Seric Berkeley make versions and some are old make versions. 73266338Seric My makefile for the NeXT box has gotten lost, alas! 73366338Seric PRALIASES: support for printing NEWDB databases. From 73466338Seric Michael J. Corrigan of U.C. San Diego. 73566338Seric CONFIG: don't pass pseudo-domains to $[ ... $] (if you have 73666338Seric a wildcard MX it can have wierd results). From 73766338Seric Christophe Wolfhugel. 73866338Seric CONFIG: dot terminate relay hostnames in S0. From Christophe 73966338Seric Wolfhugel. 74066338Seric 74166338Seric6.59/6.28 93/05/13 74266338Seric Log version with SMTP daemon startup message. 74366338Seric Adjust setproctitle to work on NetBSD and BSD/386. 74466338Seric Fix null pointer reference in MX fallback code. 74566338Seric A bunch of minor fixes from Eric Wassenaar: 74666338Seric If deliver cannot execv the mailer, return EX_OSERR 74766338Seric instead of EX_TEMPFAIL (to give better 74866338Seric error messages). 74966338Seric Consistently malloc e_message. 75066338Seric Catch degenerate case of calling returntosender() 75166338Seric with an empty returnq. 75266338Seric MIME reformatting. 75366338Seric 75466338Seric6.58/6.28 93/05/13 75566338Seric Fix bug that can cause incorrect verbose display of user smtp 75666338Seric messages. 75766338Seric Disable SMTP VERB command if PRIV_NOEXPN is set (since this 75866338Seric could reveal the same information. 75966338Seric Allow failure when reading SMTP greeting message to go on to 76066338Seric next MX host. 76166338Seric Add "MIME-Version: 1.0" header if using MIME (this was NOT 76266338Seric included in RFC 1344, but Bill King of Allan-Bradley 76366338Seric Company forwarded me email from Nathaniel Borenstein 76466338Seric claiming that it was an inadvertent omission). 76566338Seric Don't use Content-Type: X-message-header. According to John 76666338Seric Myers of CMU, many MIME readers will completely ignore 76766338Seric the data if they don't recognize it. Instead, just 76866338Seric add a blank line to make it a legal (empty) message. 76966338Seric Fix problem causing dots to keep getting appended to cached 77066338Seric hostnames. This can cause buffer overrun conditions. 77166338Seric The problem was found by Erik Forsberg of Retix, 77266338Seric although I used a different bug fix than he provided. 77366338Seric Fix parsing of split header/envelope rewriting specs -- from 77466338Seric Eric Forsberg. 77566338Seric Fix from Eric Wassenaar to correct To: lists in error messages. 77666338Seric 77766338Seric6.57/6.28 93/05/11 77866338Seric Fix minor glitch causing extra ctladdrs to be output to queue 77966338Seric file. Just an annoyance. 78066338Seric Cache results of name server canonification lookups to avoid 78166338Seric backed up queue runs. 78266338Seric Major rewrite of alias.c: considerable cleanup, plus sample 78366338Seric (untested) support for NIS aliases. The "A" option 78466338Seric can now be a comma separated list (or be repeated) -- 78566338Seric that is, you can have multiple alias databases. Each 78666338Seric database can have the syntax ``class:file''; if no class 78766338Seric is specified, the "implicit" class is assumed. Implicit 78866338Seric searches through a list of compiled in types -- hash, 78966338Seric dbm, nis, and stab. Alias files are searched in the 79066338Seric order they are listed. For example: 79166338Seric OAhash:/etc/aliases.local,/etc/aliases 79266338Seric OAnis:mail.aliases@my.nis.domain 79366338Seric first searches the hash database /etc/aliases.local, 79466338Seric then the regular /etc/aliases database, then the NIS 79566338Seric map "mail.aliases" in the NIS domain "my.nis.domain". 79666338Seric If in Verbose mode (probably from VERB command) run SMTP job 79766338Seric in foreground and don't do RCPT optimizations. 79866338Seric Add udb :mailsender as equivalent to owner- for regular aliases. 79966338Seric Delete option 8; add option 7 that means the opposite. That is, 80066338Seric default to 8-bit mode; a special option is needed to 80166338Seric force sendmail into 7 bit mode. 80266338Seric Send error messages in encapsulated MIME format. 80366338Seric New compile flag "NIS" that turns on NIS alias and NIS map 80466338Seric support. 80566338Seric Add "j" option to send error messages in MIME (RFC 1341) 80666338Seric encapsulated message format per RFC 1344. The 80766338Seric syntax is pretty ugly if you don't have MIME-aware 80866338Seric user agents. 80966338Seric Clean up message handling (for display in mailq output). 81066338Seric New setproctitle implementation for 4.4bsd. 81166338Seric Create files (such as ~/dead.letter) using mode FileMode (the 81266338Seric F option value) instead of 0666. 81366338Seric Fix bug causing output of EXPN command to not be fully qualified. 81466338Seric This may cause some problems with UUCP addresses that 81566338Seric will require some config file assistance -- specifically, 81666338Seric the $: part has to include the host name for this output 81766338Seric to make sense. 81866338Seric Fix a problem that sometimes diagnosed errors and still sent the 81966338Seric message if the header syntax was bad. 82066338Seric Fix a bug that caused an error message to be emailed when sendmail 82166338Seric was operating in -bv mode. 82266338Seric Add "ListenQueueSize" keyword to daemon options option (OO) to 82366338Seric set the queue size parameter passed to listen(). You 82466338Seric will normally have to tweak your kernel to up this. 82566338Seric Strip spaces off of beginning of message-id before logging (in 82666338Seric case it was folded across lines). 82766338Seric Tweak compile flags in daemon.c -- there were some cases where 82866338Seric it wouldn't work without NETINET. 82966338Seric Change *file* mailer to output all the usual default headers 83066338Seric (From, Date, Message-Id). It gets used when sending 83166338Seric back error messages. 83266338Seric CONFIG: explicitly catch and diagnose list:; syntax in ruleset 83366338Seric zero -- this is not a valid recipient syntax according 83466338Seric to RFC 821. 83566338Seric CONFIG: add confMIME_FORMAT_ERRORS to send error messages in 83666338Seric MIME format. Defaults to on. 83766338Seric CONFIG: add SMTP_MAILER_FLAGS and UUCP_MAILER_FLAGS to augment 83866338Seric the flags for those mailers. 83966338Seric 84066338Seric6.56/6.27 93/05/01 84166338Seric Fix problem that causes the fallback mail to postmaster 84266338Seric (case ESM_POSTMASTER in savemail()) to not look at 84366338Seric aliases (ugh). 84466338Seric Some more HPUX tweaking (compile flag hpux => __hpux so it 84566338Seric still works in ANSI mode). 84666338Seric Don't try to flock non-regular files when mailing to a file. 84766338Seric In particular, this was a problem if you tried to 84866338Seric send to /dev/null. 84966338Seric Fix a wierd bug that can cause senders to be queued as 85066338Seric recipients if the name server is down when the mail 85166338Seric is initially sent. This hack just ignores sender 85266338Seric deletion (essentially, it sets the MeToo flag) if there 85366338Seric is a TEMPFAIL during processing of the sender address. 85466338Seric Obscure. 85566338Seric Fix a dangling else problem -- from Brian Bullen from University 85666338Seric of Stirling, UK. 85766338Seric Add the "b" mailer flag to force a blank line on the end of 85866338Seric messages. Some brilliant versions of /bin/mail insist 85966338Seric on this but do not add it themselves. 86066338Seric Add the "g" mailer flag to prevent user SMTP from sending 86166338Seric "MAIL From:<>". This is only intended to be a 86266338Seric transitional gesture, and should not be used if at 86366338Seric all possible. It appears that Berkeley and IDA 86466338Seric config files have always handled this properly; the 86566338Seric UK config kit apparently does not. 86666338Seric Don't lowercase and then capitalize header field names -- leave 86766338Seric them with original capitalization. Fixes from Bill 86866338Seric King of Allen-Bradley Company. 86966338Seric Further cleanup and improved reporting of error messages, 87066338Seric particularly conditions that cause messages to be 87166338Seric requeued for future delivery. 87266338Seric Tweak syslog priorities in some cases. 87366338Seric CONFIG: clean up route-addr on UUCP addresses. 87466338Seric 87566338Seric6.55/6.25 93/04/27 87666338Seric HPUX 8.07 compatibility changes in getla() -- I had to make 87766338Seric these changes to get it to work at Berkeley, although 87866338Seric others seem to have been working before (???). 87966338Seric Various patches to XLA code. 88066338Seric Fix problem that causes setuid bit on files to be ignored from 88166338Seric SMTP or in queue runs. Problem noted by Jason Ornstein 88266338Seric of Under The Wire, Inc. 88366338Seric Fix problem that can cause CNAMEs to be ignored. 88466338Seric Generalize getmxrr to match local host in $=w instead of a 88566338Seric single name passed in. 88666338Seric Some cleanup from Eric Wassenaar: 88766338Seric Use FileMailer instead of ProgMailer in two places. 88866338Seric Eliminate duplicate 8th-bit stripping in commaize. 88966338Seric Fix a problem with mis-parsing of backslash escapes 89066338Seric under some circumstances. 89166338Seric NIS map fix (was always including trailing null character) 89266338Seric from Mike Glendinning of Ingres UK. 89366338Seric Add "a" mailer flag to try using ESMTP. It tries the EHLO 89466338Seric command and if that fails falls back to regular SMTP. 89566338Seric Also parses EHLO option keywords. If host supports 89666338Seric SIZE extension, this is added to the MAIL FROM: 89766338Seric command. 89866338Seric Extend "b" option to include a second value which is the 89966338Seric maximum message size this server is willing to accept. 90066338Seric For example, a value of "10/1000000" says that there 90166338Seric must be ten blocks free, and sendmail will reject 90266338Seric any message larger than one megabyte. 90366338Seric Some portability hooks for NeXT (this could be applicable 90466338Seric to Mach in general). You have to create an empty 90566338Seric file called "unistd.h" to get it to compile. 90666338Seric Adjust config values (MAXLINE, MAXATOM, and PSBUFSIZE) to 90766338Seric be more generous. 90866338Seric Add X400-Received: to the list of headers tagged with H_TRACE 90966338Seric in conf.c. From Bill King, Allen-Bradley Co. 91066338Seric 91166338Seric6.54/6.25 93/04/19 91266338Seric Fix problem that caused redefinition of SMTP and QUEUE compile 91366338Seric flags. Pointed out by Jon Forrest of the Sequoia 2000 91466338Seric project at Berkeley. 91566338Seric Properly handle \! hack -- it was treating host\!user as one 91666338Seric token (host!user) instead of three (host, !, user). 91766338Seric Fix from Eric Wassenaar of NIKHEF-H. 91866338Seric Fix compilation problem in getauthinfo() if IDENTPROTO is off. 91966338Seric Turn off DEFNAMES and DNSRCH when getting the hostsignature 92066338Seric (i.e., MX records) in level 1 configuration files; this 92166338Seric matches the old behaviour. From Motonori Nakamura of 92266338Seric Kyoto University. 92366338Seric Improve error message printing -- if sent through an alias, 92466338Seric error messages include the name of the alias in the 92566338Seric message. Unfortunately, in order to make this work 92666338Seric properly in queue runs, this changes the format of the 92766338Seric C line in the qf file. The relatively uselessness of 92866338Seric the previous information was pointed out to me by 92966338Seric Allan E Johannesen of WPI. 93066338Seric Add XLA compile flag to add hooks to Christophe Wolfhugel's 93166338Seric extended load average code. This is still in very early 93266338Seric form. For information regarding the guts of the xla 93366338Seric code, contact Christophe.Wolfhugel@grasp.insa-lyon.fr. 93466338Seric Additional hooks for detecting tempfails in rewriting rules 93566338Seric (that is, in map lookups). 93666338Seric 93766338Seric6.53/6.25 93/04/15 93866338Seric Properly diagnose ruleset zero returning null (instead of a mailer 93966338Seric triple). From Motonori Nakamura of Kyoto University. 94066338Seric More generalization of socket code for other protocols. 94166338Seric Shorten timeouts on reverse name lookups -- since they are done 94266338Seric during connection establishment, long timeouts here can 94366338Seric cause higher level timeouts. This mainly serves to accept 94466338Seric mail from hosts that do not have proper reverse (PTR) DNS 94566338Seric records set up. 94666338Seric Reset e_statmsg before each mailer invocation to avoid bogus 94766338Seric messages in the log. 94866338Seric Redefine $r, $s, and $_ in error envelopes so you don't get 94966338Seric incorrect cruft in the error message. Problem noted by 95066338Seric Motonori Nakamura of Kyoto University. 95166338Seric Fix a problem that can cause failure to return errors to Postmaster 95266338Seric in certain cases. From Motonori Nakamura. 95366338Seric Fix a problem that can cause some systems to give duplicate error 95466338Seric messages when a bad syntax address such as "<a" is presented 95566338Seric to an SMTP server. It doesn't seem to occur on all 95666338Seric machines. From Motonori Nakamura. 95766338Seric Default IDENTPROTO off for Ultrix and HPUX, which apparently have 95866338Seric the interesting "feature" that when they receive a "Host 95966338Seric unreachable" message they closes all open connections to 96066338Seric that host. However, some firewall gateways send this message 96166338Seric if you try to connect to an unauthorized port, such as the 96266338Seric IDENT port (113). Thus, no email can be received from such 96366338Seric hosts. There is some evidence that versions of Ultrix before 96466338Seric 4.3 do not have this problem. Thanks to Tom Ivar Helbekkmo 96566338Seric for pointing out this behaviour to me and to Michael Corrigan 96666338Seric of U.C. San Diego for informing me about the HPUX problem. 96766338Seric Allow IPC mailers to return a colon-separated list of hosts in the 96866338Seric $@ clause; these are searched in order as though they were 96966338Seric MX records. 97066338Seric When sending an error report, print the list of addresses tagged 97166338Seric as bad. Requested by Allan E Johannesen of WPI. 97266338Seric Change map function calls to return a status code. This gets 97366338Seric passed back as the result of rewrite. Parseaddr marks 97466338Seric the address as a QUEUEUP address if the return code is 97566338Seric EX_TEMPFAIL. All this to queue properly if the name 97666338Seric server is down. This code is not well tested. This code 97766338Seric changes the interface to map lookup functions (a fifth 97866338Seric parameter, int *statp, is added). Feature requested by 97966338Seric Dan Oscarsson. 98066338Seric Don't delete quotes (in the dequote map) if there are spaces in 98166338Seric the string, since this would cause them to be replaced by 98266338Seric the SpaceSub character. 98366338Seric Accept BODY=8BITMIME on SMTP MAIL command. This isn't advertised 98466338Seric because the 8BIT to 7BIT translation doesn't exist yet. 98566338Seric This does add a "bodytype" field to both envelope and 98666338Seric queue file and a -B command line flag to pass the type in 98766338Seric during direct invocations. 98866338Seric Discard return error messages only on responses to responses to 98966338Seric responses, not on responses to responses. That is, the 99066338Seric algorithm is to try return to sender, then return to 99166338Seric postmaster, then discard. Previously it discarded 99266338Seric immediately if the return to sender pass failed. 99366338Seric CONFIG: back out change to hide unqualified hostnames behind %-hack. 99466338Seric This screws up local aliases and .forward files. 99566338Seric CONFIG: add FEATURE(nocanonify) to turn off calls to $[ ... $]; 99666338Seric some sites only handle completely canonified names. 99766338Seric Requested by John Gardiner Myers of CMU. 99866338Seric CONFIG: some UUCP code was still included even if FEATURE(nouucp) 99966338Seric was specified. 100066338Seric 100166338Seric6.52/6.24 93/04/10 100266338Seric Clean up some minor glitches on error return messages pointed out 100366338Seric by Motonori Nakamura of Kyoto University. 100466338Seric Fix reply() to not reset SmtpReplyBuffer on fatal errors; this 100566338Seric was supposed to reset SmtpMsg Buffer. This makes the 100666338Seric client side code virtually useless. Reported by Allan 100766338Seric E Johannesen of WPI and Phil Brandenberger of Swarthmore. 100866338Seric Better debug messages if fuzzy is disabled, suggested by Allan 100966338Seric E Johannesen of WPI. 101066338Seric Offset SmtpReplyBuffer by four in usersmtp when checking for 101166338Seric loopback. From Eric Wassenaar. 101266338Seric Don't set $s until after runinchild in srvrsmtp -- otherwise 101366338Seric it gets cleared. From Eric Wassenaar. 101466338Seric Implement IDA-style $&x for deferred macro expansion. 101566338Seric More POSIX compatibility. 101666338Seric CONFIG: Hide unqualified hostnames behind %-hack using $s as the 101766338Seric actual sender. This is only done if $r is non-null, that 101866338Seric is, if this is not locally submitted mail. 101966338Seric CONFIG: Add FEATURE(bitdomain) allowing mapping of BITNET host 102066338Seric names to internet domains. A program contributed by 102166338Seric John Gardiner Myers of CMU to create the maps is included 102266338Seric in the contrib directory (in the "misc" tar file). 102366338Seric CONFIG: Add FEATURE(uucpdomain) for a similar mapping for UUCP 102466338Seric hosts. There is currently no tool to create this map. 102566338Seric 102666338Seric6.51/6.23 93/04/04 102766338Seric Add D= mailer flag to specify a path of possible working directories 102866338Seric in which to execute the mailer. This is intended for the 102966338Seric prog mailer; some shells can get upset if they don't have 103066338Seric access to the current directory. 103166338Seric Add RFC 1413 (IDENT) protocol support. This is only very loosely 103266338Seric tested. This adds a $_ macro to be the authenticated 103366338Seric info (in ``user@domain [address]'' form) and debug flag 103466338Seric 9 to trace the protocol. 103566338Seric Check for loopbacks in usersmtp instead of srvrsmtp -- there is no 103666338Seric reason for a local agent to not be talking to the localhost 103766338Seric (although the inverse is not true). 103866338Seric Add a few hooks for automated map rebuilding. This is certainly 103966338Seric not done yet. 104066338Seric CONFIG: Have prog mailer specify a path of ``D=$z:/'' -- that is, 104166338Seric user's home directory then the root. 104266338Seric CONFIG: Log RFC 1413 identification in Received: line. 104366338Seric 104466338Seric6.50/6.22 93/04/01 104566338Seric Fixes to requeueing code to make it compute priority, nrcpts, 104666338Seric and the like properly. 104766338Seric 104866338Seric6.49/6.22 93/04/01 104966338Seric Diagnose incorrect privacy flags. Suggested by Bryan Costales 105066338Seric of ICSI. 105166338Seric Some ANSI C fixes. 105266338Seric Arrange to quote backslashes as well as other special characters 105366338Seric in the phrase part of a route-addr. 105466338Seric Some fixes to FallBackMX code suggested by Motonori Nakamura of 105566338Seric Kyoto University. 105666338Seric More vigorous zeroing of CurHostAddr to avoid logging of bogus 105766338Seric host addresses when you are actually just printing 105866338Seric information from the MCI structure; problem noted by 105966338Seric Michael Corrigan of U.C. San Diego. 106066338Seric Don't ignore rest of queue if any job is not runnable. This can 106166338Seric also cause an incorrect job to be lost. Fix from 106266338Seric Eric Wassenaar. 106366338Seric Always respond "quickly" to RCPT command; do alias expansion and 106466338Seric the like later. This also means that mail for lists that 106566338Seric have errors will be acccepted, and an error sent back 106666338Seric later. This is done by instantiating the queue file 106766338Seric and then immediately running and requeueing it. 106866338Seric 106966338Seric6.48/6.22 93/03/30 107066338Seric Fix incorrect diagnosis of infinite loop in ruleset. Problem noted 107166338Seric by several people. 107266338Seric Improve information printed when infinite loops are discovered. 107366338Seric Zero CurHostAddr to fix erroneous internet addresses in log when no 107466338Seric addresses can be bound. Pointed out by Motonori Nakamura 107566338Seric of Kyoto University. 107666338Seric "Probe" SMTP connections using RSET instead of NOOP "just in case". 107766338Seric Suggested by John Gardiner Myers of CMU. 107866338Seric Don't warn about -f if you are setting sender to yourself. 107966338Seric 108066338Seric6.47/6.22 93/03/29 108166338Seric Fix incompatible call to endmailer in smtpquit which causes core 108266338Seric dumps. Noted by Allan E Johannesen of WPI. 108366338Seric HPUX portability changes from Michael J. Corrigan of UC San Diego. 108466338Seric Require MAIL before RCPT command in srvrsmtp.c. This had been 108566338Seric intentional from the 821 draft days when the order wasn't 108666338Seric clear, but is silly now. 108766338Seric Fix bug in nis_magic routine that was initializing parameters 108866338Seric incorrectly. Fix from Takahiro Kanbe of Fuji Xerox 108966338Seric Information Systems Co., Ltd. 109066338Seric Change default for PrivacyFlags in conf.c to 0 -- since it always 109166338Seric "or"s in new values, there was no way to turn off the 109266338Seric AuthWarning stuff. 109366338Seric Add O option to set SMTP daemon options. 109466338Seric Add V option to set fallback MX host. This always sorts at lower 109566338Seric priority than anything it gets from the name server. It 109666338Seric should only be used for environments with very bad network 109766338Seric connectivity. Requested by several people. 109866338Seric Log sending info. It's not clear this is a good idea. 109966338Seric CONFIG: fix typo in mailertable code. Noted by Phil Brandenberger 110066338Seric of Swarthmore. 110166338Seric CONFIG: add confDAEMON_OPTIONS and confFALLBACK_MX to set options 110266338Seric O and V, respectively. 110366338Seric 110466338Seric6.46/6.21 93/03/26 110566338Seric Fix botch in server SMTP that broke transactions that did not 110666338Seric use HELO first (like MH). Fix from Michael Corrigan 110766338Seric of U.C. San Diego. 110866338Seric Fall back to other MX records if there is an error anywhere 110966338Seric in delivery (actually on MAIL or DATA -- RCPT is harder). 111066338Seric Suggested by John Gardiner Myers and Motonori Nakamura. 111166338Seric Revert to non-prototypes -- it turns out that our ANSI C 111266338Seric compiler is more forgiving than most others about 111366338Seric mixing prototyped extern declarations with non-prototyped 111466338Seric function definitions. 111566338Seric Fix a problem with multi-word class matching pointed out by 111666338Seric Neil Rickert. Given: 111766338Seric CX b a.b.c 111866338Seric R$+ $=X $+ $: $1 < $2 > $3 111966338Seric the input "user@a.b.c" failed instead of being properly 112066338Seric rewritten as "user@a.<b>.c". 112166338Seric Neil also convinced me that it was correct that $~ should match 112266338Seric only one token -- the problem is that it's always possible 112366338Seric to add another token, so $~ matches far too eagerly. 112466338Seric 112566338Seric6.45/6.21 93/03/25 112666338Seric Implement multi-word classes (properly!). 112766338Seric 112866338Seric6.44/6.21 93/03/25 112966338Seric Add X-Authentication-Warning: headers to clue users into possible 113066338Seric attempts to forge mail. This is on the authwarnings 113166338Seric privacy flag, but is the default. Suggested by Bryan 113266338Seric Costales of ICSI. 113366338Seric Pass default units for convtime in so they can be more reasonable. 113466338Seric Allow config files to always add a new Comments: header (i.e., 113566338Seric they will be added even if an old one already exists). 113666338Seric Suggested by Bryan Costales of ICSI. 113766338Seric Allow config files to delete an existing Return-Path: header. 113866338Seric These should only be added at final delivery. Suggested 113966338Seric by Bryan Costales of ICSI. 114066338Seric Some debugging additions. Suggested by Bryan Costales of ICSI. 114166338Seric Clean up logging of Family 0 addresses. Noted by David Muir 114266338Seric Sharnoff and others. 114366338Seric Add a "dequote" map class. This allows config files to strip 114466338Seric quotes off of addresses. Note that this is not a builtin 114566338Seric map, just a class -- so you have to define the map 114666338Seric using the K line. 114766338Seric Fix a bug in the queueup() loop getting a locked tf where in 114866338Seric very odd cases it can fall off the bottom and core dump. 114966338Seric Of course, it was P{r Emanuelsson who found it.... 115066338Seric Open a new transcript when splitting an envelope. Problem found 115166338Seric by Allan E Johannesen of WPI. 115266338Seric Improved error output in endmailer if the mailer core dumps. 115366338Seric CONFIG: Fix typo in UUCP mailer definition. 115466338Seric CONFIG: Default several of the new options on: eight bit input, 115566338Seric privacy flags set to "authwarnings", and message warning 115666338Seric set to 4h. 115766338Seric CONFIG: Use dequote map. 115866338Seric 115966338Seric6.43/6.20 93/03/23 116066338Seric Fix problem with assumption of an sa_len field in a generic 116166338Seric sockaddr -- it turns out that most vendors haven't 116266338Seric picked up this (very important) fix. 116366338Seric Change compilation flags for daemon code -- select one or both 116466338Seric of NETINET or NETISO, but don't ever set DAEMON manually. 116566338Seric CONFIG: add FEATURE(mailertable) to do IDA-style mailertables. 116666338Seric 116766338Seric6.42/6.19 93/03/19 116866338Seric Use Postmaster as default fallback return address, not root. 116966338Seric POSIX changes for file descriptor handling. 117066338Seric Diagnose errors writing new queue file. 117166338Seric If you change the owner using an owner- alias, also change the 117266338Seric error mode to EM_MAIL so that errors don't get dropped 117366338Seric into an inappropriate directory. Problem noted by 117466338Seric Allan E Johannesen of WPI. 117566338Seric If you are su'ed to root, send email as who you really are, not 117666338Seric as root. From Brian Kantor of U.C. San Diego. 117766338Seric Allow warning messages to be sent after a configurable interval 117866338Seric has passed without delivery. The message is sent only 117966338Seric once per envelope. This changes the format of the qf 118066338Seric file to have an F line, and the format of the T option 118166338Seric to accept take the format "return/warn" (both intervals). 118266338Seric Don't force all local names to lower case -- this was left over 118366338Seric from the wierd handling of case mapping on aliases. It 118466338Seric is now driven (as expected) by the "u" mailer flag. 118566338Seric Problem noted by P{r Emanuelsson. 118666338Seric Fix problem that caused headers on returned email to be trashed; 118766338Seric they were getting freed, but are still accessible via 118866338Seric BlankEnvelope. 118966338Seric Fix problem that caused bogus ids to be created on returned 119066338Seric mail. 119166338Seric Add support for ISO and other non-INET networking. This is by 119266338Seric no means finished yet. This does assume a lot of other 119366338Seric system support, like a version of gethostbyname that 119466338Seric returns non-AF_INET addresses. 119566338Seric CONFIG: change default on prog mailer to keep upper case in 119666338Seric user names (i.e., in the program command line). 119766338Seric CONFIG: strip trailing dots off of hosts in uucp mailer before 119866338Seric convert to bang format. 119966338Seric CONFIG: create new "relay" mailer for $R (LOCAL_RELAY) and $H 120066338Seric (MAIL_HUB) delivery that doesn't add local domain. Note 120166338Seric that this violates 821, but is probably "more correct" 120266338Seric for what we are trying to do. Problem pointed out by 120366338Seric Michael Graff of Iowa State. 120466338Seric 120566338Seric6.41/6.18 93/03/18 120666338Seric Clean up unnecessary creates of queue ids (i.e., empty qf files) 120766338Seric when not needed, such as when starting up an SMTP 120866338Seric connection. 120966338Seric Fix problem where split envelopes aren't instantiated in the queue. 121066338Seric This is quite a serious bug. 121166338Seric Owner- aliases had problems with leading spaces causing a 121266338Seric premature delimitation. 121366338Seric 121466338Seric6.40/6.18 93/03/18 121566338Seric Have ending 250 (after DATA) include the id; suggested by 121666338Seric Brian Kantor of UC San Diego. 121766338Seric Add logging on envelope splitting. 121866338Seric Change queue ids to have one more letter encoding the hour of 121966338Seric the day so that during a single day there is a greater 122066338Seric likelihood of uniqueness; requested by Brian Kantor. 122166338Seric 122266338Seric6.39/6.18 93/03/18 122366338Seric Fix minor compile problem if LOCKF is defined. 122466338Seric Define size of tobuf in conf.h. Observed by Toshinari Takahashi 122566338Seric of Toshiba. 122666338Seric Restore e_sender -- this is equivalent to e_from.q_paddr without 122766338Seric decorations such as angle brackets and comments. 122866338Seric OSF/1 on Alpha changes from Allan E Johannesen of WPI. 122966338Seric CONFIG: fix typo in S3 for list syntax (;: => :;). Thanks to 123066338Seric Christopher Hoover for noting the problem. 123166338Seric 123266338Seric6.38/6.17 93/03/17 123366338Seric Pass envelope to disconnect to avoid another use of CurEnv, which 123466338Seric can apparently end up being null at inopportune times. 123566338Seric Log "received from" as "relay=" for consistency (suggested by 123666338Seric John Gardiner Myers). 123766338Seric Fix major bug in header handling: if no From: line existed in 123866338Seric the header (so sendmail inserts one), and the sender is 123966338Seric an alias that has an owner, the From: line shows the 124066338Seric owner (as well as the envelope). Fixed by early binding 124166338Seric the headers (which will change debugging output). 124266338Seric HPUX portability patches from Michael J. Corrigan of UC San Diego. 124366338Seric Some attempts to adapt better to out of open file conditions. 124466338Seric Some changes to ctladdr handling in queue files. 124566338Seric 124666338Seric6.37/6.17 93/03/16 124766338Seric MAJOR CHANGE: delete e_sender and e_returnpath (why are these 124866338Seric different from e_from?) and $< macro. 124966338Seric Log correct IP address in relay= field even if the connection 125066338Seric times out. 125166338Seric Log "received from [RESPONSE]" on EF_RESPONSE messages (from 125266338Seric John Gardiner Myers). 125366338Seric Fixes to SysExMsg logging (sometimes just got "message: %s" 125466338Seric instead of "message: error message"), noted by Eric 125566338Seric Wassenaar. Also reported by Motonori Nakamura. 125666338Seric Improvements to MX piggybacking code, from Motonori Nakamura. 125766338Seric Fix case where CurHostName points to an auto variable that has 125866338Seric been deallocated (from Motonori Nakamura). 125966338Seric Fix bug causing newlines to be included in aliases if option 126066338Seric "n" (check alias RHS) is set; bug noted by David Muir 126166338Seric Sharnoff. 126266338Seric Fix problem causing user names that should be mapped to lower 126366338Seric case to not be mapped if they are sent during a queue 126466338Seric run. This greatly simplifies the case mapping code. 126566338Seric Problem noted by Allan E Johannesen of WPI. 126666338Seric Don't do recipient address rewriting in buildaddr. This 126766338Seric improperly did recipient rewriting on sender addresses, 126866338Seric and just seems bogus in general -- but the change could 126966338Seric break some .cf files. 127066338Seric Pass TZ envariable to child processes for System V. 127166338Seric CONFIG: allow LOCAL_RULE_1 and LOCAL_RULE_2 if you want to 127266338Seric define those rulesets. 127366338Seric KNOWN PROBLEM: I have seen some problems on SunOS that causes 127466338Seric the User Data Base to give errors on some addresses. I 127566338Seric have tracked the problem back at least as far as 93.02.15 127666338Seric (version 6.22). Running with debugging on makes it 127766338Seric go away, so I conclude that it is referencing uninitialized 127866338Seric stack data. I haven't been able to track this down yet. 127966338Seric 128066338Seric6.36/6.16 93/03/08 128166338Seric Allow local mailer to specify $@host -- this lets you assign the 128266338Seric "foo" part of jgm+foo to $h for passing in to the local 128366338Seric mailer. 128466338Seric Additional debug printing in getcanonname (show query type). 128566338Seric Don't add the e_fromdomain on sender addresses -- this interacts 128666338Seric wierdly with the owner- code. 128766338Seric Improve delivery logging to not log obvious or meaningless stuff. 128866338Seric Include numeric IP address in Received: lines per RFC 1123 section 128966338Seric 5.2.8. 129066338Seric Fixed a bug in checking stat() return value if restrictmailq is 129166338Seric set. Also, check the entire group set instead of just the 129266338Seric primary group. Both from John Gardiner Myers. 129366338Seric Don't have usrerr automatically print errno, since this is often 129466338Seric misleading. 129566338Seric Use transienterror() in makeconnection after connect() fails and 129666338Seric in openmailer after execve() fails (from Eric Wassenaar). 129766338Seric Also moved transienterror() from util.c to conf.c. 129866338Seric Clean up from= logging on response messages. 129966338Seric Undo patch allowing prescan to return a null vector -- it breaks 130066338Seric too many things. 130166338Seric Config: FEATURE(notsticky) lets you use UDB for everything coming 130266338Seric in to the machine, even if it is specifically targetted 130366338Seric to this machine. Without it, UDB is bypassed if the user 130466338Seric name is fully qualified. 130566338Seric Config: fix another minor botch with <> (local mailer wasn't 130666338Seric mapping them properly). 130766338Seric 130866338Seric6.35/6.15 93/03/05 130966338Seric Fix getrealhostname to return null if sinlen <= 0 -- this can 131066338Seric occur if stdin is a pipe. 131166338Seric Avoid infinite loop in getcanonname if name server return 131266338Seric NO_DATA (for example). 131366338Seric Config: avoid having C flag qualify list syntax and error syntax. 131466338Seric 131566338Seric6.34/6.14 93/03/05 131666338Seric Fix logging in deliver to not pass too many parameters to Ultrix 131766338Seric versions of syslog. 131866338Seric Don't write the pid file until after the daemon has actually 131966338Seric opened and conditioned the connection. 132066338Seric Consider addresses "different" if their q_uids differ (so that 132166338Seric two users forwarding to the same program will be seen 132266338Seric as different, rather than the same). 132366338Seric Fix problem with bad parameters in main() -- they set ExitStat 132466338Seric but don't exit. 132566338Seric Fix null pointer references through RealHostName -- painfully 132666338Seric discovered by Allan E Johannesen of WPI. 132766338Seric Fix bug causing user@@localhost to core dump (yuch). 132866338Seric Config: don't put two @host.dom.ain on users in $=E in SMTP 132966338Seric mailer. Also, catch user@ (no host) in ruleset 0. 133066338Seric 133166338Seric6.33/6.13 93/03/03 133266338Seric Config: add confCW_FILE as the name of the cw configuration file 133366338Seric (defaults to /etc/sendmail.cw). From P{r Emanuelsson. 133466338Seric Allow prescan to return a pointer to an empty list -- this is 133566338Seric not an error. Also, clean up error reporting to avoid 133666338Seric double errors (prescan reports once, then the caller 133766338Seric reports again). 133866338Seric Changes to avoid trusting T_ANY queries -- run them, but if you 133966338Seric don't get the info you expected, do T_A and T_MX queries 134066338Seric anyhow. This also fixes an oversight where _res.options 134166338Seric bits were being ignored. 134266338Seric If PRIV_NOVRFY is set, use 252 response code instead of 502 per 134366338Seric RFC 1123 section 5.2.3. It's not 100% clear that this 134466338Seric is correct, but it probably works better with stupid 134566338Seric mailers that do a VRFY and only check the first digit. 134666338Seric 134766338Seric6.32/6.12 93/03/02 134866338Seric Fix uninitialized variable "protocol" in smtp code. 134966338Seric Include <unistd.h> in sendmail.h -- move towards POSIX/ANSI. 135066338Seric Additional hooks for RFC 1427 (ESMTP SIZE extension). This 135166338Seric includes requiring that enoughspace() know the system 135266338Seric block size, which will undoubtedly break most ports. 135366338Seric Trace flag 19 in use for srvrsmtp.c. 135466338Seric Additional logging -- notably the sending mailer name. This 135566338Seric also changes the delivery logging to strict field=value 135666338Seric syntax. 135766338Seric Fix some problems with messages getting sent even to addresses 135866338Seric that had been marked bad -- from Eric Wassenaar. 135966338Seric More WIDE changes: accept host name inside [...] as non-MXed 136066338Seric host. This is intended ONLY for use inside firewalled 136166338Seric environments, where the MX points at the gateway. 136266338Seric Change .cf file conventions so that mapping for <> addresses 136366338Seric don't have an @ in them (to avoid confusing the C mailer 136466338Seric flag). Pointed out by Neil Rickert. 136566338Seric Config extensions for Sam Leffler's FlexFAX software. 136666338Seric 136766338Seric6.31/6.10 93/02/28 136866338Seric Fix some more bugs in alias owner code -- there were some wierd 136966338Seric cases where an error in a non-aliased name would override 137066338Seric the return info in an aliased name with an owner. 137166338Seric Changes from WIDE Project, forwarded to me by Motonori Nakamura: 137266338Seric Log actual delivery host (after MX et al); from 137366338Seric yasuhiro@dcl.co.jp. 137466338Seric Log daemon startup. 137566338Seric Deliver Postmaster copies without a body. 137666338Seric Better logging of SMTP senders. 137766338Seric Send all program email as daemon even when local. 137866338Seric As requested in various forms from many people, accept -qIstring 137966338Seric to limit queue runs to jobs with queue-id matching string. 138066338Seric Similarly for -qRstring for recipients, -qSstring for 138166338Seric senders. 138266338Seric Initial hooks for ESMTP support (see RFC 1425). 138366338Seric Fixed a syntax error in the UUCP mailer specification that caused 138466338Seric core dumps on startup. 138566338Seric Check for missing A= or P= arguments in mailer definitions. 138666338Seric 138766338Seric6.30/6.10 93/02/27 138866338Seric Require FROZENCONFIG compilation flag to include frozen 138966338Seric configuration code. Frozen configuration is really 139066338Seric not a very good idea any more, particularly in shared 139166338Seric library environments. 139266338Seric Do better checking of errno after opens of :include: and .forward 139366338Seric files to defer delivery on network and other transient 139466338Seric errors. Suggestion from Craig Everhart. 139566338Seric Fix minor botch in read timeout macro processing. 139666338Seric Add FEATURE(nouucp) to config files for sites that know absolutely 139766338Seric nothing about UUCP. 139866338Seric Add built cf files to distribution tape and clarify how to build 139966338Seric them if you don't have the Berkeley make. 140066338Seric Some sizeof(long) portability changes for the Alpha, from Allan 140166338Seric E Johannesen. 140266338Seric Add "restrictmailq" privacy flag -- if set, only people in the same 140366338Seric group as your queue directory can print the queue. If you 140466338Seric set this, be sure you also restrict access to log files.... 140566338Seric Fix another bug in owner-list stuff that can cause data files to 140666338Seric be "lost". 140766338Seric Fix a bug with queue runs that cause forwards to yourself to go 140866338Seric into alias/forwarding loops. I'm still iffy about this 140966338Seric fix. 141066338Seric Fix from Eric Wassenaar for suppression of return message code. 141166338Seric 141266338Seric6.29/6.9 93/02/24 141366338Seric Fix yet another problem in alias owner code -- put the wrong return 141466338Seric address on the enclosed return-to-sender letter. 141566338Seric 141666338Seric6.28/6.9 93/02/24 141766338Seric Fix botch in alias owner code that caused it to not operate if the 141866338Seric error was detected locally. 141966338Seric 142066338Seric6.27/6.9 93/02/24 142166338Seric M_LOCAL => M_LOCALMAILER to avoid conflict with Ultrix include 142266338Seric file <sys/mount.h>. 142366338Seric Miscellaneous bug fixes from Eric Wassenaar: 142466338Seric sendmail -bv -t logs the from line even though in verify 142566338Seric mode only. 142666338Seric sendmail -v can go into queue mode if shouldqueue returns 142766338Seric TRUE. 142866338Seric Add route-addr pruning per RFC 1123 section 5.3.3. This can be 142966338Seric disabled using the "R" option. 143066338Seric Delete (always undocumented) -R flag (save original recipients); 143166338Seric there are ways to syslog(3) these now. 143266338Seric Clean up SMTP reply codes -- specify them as needed in the code, 143366338Seric instead of in conf.c -- this was needed during the NCP to 143466338Seric TCP transition, but seems silly now. This also changes 143566338Seric parameters to message and nmessage. 143666338Seric Have mailstats read the .cf file to find the sendmail.st file and 143766338Seric get text versions of mailer names. An initial version of 143866338Seric this code was provided by Tuominen Keijo (although the 143966338Seric comments indicate the good bits were written by "E.V."). 144066338Seric Add yet more System V compatibility hacks. 144166338Seric Fix bug in VRFY code (assumes everything must be a local user). 144266338Seric Allow specification of any of the hard-wired pathnames in the 144366338Seric Makefile. 144466338Seric Delete concept of "trusted users" -- this really didn't provide 144566338Seric any security anyway, and caused some problems. 144666338Seric Delete last vestige of support for the word "at" as an equivalent 144766338Seric to the character "@". 144866338Seric Propagate owner-foo alias information into the envelope sender. 144966338Seric Based on code from John Gardiner Myers. This is a major 145066338Seric semantic change -- beware! 145166338Seric Allow $@ on LHS to indicate "match zero" -- this is used to match 145266338Seric the null expression. 145366338Seric 145466338Seric6.26/6.8 93/02/21 145566338Seric Don't "lose" queue runs. Very important fix from (who else?) 145666338Seric Eric Wassenaar. 145766338Seric Completely reset state on RSET command -- from Eric Wassenaar. 145866338Seric Send error messages and return receipts using an envelope sender 145966338Seric of <> regardless of the setting of $n. Rewriting rules 146066338Seric can undo this if they feel the necessity, as might be 146166338Seric needed for networks that don't understand the syntax. 146266338Seric This is permitted by RFC 821 section 3.6 and required by 146366338Seric RFC 1123 section 5.3.3. THIS REQUIRES VERSION 4 CONFIG 146466338Seric FILES because the rulesets must be able to parse <> 146566338Seric properly. 146666338Seric Don't ever send error messages to "<>" -- they will get sent to 146766338Seric the local postmaster or dumped in /usr/tmp/dead.letter 146866338Seric instead. Per RFC 1123 section 5.3.3. 146966338Seric Explicitly check for email to yourself as a dotted quad. You 147066338Seric have to call $[ [ ... ] $] to get this. 147166338Seric Up the message timeout to five days per RFC 1123 section 5.3.1.1. 147266338Seric Make all read timeouts individually configurable, as strongly 147366338Seric recommended by RFC 1123 section 5.3.2. 147466338Seric Use f_bavail (blocks available to regular users) instead of f_bfree 147566338Seric (blocks available to superuser) in free block checks. 147666338Seric Change $d macro to be the current time, not the origination time, 147766338Seric since this is consistent with how it is used now. 147866338Seric Generalization of enoughspace from Eric Wassenaar covering 147966338Seric SGI, Apollo, HPUX, Ultrix, and SunOS. 148066338Seric Ignore process group signals -- some front ends can do this if 148166338Seric you kill a window too quickly. From Eric Wassenaar. 148266338Seric Change umask to 022. 148366338Seric 148466338Seric6.25/6.8 93/02/20 148566338Seric Close all cached connections before calling mailers and after 148666338Seric forking for delivery (caused double closes which resulted 148766338Seric in false errors). 148866338Seric Add FEATURE(redirect) in config files -- this allows you to alias 148966338Seric old addresses to a pointer to the new address that will 149066338Seric give a 551 error message, but not deliver the mail. 149166338Seric Some code changes to make the 551 errors look pretty. 149266338Seric Names of M4 program paths in config files have changed -- they 149366338Seric are all XXX_MAILER_PATH now, to match XXX_MAILER_FLAGS. 149466338Seric Fix a bug in the QSELFREF code having to do with empty .forward 149566338Seric files, reported by Eric Wassenaar. 149666338Seric Add option "p" (privacy flags); this allows you to tune how 149766338Seric picky the SMTP server will be. This also adds the 149866338Seric confPRIVACY_FLAGS M4 macro in the config files. 149966338Seric Add option "b" (minimum blocks free). If there are fewer than 150066338Seric this number of blocks free on the filesystem containing 150166338Seric the queue directory, the SMTP MAIL command will return 150266338Seric a 452 response and ask you to try again later. This 150366338Seric also adds the confMIN_FREE_BLOCKS M4 macro in the config 150466338Seric files. 150566338Seric Made VRFY just verify (doesn't expand aliases and .forward files); 150666338Seric EXPN does full expansion. RCPT in queue-only mode also 150766338Seric doesn't chase aliases and .forward. 150866338Seric 150966338Seric6.24/6.7 93/02/19 151066338Seric Increase the number of domain search entries in domain.c to allow 151166338Seric for the extra "" entry indicating the root domain. 151266338Seric Reported by Motonori Nakamura of Kyoto U. 151366338Seric Add a "SMART_HOST" in the configs for UUCP-connected sites that 151466338Seric want to forward all mail with extra "@"s to that site. 151566338Seric Also allows SMART_HOST, LOCAL_RELAY, and MAIL_HUB to 151666338Seric be specified as ``mailer:hostname'' to use an alternate 151766338Seric mailer. 151866338Seric Clarified and updated some wording in the Operations Guide. 151966338Seric Add the "c" mailer flag -- this suppresses all comment parts of 152066338Seric addresses (requested by John Curran of NEARnet). 152166338Seric Have -v print prompts in -bt mode even if stdin is not a terminal 152266338Seric (default behaviour is to be silent if not reading from 152366338Seric a terminal). Suggested by Bryan Costales, ICSI. 152466338Seric Move the metacharacters from C0 space (\001-\037) into C1 space 152566338Seric (\201-\237). This also fixes a bunch of potential bugs 152666338Seric with G1 characters (\240-\276) in headers relating to 152766338Seric negative numbers passed to isspace() et al. 152866338Seric Add YP_LAST_MODIFIED and YP_MASTER_NAME to DBM version of alias 152966338Seric database if YPCOMPAT is #defined. Enhancement from 153066338Seric Takahiro Kanbe of Fuji Xerox Information Systems Co., Ltd. 153166338Seric Add "list" Precedence (-30); this can be used with old sendmails 153266338Seric which will map to precedence 0 (which will return error 153366338Seric messages). Suggested by Stephen R. van den Berg. 153466338Seric Many bug fixes from Eric Wassenaar of the National Institute for 153566338Seric Nuclear and High-Energy Physics, Amsterdam: 153666338Seric Clear timeouts properly on open failures in include(). 153766338Seric Don't dereference through NULL if no home directory found. 153866338Seric Re-establish SIGCHLD signal on System 5 in reapchild(). 153966338Seric Avoid NULL pointer reference on -pFOO flag. 154066338Seric Properly handle backslash escapes in comments. 154166338Seric Correctly check reply status on SMTP NOOP command. 154266338Seric Properly save SMTP error message if peer gives 154366338Seric "Service Shutting Down" message. 154466338Seric Avoid writing to the transcript if it couldn't be opened. 154566338Seric Signal errors in SMTP children to parent properly. 154666338Seric Handle self references in a list more globally (include a 154766338Seric QSELFREF bit in the address flags). This enhancement 154866338Seric was suggested by Eric Wassenaar. 154966338Seric Use initgroups() in hpux, even though it's System-V based. The 155066338Seric HASINITGROUPS compile flag can set this on other systems. 155166338Seric This HPUX behaviour was pointed out by Eric Wassenaar. 155266338Seric 155366338Seric6.23/6.6 93/02/16 155466338Seric Clean up handling of LogLevel to make it easier to figure out 155566338Seric what's on what level. 155666338Seric Change log levels to have some consistency: 155766338Seric 1 serious system failures, security problems 155866338Seric 2 lost communications, protocol failures 155966338Seric 3 other serious failures 156066338Seric 4 minor errors 156166338Seric 5 message collection 156266338Seric 6 vrfy logging, creation of return-to-sender 156366338Seric 7 delivery failures 156466338Seric 8 delivery successes 156566338Seric 9 delivery tempfails (queue ups) 156666338Seric 10 database expansion 156766338Seric >64 debugging 156866338Seric Allow IDA-style separated processing on S= and R= in Mailer 156966338Seric definition lines. Note that rulesets 1 and 2 are 157066338Seric still used for both addresses as before. Bruce Lilly 157166338Seric gave a convincing argument that RFC976 insists on 157266338Seric this behaviour. 157366338Seric Added some time zones to arpatounix -- they may not be in the 157466338Seric standards, but they are in use. However, I may delete 157566338Seric arpatounix entirely -- there appears to be no reason 157666338Seric for it to exist. 157766338Seric Change to UUCP mailer (in cf directory) to try to do a saner job. 157866338Seric I'm still not certain about this mailer in general. 157966338Seric 158066338Seric6.22/6.5 93/02/15 158166338Seric Fix bug that prevents saving letters in ~/dead.letter. 158266338Seric Don't add angle brackets in VRFY command if angle brackets already 158366338Seric exist in the address. 158466338Seric Fix bogus error message in udbexpand. 158566338Seric Null terminate host buffers in buildaddr (broken in 6.21) -- 158666338Seric IMPORTANT FIX!! 158766338Seric 158866338Seric6.21/6.5 93/02/15 158966338Seric Fix another incorrect error message in alias.c, found by Azuma 159066338Seric Okamoto. 159166338Seric Fix a couple of problems in the more-configurable config files, 159266338Seric found by Tom Ivar Helbekkmo. 159366338Seric Fix problem with quoted :include: entries. 159466338Seric Don't duplicate the filename on verbose printing of .forward and 159566338Seric :include: contents. 159666338Seric Extend size of prescan buffer (to allow bigger addresses). Also, 159766338Seric detect some buffer overflows. 159866338Seric Log user SMTP protocol errors (log level 4). 159966338Seric 160066338Seric6.20/6.4 93/02/14 160166338Seric Fix another problem in the MCI state machine caused when there 160266338Seric were errors generated from the other end to commands 160366338Seric other than RCPT. 160466338Seric 160566338Seric6.19/6.4 93/02/14 160666338Seric Include load average support for DEC Alpha running OSF/1. 160766338Seric Fix multiple-response problem with errors in MAIL From: line. 160866338Seric Fix SMTP reply codes for invalid address syntaxes (give 501; 160966338Seric never give multiple error messages for a single message). 161066338Seric Fix problem where a cached connection timeout rejects all 161166338Seric later connects to that host. 161266338Seric Fix incorrect error message if alias.c is compiled with DBM only. 161366338Seric Additional changes to fix nested conditionals (from Bruce Lilly). 161466338Seric Recover more gracefully from operating system failures, particularly 161566338Seric NULL returns from openmailer (from Noritoshi Demizu, 161666338Seric OMRON Corporation). 161766338Seric Log forward, alias, and userdb expand operations on log level 10; 161866338Seric concept suggested by P{r (Pell) Emanuelsson. 161966338Seric Changes for HPUX 8.07 compatibility. 162066338Seric 162166338Seric6.18/6.4 93/02/12 162266338Seric Allow any config option to be set using an M4 define. 162366338Seric Change UNAME compile flag to HASUNAME for IDA compatibility 162466338Seric (besides, it's a better name). 162566338Seric Note in README that on SunOS it must be linked -Bstatic. 162666338Seric Fairly major change in domain.c to handle wildcard MX records 162766338Seric more rationally. NOTE: the "w" option (no wildcard MX 162866338Seric records match local domain) has been eliminated. 162966338Seric Fix some unset variable references pointed out by Bruce Lilly. 163066338Seric Fix host name in process titles when using cached connection. 163166338Seric 163266338Seric6.17/6.3 93/01/28 163366338Seric Fix System 5 compatibility changes to be compatible with the rest 163466338Seric of the world. 163566338Seric 163666338Seric6.16/6.3 93/01/28 163766338Seric Experimental fix for problem handling errors in the SMTP 163866338Seric protocol in conjunction with connection caching. 163966338Seric System 5 compatibility changes. 164066338Seric 164166338Seric6.15/6.3 93/01/26 164266338Seric Fix a bug that causes local mail delivered using -odq to be 164366338Seric eliminated as a duplicate (because it matched the 164466338Seric ctladdr, now passed in as a C line). These changes 164566338Seric are pretty tricky...... 164666338Seric 164766338Seric6.14/6.3 93/01/25 164866338Seric Add debugging for some MCI errors. 164966338Seric 165066338Seric6.13/6.3 93/01/22 165166338Seric Fix -e compatibility flag to take a value. 165266338Seric Fix a couple of minor compilation warnings on Sun cc. 165366338Seric Improve error messages in a few cases to be more self-explanatory. 165466338Seric 165566338Seric6.12/6.3 93/01/21 165666338Seric Fix yet-another problem with environment handling, pointed out 165766338Seric by Yoshitaka Tokugawa and Tom Ivar Helbekkmo. 165866338Seric Some heuristics to try to limit resource exhaustion problems 165966338Seric if a downstream host has been down for a long time. 166066338Seric Fix problem with incorrect host name being logged in "Connection 166166338Seric timed out" messages (from Tom Ivar Helbekkmo). 166266338Seric Fix some ANSI C problems (from Takahiro Kanbe). 166366338Seric Properly log message sender on returned mail during queue run. 166466338Seric Count number of recipients properly. 166566338Seric Fix a problem in yp map code. 166666338Seric Diagnose "message timed out" (from Motonori Nakamura). 166766338Seric 166866338Seric6.11/6.3 93/01/20 166966338Seric Fix problem with address delimitor inside quotes. 167066338Seric Define $k and $=k to be the UUCP name (from the uname call) 167166338Seric based on code from Bruce Lilly. 167266338Seric 167366338Seric6.10/6.2 93/01/18 167466338Seric Implement arpatounix (largely code from Bruce Lilly). 167566338Seric Log more info (suggested by John Myers). 167666338Seric Allow nested $?...$|...$. (inspired by code from Bruce Lilly of 167766338Seric Sony US). 167866338Seric POSIX compatibility (noted by Keith Bostic). 167966338Seric Handle SMTP MAIL command errors properly (urged by several people, 168066338Seric notably John Myers of CMU). 168166338Seric Do early diagnosis of .cf errors (notably referencing a RHS 168266338Seric substitution that isn't on the LHS). 168366338Seric Adjust checkpointing to better handle batched recipients, suggested 168466338Seric by John Myers. 168566338Seric Fix miscellaneous bugs. 168666338Seric (config files:) Implement MAIL_HUB for all local mail (to handle 168766338Seric NFS-mounted directories) as urged by Tom Ivar Helbekkmo 168866338Seric of the Norwegian School of Economics. 168966338Seric 169066338Seric6.9/6.1 93/01/13 169166338Seric Environment handling simplification/bug fix -- child processes 169266338Seric get a minimal, fixed environment. This avoids different 169366338Seric behaviour in queue runs. 169466338Seric Handle commas inside comments properly. 169566338Seric Properly limit large messages submitted in -obq mode. 169666338Seric 169766338Seric6.8/6.1 93/01/10 169866338Seric Check mtime of thaw file against .cf and sendmail binary, based on 169966338Seric code from John Myers. 170066338Seric 170166338Seric6.7/6.1 93/01/10 170266338Seric MX piggybacking, based on code from John Myers@CMU. 170366338Seric Allow checkcompat to return -1 to mean tempfail. 170466338Seric Bug fix in m_mno computation. 170566338Seric 170666338Seric6.6/6.1 93/01/09 170766338Seric Tuning of queueing functions as recommended by John Gardiner Myers. 170866338Seric Return mail headers (no body) on messages with negative precedence. 170966338Seric Minor other bug fixes. 171066338Seric 171166338Seric6.5/6.1 93/01/03 171266338Seric Fix botch causing queued headers to have ?XX? prefixes. 171366338Seric 171466338Seric6.4/6.1 93/01/02 171566338Seric Changes to recognize special mailer types (e.g., file) early. 171666338Seric 171766338Seric6.3/6.1 93/01/01 171866338Seric Pass timeouts to sfgets. 171966338Seric Check for control characters in addresses. 172066338Seric Fixed deferred error reporting. 172166338Seric Report duplicate aliases. 172266338Seric Handle mixed case recursive aliases. 172366338Seric Misc bug fixes. 172466338Seric 172566338Seric6.2/6.1 92/12/30 172666338Seric Put return-receipt-to on a conf.c flag (but don't set it). 172766338Seric Fix minor syslog problem. 1728