[prev in list] [next in list] [prev in thread] [next in thread] 

List:       firewalls-gc
Subject:    Re: Rewriting User Names
From:       Joav Kohn <joav.kohn () us ! landisstaefa ! com>
Date:       1997-01-31 12:48:55
[Download RAW message or body]

>   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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic