On Wed, Oct 25, 2006 at 01:38:51AM +0700, Muhamad A. Martoprawiro may have written:
But, again, how to accept both kind of users? I use Postfix as mail server, and use LDAP/PAM for real users that have home-directory on the system.
Why not make your virtual users LDAP users also? The objectClass posixAccount is what makes a user a system user by default, so just leave that out of your virtual users. I force the uid and gid to a certain user called "vmail" which has no shell and no login privileges. This user then keeps all the homedirs and Maildirs for my virtual users.
This seems far simpler than trying to manage users in both mysql and ldap.
Enjoy,
http://www.delink.net/ "It's almost like there's a record full of incomprehensible bullshit playing in your mind 24/7, and you put the needle down randomly and whatever it picks up, you just type it up in an email and shoot it off to me, usually mid-sentence." - Red Drag Diva in the monastery