home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / mail / sendmail / 2121 < prev    next >
Encoding:
Text File  |  1992-08-21  |  4.0 KB  |  108 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!iWarp.intel.com|inews.Intel.COM!inews!jst
  3. From: jst@inews.intel.com (Jason Thomasser)
  4. Subject: Re: Using sendmail to print Full name as mail address
  5. Message-ID: <BtCJp8.yn@nntp-sc.Intel.COM>
  6. Sender: news@nntp-sc.Intel.COM (USENET News System)
  7. Nntp-Posting-Host: inews
  8. Organization: Intel Corporation, Santa Clara, CA USA
  9. References: <1992Aug21.091754@bldrdoc.gov>
  10. Date: Fri, 21 Aug 1992 18:36:44 GMT
  11. Lines: 95
  12.  
  13. In article <1992Aug21.091754@bldrdoc.gov> coleman@bldrdoc.gov (Sean Coleman 497-5672 ) writes:
  14. >
  15. >I would like to set up email here so that users who use
  16. >the domain name as their mail address can have their email
  17. >address be their fullname@domainname like people at Sun
  18. >Microsystems. For example, my login name is coleman but
  19. >I would like my email address to be Sean.Coleman@bldrdoc.gov.
  20. >Does anybody know a way to get sendmail from Sun to do this
  21. >conversion? How about generic sendmail like Sendmail.IDA.
  22. >
  23. >Your help is appreciated.
  24. >
  25. >Thanks 
  26. >
  27. >Sean Coleman
  28. >coleman@bldrdoc.gov
  29.  
  30. Sean-
  31.  
  32. Please refer to he following in /usr/lib/sendmail.main.cf (under sunos4.1)
  33.  
  34. ############################################################
  35. #
  36. #               DDN Mailer specification
  37. #
  38. #       Send mail on the Defense Data Network
  39. #          (such as Arpanet or Milnet)
  40.  
  41. Mddn,   P=[TCP], F=msDFMuCX, S=22, R=22, A=TCP $h, E=\r\n
  42.  
  43. # map containing the inverse of mail.aliases
  44. DZmail.byaddr
  45.  
  46. S22
  47. R$*<@LOCAL>$*           $:$1
  48. R$-<@$->                $:$>3${Z$1@$2$}                 invert aliases
  49. R$*<@$+.$*>$*           $@$1<@$2.$3>$4                  already ok
  50. R$+<@$+>$*              $@$1<@$2.$m>$3                  tack on our domain
  51. R$+                     $@$1<@$m>                       tack on our domain
  52.  
  53.  
  54. What you are looking for is a built in feature of SunOS with its use 
  55. of sendmail integrated with NIS (I believe AIX3.2 also supports this). 
  56. Basically if you refer to the sendmail.cf (above) there is a reference 
  57. to the NIS map mail.byaddr. This is generated when you push your maps by the 
  58. command mkalias. You need to add the -s -n options to mkalias (by default
  59. in /var/yp/Makefile) like this:
  60.  
  61. MKALIAS=$(YPDIR)/mkalias -s -n
  62.  
  63. When generating the map and the NIS alias file needs to be in the format.
  64.  
  65. uid:            full.name
  66. uid-alias:        full.name
  67. full.name:                uid@mailserver
  68.  
  69. what mkalias does is create a mapping of uid@mailserver to full.name. So,
  70. the trick here is to insure that all mail which your want to "reverse map"
  71. comes in from uid@mailserver. Also you want your master mail hub
  72. to have accurate information on all your users. Be warned that you have
  73. to specify a mailserver (other wise you have an alias loop) and that
  74. it makes life mush easier if the master mail machine is dedicated to that 
  75. function (not acting as a direct mailserver to any users due to subtle
  76. sendmail rewrites you have to contend with).
  77.  
  78. OK so say you have a dedidicated master mail machine and you get mail
  79. from uid@mailserver off your local net to be sent out the default
  80. ddn mailer specification. This passes senders address through rewriting
  81. rule set 22. This rule set says (if you match):
  82.  
  83. R$-<@$->                $:$>3${Z$1@$2$}                 invert aliases
  84.  
  85. What this does is apply $1@$2 (hopefully uid@mailserver) as an 
  86. argument to match against the map defined by sendmail variable Z (mail.byaddr), 
  87. and returning full.name (if all is ok), otherwise it just contines through 
  88. the sendmail.cf matchlist. Finally it reaches the line:
  89.  
  90. R$+                     $@$1<@$m>                       tack on our domain
  91.  
  92. and it does what is says, tacks on your domainname and there you have it, 
  93. a fully reversed alias with the appropriate domainame with the added benefit
  94. of hiding internal host names.
  95.  
  96. As for IDA don't know. Any one else?
  97.  
  98. Jason Thomasser
  99.  
  100. Any questions, call the number below.
  101.  
  102.  
  103.  
  104.  Jason Thomasser                          | Thomasser Enterprise Networks
  105.  jst@netcom.com                           | 139 School St #3
  106.  IP WAN/LAN, DNS, Sendmail, NIS, NNTP     | Santa Cruz, CA 95060 (408)458-0379
  107.  
  108.