home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / mail / sendmail / 2756 < prev    next >
Encoding:
Internet Message Format  |  1992-11-13  |  2.5 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!rt!hera!grant
  2. From: grant@iva.k8.rt.bosch.de (Joseph C. Grant K8/IVA3 Tel. ++49-7121-35-2981)
  3. Newsgroups: comp.mail.sendmail
  4. Subject: Re: SunOS sendmail and OR flag
  5. Message-ID: <2169@osiris.bosch.de>
  6. Date: 13 Nov 92 09:21:18 GMT
  7. References: <1992Nov4.223112.26521@newsgate.sps.mot.com>
  8. Sender: news@rt.bosch.de
  9. Reply-To: grant@iva.k8.rt.bosch.de
  10. Organization: Robert Bosch GmbH., Reutlingen, Germany.
  11. Lines: 45
  12. Nntp-Posting-Host: tdvgt
  13.  
  14. In article 26521@newsgate.sps.mot.com, embry@chdasic.sps.mot.com (Mike Embry) writes:
  15. >Does anybody know what process sendmail is going through on a Sun when using the OR
  16. >flag?  I'd like to have all mail from root in the form root@hostname.  This is 
  17. >the default if you are running sendmail in the background daemon mode and are
  18. >using sendmail.subsidiary.cf as your sendmail.cf.  However, when the OR flag (relay
  19. >all mail to another host) is used sendmail seems to ignore the sendmail.cf file so
  20. >all mail from daemons, etc is simply addressed to root.
  21. >
  22. >Any ideas, anyone?  Short of stop using the OR option?
  23. >
  24.  
  25. As I understand it, the R option instucts SunOS sendmail to forward all mail
  26. to the machine where the /usr/spool/mail directory is mounted from once it has
  27. finished all other processing. So even if sendmail resolves the mail to the 
  28. local mailer agent, SunOS takes the end product and forwards it to the machine 
  29. name it finds in the mount command.
  30.  
  31. I would imagine that in your case, sendmail is resolving the mail to the local
  32. mailer agent, and therfore only writing From: root in the header. It then hits
  33. the R option and dutifully sends the message to the mail server and ignores the
  34. program (P=) and argument vector template (A=) for the local agent - at least 
  35. that is what I think happens here :-).. One possible solution might be to add 
  36. a line to the S rule for the local agent telling it that if the mail is from 
  37. root, then add @machinename i.e.
  38.  
  39. Mlocal, P=/bin/mail, F=rlsDFMmnP, S=10, R=20, A=mail -d $u
  40.  
  41. S10
  42. Rroot    root<@$w>
  43.  
  44. Ruleset 4 should then defocus this to root@$w and just before /bin/mail -d $u
  45. is called, the R option kicks in, grabs the mail, and sends the message to the 
  46. mail server.
  47.  
  48. It works for me, however one thing I have learnt is that no two sendmail 
  49. environments are identical :-)...
  50.  
  51. Joe.
  52.   
  53. ---
  54. Joe Grant.                                 Bosch Postmaster
  55. Robert Bosch GmbH.                         Tel: +49-7121-352981
  56. K8/IVA3, Postfach 1342,                    Fax: +49-7121-352687
  57. 7410 Reutlingen. Germany.                  E-mail: grant@rt.bosch.de
  58.  
  59.