From owner-freebsd-questions@FreeBSD.ORG Tue Oct 10 16:05:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 309CF16A407 for ; Tue, 10 Oct 2006 16:05:00 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id E980543D78 for ; Tue, 10 Oct 2006 16:04:58 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.7.193] (68.Red-80-34-55.staticIP.rima-tde.net [80.34.55.68]) by strange.daemonsecurity.com (Postfix) with ESMTP id 8FF4A2E037; Tue, 10 Oct 2006 18:04:57 +0200 (CEST) Message-ID: <452BC4A8.6040807@locolomo.org> Date: Tue, 10 Oct 2006 18:04:56 +0200 From: Erik Norgaard User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <452A6AA5.2010400@gmail.com> <44ac44dwct.fsf@be-well.ilk.org> In-Reply-To: <44ac44dwct.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Niek Dekker Subject: Re: How does useradd determine the default mailbox/maildir location for new users 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: Tue, 10 Oct 2006 16:05:00 -0000 Lowell Gilbert wrote: > Niek Dekker writes: > >> I am running Exim 4.62 MTA on FBSD 6.0_release. >> When I create a new user using useradd, a mailbox file for the new >> user is created in /var/mail. >> As I am using Maildir with maildirs in /var/mail, I do not want that. > And none of those are documented to do anything of the sort. > I think you should just write your own wrapper. You could write it as > a wrapper for adduser, or you could make your own version of adduser > (which is just a shell script). Why not just store your mail in a different directory - say /var/exim? Does it hurt your eyes if it's not called /var/mail? In login.conf you set user environment path to the user's mailbox (don't know if this is worth anything with Maildir), and configure exim to use that directory - this sounds like the easier solution. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9