[Dovecot] MySQL database structure
11 Mar
2007
11 Mar
'07
3:50 p.m.
In Postfix+Postfixadmin+Dovecot+SASL+MySQL case what is the best and compact MySQL database structure for storing all configuration? What will you suggest me guys? I've already installed postfixadmin and I'm confusing (actually my experience is not enough) extending and organizing my database for postfix+dovecot. Please give me some quick tips.
Best regards,
Erdenebat Guntomor/ /mailto:RkLogin@gmail.com
12 Mar
12 Mar
4:29 p.m.
2007/3/11, Erdenebat Gantomor rklogin@gmail.com:
In Postfix+Postfixadmin+Dovecot+SASL+MySQL case what is the best and compact MySQL database structure for storing all configuration? What will you suggest me guys? I've already installed postfixadmin and I'm confusing (actually my experience is not enough) extending and organizing my database for postfix+dovecot. Please give me some quick tips.
In /etc/dovecot/dovecot-sql.conf you can see the sample structure with the minimum required fields:
# CREATE TABLE users ( # userid VARCHAR(128) NOT NULL, # password VARCHAR(64) NOT NULL, # home VARCHAR(255) NOT NULL, # uid INTEGER NOT NULL, # gid INTEGER NOT NULL, # active CHAR(1) DEFAULT 'Y' NOT NULL # );
In my case I changed to use always the same userid and groupid, so that fields are not needed, and if you plan to use virtual domains, you will need to split userid to separate into id and domain.
Cheers
Best regards,
Erdenebat Guntomor/ /mailto:RkLogin@gmail.com
6465
Age (days ago)
6466
Last active (days ago)
1 comments
2 participants
participants (2)
-
Erdenebat Gantomor
-
Joan