This plugin is compatible with the installation of postfix/dovecot holding virtual user accounts in a MySQL database.
Download or copy index.php from my Git repo and put it in your destination path.
Then, you should run plugin in: data/settings/config.php (append to array):
'plugins.postfix-dovecot-password' => true,
Next to set correctly database settings with your postfix configuration tables:
'plugins.postfix-dovecot-password.config.host' => '127.0.0.1',
'plugins.postfix-dovecot-password.config.dbuser' => 'your-db-user',
'plugins.postfix-dovecot-password.config.dbpassword' => 'your-db-password',
'plugins.postfix-dovecot-password.config.dbname' => 'your-db-name',
Optional you can overwrite column names settings:
'plugins.postfix-dovecot-password.config.mailbox_table' => 'mailbox',
'plugins.postfix-dovecot-password.config.username_column' => 'username',
'plugins.postfix-dovecot-password.config.password_column' => 'password',