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!"
|
|