This is an API managing e-mail accounts and aliases for use with Postfix and Dovecot. Currently it is just build for managing my private mail server accounts. As frontend I use an EmberJS application build for this API (see: https://github.com/spieker/pink1-frontend).
Since it was build over night, it is tested only very poorly, so if you want to use this in production, there is still a lot of work to do.
To use uuid as mail home set driver
of userdb
to sql
and args
to
/etc/dovecot/dovecot-sql.conf.ext
in /etc/dovecot/conf.d/auth-sql.conf.ext
.
Then set user_query
in /etc/dovecot/dovecot-sql.conf.ext
to
user_query = SELECT CONCAT('maildir:/var/mail/', uuid) AS mail, CONCAT('/var/mail/', uuid) AS home, 5000 AS uid, 5000 AS gid FROM users WHERE email='%u';