home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / mail / sendmail / 3018 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.5 KB  |  52 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!melpar!tsmnet3!rich
  3. From: rich@tsmnet3.uucp (Richard Martin)
  4. Subject: Re: How to delete hostnames in outgoing mail ?
  5. Organization: E-Systems, Melpar Division
  6. Date: Wed, 16 Dec 1992 23:13:43 GMT
  7. Message-ID: <rich.724547623@tsmnet3>
  8. References: <1992Dec14.185155.7439@news.lrz-muenchen.de>
  9. Sender: news@melpar (News Administrator)
  10. Lines: 40
  11.  
  12. yoda@next2.cis.uni-muenchen.de (Marc Guenther) writes:
  13.  
  14. >Hello,
  15.  
  16. >I've tried this for ages, and I keep getting wrong results,
  17. >so I simply dont know what to do anymore.
  18.  
  19. >What I want to do is, to erase the hostname in the From: field
  20. >of every outgoing mail.
  21.  
  22. >For example, I am sitting an the machine alderaan in the domain
  23. >cis.uni-muenchen.de, and when I'm sending mail to the world,
  24. >my From: line looks like this:    yoda@alderaan.cis.uni-muenchen.de
  25. >but I woant it to look like:    yoda@cis.uni-muenchen.de
  26.  
  27. >Anybody knows how to do this ?
  28.  
  29. >Thanks,
  30. >Yoda
  31. >--
  32. >yoda@cis.uni-muenchen.de
  33.  
  34. Try adding a rule to ruleset 1 of sendmail.cf, something like
  35.  
  36. R$+@alderaan.$+                 $1@$2
  37.  
  38. This should rewrite anything with in the form user@alderaan.domain_stuff to
  39. user@domain_stuff.  This will only change the FROM: line.  
  40.  
  41. You might also want to look at the ruleset that your tcp mailer is calling..
  42. probably 14.  See where it is adding your machines name and look at changing
  43. it so that it only adds your machine name when necessary (if at all).
  44.  
  45.  
  46.  
  47. -- 
  48. Richard Martin
  49. E-Systems, Melpar Division
  50. ..uunet!melpar!rich
  51. rich%melpar@uunet.uu.net
  52.