I am implementing what I consider to be a "user database" using
database macros. The idea is that a database (DBM or NIS) is
accessable at each mail hub that contains entries for several thousand
users. The users are distributed among around two hundred sites (all
within usgs.gov). The database contains entries that map user IDs to
embelished mail addresses. For example, my user ID, jfulton, might be
mapped to something like:
"Jim Fulton" <jfu...@dis2qvarsa.er.usgs.gov>
I have a sendmail.cf file that successfuly maps addresses (sender or
recipient) like "jfulton" or "jfu...@dcolka.cr.usgs.gov" to
"jfu...@dis2qvarsa.er.usgs.gov". The remapped address is used for
selecting a mail delivery agent and for constructing envelope
addresses. Also, if a recipient is in the database and is local, then
header addresses for IDs that appear in the database (with addresses
that end in usgs.gov) are rewritten by the local mail delivery header
rewriting rules to look like:
"Jim Fulton"<jfulton>
The idea is that, since they are in my database, I know that they are
using my mail configuration and will be able to use <jfulton> as a
valid address later, even though I am not a local user at there site.
I also want the full name to be shown, even though they may not be in
the local passwd file.
For example, I send a message to b...@mountain.cr.usgs.gov, and carbon
copy ja...@beach.wr.usgs.cov and wi...@coyote.com. Bob and Jane are both
in the database. When the message is delivered to Bob's machine,
which is using my configuration, all of the addresses in the message
are fully qualified. The local (sender and recipient) header
rewriting rules look up bob, jane, and jfulton's entries in the
databases, because the corresponding full addresses ended in usgs.gov,
and the header addresses are rewritten to include full names.
Wiley's id is not looked up because his address doesn't end in
usgs.com. The header that Bob sees looks something like:
From: "Jim Fulton"<jfulton>
To: "Bob Smith"<bob>
Cc: "Jane Doe"<jane>, wi...@coyote.com
I would rather have the header address rewritten to look like:
Jim Fulton <jfulton>
or at least:
"Jim Fulton" <jfulton>
or even:
jfulton (Jim Fulton)
The problem is that I can't seem to get spaces written in my
rewriting rules. I have tried using \ in both the database entries
and in the rewriting rules, and I just end up with results like:
Jim\ Fulton\ <jfulton>
Which isn't quite what I want.
I am using sendmail 8. Any ideas?
--
-- Jim Fulton jfu...@dis2qvarsa.er.usgs.gov (703) 648-5622
U.S. Geological Survey, Reston VA 22092
This message is being posted to obtain or provide technical information
relating to my duties at the U.S. Geological Survey.