From owner-freebsd-questions Tue Jul 31 8:11:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mnmai05.mn.mediaone.net (unknown [24.245.10.36]) by hub.freebsd.org (Postfix) with ESMTP id ED94F37B401 for ; Tue, 31 Jul 2001 08:11:16 -0700 (PDT) (envelope-from orpheus@mnmai05.mn.mediaone.net) Received: (from orpheus@localhost) by mnmai05.mn.mediaone.net (8.9.3/8.9.3-CONDOLAN) id KAA06855; Tue, 31 Jul 2001 10:08:37 -0500 Date: Tue, 31 Jul 2001 10:08:37 -0500 From: Jeffrey Dunitz To: Bob Collins Cc: questions@FreeBSD.ORG Subject: Re: Sendmail and seperate user mboxes? Message-ID: <20010731100836.A6779@lemieux.condolan.asn> Reply-To: orpheus@avalon.net References: <20010731000659.G6661@kludge.pineypl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010731000659.G6661@kludge.pineypl>; from bob@pineypl.com on Tue, Jul 31, 2001 at 12:07:00AM -0400 X-Blargh: This message is Blargh. (lemieux) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jul 31, 2001 at 12:07:00AM -0400, Bob Collins said something to the effect of: > I have looked into sendmail and am not sure if it can do what I want. > What I would like for sendmail, or another package if necessary, do is > to accept the mail and then direct the mail to a user's mailbox based > on the users' name/login. eg. usera@mydomain.com to go to > /home/usera/inbox while userb@mydomain.com goes to /home/userb/inbox. > Is this possible with sendmail? I know this is off topic, but I found > no direct answer there, and figured someone here would know. I do not > want all mail going to /var/spool/ Sendmail has hooks for procmail or another delivery agent to post-process the mail after it arrives. You'd probably have to configure sendmail to run everything through procmail, and have a .procmailrc file for each user. If your goal is to make it so that users' mail counts toward their disk quota, there are a few difficulties you might encounter. Having procmail deliver to their inbox in their homedir is perhaps the easiest thing to do, but you'll have to make their .procmailrc file read-only, so that more, ehm, shall we say "adventurous" users won't be able to simply delete the file and have their mail go to /var/spool, or change the procmailrc to make it do something else you don't want. If your goal is something else, well, ignore that stuff. :) While we're at it, why not tell us exactly what you're trying to accomplish? There might be a whole nother thing we could suggest to do this. Good luck. :) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Jeffrey Dunitz | unix | orpheus@avalon.net BOFH Emeritus, Avalon Networks | perl | (651) 686-9974 / http://www.avalon.net/~orpheus | net/sec | Eagan, MN _ / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message