How to send a PR without send-pr?

Matthew Seaman m.seaman at
Wed Aug 13 08:26:33 PDT 2003

On Wed, Aug 13, 2003 at 04:55:44PM +0200, Alexander Haderer wrote:
> Just for curiousity: Is there a place in /etc/mail where I can tell my 
> sendmail daemon that:
> - it should use -fpublic.address at when sending mail
> - it maps local users like "jd" to joe.doe at for this -f thing

That's the function of genericstable -- it will map a system username
'jd' to an appropriate e-mail address 'joe.doe at'.

See /usr/share/sendmail/cf/README for details, but essentially you
need to add:

    FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl

to your `hostname`.mc file -- note that this probably won't work as
part of a `hostname`, although I haven't done any sort of
definitive test of that.  I also like to use:


which causes the genericstable transformation only to be applied to
addresses where the domain part matches one of the listed domains.
(Otherwise, all outgoing addresses are candidates for genericstable

You may also find useful:


To set up the genericstable database itself, edit the file
/etc/mail/genericstable and add the names you want transformed in the
LHS column with the target addresses in the RHS column:

    jd    joe.doe at

Then run 'make' in /etc/mail to build genericstable.db -- sendmail
will pick up changes to the genericstable.db without having to be



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list