From owner-freebsd-questions@FreeBSD.ORG Mon May 27 01:25:28 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 616D6948 for ; Mon, 27 May 2013 01:25:28 +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 2B84C8B4 for ; Mon, 27 May 2013 01:25:27 +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 95EBE24883; Mon, 27 May 2013 03:17:02 +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 r4R1HCWJ002524; Mon, 27 May 2013 03:17:12 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 27 May 2013 03:17:12 +0200 From: Polytropon To: Modulok Subject: Re: Case sensitive usernames and sendmail - mystic voodoo Message-Id: <20130527031712.a6cbecf2.freebsd@edvax.de> In-Reply-To: References: 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 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:25:28 -0000 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. For sending mail within a system and across systems, names in the passwd file have to be in conjunction with the respective mail queues for the users. Even "foo" and "Foo" can coexist (as soon as they have a different UID, reflecting the fact that two distinguishable users are intended), but regarding mail... that sounds problematic. > Without fighting an epic battle with with the sendmail configs, is > there a simple way to make this work? Use lowercase usernames only. Make it a convention. Verify it. > The obvious answer is probably, "usernames should be lowercase!" and for > new users I'll enforce that policy. For existing users however, who may > already have lots of case-sensitive usernames in various config files, > etc this isn't a real option. That's true, but didn't this approach get you in trouble earlier? > By just altering their usernames I'm > afraid I'd break the whole damn universe. This is quite possible. As you mentioned correctly, usernames with uppercase letters may already appear in config files. You _could_ check for each user below his $HOME for any appearing in a file and replace this, but that could cause trouble if something is stored in a "Registry"-like binary file. Regarding /etc/passwd, the home directory _may_ be a different name than the username, so those _pathnames_ in files should not require a change. But files mentioning _usernames_ will probably cause problems. > How can I enable mail for > them? Maybe it's possible to use /etc/mail/aliases? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...