From owner-freebsd-questions@FreeBSD.ORG Mon May 27 01:47:16 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B56D8E2B for ; Mon, 27 May 2013 01:47:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 7E865973 for ; Mon, 27 May 2013 01:47:16 +0000 (UTC) Received: from r56.edvax.de (port-92-195-231-35.dynamic.qsc.de [92.195.231.35]) by mx02.qsc.de (Postfix) with ESMTP id 6D80F2434C; Mon, 27 May 2013 03:47:12 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r4R1lL8f002624; Mon, 27 May 2013 03:47:22 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 27 May 2013 03:47:21 +0200 From: Polytropon To: Michael Sierchio Subject: Re: Case sensitive usernames and sendmail - mystic voodoo Message-Id: <20130527034721.36fe24ca.freebsd@edvax.de> In-Reply-To: References: <20130527031712.a6cbecf2.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions , Modulok X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2013 01:47:16 -0000 On Sun, 26 May 2013 18:36:41 -0700, Michael Sierchio wrote: > On Sun, May 26, 2013 at 6:17 PM, Polytropon wrote: > > > > On Sun, 26 May 2013 18:44:41 -0600, Modulok wrote: > > > I know usernames are case-sensitive, I thought emails were > > > too. > > > > If I remember e-mail basics correctly: No. They're not. > > For example, foo@example.com, FOO@example.com and Foo@example.com > > and all upper/lowercase variations are the same as foo@example.com. > > > > You remember incorrectly ;-) I checked again - and yes, it seems that my memory about the valid definition has changed to what is reality today, i. e. sendmail "rewriting" uppercase to lowercase prior to further processing. > The local part of an address (before the @ sign) is case-sensitive (with > the exception of postmaster@example.com) So it depends on how sendmail is configured that "it does not matter today". > Everything to the right of the @ is indeed case insensitive, but everything > to the left might be case sensitive, depending on local policy. This means > you must preserve the case of everything to the left of the @ sign. According to the link provided by Erich Dollansky, FreeBSD's default sendmail.cf setting of Mlocal, P=/usr/libexec/mail.local, F=lsDFMAw5 needs to be added the "u" option to the F= parameter to preserve the uppercase letters in the the left side (username) of the address. Maybe this additiion is required in other cf files containing Mlocal settings too? Of course it would be nice if there was a corresponding setting for the mc files which the cf files are usually generated from... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...