Date: Wed, 13 Aug 2003 16:26:15 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Alexander Haderer <alexander.haderer@charite.de> Cc: freebsd-questions@freebsd.org Subject: Re: How to send a PR without send-pr? Message-ID: <20030813152615.GB91996@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <5.2.0.9.1.20030813163239.01a35490@postamt1.charite.de> References: <20030812184703.GC14078@devil.stderror.at> <5.2.0.9.1.20030812180445.0196f180@postamt1.charite.de> <20030812184703.GC14078@devil.stderror.at> <5.2.0.9.1.20030813163239.01a35490@postamt1.charite.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--EuxKj2iCbKjpUGkD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 13, 2003 at 04:55:44PM +0200, Alexander Haderer wrote: =20 > Just for curiousity: Is there a place in /etc/mail where I can tell my=20 > sendmail daemon that: > - it should use -fpublic.address@charite.de when sending mail > - it maps local users like "jd" to joe.doe@charite.de 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@charite.de'. 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`.submit.mc, although I haven't done any sort of definitive test of that. I also like to use: FEATURE(generics_entire_domain)dnl GENERICS_DOMAIN(`infracaninophile.co.uk')dnl 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 matching). You may also find useful: FEATURE(always_add_domain)dnl 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@charite.de Then run 'make' in /etc/mail to build genericstable.db -- sendmail will pick up changes to the genericstable.db without having to be restarted. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --EuxKj2iCbKjpUGkD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/OliXdtESqEQa7a0RArAlAJ46K13zH+8aPZ4JqKnmzZwqxyGH/ACcCfTP 0zWEVcYhOKYWa122FMIBDbw= =MUvd -----END PGP SIGNATURE----- --EuxKj2iCbKjpUGkD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030813152615.GB91996>