If you are using M4 to generate your sendmail.cf file (recommended) then the
genericstable feature allows you re-write the users address into an
arbitrary domain style address. For example in your case you could use the
database entry:
ds3721 @
stryder .
com daves @
stryder .
com
to rewrite your address.
>From the cf/README file:
This feature will cause certain addresses originating in the local domain or a
domain listed in $=G to be looked up in a map and turned into another
("generic") form, which can change both the domain name and the user name.
This is similar to the userdb functionality. The same types of addresses as
for masquerading are looked up, i.e. only header sender addresses unless the
allmasquerade and/or masquerade_envelope features are given. The addresses
must be in the list of names given by the macros GENERICS_DOMAIN or
GENERICS_DOMAIN_FILE (analogously to MASQUERADE_DOMAIN and
MASQUERADE_DOMAIN_FILE, see below).
The argument of FEATURE(genericstable) may be the map defintion; the default
map definition is:
hash -o /etc/genericstable
The key for this table is either the full address or the unqualified username
(the former is tried first); the value is the new user address. If the new
user address does not include a domain, $j is used.
Hope this helps
RLH
> For info about our "Managing Internet Mail, Setting Up and Trouble <
> Shooting sendmail and DNS" and a schedule of dates and locations, <
> please send email to info @
harker .
com, or visit www.harker.com <
Robert Harker Harker Systems
Sendmail and TCP/IP Network Training 1180 Hester Ave
Network and Sysadmin Consulting San Jose, CA 95126
harker @
harker .
com 408-295-9432
|
|