Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
nobody? I enabled auth_debug=yes to trace auth problems, in dovecot.log, going from - service start to - sogo login and - mail page activation (only 1 message in in box), then - service stop: I see several cache miss and pam authentication failure (password mismatch?) If I get it right, dovecot tries to auth on PAM, fails, then looks cache, fails, then ask auth to LDAP server I thought to have 1) only LDAP as auth, not PAM ? 2) enbled user cache... probably something in my config is wrong, but can't see any complaint by dovecot about the config... ? I try to follow wiki and other sources, but can't figure it out... I'm stuck... 2014-05-29 16:28:53 master: Info: Dovecot v2.1.17 starting up (core dumps disabled) 2014-05-29 16:29:17 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth 2014-05-29 16:29:17 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth 2014-05-29 16:29:17 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libauthdb_ldap.so 2014-05-29 16:29:17 auth: Debug: auth client connected (pid=25375) 2014-05-29 16:29:17 auth: Debug: client in: AUTH1 PLAIN service=imapsecured session=xoAIwYr6WQB/AAABlip=127.0.0.1 rip=127.0.0.1 lport=143 rport=40281 resp=hidden 2014-05-29 16:29:17 auth-worker(25377): Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth 2014-05-29 16:29:17 auth-worker(25377): Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth 2014-05-29 16:29:17 auth-worker(25377): Debug: Module loaded: /usr/lib/dovecot/modules/auth/libauthdb_ldap.so 2014-05-29 16:29:17 auth-worker(25377): Debug: pam(ardito,127.0.0.1): lookup service=dovecot 2014-05-29 16:29:17 auth-worker(25377): Debug: pam(ardito,127.0.0.1): #1/1 style=1 msg=Password: 2014-05-29 16:29:20 auth-worker(25377): Info: pam(ardito,127.0.0.1): pam_authenticate() failed: Authentication failure (password mismatch?) 2014-05-29 16:29:20 auth: Debug: cache(ardito,127.0.0.1,xoAIwYr6WQB/AAAB): miss 2014-05-29 16:29:20 auth: Debug: ldap(ardito,127.0.0.1,xoAIwYr6WQB/AAAB): bind search: base=OU=utenti,OU=uffici,OU=sede,DC=apiform,DC=to,DC=it filter=((objectClass=user)(sAMAccountName=ardito)) 2014-05-29 16:29:20 auth: Debug: ldap(ardito,127.0.0.1,xoAIwYr6WQB/AAAB): result: sAMAccountName=ardito 2014-05-29 16:29:20 auth: Debug: client passdb out: OK 1 user=ardito 2014-05-29 16:29:20 auth: Debug: master in: REQUEST 3486777345 25375 1 fdc4a0770d615a4d58ae4ef41176935d 2014-05-29 16:29:20 auth: Debug: userdb-cache(ardito,127.0.0.1,xoAIwYr6WQB/AAAB): miss 2014-05-29 16:29:20 auth-worker(25377): Debug: passwd(ardito,127.0.0.1): lookup 2014-05-29 16:29:20 auth-worker(25377): Info: passwd(ardito,127.0.0.1): unknown user 2014-05-29 16:29:20 auth: Debug: userdb-cache(ardito,127.0.0.1,xoAIwYr6WQB/AAAB): miss 2014-05-29 16:29:20 auth: Debug: ldap(ardito,127.0.0.1,xoAIwYr6WQB/AAAB): user search: base=OU=utenti,OU=uffici,OU=sede,DC=apiform,DC=to,DC=it scope=subtree filter=((objectClass=user)(sAMAccountName=ardito)) fields=sAMAccountName,userPassword 2014-05-29 16:29:20 auth: Debug: ldap(ardito,127.0.0.1,xoAIwYr6WQB/AAAB): result: sAMAccountName=ardito; userPassword missing 2014-05-29 16:29:20 auth: Debug: master userdb out: USER 3486777345 ardito mail=maildir:/var/mail/ardito 2014-05-29 16:29:20 imap-login: Info: Login: user=ardito, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=25381, secured, session=xoAIwYr6WQB/AAAB 2014-05-29 16:29:20 imap(ardito): Info: Disconnected: Logged out in=180 out=1013 2014-05-29 16:29:20 auth: Debug: auth client connected (pid=25385) 2014-05-29 16:29:21 auth: Debug: client in: AUTH1 PLAIN service=imapsecured session=TjU5wYr6XwB/AAABlip=127.0.0.1 rip=127.0.0.1 lport=143 rport=40287 resp=hidden 2014-05-29 16:29:21 auth-worker(25377): Debug: pam(ardito,127.0.0.1): lookup service=dovecot 2014-05-29 16:29:21 auth-worker(25377): Debug: pam(ardito,127.0.0.1): #1/1 style=1 msg=Password: 2014-05-29 16:29:23 auth-worker(25377): Info: pam(ardito,127.0.0.1): pam_authenticate() failed: Authentication failure (password mismatch?) 2014-05-29 16:29:23 auth: Debug: cache(ardito,127.0.0.1,TjU5wYr6XwB/AAAB): hit: hidden user=ardito 2014-05-29 16:29:23 auth: Debug: client passdb out: OK 1 user=ardito 2014-05-29 16:29:23 auth: Debug: master in: REQUEST 2534539265 25385 1 8c2601ee2ef7e94ff9275cfc0d72adce 2014-05-29 16:29:23 auth: Debug: userdb-cache(ardito,127.0.0.1,TjU5wYr6XwB/AAAB): miss 2014-05-29 16:29:23 auth-worker(25377): Debug: passwd(ardito,127.0.0.1): lookup 2014-05-29 16:29:23 auth-worker(25377): Info: passwd(ardito,127.0.0.1): unknown user 2014-05-29 16:29:23 auth: Debug: userdb-cache(ardito,127.0.0.1,TjU5wYr6XwB/AAAB): hit: ardito mail=maildir:/var/mail/ardito 2014-05-29 16:29:23 auth: Debug: master userdb out: USER 2534539265 ardito
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
I found it!! it was in /etc/dovecot/conf.d/auth-system.conf.ext by default has this enabled... and tries (failing) it before ldap, of course. passdb { driver = pam } now I have much better timing ~ 192.168.3.22 - - [29/May/2014:17:17:41 GMT] GET /SOGo/so/ardito/Mail HTTP/1.1 302 0/0 0.002 - - 4K 192.168.3.22 - - [29/May/2014:17:17:41 GMT] GET /SOGo/so/ardito/Mail/view HTTP/1.1 200 10006/0 0.337 34694 71% 3M 192.168.3.22 - - [29/May/2014:17:17:42 GMT] POST /SOGo/so/ardito/Calendar/alarmslist?browserTime=1401376662 HTTP/1.1 200 2/0 0.004 - - 0 192.168.3.22 - - [29/May/2014:17:17:42 GMT] POST /SOGo/so/ardito/Mail/0/mailboxes HTTP/1.1 200 534/0 0.173 - - 0 192.168.3.22 - - [29/May/2014:17:17:42 GMT] POST /SOGo/so/ardito/Mail/foldersState HTTP/1.1 200 48/0 0.017 - - 0 192.168.3.22 - - [29/May/2014:17:17:42 GMT] POST /SOGo/so/ardito/Mail/0/folderINBOX/unseenCount HTTP/1.1 200 13/0 0.212 - - 0 Thanks all, Marco --- [Ai sensi e per gli effetti della Legge sulla tutela della privacy (L. 196/2003), questa mail è destinata unicamente alle persone sopra indicate e le informazioni in essa contenute sono da considerarsi strettamente riservate. E' proibito leggere, copiare, usare o diffondere il contenuto della presente mail senza autorizzazione. Se avete ricevuto questo messaggio per errore, siete pregati di rispedire la stessa al mittente. Grazie] -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
Il 27/05/2014 18:07, Martin Simovic ha scritto: What are these lines for? passdb { driver = pam } userdb { driver = passed } ...I struggled to figure out, remember from where i copy/pasted that config, without success. but I am quite sure it was an example somewhere. anyway, atm I barely understand configs for everything in sogo backends (ldap connection was easier, as I aready used it a few times, elsewhere) now that I see it, and seeing web references, it seems that driver = passed was a driver = passwd with a typo? I didn't noticed that yet, since it was all working, except the lag, so I tried to understand what was affecting the ui performance. I could try to remove or correct those lines, if anyone suggest me, but I am so new to dovecot that I could help a good tutorial, perhaps, to understand the underlying complexity. wiki docs seemed a bit scaring, at first. I would love to RTFM, if there is one (it was planned, just later). Thanks, Marco --- [Ai sensi e per gli effetti della Legge sulla tutela della privacy (L. 196/2003), questa mail � destinata unicamente alle persone sopra indicate e le informazioni in essa contenute sono da considerarsi strettamente riservate. E' proibito leggere, copiare, usare o diffondere il contenuto della presente mail senza autorizzazione. Se avete ricevuto questo messaggio per errore, siete pregati di rispedire la stessa al mittente. Grazie] -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
On 5/27/2014 10:39 AM, Adi Kriegisch a...@cg.tuwien.ac.at wrote: I'd stick to dovecot. To make dovecot show its real power, I'd recommend to use dovecot's 'deliver': That way all imap operations get a tremendous speedup due to the on disk indexes dovecot creates. (Check the dovecot wiki for more details). To be precise, dovecot will still create the on-disk indexes (unless you intentionally disable them) even if you something other than the dovecot-LDA. Using the LDA allows dovecot to update the indexes at delivery time, rather than when a client accesses the mail store, which definitely can be a big advantage, especially with large installations. Best regards, Charles -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
Hi On 28 May 2014, at 11:32, marco ardito ard...@apiform.to.it wrote: ...I struggled to figure out, remember from where i copy/pasted that config, without success. but I am quite sure it was an example somewhere. anyway, atm I barely understand configs for everything in sogo backends (ldap connection was easier, as I aready used it a few times, elsewhere) now that I see it, and seeing web references, it seems that driver = passed was a driver = passwd with a typo? I didn't noticed that yet, since it was all working, except the lag, so I tried to understand what was affecting the ui performance. yes driver=passed is my typo (autocorrector) I meant driver=passwd like you have in your config file. You should not use configuration file options that you don’t understand. Precisely userdb and passdb can have several backends configured and listing redundant ones might lead to degraded performance whilst everything looks working fine except that. Namely, I don’t think you really use passdb pam or userdb passwd. These lookups leading to nonexistent configuration will fail silently but slow down your system considerably. Regards Martin. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
To detail more what happens: I've stopped dovecot, sogo, deleted logs, then restarted in the same order. now I have: === #tail /var/log/dovecot.message echo === tail /var/log/sogo/sogo.log 2014-05-28 15:27:41 master: Info: Dovecot v2.1.17 starting up (core dumps disabled) === May 28 15:34:36 sogod [20692]: vmem size check enabled: shutting down app when vmem 384 MB May 28 15:34:36 sogod [20692]: 0x0xb933db18[SOGoProductLoader] SOGo products loaded from '/usr/lib/GNUstep/SOGo': May 28 15:34:36 sogod [20692]: 0x0xb933db18[SOGoProductLoader] CommonUI.SOGo, MainUI.SOGo, SchedulerUI.SOGo, Contacts.SOGo, ContactsUI.SOGo, Mailer.SOGo, PreferencesUI.SOGo, Appointments.SOGo, MailPartViewers.SOGo, AdministrationUI.SOGo, MailerUI.SOGo May 28 15:34:36 sogod [20692]: 0x0xb9467600[WOWatchDog] listening on 127.0.0.1:2 May 28 15:34:36 sogod [20692]: 0x0xb9467600[WOWatchDog] watchdog process pid: 20692 May 28 15:34:36 sogod [20692]: 0x0xb74e98c0[WOWatchDogChild] watchdog request timeout set to 10 minutes May 28 15:34:36 sogod [20692]: 0x0xb9467600[WOWatchDog] preparing 3 children May 28 15:34:36 sogod [20692]: 0x0xb9467600[WOWatchDog] child spawned with pid 20710 May 28 15:34:36 sogod [20692]: 0x0xb9467600[WOWatchDog] child spawned with pid 20711 May 28 15:34:36 sogod [20692]: 0x0xb9467600[WOWatchDog] child spawned with pid 20712 === and stays like that while I'm not logged in the web ui. apparently it starts 3 children. if I load the web ui (still logged off) sogo log adds === May 28 15:39:48 sogod [21017]: 0x0xb8325a58[SOGoCache] Cache cleanup interval set every 300.00 seconds May 28 15:39:48 sogod [21017]: 0x0xb8325a58[SOGoCache] Using host(s) 'localhost' as server(s) 2014-05-28 15:39:48.252 sogod[21017] Note(SoObject): SoDebugKeyLookup is enabled! 2014-05-28 15:39:48.253 sogod[21017] Note(SoObject): SoDebugBaseURL is enabled! 2014-05-28 15:39:48.253 sogod[21017] Note(SoObject): relative base URLs are enabled. 2014-05-28 15:39:48.257 sogod[21017] ERROR(-[NGBundleManager bundleWithPath:]): could not create bundle for path: '/usr/share/GNUstep/Libraries/gnustep-base/Versions/1.22/Resources/SSL.bundle' 2014-05-28 15:39:48.269 sogod[21017] WOCompoundElement: pool embedding is on. 2014-05-28 15:39:48.269 sogod[21017] WOCompoundElement: id logging is on. 192.168.3.22 - - [28/May/2014:15:39:48 GMT] GET /SOGo/so/ HTTP/1.1 200 4273/0 0.057 11946 64% 3M === now if I log into web ui (default module: calendar) sogo log adds: === May 28 15:43:31 sogod [21017]: SOGoRootPage successful login from '192.168.3.22' for user 'ardito' - expire = -1 grace = -1 May 28 15:43:31 sogod [21017]: [ERROR] 0x0xb874fde0[NGLdapAttribute] could not convert value of objectGUID to string May 28 15:43:31 sogod [21017]: [ERROR] 0x0xb8764908[NGLdapAttribute] could not convert value of objectSid to string May 28 15:43:31 sogod [21017]: [ERROR] 0x0xb87508c0[NGLdapAttribute] could not convert value of logonHours to string May 28 15:43:31 sogod [21017]: [ERROR] 0x0xb8764d18[NGLdapAttribute] could not convert value of sIDHistory to string May 28 15:43:31 sogod [21017]: [WARN] 0x0xb872a648[SOGoWebDAVAclManager] entry '{DAV:}write' already exists in DAV permissions table May 28 15:43:31 sogod [21017]: [WARN] 0x0xb872a648[SOGoWebDAVAclManager] entry '{DAV:}write-properties' already exists in DAV permissions table May 28 15:43:31 sogod [21017]: [WARN] 0x0xb872a648[SOGoWebDAVAclManager] entry '{DAV:}write-content' already exists in DAV permissions table 2014-05-28 15:43:31.641 sogod[21017] Note: Using UTF-8 as URL encoding in NGExtensions. 192.168.3.22 - - [28/May/2014:15:43:31 GMT] POST /SOGo/connect HTTP/1.1 200 27/69 0.035 - - 720K 192.168.3.22 - - [28/May/2014:15:43:31 GMT] GET /SOGo/so/ardito HTTP/1.1 302 0/0 0.002 - - 0 192.168.3.22 - - [28/May/2014:15:43:31 GMT] GET /SOGo/so/ardito/view HTTP/1.1 302 0/0 0.004 - - 4K 192.168.3.22 - - [28/May/2014:15:43:31 GMT] GET /SOGo/so/ardito/Calendar HTTP/1.1 302 0/0 0.003 - - 0 192.168.3.22 - - [28/May/2014:15:43:31 GMT] GET /SOGo/so/ardito/Calendar/view HTTP/1.1 200 13134/0 0.065 47761 72% 1M 2014-05-28 15:43:32.020 sogod[21016] Note: Using UTF-8 as URL encoding in NGExtensions. May 28 15:43:32 sogod [21016]: 0x0xb82c9a98[SOGoCache] Cache cleanup interval set every 300.00 seconds May 28 15:43:32 sogod [21016]: 0x0xb82c9a98[SOGoCache] Using host(s) 'localhost' as server(s) 192.168.3.22 - - [28/May/2014:15:43:32 GMT] POST /SOGo/so/ardito/Calendar/personal/canAccessContent HTTP/1.1 204 0/0 0.004 - - 0 2014-05-28 15:43:32.023 sogod[21015] Note: Using UTF-8 as URL encoding in NGExtensions. May 28 15:43:32 sogod [21015]: 0x0xb8416db8[SOGoCache] Cache cleanup interval set every 300.00 seconds May 28 15:43:32 sogod [21015]: 0x0xb8416db8[SOGoCache] Using host(s) 'localhost' as server(s) May 28 15:43:32 sogod [20986]: [ERROR] 0x0xb84fa600[WOWatchDog] No child
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
Since I'm a noob on this system, can anyone point me to what can bring me those snappy mail performances? Any help would be greatly appreciated, thanks! Feel free to ask me more info tests... Well, I'm no expert at all, but does it feel the same if you connect a real imap or another webmail client? (apt-get install roundcube, for example) MJ -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
Il 27/05/2014 14:57, heupink ha scritto: Since I'm a noob on this system, can anyone point me to what can bring me those snappy mail performances? Any help would be greatly appreciated, thanks! Feel free to ask me more info tests... Well, I'm no expert at all, but does it feel the same if you connect a real imap or another webmail client? (apt-get install roundcube, for example) MJ Thanks for the suggestion, I thought to try webmail systems (perhaps later) but given that the default is fast in the ZEG appliance, also on my local vm, I would like to understand what is wrong in my setup, first... are you using (or suggesting as better choice) roundcube instead of the SOGo webmail? Thanks, -- *Marco * --- [Ai sensi e per gli effetti della Legge sulla tutela della privacy (L. 196/2003), questa mail è destinata unicamente alle persone sopra indicate e le informazioni in essa contenute sono da considerarsi strettamente riservate. E' proibito leggere, copiare, usare o diffondere il contenuto della presente mail senza autorizzazione. Se avete ricevuto questo messaggio per errore, siete pregati di rispedire la stessa al mittente. Grazie] -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
Thanks for the suggestion, I thought to try webmail systems (perhaps later) but given that the default is fast in the ZEG appliance, also on my local vm, I would like to understand what is wrong in my setup, first... are you using (or suggesting as better choice) roundcube instead of the SOGo webmail? Nope. We like the SOGo webmail a lot. :-) (though we offer roundcube too, and in fact: even squirrelmail) I suggested a regular imap client, so see if your complete imap system is slow, or if just imap through SOGo is somehow slow. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
Il 27/05/2014 15:59, heupink ha scritto: Thanks for the suggestion, I thought to try webmail systems (perhaps later) but given that the default is fast in the ZEG appliance, also on my local vm, I would like to understand what is wrong in my setup, first... are you using (or suggesting as better choice) roundcube instead of the SOGo webmail? Nope. We like the SOGo webmail a lot. :-) (though we offer roundcube too, and in fact: even squirrelmail) I suggested a regular imap client, so see if your complete imap system is slow, or if just imap through SOGo is somehow slow. OK. well, in the mean while I managed to install roundcube (1.0.1) I can login both of my setups. I have no reference as in the sogo webmail online demo, but it feels also slowish more or less, on this roundcube I see similar lags moving between mail folders... well, not only mail folders but nearly everything, fwiw. could it be dovecot? is it better cyrus, or else? is there any benchmark (ie: timed command) I can issue to test if ldap is acting slow, or else? Thanks, -- *Marco* --- [Ai sensi e per gli effetti della Legge sulla tutela della privacy (L. 196/2003), questa mail è destinata unicamente alle persone sopra indicate e le informazioni in essa contenute sono da considerarsi strettamente riservate. E' proibito leggere, copiare, usare o diffondere il contenuto della presente mail senza autorizzazione. Se avete ricevuto questo messaggio per errore, siete pregati di rispedire la stessa al mittente. Grazie] -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
Hi Marco, I can login both of my setups. I have no reference as in the sogo webmail online demo, but it feels also slowish I have just tried the online demo, and to me it feels approx the same as our local sogo install. could it be dovecot? is it better cyrus, or else? Nope, they are both equally good, and well supported. We have dovecot, but I guess you'll find many here using cyrus. Choose whatever you know best and like most. Both should normally perform well. (though perhaps dovecot could be a bit quicker than cyrus..?) is there any benchmark (ie: timed command) I can issue to test if ldap is acting slow, or else? Sogo.log tells you for many commands how long they took to complete. And I don't think a slower ldap would 'slow down' your imap folders. MJ -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
Dear Marco, OK. well, in the mean while I managed to install roundcube (1.0.1) I personally wouldn't ever suggest to use anything that is written in php. I have no reference as in the sogo webmail online demo, but it feels also slowish [...] could it be dovecot? is it better cyrus, or else? I'd stick to dovecot. To make dovecot show its real power, I'd recommend to use dovecot's 'deliver': That way all imap operations get a tremendous speedup due to the on disk indexes dovecot creates. (Check the dovecot wiki for more details). is there any benchmark (ie: timed command) I can issue to test if ldap is acting slow, or else? Depending on your configuration you may for example use a local ldap slave and connect to localhost (without using ssl). This will remove latency and SSL overhead. Sadly SOGo cannot use ldapi sockets so fine grained ACLs aren't possible. -- Adi -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
On 27 May 2014, at 16:16, marco ardito ard...@apiform.to.it wrote: could it be dovecot? is it better cyrus, or else? Dovecot is probably not correctly configured. Can you post dovecot.conf and apache2 modules list. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
Il 27/05/2014 17:11, heupink ha scritto: is acting slow, or else? is there any benchmark (ie: timed command) I can issue to test if ldap Sogo.log tells you for many commands how long they took to complete. And I don't think a slower ldap would 'slow down' your imap folders. MJ Thx all :D Sogo.log here are last lines whan switching from Inbox to Trash... 192.168.3.22 - - [27/May/2014:17:47:44 GMT] POST /SOGo/so/ardito/Mail//0/folderINBOX/uids HTTP/1.1 200 28/46 2.648 - - 0 192.168.3.22 - - [27/May/2014:17:47:52 GMT] POST /SOGo/so/ardito/Mail/0/folderTrash/unseenCount HTTP/1.1 200 13/0 2.085 - - 0 192.168.3.22 - - [27/May/2014:17:47:52 GMT] POST /SOGo/so/ardito/Mail//0/folderTrash/uids HTTP/1.1 200 386/28 2.127 1124 65% 0 Are those float near the line end, seconds? Because that could likely be the lag I experiment...2-3 seconds. need more lines? Then, here some conf files I have atm (keep in mind that is just a test install, lots of details are just tests. and I disabled any SSL I found, for now) /etc/dovecot/local.conf: disable_plaintext_auth = no log_path = /var/log/dovecot.message log_timestamp = %Y-%m-%d %H:%M:%S mail_location = maildir:/var/mail/%u mail_privileged_group = mail mail_uid = vmail mail_gid = vmail auth_cache_size=5 M auth_cache_ttl=3600 passdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } passdb { driver = pam } protocols = imap service auth { unix_listener auth-master { group = vmail mode = 0600 user = vmail } unix_listener auth-userdb { user = vmail } user = root } userdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } userdb { driver = passwd } protocol lda { hostname = oc.local log_path = /var/log/dovecot.message postmaster_address = postmaster@oc.local } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } /etc/dovecot/dovecot-ldap.conf (setup B, eg: local openldap) === uris = ldap://localhost:389 dn = cn=admin,dc=oc,dc=local dnpass = openchange tls = no ldap_version = 3 base = dc=oc,dc=local scope = subtree user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid user_filter = (uid=%u) pass_attrs = uid=user,userPassword=password pass_filter = (uid=%u) apache (/etc/apache2/conf.d/SOGo.conf) == Alias /SOGo.woa/WebServerResources/ \ /usr/lib/GNUstep/SOGo/WebServerResources/ Alias /SOGo/WebServerResources/ \ /usr/lib/GNUstep/SOGo/WebServerResources/ Directory /usr/lib/GNUstep/SOGo/ AllowOverride None Order deny,allow Allow from all # Explicitly allow caching of static content to avoid browser specific behavior. # A resource's URL MUST change in order to have the client load the new version. IfModule expires_module ExpiresActive On ExpiresDefault access plus 1 year /IfModule /Directory ## Uncomment the following to enable proxy-side authentication, you will then ## need to set the SOGoTrustProxyAuthentication SOGo user default to YES and ## adjust the x-webobjects-remote-user proxy header in the Proxy section ## below. #Location /SOGo # AuthType XXX # Require valid-user # SetEnv proxy-nokeepalive 1 # Allow from all #/Location ProxyRequests Off SetEnv proxy-nokeepalive 1 ProxyPreserveHost On # When using CAS, you should uncomment this and install cas-proxy-validate.py # in /usr/lib/cgi-bin to reduce server overloading # # ProxyPass /SOGo/casProxy http://localhost/cgi-bin/cas-proxy-validate.py # Proxy http://localhost/app/cas-proxy-validate.py # Order deny,allow # Allow from your-cas-host-addr # /Proxy ProxyPass /SOGo http://127.0.0.1:2/SOGo retry=0 # Enable to use Microsoft ActiveSync support # Note that you MUST have many sogod workers to use ActiveSync. # See the SOGo Installation and Configuration guide for more details. # #ProxyPass /Microsoft-Server-ActiveSync \ # http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync \ # retry=60 connectiontimeout=5 timeout=360 Proxy http://127.0.0.1:2/SOGo ## adjust the following to your configuration # RequestHeader set x-webobjects-server-port 443 # RequestHeader set x-webobjects-server-name 192.168.3.10 # RequestHeader set x-webobjects-server-url https://192.168.3.10; RequestHeader set x-webobjects-server-port 80 RequestHeader set x-webobjects-server-name 192.168.3.10 RequestHeader set x-webobjects-server-url http://192.168.3.10; ## When using proxy-side autentication, you need to uncomment and ## adjust the following line: # RequestHeader set x-webobjects-remote-user %{REMOTE_USER}e RequestHeader set x-webobjects-server-protocol HTTP/1.0 AddDefaultCharset UTF-8 Order allow,deny Allow from all /Proxy # For Apple autoconfiguration IfModule rewrite_module RewriteEngine On RewriteRule ^/.well-known/caldav/?$ /SOGo/dav [R=301] /IfModule That's it for now btw I'm utc+2 - I can answer only tomorrow... :)) -- *Marco * --- [Ai sensi e
Re: [SOGo] new to SOGo, have slowish webmail interface, need help...
What are these lines for? passdb { driver = pam } userdb { driver = passed } Martin Šimovič NETSON s.r.o. Mlynská 1/2338 934 01 Levice tel: +421 915 393 570 mail: mar...@netson.sk On 27 May 2014, at 17:58, marco ardito ard...@apiform.to.it wrote: Il 27/05/2014 17:11, heupink ha scritto: is acting slow, or else? is there any benchmark (ie: timed command) I can issue to test if ldap Sogo.log tells you for many commands how long they took to complete. And I don't think a slower ldap would 'slow down' your imap folders. MJ Thx all :D Sogo.log here are last lines whan switching from Inbox to Trash... 192.168.3.22 - - [27/May/2014:17:47:44 GMT] POST /SOGo/so/ardito/Mail//0/folderINBOX/uids HTTP/1.1 200 28/46 2.648 - - 0 192.168.3.22 - - [27/May/2014:17:47:52 GMT] POST /SOGo/so/ardito/Mail/0/folderTrash/unseenCount HTTP/1.1 200 13/0 2.085 - - 0 192.168.3.22 - - [27/May/2014:17:47:52 GMT] POST /SOGo/so/ardito/Mail//0/folderTrash/uids HTTP/1.1 200 386/28 2.127 1124 65% 0 Are those float near the line end, seconds? Because that could likely be the lag I experiment...2-3 seconds. need more lines? Then, here some conf files I have atm (keep in mind that is just a test install, lots of details are just tests. and I disabled any SSL I found, for now) /etc/dovecot/local.conf: disable_plaintext_auth = no log_path = /var/log/dovecot.message log_timestamp = %Y-%m-%d %H:%M:%S mail_location = maildir:/var/mail/%u mail_privileged_group = mail mail_uid = vmail mail_gid = vmail auth_cache_size=5 M auth_cache_ttl=3600 passdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } passdb { driver = pam } protocols = imap service auth { unix_listener auth-master { group = vmail mode = 0600 user = vmail } unix_listener auth-userdb { user = vmail } user = root } userdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } userdb { driver = passwd } protocol lda { hostname = oc.local log_path = /var/log/dovecot.message postmaster_address = postmaster@oc.local } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } /etc/dovecot/dovecot-ldap.conf (setup B, eg: local openldap) === uris = ldap://localhost:389 dn = cn=admin,dc=oc,dc=local dnpass = openchange tls = no ldap_version = 3 base = dc=oc,dc=local scope = subtree user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid user_filter = (uid=%u) pass_attrs = uid=user,userPassword=password pass_filter = (uid=%u) apache (/etc/apache2/conf.d/SOGo.conf) == Alias /SOGo.woa/WebServerResources/ \ /usr/lib/GNUstep/SOGo/WebServerResources/ Alias /SOGo/WebServerResources/ \ /usr/lib/GNUstep/SOGo/WebServerResources/ Directory /usr/lib/GNUstep/SOGo/ AllowOverride None Order deny,allow Allow from all # Explicitly allow caching of static content to avoid browser specific behavior. # A resource's URL MUST change in order to have the client load the new version. IfModule expires_module ExpiresActive On ExpiresDefault access plus 1 year /IfModule /Directory ## Uncomment the following to enable proxy-side authentication, you will then ## need to set the SOGoTrustProxyAuthentication SOGo user default to YES and ## adjust the x-webobjects-remote-user proxy header in the Proxy section ## below. #Location /SOGo # AuthType XXX # Require valid-user # SetEnv proxy-nokeepalive 1 # Allow from all #/Location ProxyRequests Off SetEnv proxy-nokeepalive 1 ProxyPreserveHost On # When using CAS, you should uncomment this and install cas-proxy-validate.py # in /usr/lib/cgi-bin to reduce server overloading # # ProxyPass /SOGo/casProxy http://localhost/cgi-bin/cas-proxy-validate.py # Proxy http://localhost/app/cas-proxy-validate.py # Order deny,allow # Allow from your-cas-host-addr # /Proxy ProxyPass /SOGo http://127.0.0.1:2/SOGo retry=0 # Enable to use Microsoft ActiveSync support # Note that you MUST have many sogod workers to use ActiveSync. # See the SOGo Installation and Configuration guide for more details. # #ProxyPass /Microsoft-Server-ActiveSync \ # http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync \ # retry=60 connectiontimeout=5 timeout=360 Proxy http://127.0.0.1:2/SOGo ## adjust the following to your configuration # RequestHeader set x-webobjects-server-port 443 # RequestHeader set x-webobjects-server-name 192.168.3.10 # RequestHeader set x-webobjects-server-url https://192.168.3.10; RequestHeader set x-webobjects-server-port 80 RequestHeader set x-webobjects-server-name 192.168.3.10 RequestHeader set x-webobjects-server-url http://192.168.3.10; ## When using proxy-side autentication, you need to uncomment and ## adjust the following line: # RequestHeader set