Re: [SOGo] new to SOGo, have slowish webmail interface, need help...

2014-05-29 Thread marco ardito

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...

2014-05-29 Thread marco ardito

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...

2014-05-28 Thread marco ardito

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...

2014-05-28 Thread Charles Marcus

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...

2014-05-28 Thread Martin Simovic
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...

2014-05-28 Thread marco ardito

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 

[SOGo] new to SOGo, have slowish webmail interface, need help...

2014-05-27 Thread marco ardito

Hi,

I'm learning all about SOGo, and I've been able to setup two different 
working scenarios (local LDAP / lan AD), and I'm quite happy with what I 
see, but I have a slight but noticeable slow behaviour of the web 
interface, comapred to online demo... and I cant find what is causing 
it, and then... how to solve. :)


about hardware:
* the sogo server is a kvm virtual machine
* hypervisor is proxmox running on IBM x3650M2 nodes
* nodes have Intel(R) Xeon(R) CPU  E5520  @ 2.27GHz (2x) and 20GB RAM each.
* vm has
- 2GB RAM,
- 1 cpu/4 cores,
- virtio LAN, virtio storage
- vm storage is iSCSI (1GB eth)

about software:
* the base system is debian 7.5
* sogo 2.2.3-1
* postfix 2.9.6-2
* dovecot 2.1.17-2
* openldap 2.4.31-1+nmu2
* apache 2.2.22-13+deb7u1
* mysql-server 5.5.37-0+wheezy1

As I said, I have two working setup
setup A: sogo  dovecot authenticate on lan AD server (w2003)
setup B: sogo  dovecot authenticate on local slapd server (JohnDoe/JohnDoe)

Both work (even it took me a while to figure out how to ;D) but I feel 
that the mail section is kinda slow, opening the voarious folders takes 
a few seconds, maybe 2-3. Not something unusable but... feels 
sluggish... I also tried to enable auth_cache_size and auth_cache_ttl, 
fearing there could be some auth delay, but nothing changed.


So I tried online demo, and I noticed that was less slow than mine, 
local vm! In particular, switching from one mail folder to another takes 
less than a second, on the online demo, much less than my local install...?


I wondered what it could be the reason but ended up downloading the ZEG 
appliance, and created another vm with identical hardware (same network 
storage box but on NFS, since iSCSI is block storage and can't hold vmdk 
images)


well, this is snappy at least as the online demo, if not more (probably 
obviously)! So, I guess that my fears of a slow access to vm disk due to 
hypervisor are out of game here... I noticed that ZEG appliances has 
Cyrus instead of Dovecot, so I am not able to check different settings 
from my install...


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...

Marco
--
*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...

2014-05-27 Thread heupink

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...

2014-05-27 Thread marco ardito

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...

2014-05-27 Thread heupink

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...

2014-05-27 Thread marco ardito

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...

2014-05-27 Thread heupink

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...

2014-05-27 Thread Adi Kriegisch
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...

2014-05-27 Thread Martin Simovic


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...

2014-05-27 Thread marco ardito

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...

2014-05-27 Thread Martin Simovic
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 

[SOGo] New to sogo

2012-03-20 Thread Eduardo Martinez
New to sogo, I have installed all the prerequisites but I am having an issue 
logging in as su - sogo any ideas.
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] New to sogo

2012-03-20 Thread Roberto

El 20/03/12 17:26, Eduardo Martinez escribió:


New to sogo, I have installed all the prerequisites but I am having an 
issue logging in as su – sogo any ideas.




What's the error message? Does the user exist?

--
roberto
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] New to sogo

2012-03-20 Thread Roberto

El 20/03/12 17:36, Eduardo Martinez escribió:

The user does exist, is there a log file that I can look at to debug further..


Hi Eduardo,

AFAIK it's an operating system misconfiguration, SOGo has nothing to do 
with it.


If you're root you should be able to su as sogo without password unless 
the account is disabled or locked. Does the sogo account have a home 
directory?


--
roberto
--
users@sogo.nu
https://inverse.ca/sogo/lists


RE: [SOGo] New to sogo

2012-03-20 Thread Eduardo Martinez
Yes sogo does have a home directory..

-Original Message-
From: Roberto [mailto:robe...@indomitux.com.ar] 
Sent: Tuesday, March 20, 2012 3:45 PM
To: users@sogo.nu
Subject: Re: [SOGo] New to sogo

El 20/03/12 17:36, Eduardo Martinez escribió:
 The user does exist, is there a log file that I can look at to debug further..

Hi Eduardo,

AFAIK it's an operating system misconfiguration, SOGo has nothing to do with it.

If you're root you should be able to su as sogo without password unless the 
account is disabled or locked. Does the sogo account have a home directory?

--
roberto
--
users@sogo.nu
https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

RE: [SOGo] New to sogo

2012-03-20 Thread Eduardo Martinez
Sogo does have a home directory...

-Original Message-
From: Eduardo Martinez [mailto:eduar...@diversecti.net] 
Sent: Tuesday, March 20, 2012 3:51 PM
To: users@sogo.nu
Subject: RE: [SOGo] New to sogo

