Hey guys,
I'm looking to setup a mail server with encrypted storage. I'm planning
to use Dovecot mailserver + crypt or trees plugin for per-user
encryption + SOGO for webmail/groupware. Encryption plugins need to
store some additional data like password hash algo, salt etc. (see
example scheme below) in SQL:
CREATE TABLE `storage_keys` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`enabled` tinyint(4) DEFAULT '1',
`version` tinyint(4) DEFAULT '1',
`public_key` text,
`pwhash_algo` tinyint(4) DEFAULT '1',
`pwhash_opslimit` int(11) DEFAULT NULL,
`pwhash_memlimit` int(11) DEFAULT NULL,
`pwhash_salt` varchar(255) DEFAULT NULL,
`sk_nonce` varchar(255) DEFAULT NULL,
`locked_secretbox` text,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT DEFAULT
How can I make it work with SOGO? So far, at a first glance, there's a
table named 'users' in SOGO db
which contains usernames, passwords etc of SOGO users. However, it's not
very clear how Dovecot is communicating with SOGO?
Dovecot users = SOGO users? Or SOGO grabs Dovecot users and copies them
into this 'users' table?
Perhaps someone here can guide me on how it works and how to connect
SOGO with Dovecot crypt plugins properly?
BR,
Paul
serveria.com
--
[email protected]
https://inverse.ca/sogo/lists