From owner-freebsd-questions@FreeBSD.ORG Sat Jul 12 17:18:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0A191065677 for ; Sat, 12 Jul 2008 17:18:41 +0000 (UTC) (envelope-from malcolm.kay@internode.on.net) Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by mx1.freebsd.org (Postfix) with ESMTP id 565EA8FC16 for ; Sat, 12 Jul 2008 17:18:41 +0000 (UTC) (envelope-from malcolm.kay@internode.on.net) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtEEAJ6EeEh5LQ2Y/2dsb2JhbACBWqc0 X-IronPort-AV: E=Sophos;i="4.30,350,1212330600"; d="scan'208";a="147397799" Received: from ppp121-45-13-152.lns10.adl2.internode.on.net (HELO alpha.home) ([121.45.13.152]) by ipmail01.adl6.internode.on.net with ESMTP; 13 Jul 2008 02:48:39 +0930 From: Malcolm Kay Organization: at home To: freebsd-questions@freebsd.org Date: Sun, 13 Jul 2008 02:48:39 +0930 User-Agent: KMail/1.8 References: <002b01c8e2ed$4c486ac0$3f83a8c0@neusofteaf5839> <200807130234.57797.malcolm.kay@internode.on.net> In-Reply-To: <200807130234.57797.malcolm.kay@internode.on.net> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807130248.39106.malcolm.kay@internode.on.net> Cc: EdwardKing Subject: Re: mail not work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2008 17:18:41 -0000 On Sun, 13 Jul 2008 02:34 am, Malcolm Kay wrote: > On Fri, 11 Jul 2008 10:00 am, EdwardKing wrote: > > I use mailx command,such as Tom to Kate,I like following > > command: $mail Kate > > Subject:Hello > > Hello world > > (press Ctrl+D) > > EOT > > > > Then I use user Kate to login,and check mail, > > $mail > > No mail for Kate > > > > Why I can't receive letter? where is wrong? > > Perhaps something to do with using uppercase in login names: > From adduser(8) man page: > username > Login name. The user name is restricted to > whatever pw(8) will accept. Generally this means it may > contain only lowercase char- acters or digits but cannot begin > with the `-' character. Maxi- mum length is 16 characters. > The reasons for this limit are his- torical. Given that > people have traditionally wanted to break this limit for > aesthetic reasons, it has never been of great importance to > break such a basic fundamental parameter in UNIX. You can > change UT_NAMESIZE in and recompile the world; people > have done this and it works, but you will have problems with > any precompiled programs, or source that assumes the 8-char- > acter name limit, such as NIS. The NIS protocol mandates an > 8-character username. If you need a longer login name for > e-mail addresses, you can define an alias in > /etc/mail/aliases. > Addendum: Names in "To:" addresses can generally be in any case and still be received by the user with the corresponding lowercase login name. For example mail sent to 'MALCOLM' on my machine it ends up in my mail box with login name 'malcolm'. So somewhere (sendmail?) the name is translated to all lowercase. I expect that sendmail is trying to deliver your mail to some undefined user named 'kate' -- not to 'Kate'. Malcolm