home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / mail / sendmail / 2168 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.7 KB  |  54 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!mcsun!fuug!kiae!elvis!elvis-2!andr
  3. From: andr@elvis.sovusa.com (Andrei Arkhipov)
  4. Subject: Re: firstname.lastname From address rewrite
  5. Message-ID: <1992Aug30.090929.18605@elvis.sovusa.com>
  6. Sender: news@elvis.sovusa.com
  7. Reply-To: andr@elvis.sovusa.com
  8. Organization: ELVIS Corp.
  9. References: <NEAL.92Aug26085416@neal.ctd.comsat.com>
  10. Date: Sun, 30 Aug 92 09:09:29 GMT
  11. Lines: 41
  12.  
  13. It seems to me that such question is a FAQ. Is there a FAQ list in this group? If so, I can
  14. suggest my answer.
  15. My sendmail.cf contains following rules:
  16.  
  17. ############################################################
  18. #
  19. #               DDN Mailer specification
  20. #
  21. #       Send mail on the Defense Data Network
  22. #          (such as Arpanet or Milnet)
  23.  
  24. Mddn,   P=[TCP], F=msDFMuCX, S=22, R=22, A=TCP $h, E=\r\n
  25.  
  26. # map containing the inverse of mail.aliases
  27. DZmail.byaddr
  28.  
  29. S22
  30. R$*<@LOCAL>$*           $:$1
  31. R$-<@$->                $:$>3${Z$1@$2$}                 invert aliases
  32. R$*<@$+.$*>$*           $@$1<@$2.$3>$4                  already ok
  33. R$+<@$+>$*              $@$1<@$2.$m>$3                  tack on our domain
  34. R$+                     $@$1<@$m>                       tack on our domain
  35.  
  36. As you can see, user name replaced by it's alias so if you have corresponding aliases you can
  37. receive From: field in form of first.last@centralhub.
  38.  
  39. I think it's not full answer and hope somebody else will give adds to it.
  40.  
  41. Andrei.
  42.  
  43. In article 92Aug26085416@neal.ctd.comsat.com, neal@neal.ctd.comsat.com (Neal Becker) writes:
  44. >I would like to set up a central mail hub.  How can I rewrite from
  45. >addresses to look like firstname.lastname@centralhub??  Can the
  46. >mapping of user to firstname.lastname be kept in a file seperate from
  47. >sendmail.cf??
  48. >
  49. >Thanks.
  50.  
  51.  
  52.  
  53.  
  54.