From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 08:26:33 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E216C37B401 for ; Wed, 13 Aug 2003 08:26:32 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CFBE43F3F for ; Wed, 13 Aug 2003 08:26:31 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h7DFQFKo081215 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Aug 2003 16:26:24 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h7DFQF6f081214; Wed, 13 Aug 2003 16:26:15 +0100 (BST) (envelope-from matthew) Date: Wed, 13 Aug 2003 16:26:15 +0100 From: Matthew Seaman To: Alexander Haderer Message-ID: <20030813152615.GB91996@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Alexander Haderer , Scott Mitchell , freebsd-questions@freebsd.org 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EuxKj2iCbKjpUGkD" Content-Disposition: inline In-Reply-To: <5.2.0.9.1.20030813163239.01a35490@postamt1.charite.de> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-8.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Scott Mitchell cc: freebsd-questions@freebsd.org Subject: Re: How to send a PR without send-pr? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 15:26:33 -0000 --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--