Version 4 (modified by 3 years ago) ( diff ) | ,
---|
Sogo Setup
Config Issues
SOGoUserSources = ( { type = sql; id = directory; viewURL = "mysql://sogo:***@127.0.0.1:3306/sogo/sogo_view"; canAuthenticate = YES; isAddressBook = YES; userPasswordAlgorithm = none; } ); WOWorkersCount = 3; }; }
sample database setup
please note that sogo uses postgresql views to access the database (not clearly defined) and this needs to be setup before trying to auth
Also note that a view in the config file actual points to a table (or view) to access the database
again not very clearly defined.
CREATE DATABASE sogo CHARSET='UTF8'; GRANT ALL ON sogo.* TO sogo@localhost IDENTIFIED BY 'password'; GRANT SELECT ON vmail.mailbox TO sogo@localhost; CREATE VIEW sogo.users (c_uid, c_name, c_password, c_cn, mail, domain) AS SELECT username, username, password, name, username, domain FROM vmail.mailbox WHERE enablesogo=1 AND active=1;
database tables required
SOGoProfileURL = "mysql://sogo:password@127.0.0.1:3306/sogo/sogo_user_profile"; OCSFolderInfoURL = "mysql://sogo:password@127.0.0.1:3306/sogo/sogo_folder_info"; OCSSessionsFolderURL = "mysql://sogo:password@127.0.0.1:3306/sogo/sogo_sessions_folder"; OCSEMailAlarmsFolderURL = "mysql://sogo:password@127.0.0.1:3306/sogo/sogo_alarms_folder"; // With 3 parameters below, SOGo requires only 9 SQL tables in total // instead of creating 4 SQL tables for each user. OCSCacheFolderURL = "mysql://sogo:password@127.0.0.1:3306/sogo/sogo_cache_folder"; OCSStoreURL = "mysql://sogo:password@127.0.0.1:3306/sogo/sogo_store"; OCSAclURL = "mysql://sogo:password@127.0.0.1:3306/sogo/sogo_acl";
Note:
See TracWiki
for help on using the wiki.