OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: users in databases

From: Magnus Bäck (magnusdsek.lth.se)
Date: Tue Sep 02 2003 - 08:07:18 CDT


On Tue, Sep 02, 2003 at 11:13:28AM +0200,
     hiaerazrael.sk wrote:

> can I use other database of users for my "mail, pop3s & web server"
> than standard linux passwd ???
>
> reason is: I DONT WANT REAL USERS in my system, only users for some
> services
>
> also I have some domain for my mail server e.g.: domain1, domain2,...
> and I have some users, e.g.: user1, user2, user3....

You want virtual mailbox domains. You only need one real user, and
the rest can reside in some kind of map (be it DBM, LDAP, MySQL or
whatever). Read VIRTUAL_README.

> HOW CAN I restric some users for some domains:
>
> so I want user1domain1
> user2domain1
> user3domain2...
> but I dont want e.g. user3domain1

Virtual mailbox domains do not share namespace, so your requirement
comes if fulfilled.

[...]

> PS: I have some idea to use LDAP, but I never use it before this
> problem. is there any suitable howto for "postfix with ldap" ??

Yes, but do not try with LDAP the first time. Use a simple map (dbm or
hash) to get it working, then start worrying about LDAP.

--
Magnus Bäck
magnusdsek.lth.se