home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / mail / misc / 3602 < prev    next >
Encoding:
Text File  |  1992-11-08  |  2.4 KB  |  52 lines

  1. Newsgroups: comp.mail.misc
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!uwm.edu!linac!mp.cs.niu.edu!rickert
  3. From: rickert@mp.cs.niu.edu (Neil Rickert)
  4. Subject: Re: mail-sendmail-relation
  5. Message-ID: <1992Nov6.184101.26495@mp.cs.niu.edu>
  6. Organization: Northern Illinois University
  7. References: <1992Nov6.104509.16949@hp4at.eunet.co.at>
  8. Date: Fri, 6 Nov 1992 18:41:01 GMT
  9. Lines: 41
  10.  
  11. In article <1992Nov6.104509.16949@hp4at.eunet.co.at> optkap@hp4at.eunet.co.at (Hochleitner) writes:
  12. >I am very interested in the relation between mail and sendmail.
  13.  
  14. There are actually several different programs called 'mail', and there are
  15. other programs (elm, mush are examples) which do something similar.
  16.  
  17. >It is clear to me, that mail is the Ua, which enables better user interface, 
  18. >and sendmail is the Tma, who is responsible for the delivery of the mail.
  19.  
  20. The user agent, say /usr/ucb/mail, prepares the message, then pipes it
  21. in /usr/lib/sendmail -oi address address ...
  22.  
  23. Sendmail fills in any remaining headers, determines how it should be
  24. routed, and attempts to deliver it to the next host on the route.  If the
  25. mail is for a local user, sendmail pipes it to the local delivery agent,
  26. commonly /bin/mail.
  27.  
  28. >I meen the process communication between mail and sendmail (only the pipe is
  29. >not enough).
  30.  
  31. Usually there is just the pipe and the parameter list.  The important
  32. part of the parameter list is the list of recipient addresses.   There
  33. is usually a '-oi' which means that the message should not terminate at
  34. the first '.', and there may be one or two other options.
  35.  
  36. >             ANother important question in this field is, how sendmail
  37. >fills its "standard macros" like $g, $w and ohters, because not all these
  38. >macros are set explicitly in the sendmail.cf file.
  39.  
  40. $w is set by first using gethostname(), then using that as an argument
  41. to gethostbyname().  If you are using a nameserver, the result should
  42. be the fully qualified domain name of your host.  If you are not using
  43. a nameserver, possible the value of gethostname() will be used, or the
  44. first entry on the line in /etc/hosts which matches this name.  If
  45. necessary you can actually override this with a 'Dw' line in the
  46. configuration file.
  47.  
  48. $g is the address after processing by the rewrite rules.  The sender address
  49. is processed by rulesets 3,1, S=, 4  [where S= is the ruleset named on the
  50. "S=" operand of the outbound mailer].
  51.  
  52.