Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2001 10:08:37 -0500
From:      Jeffrey Dunitz <orpheus@lemieux.condolan.asn>
To:        Bob Collins <bob@pineypl.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Sendmail and seperate user mboxes?
Message-ID:  <20010731100836.A6779@lemieux.condolan.asn>
In-Reply-To: <20010731000659.G6661@kludge.pineypl>; from bob@pineypl.com on Tue, Jul 31, 2001 at 12:07:00AM -0400
References:  <20010731000659.G6661@kludge.pineypl>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010731100836.A6779>