|
Subject: |
Re: Rewriting User Names |
|
From: |
Joav Kohn <joav .
kohn @
us .
landisstaefa .
com> |
|
Date: |
Fri, 31 Jan 1997 12:48:55 -0600 (CST) |
|
To: |
firewalls <firewalls @
GreatCircle .
COM> |
|
Autoforwarded: |
false |
|
Disclose-recipients: |
prohibited |
|
Hop-count: |
2 |
|
Importance: |
normal |
|
In-reply-to: |
<199701311600 .
QAA04428 @
gollum .
strydr .
com> |
|
Mr-received: |
by mta PFMSV1.MUAS; Relayed; Fri, 31 Jan 1997 12:48:55 -0600 |
|
Mr-received: |
by mta PFMSV1; Relayed; Fri, 31 Jan 1997 12:48:55 -0600 |
|
Mr-received: |
by mta PFMSV4; Relayed; Fri, 31 Jan 1997 12:45:12 -0600 |
|
Sensitivity: |
Company-Confidential |
|
Ua-content-id: |
11B1FB303600 |
|
X400-mts-identifier: |
[;4055481231011997/A03557/PFMSV1] |
> Incoming mail to myself could be aliased to daves @
stryder .
com .
When
> I send outgoing mail my return address currently shows ds3721 @
stryder .
com .
> The outgoing mail should show daves @
stryder .
com .
>
> Can somebody give me some examples as to how this might be accomplished.
>
What you want to do is not so hard, just copy the following steps. It may look
a little harder than it is if you don't know sendmail that well.
First, create a list of address translations, like this:
ds3721 daves
real_name alias_name
making sure that the lefthand column is unique.
Then run 'makemap btree name_of_database < address_translation_list'.
In your /etc/sendmail.cf file, add the following
Kout btree /location_of_database/name_of_database
Moutbound_mailer, P=[TCP], F=mDFMuX, S=12, R=22, A=IPC $h, E=\r\n
S12
# rewrite outbound (sender's) addresses to proper format
R$+<@$+>$* $1 @
$2$3 remove
canocalization, then
R$+ @
stryder .
com $:$>31 $1 @
stryder .
com rewrite if in
groups
R$+ @
$*stryder .
com $ @
$1<@$2stryder.com> make canocical
S31
R$+ @
stryder .
com $:$(out $1 $)
R$+ $:$1 @
stryder .
com
(for all you sendmail experts, it may be a little rought around the edges, but
its from
off the top of my head).
Hope it helps,
-joav
|
|