Yes sogo does have a home directory..

-Original Message-
From: Roberto [mailto:robe...@indomitux.com.ar] 
Sent: Tuesday, March 20, 2012 3:45 PM
To: users@sogo.nu
Subject: Re: [SOGo] New to sogo

El 20/03/12 17:36, Eduardo Martinez escribió:
 The user does exist, is there a log file that I can look at to debug further..

Hi Eduardo,

AFAIK it's an operating system misconfiguration, SOGo has nothing to do with it.

If you're root you should be able to su as sogo without password unless the 
account is disabled or locked. Does the sogo account have a home directory?

--
roberto
--
users@sogo.nu
https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] New to sogo

2012-03-20 Thread Georg Bretschneider
What's the shell output?
Are you root while using su - sogo?
If not, use sudo su - sogo, but you're user must be allowed to execute
commands as root. (cat /etc/sudoers or visudo as root)


Am 20.03.2012 21:52, schrieb Eduardo Martinez:
 Sogo does have a home directory...
 
 -Original Message-
 From: Eduardo Martinez [mailto:eduar...@diversecti.net] 
 Sent: Tuesday, March 20, 2012 3:51 PM
 To: users@sogo.nu
 Subject: RE: [SOGo] New to sogo
 
 Yes sogo does have a home directory..
 
 -Original Message-
 From: Roberto [mailto:robe...@indomitux.com.ar] 
 Sent: Tuesday, March 20, 2012 3:45 PM
 To: users@sogo.nu
 Subject: Re: [SOGo] New to sogo
 
 El 20/03/12 17:36, Eduardo Martinez escribió:
 The user does exist, is there a log file that I can look at to debug 
 further..
 
 Hi Eduardo,
 
 AFAIK it's an operating system misconfiguration, SOGo has nothing to do with 
 it.
 
 If you're root you should be able to su as sogo without password unless the 
 account is disabled or locked. Does the sogo account have a home directory?
 
 --
 roberto
 --
 users@sogo.nu
 https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


RE: [SOGo] New to sogo

2012-03-20 Thread Eduardo Martinez
In /var/log/messages I keep getting this error
Sogo httpd: nss-ldap: do_open: do_start_tls failed:stat=-1

-Original Message-
From: Georg Bretschneider [mailto:georg+mailinglists.s...@georgb.de] 
Sent: Tuesday, March 20, 2012 4:01 PM
To: users@sogo.nu
Subject: Re: [SOGo] New to sogo

What's the shell output?
Are you root while using su - sogo?
If not, use sudo su - sogo, but you're user must be allowed to execute 
commands as root. (cat /etc/sudoers or visudo as root)


Am 20.03.2012 21:52, schrieb Eduardo Martinez:
 Sogo does have a home directory...
 
 -Original Message-
 From: Eduardo Martinez [mailto:eduar...@diversecti.net]
 Sent: Tuesday, March 20, 2012 3:51 PM
 To: users@sogo.nu
 Subject: RE: [SOGo] New to sogo
 
 Yes sogo does have a home directory..
 
 -Original Message-
 From: Roberto [mailto:robe...@indomitux.com.ar]
 Sent: Tuesday, March 20, 2012 3:45 PM
 To: users@sogo.nu
 Subject: Re: [SOGo] New to sogo
 
 El 20/03/12 17:36, Eduardo Martinez escribió:
 The user does exist, is there a log file that I can look at to debug 
 further..
 
 Hi Eduardo,
 
 AFAIK it's an operating system misconfiguration, SOGo has nothing to do with 
 it.
 
 If you're root you should be able to su as sogo without password unless the 
 account is disabled or locked. Does the sogo account have a home directory?
 
 --
 roberto
 --
 users@sogo.nu
 https://inverse.ca/sogo/lists
--
users@sogo.nu
https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] New to sogo

2012-03-20 Thread Ludovic Marcotte

On 20/03/12 17:03, Eduardo Martinez wrote:

In /var/log/messages I keep getting this error
Sogo httpd: nss-ldap: do_open: do_start_tls failed:stat=-1

Stop top-posting.

Start by collecting meaningful information on your system, your 
configuration and the error messages you get and share that with us.


Sending 10 mails per hour will get you nowhere, except outside this list.

--
Ludovic Marcotte
+1.514.755.3630  ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

--
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] New in Sogo.

2012-01-24 Thread Cesar Sosa

Hello everybudy,

A start to try Sogo like a new proyect to this year.

Mi proyect actually are implement sogo in integration of ispconfig 3.0.

Sorry by mi english. If any one tray to do that please send me info.

Regards.

*Cesar Sosa*

--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] New to SOGo

2011-04-05 Thread Vik Tara
Hi,

In my view one of the best things about sogo is it's use of underlying
opensource components.

Administering many things is done directly there.


 For example, adding a new user.


In this case you would add one to ldap.

HTH


Vik
-- 
users@sogo.nu
https://inverse.ca/sogo/lists