home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / mail / sendmail / 2141 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.4 KB  |  38 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: From address rewrite
  5. Message-ID: <BtJxwB.2Cp@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: <BtJu81.1LE@nntp-sc.Intel.COM>
  10. Date: Tue, 25 Aug 1992 18:26:35 GMT
  11. Lines: 25
  12.  
  13. In article <BtJu81.1LE@nntp-sc.Intel.COM> vnagar@godzilla.intel.com (Vivek Nagar) writes:
  14. >Is it possible to change sendmail.cf to rewrite the from address
  15. >from say user@foo.intel.com to user@bar.intel.com so that it looks as if
  16. >the mail is originating form host "bar" instead of host "foo"? if so how can
  17. >it be done?
  18.  
  19. Absoluteley. Look at the mailer definition in your sendmail.cf. It will
  20. say something like:
  21.  
  22. Muucp,  P=/usr/bin/uux, F=msDFMhuU, S=13, R=23,
  23.     A=uux - -r $h!rmail ($u)
  24.  
  25. Notice the S and R definitions, these are the rulesets that on Sending
  26. and Receiving process the the From line or To line depending on what you are
  27. doing.
  28.  
  29. just do something like this in your ruleset.
  30. R$+<@$+>.$m                $: $1@bar.$m        rename $+ to bar for reply
  31.  
  32.  
  33. Jason
  34.  
  35.  Jason Thomasser                          | Thomasser Enterprise Networks
  36.  jst@netcom.com                           | 139 School St #3
  37.  IP WAN/LAN, DNS, Sendmail, NIS, NNTP     | Santa Cruz, CA 95060 (408)458-0379
  38.