home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4104 < prev    next >
Encoding:
Internet Message Format  |  1992-09-12  |  6.3 KB

  1. Xref: sparky gnu.emacs.help:4104 comp.mail.sendmail:2265
  2. Newsgroups: gnu.emacs.help,comp.mail.sendmail
  3. Path: sparky!uunet!mcsun!sunic!ericom!eua.ericsson.se!erix.ericsson.se!per
  4. From: per@erix.ericsson.se (Per Hedeland)
  5. Subject: Re: sendmail.el: flags to /usr/lib/sendmail wrong?
  6. Message-ID: <1992Sep12.183414.12845@eua.ericsson.se>
  7. Sender: news@eua.ericsson.se
  8. Nntp-Posting-Host: super.eua.ericsson.se
  9. Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
  10. References: <SCOTT.92Sep11094218@arugula.statsci.com> <SCOTT.92Sep11102408@arugula.statsci.com> <1992Sep12.022152.5665@eua.ericsson.se>
  11. Date: Sat, 12 Sep 1992 18:34:14 GMT
  12. Lines: 108
  13.  
  14. In article <1992Sep12.022152.5665@eua.ericsson.se> I write:
  15. >Anyway, I can't reproduce your particular problem using OR and the
  16. >context you describe (using /bin/cat rather than 'filter' though), and
  17. >in fact the error message you give doesn't even seem to be produced by
  18. >sendmail, but rather by some other program talking SMTP to sendmail (and
  19. >perhaps, incorrectly, having taken upon itself to lookup .forward files
  20. >before doing so).
  21.  
  22. Retraction: I can reproduce it, and it is indeed caused by OR, and
  23. doesn't really have anything to do with emacs (except insofar as emacs
  24. uses sendmail -t, but lots of programs do that) - see # 12 on my
  25. (updated) list below. (The part about "other program" is more or less
  26. correct though - it is the special-cased OR code that is doing this.)
  27.  
  28. Just in case someone from Sun is listening, I have previously on
  29. comp.mail.sendmail suggested a way to achieve the "things work out of
  30. the box w/o configuration" and "the same sendmail.cf can be used on all
  31. hosts" effect that OR tries to do, in a manner that is less at odds with
  32. the sendmail "philosophy", doesn't require anywhere near as much code
  33. modification, and consequently won't have all the bugs/problems that OR
  34. does. I'll be happy to discuss it...
  35.  
  36. --Per Hedeland
  37. per@erix.ericsson.se  or
  38. per%erix.ericsson.se@sunic.sunet.se  or
  39. ...uunet!erix.ericsson.se!per
  40.  
  41. Here is a list of the bugs/problems with Sun's braindead 'Remote'
  42. sendmail.cf option (OR) that I've found to date. Note that some of the
  43. bugs may have been fixed in recent versions; however, due to the
  44. apparent nature of the implementation of OR (lots of special-cased code
  45. separate from the normal sendmail functionality), it is unlikely that
  46. all known and unknown bugs will ever be fixed.
  47.  
  48. 1. If the connection between client and server sendmail is broken during
  49.    the DATA phase (i.e when the actual letter is transferred), the letter
  50.    is lost, without any information to user or Postmaster, the only trace
  51.    is a "SYSERR: net hang reading from..." type of message in syslog.
  52.  
  53. 2. Anyone can fake sender addresses with sendmail -f.
  54.  
  55. 3. Sendmail -t forgets to remove temp file (fixed post-4.0.3, I believe).
  56.  
  57. 4. Sendmail -t called from emacs (actually whenever it can't do a
  58.    getlogin()) with a local recipient address will put the *recipient*
  59.    address in the From: line.
  60.  
  61. 5. If a sendmail deamon is run (e.g. if you want to be kind enough to handle
  62.    the occasional mail mis-addressed to user@client rather than having it
  63.    sit in some queue for several days before being bounced), it will ignore
  64.    the OR option, and happily do local delivery causing /bin/mail to write
  65.    /var/spool/mail via NFS, or send directly to hosts in the YP map while
  66.    setting the sender address to user@client. In addition, the local
  67.    delivery is somehow half-baked, ignoring e.g. .forward files.
  68.  
  69. 6. Since (in the normal non-deamon case) the sendmail.cf apart from OR is
  70.    essentially ignored, it isn't possible to do *any* host-specific
  71.    handling, e.g. splitting up mail to root depending on which client
  72.    generated it.
  73.  
  74. 7. If the mailhost isn't reachable, each letter sent will cause the
  75.    corresponding sendmail process to sit in a loop doing repeated attempts
  76.    - apart from the load, this means that if the client is shut down or
  77.    rebooted before successful delivery, the mail is lost.
  78.  
  79. 8. It doesn't work at all if /var/spool/mail is auto-mounted.
  80.  
  81. 9. Sendmail -t will remove one empty line between header and body, with
  82.    the effect that initial body lines that have leading whitespace, or
  83.    that start with <word>:, are moved to the header.
  84.  
  85. 10. Sendmail -t where the destination is a local alias will generate a
  86.    "User unknown" error message (although the letter will be delivered
  87.    correctly) - if PostmasterCopy is in effect, there will (of course)
  88.    be an additional "User unknown" for Postmaster.
  89.  
  90. 11. If a letter without a terminating newline is sent (except when using
  91.    sendmail -t), it will not be transferred to the server, instead the
  92.    connection will time out, and the net result will be as for 1 above
  93.    (this is presumably the major case where those symptoms are observed).
  94.  
  95. 12. Sendmail -t where the destination is a local user with a .forward
  96.    file readable by the sender and containing a command or file name will
  97.    fail with a "Cannot mail directly to programs" (or files) type of
  98.    message. (In addition, the message doesn't look anything like a normal
  99.    sendmail error message, is delivered directly (i.e. over NFS) with a
  100.    hardwired call to /bin/mail, and doesn't contain the original message,
  101.    even though it claims to do.) Apparently fixed in patch 100377-04.
  102.  
  103. I realize that 6 and 7 are consequences of intentional design decisions, and
  104. that 5 might be considered operator error; I still consider them deficiencies.
  105.  
  106. I definitely recommend using one of the minimalist sendmail.cf's for this
  107. purpose that has been floating around the net instead of the OR option. The
  108. only inconveniences with this are that you have to actually spell out the
  109. name of the mailhost, and that you have to make sure the client's queue is
  110. checked - if you don't want to run a deamon (which I think is the best
  111. solution - the load from this should be neglible), you can have sendmail -q
  112. run from crontab e.g. hourly. On the other hand, you can use the same
  113. sendmail.cf on non-Sun mail clients.
  114.  
  115. I have done just this, using a sendmail.cf based on the one that Rich
  116. Salz sent out on comp.mail.sendmail a while back (the smallest one I've
  117. seen so far:-), and all of the problems went away.
  118.  
  119. NOTE: Just commenting out the OR from a "standard" Sun sendmail.cf file
  120. is *not* the right thing to do, in fact it may cause problems that are
  121. as bad as or worse than those caused by OR.
  122.