driver = mysql connect = host=127.0.0.1 port=3306 user=root password=rootpassword dbname=postfixadmindbname default_pass_scheme = CRAM-MD5 user_query = \ SELECT \ concat('/home/vmail/', maildir) as home, \ 5000 as uid, 5000 as gid \ FROM mailbox \ WHERE username = '%u' AND active = '1' password_query = \ SELECT username as user, password, \ concat('/home/vmail/', maildir) as userdb_home, \ concat('maildir:/home/vmail/', maildir) as userdb_mail, \ 5000 as userdb_uid, 5000 as userdb_gid \ FROM mailbox \ WHERE username = '%u' AND active = '1'