Great Circle Associates Firewalls
(February 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re[2]: sendmail and many domain
From: gordonp . atc @ gao . gov
Date: Mon, 24 Feb 97 13:51:26 EST
To: Raymond . Sleiman @ mail . gestronic . ch
Cc: Firewalls @ GreatCircle . COM

Raymond wrote:"I added new domains using Cw. But I did not modify S1 and S2. 
Please tell me how to do."
     
     
  If so, have you looked into modifying the rules for S1 and S2?
     
     Raymond, I am taking this advice straight from the "O'Reilly sendmail 
     book", specifically page 347.
     
     Rule Set 1 - The Sender Rewrite Rule
     
     try this
     S1
     R$*<@$=w>$*        $ @
 $1<@$R>$3 
     
     more specifically I would hard-code what you want your domain to 
     appear as in our case it is gao.gov:
     
     S1
     R$*<@$=w>$*        $ @
 $1<@gao.gov>$3            
     
     This should re-write  user @
 localhost   to    user @
 gao .
 gov
     
     Use the same rule for S2...
     
     S2
     R$*<@$=w>$*        $ @
 $1<@gao.gov>$3            
     
     @@@@@@@@@@@@@@@@@@@@@@@@@
     IMPORTANT (Don't assume that I, or anyone else for that matter, am 
     giving you the proper advice, I might have something wrong!!)
     You need to test it first.
     @@@@@@@@@@@@@@@@@@@@@@@@@
     
     Make these changes to your sendmail.cf and then run the daemon in test 
     mode to see if it works.  When you are satisfied then you can 
     re-activate the daemon 
     
     (your sendmail daemon might be located somewhere other than /usr/lib):
     
     /usr/lib/sendmail -bt           (pg 347 of the book)
     
     You'll get the following output on your screen:
     ADDRESS TEST MODE
     Enter <ruleset> <address>
     
     Type in the rule you're testing at the prompt and a username to try.
     >1 user @
 localdomain .
 domain
     
     This will show how the sender address will appear.
     
     Here's what I'd expect from our site:
     >1 joeuser @
 localhost .
 gao .
 gov
     rewrite: ....
     rewrite: ....
     ....
     ....
     rewrite: ruleset 1 returns: "joeuser" "@" "gao" "." "gov"
     
     Your site will differ obviously...  the key is to notice that 
     joeuser @
 localhost .
 gao .
 gov was converted to joeuser @
 gao .
 gov .
 
     
     I hope this helps! 
     
  - Paul Gordon, TROY Systems 
  "typical witty disclaimers apply!"
     


Indexed By Date Previous: Re:How to configure two network interface into a sam subnet
From: Adam Safier <asafier @ csc . com>
Next: Re: PointCast blocking via Netscape proxy server
From: "Daniel J Blander - Sr. Systems Engineer for ACS" <Daniel . Blander @ ACSacs . Com>
Indexed By Thread Previous: sendmail and many domain
From: Raymond Sleiman-Gestronic Systems Integration Manager <Raymond . Sleiman @ mail . gestronic . ch>
Next: RE: Re[2]: sendmail and many domain
From: Greg Witte <gwitte @ us-state . gov>

Google
 
Search Internet Search www.greatcircle.com