procmail
[Top] [All Lists]

Re: Using alternative passwd files?

2002-07-10 07:08:58
On Sat, 06 Jul 2002 22:21:55 -0500, Philip Guenther wrote:

PSE-L(_at_)mail(_dot_)professional(_dot_)org writes:
At 19:52 2002-07-06 +0000, Lyn St George wrote:
I would like procmail to use password files which are kept
in /etc/virtual/<domain_name>/passwd, rather than /etc/passwd.

After a little cogitation, this method presented itself as being 
the most likely solution.

Premise: "virtual users" do not exist in isolation, but are created 
and owned by real Unix users, who of course have normal 
accounts and etc/passwd entries. Therefore, the uid, shell etc
of the Unix users will be entirely appropriate for their "virtual 
users".

So I need to create a centralised file which maps domains 
to their Unix owners, eg
        domain1.com:user1
        domain2.com:user2

and get Procmail to look up this table first, use the user found 
there instead of the one normally used, and then look up 
etc/passwd for this user and proceed normally from there on.

Any comments, criticisms, security holes?

-
Cheers
Lyn St George
+---------------------------------------------------------------------------------
+ http://www.zolotek.net .. eCommerce hosting, consulting
+ http://www.os2docs.org .. some 'How To' stuff ...
+----------------------------------------------------------------------------------

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>