From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 09:32:31 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 9C3A916A4CE for ; Sun, 30 Nov 2003 09:32:31 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60A4743F93 for ; Sun, 30 Nov 2003 09:32:27 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hAUHVnKU004978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Nov 2003 17:32:19 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hAUHVmfA004977; Sun, 30 Nov 2003 17:31:48 GMT (envelope-from matthew) Date: Sun, 30 Nov 2003 17:31:48 +0000 From: Matthew Seaman To: Marty Landman Message-ID: <20031130173148.GA4822@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Marty Landman , iaccounts@northnetworks.ca, freebsd-questions@freebsd.org References: <6.0.0.22.0.20031129192754.04727c48@pop.face2interface.com> <1070155168.417.3.camel@ptp.northnetworks.ca> <6.0.0.22.0.20031129203036.04e2d218@pop.face2interface.com> <20031130091432.GA885@happy-idiot-talk.infracaninophile.co.uk> <6.0.0.22.0.20031130113404.046b32f8@pop.face2interface.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <6.0.0.22.0.20031130113404.046b32f8@pop.face2interface.com> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org cc: iaccounts@northnetworks.ca Subject: Re: sendmail newbie question 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: Sun, 30 Nov 2003 17:32:31 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 30, 2003 at 11:48:18AM -0500, Marty Landman wrote: > >However on unix systems, user 'Marty' is not > >automatically the same as user 'marty' or as user 'MARTY'. =20 > If I understand correctly you're saying that by and large, modern Unix=20 > systems are case sensitive but since email is not the mailbox name e.g.= =20 > 'Marty' is converted to lower case at some point in processing even if=20 > mixed case is used by the person sending the email properly wrt the=20 > server's config it will still fail unless everything's all lower case=20 > because of the case conversion done behind the scenes? Correct -- although Unix has been case sensitive since way back. > >It is possible to set up sendmail to preserve the case of usernames > >but doing so would mean your mail system wouldn't be standards > >compliant, so I'll keep quiet on the issue -- unless anyone really > >does have a burning desire to know how? >=20 > Not me, because that would mean Marty@localhost would be a different=20 > address than marty@localhost, right? I have to agree that this is not imo= a=20 > good thing. As I said above, trying to make your username mixed case will give you grief with e-mail. However, it's pretty easy to have an all lower case username and make your e-mail address appear in whatever case you want, so long as the system can map them back to your username in order to do final delivery. For sendmail, you'ld use genericstable to do the username -> e-mail address translation on the outgoing messages and either aliases or virtusertable to translate e-mail address -> username on the incoming stuff. Just add: FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl to your /etc/mail/`hostname`.mc (assuming you're starting by copying /etc/mail/freebsd.mc, which already has virtusertable enabled). Then create a file /etc/mail/genericstable containing: marty Marty (LHS is the username, RHS is the e-mail address: you can use the fully qualified Marty@Example.com style if you want, or M.Landman@WhereEver.ORG). See aliases(5) for the syntax of the aliases file. virtusertable is just like genericstable except the columns are reversed and the e-mail address has to have an @... part: Marty@Example.com marty Then run: # cd /etc/mail # make # make install # make restart-mta 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 --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/yimEdtESqEQa7a0RAmVhAJ9TduFtHhfpkWgGdw44FS3OcMnugACcDD23 lDDh7qSQP+W7UlQOtV5xwQc= =epuq -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--