Re: Squatter segfault on big mailbox

2020-01-02 Thread Gabriele Bulfon
Tried looking into the source of squatter and verbosing on a specific folder 
that always shows the problem.
Here is how it ends:
 
Processing index character 128, 9 total words, temp file size is 41
Processing index character 130, 8 total words, temp file size is 52
Processing index character 147, 2 total words, temp file size is 12
Processing index character 152, 2 total words, temp file size is 12
Processing index character 153, 5 total words, temp file size is 26
Processing index character 172, 10 total words, temp file size is 66
Processing index character 176, 72 total words, temp file size is 498
Processing index character 191, 417128205 total words, temp file size is 
1251444163
Closing index: Not enough space
 
I will look and change the source to give more info on the backtrace of the 
error, but maybe someone here alreay has any idea?
 
Gabriele
 
 
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Vladislav Kurz
Mark
info-cyrus
Data:
17 dicembre 2019 7.26.35 CET
Oggetto:
Re: Squatter segfault on big mailbox
 
Hello, we're having the same problem with Cyrus 2.5.11 on XStreamOS/illumos
Any idea how to fix this?
Same problem both on 32 bit large files build, and 64 bit.
Looks like the Debian issue has no solution.
Can't believe this has never been addressed.
 
Gabriele
 
 
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Vladislav Kurz
A: Mark
info-cyrus
Data: 11 ottobre 2017 9.37.21 CEST
Oggetto: Re: Squatter segfault on big mailbox
On 10/11/17 07:37, Mark wrote:
On 2017-10-10 16:05, Vladislav Kurz wrote:
Hello everyone,
we have recently migrated our mail server from cyrus 2.2 to 2.5 (both
debian packages).
We have a problem that squatter segfaults on some quite big mailboxes.
I had to add -i (--incremental) to at least index new mails. But users
cannot search in old mails (before migration). I used strace to find out
if it is some particular mail, but it parsed everything fine, and failed
when dealing with some of the many temporary files squat.
The problematic mailboxes have just inbox10 GB (and15 GB with all
subfolders) and2 emails in inbox.
Has anyone else hit similar problem and solved it somehow?
I'm not sure about fixes, but there are some reports of similar
problems.  Have a look at the thread with the subject "Cyrus 2.5.10 IMAP
search" from the beginning of June this year. 
Apparently the format of the squatter database changed between 2.4 and
2.5, and some people (at least) have seen a 10x increase in the size of
the squatter database for the same mailbox.  For systems that only allow
2GB mmap, this can be a problem.
I'm not sure if this increase in size is a bug or a feature.
Mark
Hello Mark,
Thanks for the hint about old discussion. Unfortunately, there was no
solution to this issue mentioned. I found out that this was already
reported to debian, I wonder whetrher the maintainer forwarded the bug
report upstream.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871921
This is on 64-bit Linux, so mmap should not be limited to 2 GB.
And I also have noticed the extreme increase in squat file sizes.
--
Best Regards
Vladislav Kurz

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Squatter segfault on big mailbox

2019-12-16 Thread Gabriele Bulfon
Hello, we're having the same problem with Cyrus 2.5.11 on XStreamOS/illumos
Any idea how to fix this?
Same problem both on 32 bit large files build, and 64 bit.
Looks like the Debian issue has no solution.
Can't believe this has never been addressed.
 
Gabriele
 
 
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Vladislav Kurz
A: Mark
info-cyrus
Data: 11 ottobre 2017 9.37.21 CEST
Oggetto: Re: Squatter segfault on big mailbox
On 10/11/17 07:37, Mark wrote:
On 2017-10-10 16:05, Vladislav Kurz wrote:
Hello everyone,
we have recently migrated our mail server from cyrus 2.2 to 2.5 (both
debian packages).
We have a problem that squatter segfaults on some quite big mailboxes.
I had to add -i (--incremental) to at least index new mails. But users
cannot search in old mails (before migration). I used strace to find out
if it is some particular mail, but it parsed everything fine, and failed
when dealing with some of the many temporary files squat.
The problematic mailboxes have just inbox10 GB (and15 GB with all
subfolders) and2 emails in inbox.
Has anyone else hit similar problem and solved it somehow?
I'm not sure about fixes, but there are some reports of similar
problems.  Have a look at the thread with the subject "Cyrus 2.5.10 IMAP
search" from the beginning of June this year. 
Apparently the format of the squatter database changed between 2.4 and
2.5, and some people (at least) have seen a 10x increase in the size of
the squatter database for the same mailbox.  For systems that only allow
2GB mmap, this can be a problem.
I'm not sure if this increase in size is a bug or a feature.
Mark
Hello Mark,
Thanks for the hint about old discussion. Unfortunately, there was no
solution to this issue mentioned. I found out that this was already
reported to debian, I wonder whetrher the maintainer forwarded the bug
report upstream.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871921
This is on 64-bit Linux, so mmap should not be limited to 2 GB.
And I also have noticed the extreme increase in squat file sizes.
--
Best Regards
Vladislav Kurz

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Cyrus 2.5.11 default domain on auth

2019-08-05 Thread Gabriele Bulfon
Thanks.
So this means that default domain is not treated as a virutal domain mailbox.
What I want to achieve is:
- if the user try to authenticate with
name.lastn...@domain.com
 , get into the specific user/name.lastn...@domain.com mailbox
- if the user try to authenticate with name.lastname, authenticate against a 
default domain defdomain.com, and if it's correct, get into the specific 
user/name.lastn...@defdomain.com
 
How can I do this?
 
Gabriele 
 
 
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Eugene V. Boontseff
A:
Gabriele Bulfon
Data:
3 agosto 2019 17.54.36 CEST
Oggetto:
Re: Cyrus 2.5.11 default domain on auth
On 31.07.2019 11:42, Gabriele Bulfon wrote:
 
If I try adding defaultdomain, what happens is that authentication works both 
with and without specifying domain, but then you're not on your normal inbox of
user/name.lastn...@domain.com
but somewhere else strange, a SELECT INBOX returns mailbox not found.
 
What's wrong? How can I achieve my goal?
Default domain mailboxes look like this: user/name.lastname
 
Thanks!
Gabriele
 
 
-- Eugene

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus 2.5.11 default domain on auth

2019-07-31 Thread Gabriele Bulfon
Hello,
 
we have Cyrus installations with virtual domains for years.
Users usually authenticate via imap as
name.lastn...@domain.com
 and get to their inboxes.
 
I have now a situation where I need to let users authenticate just with 
name.lastname and let the system fill in the default domain.
Here is our saslauthd.conf:
 
ldap_servers: ldap://localhost/
ldap_default_domain: sonicle.com
ldap_search_base: ou=People,dc=%2,dc=%1
ldap_auth_method: bind
ldap_filter: uid=%u
and this imapd.conf:
allowusermoves: 1
lmtp_downcase_rcpt: 1
configdirectory: /sonicle/var/imap
partition-default: /sonicle/var/spool/imap
sievedir: /sonicle/var/sieve
sieve_extensions: fileinto reject vacation vacation-seconds imapflags 
imap4flags notify envelope relational regex subaddress copy date
sieve_utf8fileinto: 1
sieve_vacation_min_response: 0
admins: sonicle
sasl_pwcheck_method: saslauthd
allowplaintext: yes
sasl_mech_list: plain
tls_ca_file: /sonicle/ssl/certs/acme/fullchain.pem
tls_cert_file: /sonicle/ssl/certs/acme/cert.pem
tls_key_file: /sonicle/ssl/certs/acme/key.pem
altnamespace: yes
virtdomains: userid
unixhierarchysep: 1
duplicatesuppression: 0
sendmail: /sonicle/sbin/sendmail
xlist-archive: Archives
xlist-drafts: Drafts
xlist-sent: Sent
xlist-spam: Spam
xlist-trash: Trash
If I try adding defaultdomain, what happens is that authentication works both 
with and without specifying domain, but then you're not on your normal inbox of 
user/name.lastn...@domain.com but somewhere else strange, a SELECT INBOX 
returns mailbox not found.
 
What's wrong? How can I achieve my goal?
 
Thanks!
Gabriele
 
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

archive and downgrade

2018-03-23 Thread Gabriele Bulfon
Hi,
for some reasons, I had to move old folders onto an older system for archiving.
The source system has cyrus 2.5.11, while the old archive one has 2.4.12.
If I reconstruct folders on the target system (reconstruct -rf user.mailbox) 
the folder cause error because of new cyrus.index version files contained in 
all the tree.
Is there any way I can run the 2.4.12 reconstruct and tell it to not consider 
any cyrus index and create it from scratch with its own version?
The archived folders have many subfolders.
Thanx for any idea
Gabriele
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: 2.5.11 shared seen

2018-03-09 Thread Gabriele Bulfon
Hello, upgraded from 2.4.12, and yes, everyone has ACLs with "all" flags, 
including 's'.
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
Da:
ellie timoney
A:
info-cyrus@lists.andrew.cmu.edu
Data:
9 marzo 2018 2.53.06 CET
Oggetto:
Re: 2.5.11 shared seen
Hi Gabriele,
 
Which version have you upgraded from?  (I'm not sure if this makes a 
difference, but it might)
 
The annotation you're using looks correct to me.  Do the users have the 's' ACL 
permission on the mailboxes?
 
Cheers,
 
ellie
 
On Wed, Mar 7, 2018, at 2:14 AM, Gabriele Bulfon wrote:
Hi,
 
I've noticed that on upgraded systems to 2.5.11 shared seen is no more working.
Our software used to set shared seen state via set annotation 
/vendor/cmu/cyrus-imapd/sharedseen true
 
Is this still ok or is there a different way to do it?
 
Thanks,
Gabriele
 
 
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
 
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

2.5.11 shared seen

2018-03-06 Thread Gabriele Bulfon
Hi,
I've noticed that on upgraded systems to 2.5.11 shared seen is no more working.
Our software used to set shared seen state via set annotation 
/vendor/cmu/cyrus-imapd/sharedseen true
Is this still ok or is there a different way to do it?
Thanks,
Gabriele
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: squat core dump

2017-12-09 Thread Gabriele Bulfon
It's XStreamOS/illumos , open solaris :) I will try with truss ;)
Thanks!
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Patrick Boutilier
A: info-cyrus@lists.andrew.cmu.edu
Data: 8 dicembre 2017 14.24.25 CET
Oggetto: Re: squat core dump
On 12/08/2017 08:52 AM, Gabriele Bulfon wrote:
Hi, I'm getting a core dump while squattering folders, always on the
same folder:
08045e68 libcyrus.so.0.0.0`charset_extractitem+0x218(8052d40, 804604c,
a6, fe9607c9, 439b, 0)
08045ea8 libcyrus.so.0.0.0`charset_extractfile+0x33(8052d40, 804604c,
a6, fe9607c9, 439b, 0)
08046008
libcyrus_imap.so.0.0.0`index_getsearchtext_single+0x60a(80779e8, a6,
8052d40, 804604c, 6c756166, 74)
08046158 squat_single+0x26b(0, 806a320, 1, 0, 0, 0)
080469a8 index_me+0x3b3(8076460, 1f, 0, 80469dc)
08047a08 main+0x39a(80479fc, fef726a8, 8047a34, 8052973, 5, 8047a40)
08047a34 _start+0x83(5, 8047b40, 8047b49, 8047b4c, 8047b4f, 8047b52)
any chance to discover the msg uid or id that's causing it?
What OS are you using? If Linux, strace should indicate what
file/message is being read when the segfault occurs.
Thanks
Gabriele
*Sonicle S.r.l. *: http://www.sonicle.com
*Music: *http://www.gabrielebulfon.com
*Quantum Mechanics : *http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

squat core dump

2017-12-08 Thread Gabriele Bulfon
Hi, I'm getting a core dump while squattering folders, always on the same 
folder:
08045e68 libcyrus.so.0.0.0`charset_extractitem+0x218(8052d40, 804604c, a6, 
fe9607c9, 439b, 0)
08045ea8 libcyrus.so.0.0.0`charset_extractfile+0x33(8052d40, 804604c, a6, 
fe9607c9, 439b, 0)
08046008 libcyrus_imap.so.0.0.0`index_getsearchtext_single+0x60a(80779e8, a6, 
8052d40, 804604c, 6c756166, 74)
08046158 squat_single+0x26b(0, 806a320, 1, 0, 0, 0)
080469a8 index_me+0x3b3(8076460, 1f, 0, 80469dc)
08047a08 main+0x39a(80479fc, fef726a8, 8047a34, 8052973, 5, 8047a40)
08047a34 _start+0x83(5, 8047b40, 8047b49, 8047b4c, 8047b4f, 8047b52)
any chance to discover the msg uid or id that's causing it?
Thanks
Gabriele
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Problems moving from 2.5.11 to 3.0.4

2017-09-25 Thread Gabriele Bulfon
Hi,
so I finally tried moving from 2.5.11 to 3.0.4, on our XStreamOS/illumos.
After upgrade, I ran reconstruct -V max.
I found problems with all the shared folders not keeping seen states for the 
receiving account, all unseen.
Also, just the root sharings where visible, but no subfolders could be 
retreived when opening them, with the same javamail code that works on 2.5.11.
I had to get back quickly to 2.5.11 and everything went fine again.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: update to 3.0.3 even more problematic than 3.0.2

2017-08-31 Thread Gabriele Bulfon
That's a very good news!! :)
Happy to know it was not a problem on my build systems ;)
I just happened to upgrade to 2.5.11, btw, so I will give it a try again soon ;)
Thanks!
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Bron Gondwana
A:
info-cyrus@lists.andrew.cmu.edu
Data:
31 agosto 2017 7.48.57 CEST
Oggetto:
Re: update to 3.0.3 even more problematic than 3.0.2
https://github.com/cyrusimap/cyrus-imapd/issues/2132
We're pretty sure we've found the cause.  Sorry about not being active in the 
thread earlier, it's been a busy couple of weeks at FastMail and we haven't had 
time to deal with everything!
Bron.
On Sat, 26 Aug 2017, at 23:57, Gabriele Bulfon wrote:
Tried a trick, but it it did not work...
Just used cyradm to :
cm "Other Users"
and then I have that folder really existing!
It works just the first time I try A01 LIST "" "Other Users"
But then it fails later...
looks like some kind of cache trying to work out this phantom folder
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
To:
Arnaldo Viegas de Lima
Cc:
info-cyrus@lists.andrew.cmu.edu
Date:
August 25, 2017 5:24:13 PM CEST
Subject:
Re: update to 3.0.3 even more problematic than 3.0.2
FYI, upgrading from 2.4.12 to 2.5.11, and then to 3.0.3 (so, after that 2.5.11 
converted the db files), I got a clean startup from the beginning, with no 
hassle on conversions.
Still, I have the problem with LIST "" "Other Users" returning nothing :(
As I mentioned, if I run LIST "" "Other Users/%" to get its subfolders, then 
previous commands return the correct answer all the times.
But I also found that if I select a folder (e.g. SELECT INBOX), then again that 
command returns nothing again.
Maybe this can suggest what's happening?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
To:
Arnaldo Viegas de Lima
Cc:
info-cyrus@lists.andrew.cmu.edu
Date:
August 25, 2017 4:54:20 PM CEST
Subject:
Re: update to 3.0.3 even more problematic than 3.0.2
That may be a good try :)
Anyway I tried building / upgrading to 2.5.11, it converted my files in twoskip 
with no problems, and the shared folders work fine.
Pity, I see it doesn't implement "THREAD=REFS" nor xapian ... :(
I will try this version a little, then will try upgrading from this to 3.0.x.
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
------
From: Arnaldo Viegas de Lima
To: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Date: August 25, 2017 4:32:17 PM CEST
Subject: Re: update to 3.0.3 even more problematic than 3.0.2
Have you tried 3.0.3 (or 3.0.2) on a clean system just to be sure that your 
compile/install is working?
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Bron Gondwana, CEO, FastMail Pty Ltd
br...@fastmailteam.com
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

upgrade to 2.5.11, reconstruct errors

2017-08-28 Thread Gabriele Bulfon
Hi,
I decided to upgrade to 2.5.11, adding the patches to implement THREAD=REFS, 
and it finally works, and it's much faster than 2.4.
I will give a try to 3.0.3 in a second step.
During reconstruct, I found this error in messages for many folders of many 
mailbox, typically inboxes, spam, trash folders:
Aug 25 17:06:55 www reconstruct[583]: [ID 816281 local6.error] 
sonicle.com!user.demo updating quota_annot_used: 0 =4
Is this a bad issue? Can I fix it after reconstruct? I never setup quota for 
the mailboxes.
Thanks,
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: update to 3.0.3 even more problematic than 3.0.2

2017-08-26 Thread Gabriele Bulfon
Tried a trick, but it it did not work...
Just used cyradm to :
cm "Other Users"
and then I have that folder really existing!
It works just the first time I try A01 LIST "" "Other Users"
But then it fails later...
looks like some kind of cache trying to work out this phantom folder
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
To:
Arnaldo Viegas de Lima
Cc:
info-cyrus@lists.andrew.cmu.edu
Date:
August 25, 2017 5:24:13 PM CEST
Subject:
Re: update to 3.0.3 even more problematic than 3.0.2
FYI, upgrading from 2.4.12 to 2.5.11, and then to 3.0.3 (so, after that 2.5.11 
converted the db files), I got a clean startup from the beginning, with no 
hassle on conversions.
Still, I have the problem with LIST "" "Other Users" returning nothing :(
As I mentioned, if I run LIST "" "Other Users/%" to get its subfolders, then 
previous commands return the correct answer all the times.
But I also found that if I select a folder (e.g. SELECT INBOX), then again that 
command returns nothing again.
Maybe this can suggest what's happening?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
To:
Arnaldo Viegas de Lima
Cc:
info-cyrus@lists.andrew.cmu.edu
Date:
August 25, 2017 4:54:20 PM CEST
Subject:
Re: update to 3.0.3 even more problematic than 3.0.2
That may be a good try :)
Anyway I tried building / upgrading to 2.5.11, it converted my files in twoskip 
with no problems, and the shared folders work fine.
Pity, I see it doesn't implement "THREAD=REFS" nor xapian ... :(
I will try this version a little, then will try upgrading from this to 3.0.x.
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
------
From: Arnaldo Viegas de Lima
To: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Date: August 25, 2017 4:32:17 PM CEST
Subject: Re: update to 3.0.3 even more problematic than 3.0.2
Have you tried 3.0.3 (or 3.0.2) on a clean system just to be sure that your 
compile/install is working?
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: update to 3.0.3 even more problematic than 3.0.2

2017-08-25 Thread Gabriele Bulfon
FYI, upgrading from 2.4.12 to 2.5.11, and then to 3.0.3 (so, after that 2.5.11 
converted the db files), I got a clean startup from the beginning, with no 
hassle on conversions.
Still, I have the problem with LIST "" "Other Users" returning nothing :(
As I mentioned, if I run LIST "" "Other Users/%" to get its subfolders, then 
previous commands return the correct answer all the times.
But I also found that if I select a folder (e.g. SELECT INBOX), then again that 
command returns nothing again.
Maybe this can suggest what's happening?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
To:
Arnaldo Viegas de Lima
Cc:
info-cyrus@lists.andrew.cmu.edu
Date:
August 25, 2017 4:54:20 PM CEST
Subject:
Re: update to 3.0.3 even more problematic than 3.0.2
That may be a good try :)
Anyway I tried building / upgrading to 2.5.11, it converted my files in twoskip 
with no problems, and the shared folders work fine.
Pity, I see it doesn't implement "THREAD=REFS" nor xapian ... :(
I will try this version a little, then will try upgrading from this to 3.0.x.
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
------
From: Arnaldo Viegas de Lima
To: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Date: August 25, 2017 4:32:17 PM CEST
Subject: Re: update to 3.0.3 even more problematic than 3.0.2
Have you tried 3.0.3 (or 3.0.2) on a clean system just to be sure that your 
compile/install is working?
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: update to 3.0.3 even more problematic than 3.0.2

2017-08-25 Thread Gabriele Bulfon
That may be a good try :)
Anyway I tried building / upgrading to 2.5.11, it converted my files in twoskip 
with no problems, and the shared folders work fine.
Pity, I see it doesn't implement "THREAD=REFS" nor xapian ... :(
I will try this version a little, then will try upgrading from this to 3.0.x.
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
From: Arnaldo Viegas de Lima
To: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Date: August 25, 2017 4:32:17 PM CEST
Subject: Re: update to 3.0.3 even more problematic than 3.0.2
Have you tried 3.0.3 (or 3.0.2) on a clean system just to be sure that your 
compile/install is working?

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

update to 3.0.3 even more problematic than 3.0.2

2017-08-25 Thread Gabriele Bulfon
I tried upgrading to 3.0.3, same build, same everything.
My original 2.4.12 db files are skiplist.
I know almost all db files now default to twoskip, if not specified in 
imapd.conf, and it's not specified.
This time, on first startup cyrus exited with strange errors about failing 
conversion.
Looks like it did not like the db files.
So I got the original ones back to be sure that 3.0.2 did not make anything on 
them.
Starting, cyrus runs, logs conversion.
BUT...if you stop and restart, it fails, trying to convert them again! As if it 
thinks they're still skipfiles, complaining of bad headers
I'm confused...
So I tried to put back the original and converted them by myself using 
cvt_cyrusdb to twoskip.
Now, starting cyrus, I got it exit again failing to read db files, saying they 
were not skiplist files (!?!) : isn't twoskip the default?
So I decided to give it a try, specifying them as twoskip in imapd.conf.
After staring, no complains about the files format, but it still exits with 
this:
Aug 25 15:15:38 www master[6400]: [ID 611808 local6.error] process type:START 
name:recover path:/sonicle/bin/ctl_cyrusdb age:0.000s pid:6408 exited, status 75
Aug 25 15:15:38 www master[6400]: [ID 702911 local6.crit] can't run startup
Aug 25 15:15:38 www master[6400]: [ID 649700 local6.notice] exiting
Exit status 75 is EX_TEMPFAIL, pity it's defined as many EC_ codes, so I can't 
say the real error (EC_CANTCREAT? EC_IOERR? EC_CONFIG? ...).
Any help?
Or I will have to consider upgrading "only" to the latest 2.5, hoping to not 
encounter any other issues there.
Also, what would I really miss on 2.5 that is on 3.x?
Thanks!!!
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: 2.4.12 vs 3.0.2 different protocol behaviour

2017-08-25 Thread Gabriele Bulfon
I will.
Another note.
I tried restarting from scratch, replicated my entire 2.4.12 system, checked 
that it worked as expected, updated packages to 3.0.2 and started cyrus as is 
with no upgrade : the problem is there just after updating the binaries, even 
before migrating the data to the new version.
I will absolutely try the 3.0.3, but I'm starting to feel unsafe upgrading 
:(
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Arnaldo Viegas de Lima
To:
Gabriele Bulfon
Cc:
Simon Matter
Merlin Hartley
info-cyrus@lists.andrew.cmu.edu
Date:
August 25, 2017 12:36:22 PM CEST
Subject:
Re: 2.4.12 vs 3.0.2 different protocol behaviour
This is 3.0.3 on Centos 7:
* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE XAPPLEPUSHSERVICE AUTH=DIGEST-MD5 
AUTH=CRAM-MD5 AUTH=PLAIN AUTH=LOGIN SASL-IR] xx.xx.x Cyrus IMAP 
3.0.3-Cyrus 3.0.3 server ready
. login x x
. OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA 
MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN 
MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SEARCH=FUZZY SORT SORT=MODSEQ 
SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES THREAD=REFS 
ANNOTATEMORE ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS 
LIST-MYRIGHTS LIST-METADATA WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE 
CREATE-SPECIAL-USE DIGEST=SHA1 X-REPLICATION URLAUTH URLAUTH=BINARY 
XAPPLEPUSHSERVICE LOGINDISABLED AUTH=DIGEST-MD5 AUTH=CRAM-MD5 AUTH=PLAIN 
AUTH=LOGIN COMPRESS=DEFLATE X-QUOTA=STORAGE X-QUOTA=MESSAGE 
X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] User logged in 
SESSIONID=
. LIST "" "Other Users"
* LIST (\Noselect \HasChildren) "/" "Other Users"
. OK Completed (0.000 secs 10 calls)
Maybe you should consider giving 3.0.3 a try?
Arnaldo.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: 2.4.12 vs 3.0.2 different protocol behaviour

2017-08-25 Thread Gabriele Bulfon
Can anyone check these commands against their 3.0.2 and see if they get the 
same results?
I've seen Thunderbird does not bother about it and correctly shows "Other 
Users" as "phantom", then shows the underlying tree.
If what I found is the intended result, the only way for me is to find some 
java trick to avoid the first "check" command in javamail and go through the 
list.
Anyway, that was not the behavior on 2.4.12 : first "check" command was always 
returning as the second "check".
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
To:
Simon Matter
Cc:
Merlin Hartley
info-cyrus@lists.andrew.cmu.edu
Date:
August 24, 2017 5:32:32 PM CEST
Subject:
Re: 2.4.12 vs 3.0.2 different protocol behaviour
:) I noticed I pasted them by mistake, it's a test user on a test server, but I 
changed its password anyway, already ;)
Thanks!
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
------
From: Simon Matter
To: Gabriele Bulfon
Cc: Merlin Hartley
info-cyrus@lists.andrew.cmu.edu
Date: August 24, 2017 5:26:24 PM CEST
Subject: Re: 2.4.12 vs 3.0.2 different protocol behaviour
I looked deeper into the problem.
Looks like the command:
. LIST "" "Other Users"
responds abnormally, until I run :
. LIST "" "Other Users/%"
that actually list the shared folders.
Here's a trace of the imap protocol:
* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN SASL-IR]
www Cyrus IMAP 3.0.2 server ready
. login gabriele.bul...@sonicle.com Nrdstg88!
I hope the login credentials are only for your test here?
Simon
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: 2.4.12 vs 3.0.2 different protocol behaviour

2017-08-24 Thread Gabriele Bulfon
:) I noticed I pasted them by mistake, it's a test user on a test server, but I 
changed its password anyway, already ;)
Thanks!
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
From: Simon Matter
To: Gabriele Bulfon
Cc: Merlin Hartley
info-cyrus@lists.andrew.cmu.edu
Date: August 24, 2017 5:26:24 PM CEST
Subject: Re: 2.4.12 vs 3.0.2 different protocol behaviour
I looked deeper into the problem.
Looks like the command:
. LIST "" "Other Users"
responds abnormally, until I run :
. LIST "" "Other Users/%"
that actually list the shared folders.
Here's a trace of the imap protocol:
* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN SASL-IR]
www Cyrus IMAP 3.0.2 server ready
. login gabriele.bul...@sonicle.com Nrdstg88!
I hope the login credentials are only for your test here?
Simon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: 2.4.12 vs 3.0.2 different protocol behaviour

2017-08-24 Thread Gabriele Bulfon
I looked deeper into the problem.
Looks like the command:
. LIST "" "Other Users"
responds abnormally, until I run :
. LIST "" "Other Users/%"
that actually list the shared folders.
Here's a trace of the imap protocol:
* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN SASL-IR] www 
Cyrus IMAP 3.0.2 server ready
. login gabriele.bul...@sonicle.com Nrdstg88!
. OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA 
MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN 
MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SEARCH=FUZZY SORT SORT=MODSEQ 
SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES THREAD=REFS 
ANNOTATEMORE ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS 
LIST-MYRIGHTS LIST-METADATA WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE 
CREATE-SPECIAL-USE DIGEST=SHA1 X-REPLICATION URLAUTH URLAUTH=BINARY 
LOGINDISABLED XCONVERSATIONS COMPRESS=DEFLATE X-QUOTA=STORAGE X-QUOTA=MESSAGE 
X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] User logged in 
SESSIONID=
. LIST "" "Other Users"
. OK Completed (0.010 secs)
. LIST "" "Other Users/%"
* LIST (\HasChildren) "/" "Other Users/amministrazione"
* LIST (\HasChildren) "/" "Other Users/dev-team"
* LIST (\HasChildren) "/" "Other Users/newsletter"
* LIST (\HasChildren) "/" "Other Users/pec"
* LIST (\HasChildren) "/" "Other Users/pectest"
* LIST (\HasChildren) "/" "Other Users/sonicle"
* LIST (\HasChildren) "/" "Other Users/spamadm"
* LIST (\HasChildren) "/" "Other Users/supporto"
. OK Completed (0.030 secs 162 calls)
. LIST "" "Other Users"
* LIST (\Noselect \HasChildren) "/" "Other Users"
. OK Completed (0.020 secs 162 calls)
As you can see the first check on presence of "Other Users" returns nothing.
While the last one, after listing subfolders, returns the correct answer.
JavaMail internally runs the check before looking for subfolders when trying to 
list a folder, and this fails only on "Other Users" because of the problem 
above.
Any idea what's happening?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
To:
Merlin Hartley
Cc:
info-cyrus@lists.andrew.cmu.edu
Date:
August 23, 2017 5:34:11 PM CEST
Subject:
Re: 2.4.12 vs 3.0.2 different protocol behaviour
In the reconstruct log, I have all the:
Repacked user/blabla/dra...@sonicle.com to version 13
for all the mailbox trees.
Obviously "Other Users" is not in reconstruct, as it is a virtual folder coming 
out of the incoming sharings.
ACLs looks same with cyradm for shared folders:
localhostlam user/soni...@sonicle.com
gabriele.bul...@sonicle.com lrswipkxtecda
soni...@sonicle.com lrswipkxtecda
localhostlam user/soni...@sonicle.com
gabriele.bul...@sonicle.com lrswipkxtecda
soni...@sonicle.com lrswipkxtecda
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Merlin Hartley
To:
Gabriele Bulfon
Cc:
info-cyrus@lists.andrew.cmu.edu
Date:
August 23, 2017 5:16:22 PM CEST
Subject:
Re: 2.4.12 vs 3.0.2 different protocol behaviour
Just a quickie: Are you sure these mailboxes migrated properly?
M
--
Merlin Hartley
Computer Officer
MRC Mitochondrial Biology Unit
Cambridge, CB2 0XY
United Kingdom
On 23 Aug 2017, at 15:55, Gabriele Bulfon
gbul...@sonicle.com
wrote:
I would add that both systems returns the same list of folders with :
. LIST "" %
including the "Other Users" :
* LIST (\HasNoChildren) "/" INBOX
* LIST (\HasChildren) "/" Archive
...
* LIST (\Noselect \HasChildren) "/" "Other Users"
but then the java code just tries a "folder.list()" on each of them, to see for 
subfolders.
Here the javamail code, before issuing the list command, tries the 
"checkExistance" using :
. LIST "" "Other Users"
and 3.0.2 returns an empty result.
Also trying by hand :
. LIST "Other Users" *
returns all the subtree on 2.4.12, while it's empty on 3.0.2.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
gbul...@sonicle.com
To:
info-cyrus@lists.andrew.cmu.edu
Date:
August 23, 2017 4:41:36 PM CEST
Subject:
2.4.12 vs 3.0.2 different protocol behaviour
Hi,
I found a problem while scanning the imap tree through our java web app, 
behaving differently from a 2.4.12 to a 3.0.2 upgraded.
Looking at the protocol I find these differences:
==2.4.12==
. LIST "" "Other Users"
* LIST (\Noselect \HasChildren) "/" &

Re: 2.4.12 vs 3.0.2 different protocol behaviour

2017-08-23 Thread Gabriele Bulfon
In the reconstruct log, I have all the:
Repacked user/blabla/dra...@sonicle.com to version 13
for all the mailbox trees.
Obviously "Other Users" is not in reconstruct, as it is a virtual folder coming 
out of the incoming sharings.
ACLs looks same with cyradm for shared folders:
localhostlam user/soni...@sonicle.com
gabriele.bul...@sonicle.com lrswipkxtecda
soni...@sonicle.com lrswipkxtecda
localhostlam user/soni...@sonicle.com
gabriele.bul...@sonicle.com lrswipkxtecda
soni...@sonicle.com lrswipkxtecda
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Merlin Hartley
To:
Gabriele Bulfon
Cc:
info-cyrus@lists.andrew.cmu.edu
Date:
August 23, 2017 5:16:22 PM CEST
Subject:
Re: 2.4.12 vs 3.0.2 different protocol behaviour
Just a quickie: Are you sure these mailboxes migrated properly?
M
--
Merlin Hartley
Computer Officer
MRC Mitochondrial Biology Unit
Cambridge, CB2 0XY
United Kingdom
On 23 Aug 2017, at 15:55, Gabriele Bulfon
gbul...@sonicle.com
wrote:
I would add that both systems returns the same list of folders with :
. LIST "" %
including the "Other Users" :
* LIST (\HasNoChildren) "/" INBOX
* LIST (\HasChildren) "/" Archive
...
* LIST (\Noselect \HasChildren) "/" "Other Users"
but then the java code just tries a "folder.list()" on each of them, to see for 
subfolders.
Here the javamail code, before issuing the list command, tries the 
"checkExistance" using :
. LIST "" "Other Users"
and 3.0.2 returns an empty result.
Also trying by hand :
. LIST "Other Users" *
returns all the subtree on 2.4.12, while it's empty on 3.0.2.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
gbul...@sonicle.com
To:
info-cyrus@lists.andrew.cmu.edu
Date:
August 23, 2017 4:41:36 PM CEST
Subject:
2.4.12 vs 3.0.2 different protocol behaviour
Hi,
I found a problem while scanning the imap tree through our java web app, 
behaving differently from a 2.4.12 to a 3.0.2 upgraded.
Looking at the protocol I find these differences:
==2.4.12==
. LIST "" "Other Users"
* LIST (\Noselect \HasChildren) "/" "Other Users"
. OK Completed (0.000 secs 192 calls)
==3.0.2==
. LIST "" "Other Users"
. OK Completed (0.000 secs)
So, what happens is that while the java code is checking existence of a folder 
in the tree, on 3.0.2 it receives an error.
Systems are same, replicated, but one upgraded to 3.0.2, so imap base and 
configuration is the same, but for the 3.0.2 trimmings.
Is there any setting for compatibility in this case?
Thanx!
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: 2.4.12 vs 3.0.2 different protocol behaviour

2017-08-23 Thread Gabriele Bulfon
How do I know? I just moved to 3.0.2 and reconstructed.
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Merlin Hartley
To:
Gabriele Bulfon
Cc:
info-cyrus@lists.andrew.cmu.edu
Date:
August 23, 2017 5:16:22 PM CEST
Subject:
Re: 2.4.12 vs 3.0.2 different protocol behaviour
Just a quickie: Are you sure these mailboxes migrated properly?
M
--
Merlin Hartley
Computer Officer
MRC Mitochondrial Biology Unit
Cambridge, CB2 0XY
United Kingdom
On 23 Aug 2017, at 15:55, Gabriele Bulfon
gbul...@sonicle.com
wrote:
I would add that both systems returns the same list of folders with :
. LIST "" %
including the "Other Users" :
* LIST (\HasNoChildren) "/" INBOX
* LIST (\HasChildren) "/" Archive
...
* LIST (\Noselect \HasChildren) "/" "Other Users"
but then the java code just tries a "folder.list()" on each of them, to see for 
subfolders.
Here the javamail code, before issuing the list command, tries the 
"checkExistance" using :
. LIST "" "Other Users"
and 3.0.2 returns an empty result.
Also trying by hand :
. LIST "Other Users" *
returns all the subtree on 2.4.12, while it's empty on 3.0.2.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
gbul...@sonicle.com
To:
info-cyrus@lists.andrew.cmu.edu
Date:
August 23, 2017 4:41:36 PM CEST
Subject:
2.4.12 vs 3.0.2 different protocol behaviour
Hi,
I found a problem while scanning the imap tree through our java web app, 
behaving differently from a 2.4.12 to a 3.0.2 upgraded.
Looking at the protocol I find these differences:
==2.4.12==
. LIST "" "Other Users"
* LIST (\Noselect \HasChildren) "/" "Other Users"
. OK Completed (0.000 secs 192 calls)
==3.0.2==
. LIST "" "Other Users"
. OK Completed (0.000 secs)
So, what happens is that while the java code is checking existence of a folder 
in the tree, on 3.0.2 it receives an error.
Systems are same, replicated, but one upgraded to 3.0.2, so imap base and 
configuration is the same, but for the 3.0.2 trimmings.
Is there any setting for compatibility in this case?
Thanx!
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: 2.4.12 vs 3.0.2 different protocol behaviour

2017-08-23 Thread Gabriele Bulfon
I would add that both systems returns the same list of folders with :
. LIST "" %
including the "Other Users" :
* LIST (\HasNoChildren) "/" INBOX
* LIST (\HasChildren) "/" Archive
...
* LIST (\Noselect \HasChildren) "/" "Other Users"
but then the java code just tries a "folder.list()" on each of them, to see for 
subfolders.
Here the javamail code, before issuing the list command, tries the 
"checkExistance" using :
. LIST "" "Other Users"
and 3.0.2 returns an empty result.
Also trying by hand :
. LIST "Other Users" *
returns all the subtree on 2.4.12, while it's empty on 3.0.2.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
From:
Gabriele Bulfon
To:
info-cyrus@lists.andrew.cmu.edu
Date:
August 23, 2017 4:41:36 PM CEST
Subject:
2.4.12 vs 3.0.2 different protocol behaviour
Hi,
I found a problem while scanning the imap tree through our java web app, 
behaving differently from a 2.4.12 to a 3.0.2 upgraded.
Looking at the protocol I find these differences:
==2.4.12==
. LIST "" "Other Users"
* LIST (\Noselect \HasChildren) "/" "Other Users"
. OK Completed (0.000 secs 192 calls)
==3.0.2==
. LIST "" "Other Users"
. OK Completed (0.000 secs)
So, what happens is that while the java code is checking existence of a folder 
in the tree, on 3.0.2 it receives an error.
Systems are same, replicated, but one upgraded to 3.0.2, so imap base and 
configuration is the same, but for the 3.0.2 trimmings.
Is there any setting for compatibility in this case?
Thanx!
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

2.4.12 vs 3.0.2 different protocol behaviour

2017-08-23 Thread Gabriele Bulfon
Hi,
I found a problem while scanning the imap tree through our java web app, 
behaving differently from a 2.4.12 to a 3.0.2 upgraded.
Looking at the protocol I find these differences:
==2.4.12==
. LIST "" "Other Users"
* LIST (\Noselect \HasChildren) "/" "Other Users"
. OK Completed (0.000 secs 192 calls)
==3.0.2==
. LIST "" "Other Users"
. OK Completed (0.000 secs)
So, what happens is that while the java code is checking existence of a folder 
in the tree, on 3.0.2 it receives an error.
Systems are same, replicated, but one upgraded to 3.0.2, so imap base and 
configuration is the same, but for the 3.0.2 trimmings.
Is there any setting for compatibility in this case?
Thanx!
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Squatter now running with Xapian on XStreamOS!

2017-08-08 Thread Gabriele Bulfon
I found the reason why squatter was not running : because I built with 
conversation support, squatter complained about these being a requirement but 
not enabled in imapd.conf.
Enabled on impad.conf, restarted cyrus, squatter started full indexing!
And I also found my xapian config produced a lot of stuff under 
".../cyrus/search..."!
Will I have full indexing of attachments (doc, pdf etc) by default too?
Or should I do something specific?
Thanks!
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Solved! 3.0.2 on XStreamOS!

2017-08-04 Thread Gabriele Bulfon
I solved the info issue : I was not correctly installing the new cyradm perl 
libs, so I was using the old 2.4.12 ones...
Once I could install them on the right location, I got cyradm behave correctly.
I still don't understand how to use squatter: manually it's always doing 
nothing.
What should I do to run squatter on all my mailboxes?
I used to run a script cycling my virtdomains, setting all mailboxes with the 
squat annotation on and run "squatter -v -i -s -a" on 2.4.12.
Any combination on 3.0.2 always returns doing nothing.
Also, I built and installed xapian, and built cyrus imap with xapian support 
linked in.
I configured imapd.conf as suggested, cyrus.conf with the squatter starter.
How do I know what's doing?
How do I force a reindex of everything on xapian?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A: info-cyrus@lists.andrew.cmu.edu
Data: 4 agosto 2017 9.47.45 CEST
Oggetto: Re: Solved! 3.0.2 on XStreamOS!
Good morning Gabriele,
Zitat von Gabriele Bulfon
:
I have found another strange issue.
With cyradm, I can "lm" all mailboxes correctly.
Once I issue one "info" command, "lm" stop functioning again, and I
have to logout and run cyradm again.
I also cannot run squatter manually.
I used to run "squatter -v -i -s -a" on 2.4.12, after having set all
accounts with :
mboxcfg "user/%$domain" "/vendor/cmu/cyrus-imapd/squat" "true"
I tried various combinations ("-v -i" , "-v -i -r", "-v -i -a") but
it always does nothing.
Ok... with --disabled-pcre both commands lm and info are working good.
Maybe you give it a try with disabling it, too?
--
Liebe Gruesse, with best regards
Stephan Lauffer
Pedagogical University Freiburg - Germany
http://www.ph-freiburg.de/zik/
Fon/ Fax: +49 761 682 -559/ -486

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Solved! 3.0.2 on XStreamOS!

2017-08-04 Thread Gabriele Bulfon
So, how can I dig more about the info command saying nothing?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Ken Murchison
A: info-cyrus@lists.andrew.cmu.edu
Data: 4 agosto 2017 15.14.10 CEST
Oggetto: Re: Solved! 3.0.2 on XStreamOS!
Yes.
On 08/04/2017 09:13 AM, Patrick Goetz wrote:
So, this will be fixed in 3.0.3?
On 08/03/2017 01:27 PM, Ken Murchison wrote:
We shouldn't be requiring PCRE in order for LIST to work. This bug
is fixed in Git:
https://github.com/cyrusimap/cyrus-imapd/commit/fa6ff9a9a22ebdd2acdb0a402ba4334725be8194
On 08/03/2017 11:25 AM, Gabriele Bulfon wrote:
Hi,
I found the reason! :)
If build does not find "libpcre", configure just says "libpcre : no"
, but then fails any list!
I could let it see my libpcre and have "libpcre : yes" : now it
works! :)
I will let you know my upgrade now.
Gabriele
*Sonicle S.r.l. *: http://www.sonicle.com
*Music: *http://www.gabrielebulfon.com
*Quantum Mechanics : *http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A: info-cyrus@lists.andrew.cmu.edu
Data: 3 agosto 2017 15.38.24 CEST
Oggetto: Re: any working cyrus-imapd-3.0.2?
.oO(if you read my lines:)
In my setup there is no virtual domains support, see the output of
"cyr_info conf" from my last post to the devel list (and yes,
virtdomains is off by default).
The problem does not occur on any distribution or cyrus-imapd
build.
But on some it occurs(!)
Ok is cyrus-imapd 2.4.x, 2.5.10, 2.5.11 on sles and openSUSE since
"ever" till openSUSE-42.3 (few days old).
Not Ok is cyrus-imapd 3.0.1 and 3.0.2 on openSUSE-42.2 and
openSUSE-42.3 (no further suse tests)
Not OK is it on the XStramOS build of Gabriele, too of course.
OK is cyrus-imapd 3.0.2 on fedora 24, 25 and 26 (no more tests from
me). My specs based on the latest one of fedora 26. I just excluded
xapian, jmap and the cassadena test suite.
My specs for the suse and fedora builds are not 100% the same... I
try
to get them closer.
My guess: Maybe an older/missing lib or a "secret"
combination/setup
in the specs or configure parameter.
Zitat von Ken Murchison
:
This might be a virtual domains issue. I will have to ask one of
the other devs if something changed in that regard.
On 08/03/2017 08:37 AM, Gabriele Bulfon wrote:
All of my mailboxes, here's a piece of the output:

sonicle.com!user.gabriele^bulfon 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo.Pluto
0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo.Pluto 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archivio 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda

*Sonicle S.r.l. *: http://www.sonicle.com
*Music: *http://www.gabrielebulfon.com
*Quantum Mechanics : *http://www.cdbaby.com/cd/gabrielebulfon
--------
*Da:* Ken Murchison
*A:* Gabriele Bulfon
info-cyrus@lists.andrew.cmu.edu
*Data:* 3 agosto 2017 14.06.21 CEST
*Oggetto:* Re: any working cyrus-imapd-3.0.2?
What does 'ctl_mboxlist -d' show you?
On 08/03/2017 08:02 AM, Gabriele Bulfon wrote:
Obviously yes.
The new defaults are my standard since years, and are
explicitly stated in the imapd.conf :
allowusermoves: 1
lmtp_downcase_rcpt: 1
configdirectory: /sonicle/var/imap
partition-default: /sonicle/var/spool/imap
sievedir: /sonicle/var/sieve
sieve_extensions: fileinto reject vacation imapflags notify
envelope body relational regex 

Re: Solved! 3.0.2 on XStreamOS!

2017-08-04 Thread Gabriele Bulfon
Hi,
I tried rebuilding with "--disable-pcre" but I got again both lm and info 
problems.
Enabling with correct linkings to libpcre makes "lm" works and imap list 
folders, but info does not.
I will check what info is doing to see if I can detect the reason.
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A: info-cyrus@lists.andrew.cmu.edu
Data: 4 agosto 2017 9.47.45 CEST
Oggetto: Re: Solved! 3.0.2 on XStreamOS!
Good morning Gabriele,
Zitat von Gabriele Bulfon
:
I have found another strange issue.
With cyradm, I can "lm" all mailboxes correctly.
Once I issue one "info" command, "lm" stop functioning again, and I
have to logout and run cyradm again.
I also cannot run squatter manually.
I used to run "squatter -v -i -s -a" on 2.4.12, after having set all
accounts with :
mboxcfg "user/%$domain" "/vendor/cmu/cyrus-imapd/squat" "true"
I tried various combinations ("-v -i" , "-v -i -r", "-v -i -a") but
it always does nothing.
Ok... with --disabled-pcre both commands lm and info are working good.
Maybe you give it a try with disabling it, too?
--
Liebe Gruesse, with best regards
Stephan Lauffer
Pedagogical University Freiburg - Germany
http://www.ph-freiburg.de/zik/
Fon/ Fax: +49 761 682 -559/ -486

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Solved! 3.0.2 on XStreamOS!

2017-08-04 Thread Gabriele Bulfon
I have found another strange issue.
With cyradm, I can "lm" all mailboxes correctly.
Once I issue one "info" command, "lm" stop functioning again, and I have to 
logout and run cyradm again.
I also cannot run squatter manually.
I used to run "squatter -v -i -s -a" on 2.4.12, after having set all accounts 
with :
mboxcfg "user/%$domain" "/vendor/cmu/cyrus-imapd/squat" "true"
I tried various combinations ("-v -i" , "-v -i -r", "-v -i -a") but it always 
does nothing.
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
ellie timoney
A:
info-cyrus@lists.andrew.cmu.edu
Data:
4 agosto 2017 3.07.09 CEST
Oggetto:
Re: Solved! 3.0.2 on XStreamOS!
I've cherry-picked this commit to the 3.0 branch, so it will be included in the 
next 3.0 release
On Fri, Aug 4, 2017, at 04:27 AM, Ken Murchison wrote:
We shouldn't be requiring PCRE in order for LIST to work.  This bug is fixed in 
Git:
https://github.com/cyrusimap/cyrus-imapd/commit/fa6ff9a9a22ebdd2acdb0a402ba4334725be8194
On 08/03/2017 11:25 AM, Gabriele Bulfon wrote:
Hi,
I found the reason! :)
If build does not find "libpcre", configure just says "libpcre : no" , but then 
fails any list!
I could let it see my libpcre and have "libpcre : yes" : now it works! :)
I will let you know my upgrade now.
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A:
info-cyrus@lists.andrew.cmu.edu
Data: 3 agosto 2017 15.38.24 CEST
Oggetto: Re: any working cyrus-imapd-3.0.2?
.oO(if you read my lines:)
In my setup there is no virtual domains support, see the output of
"cyr_info conf" from my last post to the devel list (and yes,
virtdomains is off by default).
The problem does not occur on any distribution or cyrus-imapd build.
But on some it occurs(!)
Ok is cyrus-imapd 2.4.x, 2.5.10, 2.5.11 on sles and openSUSE since
"ever" till openSUSE-42.3 (few days old).
Not Ok is cyrus-imapd 3.0.1 and 3.0.2 on openSUSE-42.2 and
openSUSE-42.3 (no further suse tests)
Not OK is it on the XStramOS build of Gabriele, too of course.
OK is cyrus-imapd 3.0.2 on fedora 24, 25 and 26 (no more tests from
me). My specs based on the latest one of fedora 26. I just excluded
xapian, jmap and the cassadena test suite.
My specs for the suse and fedora builds are not 100% the same... I try
to get them closer.
My guess: Maybe an older/missing lib or a "secret" combination/setup
in the specs or configure parameter.
Zitat von Ken Murchison
:
This might be a virtual domains issue. I will have to ask one of
the other devs if something changed in that regard.
On 08/03/2017 08:37 AM, Gabriele Bulfon wrote:
All of my mailboxes, here's a piece of the output:

sonicle.com!user.gabriele^bulfon 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3 0
default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo 0
default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo.Pluto 0
default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo.Pluto 0
default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archivio 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda

*Sonicle S.r.l. *:
http://www.sonicle.com
*Music: *
http://www.gabrielebulfon.com
*Quantum Mechanics : *
http://www.cdbaby.com/cd/gabrielebulfon

*Da:* Ken Murchison
*A:* Gabriele Bulfon
info-cyrus@lists.andrew.cmu.edu
*Data:* 3 agosto 2017 14.06.21 CEST
*Oggetto:* Re: any working cyr

Re: Solved! 3.0.2 on XStreamOS!

2017-08-03 Thread Gabriele Bulfon
First impressions : amazing!
- I upgraded 23G with "reconstruct -V max" in some minutes.
- Running our collaboration webapp against 3.0.2 is much much faster, 
especially with thread=refs working!
Should I expect that enabling Xapian I will get even better results on search?
Do I really need to build the patched version? No way to patch public sources?
Thanks!
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Stephan Lauffer
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 17.25.20 CEST
Oggetto:
Solved! 3.0.2 on XStreamOS!
Hi,
I found the reason! :)
If build does not find "libpcre", configure just says "libpcre : no" , but then 
fails any list!
I could let it see my libpcre and have "libpcre : yes" : now it works! :)
I will let you know my upgrade now.
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A: info-cyrus@lists.andrew.cmu.edu
Data: 3 agosto 2017 15.38.24 CEST
Oggetto: Re: any working cyrus-imapd-3.0.2?
.oO(if you read my lines:)
In my setup there is no virtual domains support, see the output of
"cyr_info conf" from my last post to the devel list (and yes,
virtdomains is off by default).
The problem does not occur on any distribution or cyrus-imapd build.
But on some it occurs(!)
Ok is cyrus-imapd 2.4.x, 2.5.10, 2.5.11 on sles and openSUSE since
"ever" till openSUSE-42.3 (few days old).
Not Ok is cyrus-imapd 3.0.1 and 3.0.2 on openSUSE-42.2 and
openSUSE-42.3 (no further suse tests)
Not OK is it on the XStramOS build of Gabriele, too of course.
OK is cyrus-imapd 3.0.2 on fedora 24, 25 and 26 (no more tests from
me). My specs based on the latest one of fedora 26. I just excluded
xapian, jmap and the cassadena test suite.
My specs for the suse and fedora builds are not 100% the same... I try
to get them closer.
My guess: Maybe an older/missing lib or a "secret" combination/setup
in the specs or configure parameter.
Zitat von Ken Murchison
:
This might be a virtual domains issue. I will have to ask one of
the other devs if something changed in that regard.
On 08/03/2017 08:37 AM, Gabriele Bulfon wrote:
All of my mailboxes, here's a piece of the output:

sonicle.com!user.gabriele^bulfon 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo.Pluto 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo.Pluto 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archivio 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda

*Sonicle S.r.l. *: http://www.sonicle.com
*Music: *http://www.gabrielebulfon.com
*Quantum Mechanics : *http://www.cdbaby.com/cd/gabrielebulfon
----
*Da:* Ken Murchison
*A:* Gabriele Bulfon
info-cyrus@lists.andrew.cmu.edu
*Data:* 3 agosto 2017 14.06.21 CEST
*Oggetto:* Re: any working cyrus-imapd-3.0.2?
What does 'ctl_mboxlist -d' show you?
On 08/03/2017 08:02 AM, Gabriele Bulfon wrote:
Obviously yes.
The new defaults are my standard since years, and are
explicitly stated in the imapd.conf :
allowusermoves: 1
lmtp_downcase_rcpt: 1
configdirectory: /sonicle/var/imap
partition-default: /sonicle/var/spool/imap
sievedir: /sonicle/var/sieve
sieve_extensions: fileinto reject vacation imapflags notify
envelope body relational regex subaddress copy
admins: admin
sasl_pwcheck_method: saslauthd
allowplaintext: yes
sasl_mech_list: plain
tls

Solved! 3.0.2 on XStreamOS!

2017-08-03 Thread Gabriele Bulfon
Hi,
I found the reason! :)
If build does not find "libpcre", configure just says "libpcre : no" , but then 
fails any list!
I could let it see my libpcre and have "libpcre : yes" : now it works! :)
I will let you know my upgrade now.
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A: info-cyrus@lists.andrew.cmu.edu
Data: 3 agosto 2017 15.38.24 CEST
Oggetto: Re: any working cyrus-imapd-3.0.2?
.oO(if you read my lines:)
In my setup there is no virtual domains support, see the output of
"cyr_info conf" from my last post to the devel list (and yes,
virtdomains is off by default).
The problem does not occur on any distribution or cyrus-imapd build.
But on some it occurs(!)
Ok is cyrus-imapd 2.4.x, 2.5.10, 2.5.11 on sles and openSUSE since
"ever" till openSUSE-42.3 (few days old).
Not Ok is cyrus-imapd 3.0.1 and 3.0.2 on openSUSE-42.2 and
openSUSE-42.3 (no further suse tests)
Not OK is it on the XStramOS build of Gabriele, too of course.
OK is cyrus-imapd 3.0.2 on fedora 24, 25 and 26 (no more tests from
me). My specs based on the latest one of fedora 26. I just excluded
xapian, jmap and the cassadena test suite.
My specs for the suse and fedora builds are not 100% the same... I try
to get them closer.
My guess: Maybe an older/missing lib or a "secret" combination/setup
in the specs or configure parameter.
Zitat von Ken Murchison
:
This might be a virtual domains issue. I will have to ask one of
the other devs if something changed in that regard.
On 08/03/2017 08:37 AM, Gabriele Bulfon wrote:
All of my mailboxes, here's a piece of the output:

sonicle.com!user.gabriele^bulfon 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo.Pluto 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo.Pluto 0
default gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archivio 0 default
gabriele.bul...@sonicle.com lrswipkxtecda
gabriele.pr...@sonicle.com lrswipkxtecda

*Sonicle S.r.l. *: http://www.sonicle.com
*Music: *http://www.gabrielebulfon.com
*Quantum Mechanics : *http://www.cdbaby.com/cd/gabrielebulfon
--------
*Da:* Ken Murchison
*A:* Gabriele Bulfon
info-cyrus@lists.andrew.cmu.edu
*Data:* 3 agosto 2017 14.06.21 CEST
*Oggetto:* Re: any working cyrus-imapd-3.0.2?
What does 'ctl_mboxlist -d' show you?
On 08/03/2017 08:02 AM, Gabriele Bulfon wrote:
Obviously yes.
The new defaults are my standard since years, and are
explicitly stated in the imapd.conf :
allowusermoves: 1
lmtp_downcase_rcpt: 1
configdirectory: /sonicle/var/imap
partition-default: /sonicle/var/spool/imap
sievedir: /sonicle/var/sieve
sieve_extensions: fileinto reject vacation imapflags notify
envelope body relational regex subaddress copy
admins: admin
sasl_pwcheck_method: saslauthd
allowplaintext: yes
sasl_mech_list: plain
tls_client_ca_file: /sonicle/ssl/certs/acme/fullchain.pem
tls_server_cert: /sonicle/ssl/certs/acme/cert.pem
tls_server_key: /sonicle/ssl/certs/acme/key.pem
altnamespace: yes
virtdomains: userid
unixhierarchysep: 1
duplicatesuppression: 0
sendmail: /sonicle/sbin/sendmail
sieve_utf8fileinto: 1
xlist-archive: Archives
xlist-drafts: Drafts
xlist-sent: Sent
xlist-spam: Spam
xlist-trash: Trash
Also, everything works fine when selecting a folder and
fetching data.
Just listing (and info on cyradm) is totally silent.
How can I have imapd log more debugging on what's happening
during A1 LIST "" "*"?
I tried turning on "debug: 1" in i

Re: any working cyrus-imapd-3.0.2?

2017-08-03 Thread Gabriele Bulfon
Looks like Stephan has the same problem being not in a virtual domain, though...
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
Gabriele Bulfon
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 14.47.43 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
This might be a virtual domains issue.  I will have to ask one of the other 
devs if something changed in that regard.
On 08/03/2017 08:37 AM, Gabriele Bulfon wrote:
All of my mailboxes, here's a piece of the output:

sonicle.com!user.gabriele^bulfon 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo.Pluto 0 
default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo.Pluto 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archivio 0 default
gabriele.bul...@sonicle.com
lrswipkxtecda
gabriele.pr...@sonicle.com
lrswipkxtecda

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
Gabriele Bulfon
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 14.06.21 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
What does 'ctl_mboxlist -d' show you?
On 08/03/2017 08:02 AM, Gabriele Bulfon wrote:
Obviously yes.
The new defaults are my standard since years, and are explicitly stated in the 
imapd.conf :
allowusermoves: 1
lmtp_downcase_rcpt: 1
configdirectory: /sonicle/var/imap
partition-default: /sonicle/var/spool/imap
sievedir: /sonicle/var/sieve
sieve_extensions: fileinto reject vacation imapflags notify envelope body 
relational regex subaddress copy
admins: admin
sasl_pwcheck_method: saslauthd
allowplaintext: yes
sasl_mech_list: plain
tls_client_ca_file: /sonicle/ssl/certs/acme/fullchain.pem
tls_server_cert: /sonicle/ssl/certs/acme/cert.pem
tls_server_key: /sonicle/ssl/certs/acme/key.pem
altnamespace: yes
virtdomains: userid
unixhierarchysep: 1
duplicatesuppression: 0
sendmail: /sonicle/sbin/sendmail
sieve_utf8fileinto: 1
xlist-archive: Archives
xlist-drafts: Drafts
xlist-sent: Sent
xlist-spam: Spam
xlist-trash: Trash
Also, everything works fine when selecting a folder and fetching data.
Just listing (and info on cyradm) is totally silent.
How can I have imapd log more debugging on what's happening during A1 LIST "" 
"*"?
I tried turning on "debug: 1" in imapd.conf but found very little output.
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 12.56.51 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
Have you checked you values of unixhierarchysep and altnamespace per the 
documentation?  The defaults have changed.  You may have to turn both options 
off in imapd.conf
On 08/03/2017 05:11 AM, Gabriele Bulfon wrote:
Yes, and info doesn't work on a direct mailbox:
localhostinfo
user/gabriele.bul...@sonicle.com
Mailbox does not exist
But acls were listed!
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A:
info-cyrus@lists.andrew.cmu.edu
Data: 3 agosto 2017 11.01.41 CEST
Oggetto: Re: any working cyrus-imapd-3.0.2?
Hi!
It seems as if you have the same problem as I have. The only
difference here: I did not xfer/convert old mailboxes, I was starting
with a new installation.
Check "info", it should fail, too.
sam. lam, dm and cm are working for example.
Zitat von Gabriele Bulfon
:
I tried using ctl_m

Re: any working cyrus-imapd-3.0.2?

2017-08-03 Thread Gabriele Bulfon
All of my mailboxes, here's a piece of the output:

sonicle.com!user.gabriele^bulfon 0 default gabriele.bul...@sonicle.com 
lrswipkxtecda gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive 0 default gabriele.bul...@sonicle.com 
lrswipkxtecda gabriele.pr...@sonicle.com lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017 0 default 
gabriele.bul...@sonicle.com lrswipkxtecda gabriele.pr...@sonicle.com 
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07 0 default 
gabriele.bul...@sonicle.com lrswipkxtecda gabriele.pr...@sonicle.com 
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3 0 default 
gabriele.bul...@sonicle.com lrswipkxtecda gabriele.pr...@sonicle.com 
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo 0 default 
gabriele.bul...@sonicle.com lrswipkxtecda gabriele.pr...@sonicle.com 
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.2017.2017-07.Test3.Pippo.Pluto 0 
default gabriele.bul...@sonicle.com lrswipkxtecda gabriele.pr...@sonicle.com 
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3 0 default 
gabriele.bul...@sonicle.com lrswipkxtecda gabriele.pr...@sonicle.com 
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo 0 default 
gabriele.bul...@sonicle.com lrswipkxtecda gabriele.pr...@sonicle.com 
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archive.Test3.Pippo.Pluto 0 default 
gabriele.bul...@sonicle.com lrswipkxtecda gabriele.pr...@sonicle.com 
lrswipkxtecda
sonicle.com!user.gabriele^bulfon.Archivio 0 default gabriele.bul...@sonicle.com 
lrswipkxtecda gabriele.pr...@sonicle.com lrswipkxtecda

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
Gabriele Bulfon
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 14.06.21 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
What does 'ctl_mboxlist -d' show you?
On 08/03/2017 08:02 AM, Gabriele Bulfon wrote:
Obviously yes.
The new defaults are my standard since years, and are explicitly stated in the 
imapd.conf :
allowusermoves: 1
lmtp_downcase_rcpt: 1
configdirectory: /sonicle/var/imap
partition-default: /sonicle/var/spool/imap
sievedir: /sonicle/var/sieve
sieve_extensions: fileinto reject vacation imapflags notify envelope body 
relational regex subaddress copy
admins: admin
sasl_pwcheck_method: saslauthd
allowplaintext: yes
sasl_mech_list: plain
tls_client_ca_file: /sonicle/ssl/certs/acme/fullchain.pem
tls_server_cert: /sonicle/ssl/certs/acme/cert.pem
tls_server_key: /sonicle/ssl/certs/acme/key.pem
altnamespace: yes
virtdomains: userid
unixhierarchysep: 1
duplicatesuppression: 0
sendmail: /sonicle/sbin/sendmail
sieve_utf8fileinto: 1
xlist-archive: Archives
xlist-drafts: Drafts
xlist-sent: Sent
xlist-spam: Spam
xlist-trash: Trash
Also, everything works fine when selecting a folder and fetching data.
Just listing (and info on cyradm) is totally silent.
How can I have imapd log more debugging on what's happening during A1 LIST "" 
"*"?
I tried turning on "debug: 1" in imapd.conf but found very little output.
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 12.56.51 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
Have you checked you values of unixhierarchysep and altnamespace per the 
documentation?  The defaults have changed.  You may have to turn both options 
off in imapd.conf
On 08/03/2017 05:11 AM, Gabriele Bulfon wrote:
Yes, and info doesn't work on a direct mailbox:
localhostinfo
user/gabriele.bul...@sonicle.com
Mailbox does not exist
But acls were listed!
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A:
info-cyrus@lists.andrew.cmu.edu
Data: 3 agosto 2017 11.01.41 CEST
Oggetto: Re: any working cyrus-imapd-3.0.2?
Hi!
It seems as if you have the same problem as I have. The only
difference here: I did not xfer/convert old mailboxes, I was starting
with a new installation.
Check "info", it should fail, too.
sam. lam, dm and cm are working for example.
Zitat von Gabriele Bulfon
:
I tried using ctl_mboxlist -d , and I have a correct output of my
mailboxes, listed in the internal cyrus format, e.g. :
sonicle.com!user.test^gabry 0 default gbulfon
lrswipkxtecda1 cyrus lrswipkxtecda sonicle lrswipkxtecda
test.ga...@sonicle.com
lrswipkxtecda
using "." separator instead of "/" (unixhierarchysep: 1) and "^"
instead of "."
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:

Re: any working cyrus-imapd-3.0.2?

2017-08-03 Thread Gabriele Bulfon
Obviously yes.
The new defaults are my standard since years, and are explicitly stated in the 
imapd.conf :
allowusermoves: 1
lmtp_downcase_rcpt: 1
configdirectory: /sonicle/var/imap
partition-default: /sonicle/var/spool/imap
sievedir: /sonicle/var/sieve
sieve_extensions: fileinto reject vacation imapflags notify envelope body 
relational regex subaddress copy
admins: admin
sasl_pwcheck_method: saslauthd
allowplaintext: yes
sasl_mech_list: plain
tls_client_ca_file: /sonicle/ssl/certs/acme/fullchain.pem
tls_server_cert: /sonicle/ssl/certs/acme/cert.pem
tls_server_key: /sonicle/ssl/certs/acme/key.pem
altnamespace: yes
virtdomains: userid
unixhierarchysep: 1
duplicatesuppression: 0
sendmail: /sonicle/sbin/sendmail
sieve_utf8fileinto: 1
xlist-archive: Archives
xlist-drafts: Drafts
xlist-sent: Sent
xlist-spam: Spam
xlist-trash: Trash
Also, everything works fine when selecting a folder and fetching data.
Just listing (and info on cyradm) is totally silent.
How can I have imapd log more debugging on what's happening during A1 LIST "" 
"*"?
I tried turning on "debug: 1" in imapd.conf but found very little output.
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 12.56.51 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
Have you checked you values of unixhierarchysep and altnamespace per the 
documentation?  The defaults have changed.  You may have to turn both options 
off in imapd.conf
On 08/03/2017 05:11 AM, Gabriele Bulfon wrote:
Yes, and info doesn't work on a direct mailbox:
localhostinfo
user/gabriele.bul...@sonicle.com
Mailbox does not exist
But acls were listed!
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A:
info-cyrus@lists.andrew.cmu.edu
Data: 3 agosto 2017 11.01.41 CEST
Oggetto: Re: any working cyrus-imapd-3.0.2?
Hi!
It seems as if you have the same problem as I have. The only
difference here: I did not xfer/convert old mailboxes, I was starting
with a new installation.
Check "info", it should fail, too.
sam. lam, dm and cm are working for example.
Zitat von Gabriele Bulfon
:
I tried using ctl_mboxlist -d , and I have a correct output of my
mailboxes, listed in the internal cyrus format, e.g. :
sonicle.com!user.test^gabry 0 default gbulfon
lrswipkxtecda1 cyrus lrswipkxtecda sonicle lrswipkxtecda
test.ga...@sonicle.com
lrswipkxtecda
using "." separator instead of "/" (unixhierarchysep: 1) and "^"
instead of "."
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Ken Murchison
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 9.51.21 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
Sorry, non of the stated operations are needed nor work.
My mailboxes.db has been converted to twoskip as stated from the db
header bytes:
sonicle@www:/sonicle/var/imap$ od -xc mailboxes.db | more
000 02a1 0d8b 7774 736f 696b 2070 6966 656c
241 002 213 \r t w o s k i p f i l e
The master runs without complains, even turning on imapd.log I get
only these, where the last one is my cyradm session
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option
'tls_ca_file' is deprecated in favor of 'tls_client_ca_file' since
version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since
version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option
'tls_key_file' is deprecated in favor of 'tls_server_key' since
version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning]
Option 'tls_ca_file' is deprecated in favor of 'tls_client_ca_file'
since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning]
Option 'tls_cert_file' is deprecated in favor of 'tls_server_cert'
since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning]
Option 'tls_key_file' is deprecated in favor of 'tls_server_key'
since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 702911 local6.notice]
checkpointing cyrus databases
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 127214 local6.notice] done
checkpointing cyrus databases
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option
'tls_ca_file' is deprecated in favor of 'tls_client_ca_file' since
version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since
version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option
'tls_key_file' is deprecated in favor of 'tls_server_k

Re: any working cyrus-imapd-3.0.2?

2017-08-03 Thread Gabriele Bulfon
Yes, and info doesn't work on a direct mailbox:
localhostinfo user/gabriele.bul...@sonicle.com
Mailbox does not exist
But acls were listed!
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A: info-cyrus@lists.andrew.cmu.edu
Data: 3 agosto 2017 11.01.41 CEST
Oggetto: Re: any working cyrus-imapd-3.0.2?
Hi!
It seems as if you have the same problem as I have. The only
difference here: I did not xfer/convert old mailboxes, I was starting
with a new installation.
Check "info", it should fail, too.
sam. lam, dm and cm are working for example.
Zitat von Gabriele Bulfon
:
I tried using ctl_mboxlist -d , and I have a correct output of my
mailboxes, listed in the internal cyrus format, e.g. :
sonicle.com!user.test^gabry 0 default gbulfon
lrswipkxtecda1 cyrus lrswipkxtecda sonicle lrswipkxtecda
test.ga...@sonicle.com lrswipkxtecda
using "." separator instead of "/" (unixhierarchysep: 1) and "^"
instead of "."
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Ken Murchison
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 9.51.21 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
Sorry, non of the stated operations are needed nor work.
My mailboxes.db has been converted to twoskip as stated from the db
header bytes:
sonicle@www:/sonicle/var/imap$ od -xc mailboxes.db | more
000 02a1 0d8b 7774 736f 696b 2070 6966 656c
241 002 213 \r t w o s k i p f i l e
The master runs without complains, even turning on imapd.log I get
only these, where the last one is my cyradm session
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option
'tls_ca_file' is deprecated in favor of 'tls_client_ca_file' since
version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since
version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option
'tls_key_file' is deprecated in favor of 'tls_server_key' since
version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning]
Option 'tls_ca_file' is deprecated in favor of 'tls_client_ca_file'
since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning]
Option 'tls_cert_file' is deprecated in favor of 'tls_server_cert'
since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning]
Option 'tls_key_file' is deprecated in favor of 'tls_server_key'
since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 702911 local6.notice]
checkpointing cyrus databases
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 127214 local6.notice] done
checkpointing cyrus databases
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option
'tls_ca_file' is deprecated in favor of 'tls_client_ca_file' since
version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since
version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option
'tls_key_file' is deprecated in favor of 'tls_server_key' since
version 2.5.0.
Aug 3 09:46:22 www imap[8528]: [ID 529592 local6.notice] login:
localhost [::1] sonicle PLAIN User logged in SESSIONID=
once I issue "lm", I get nothing.
Do I need to run reconstruct to get my mailboxes back?
I tried various cyrus mailbox commands, but none can see any mailbox data.
Any way to inspect what mailboxes it really sees?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 19.25.22 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
https://www.cyrusimap.org/imap/download/upgrade.html#copy-config-files-and-update
On 08/02/2017 01:18 PM, Gabriele Bulfon wrote:
I upgraded the cyrus binaries from 2.4.12 to 3.0.2.
The cyrus daemons run, imap authentication works, logs look fine.
But then, no folder...users authenticate but there is no folder.
Using cyradm on the original 2.4.12 host, "lm" shows every folder.
Using cyradm on the new upgraded, "lm" shows nothing.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Stephan Lauffer
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 15.34.18 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
We've almost finished packaging cyrus imapd 3.0.2 on XStreamOS.
I had to make a patch to build, though:
--- cyrus-imapd-3.0.2/imap/mailbox.h Wed Aug 2 12:48:45 2017+++
cyrus-imapd-3.0.2/imap/mailbox.h.new Wed Aug 2 12:50:48
2017@@ -283,7 +283,10 @@ #de

Re: any working cyrus-imapd-3.0.2?

2017-08-03 Thread Gabriele Bulfon
Correct Stephen :
localhostlam user/gabriele.bul...@sonicle.com
gabriele.pr...@sonicle.com lrswipkxtecda
gabriele.bul...@sonicle.com lrswipkxtecda
localhostlm user/gabriele.bul...@sonicle.com
localhost
Same as you!
Looks like all direct access to informations work.
Only listing doesn't, so clients that relies on listing to build the tree 
(almost everyone!), won't see anything.
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A: info-cyrus@lists.andrew.cmu.edu
Data: 3 agosto 2017 11.01.41 CEST
Oggetto: Re: any working cyrus-imapd-3.0.2?
Hi!
It seems as if you have the same problem as I have. The only
difference here: I did not xfer/convert old mailboxes, I was starting
with a new installation.
Check "info", it should fail, too.
sam. lam, dm and cm are working for example.
Zitat von Gabriele Bulfon
:
I tried using ctl_mboxlist -d , and I have a correct output of my
mailboxes, listed in the internal cyrus format, e.g. :
sonicle.com!user.test^gabry 0 default gbulfon
lrswipkxtecda1 cyrus lrswipkxtecda sonicle lrswipkxtecda
test.ga...@sonicle.com lrswipkxtecda
using "." separator instead of "/" (unixhierarchysep: 1) and "^"
instead of "."
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Ken Murchison
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 9.51.21 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
Sorry, non of the stated operations are needed nor work.
My mailboxes.db has been converted to twoskip as stated from the db
header bytes:
sonicle@www:/sonicle/var/imap$ od -xc mailboxes.db | more
000 02a1 0d8b 7774 736f 696b 2070 6966 656c
241 002 213 \r t w o s k i p f i l e
The master runs without complains, even turning on imapd.log I get
only these, where the last one is my cyradm session
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option
'tls_ca_file' is deprecated in favor of 'tls_client_ca_file' since
version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since
version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option
'tls_key_file' is deprecated in favor of 'tls_server_key' since
version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning]
Option 'tls_ca_file' is deprecated in favor of 'tls_client_ca_file'
since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning]
Option 'tls_cert_file' is deprecated in favor of 'tls_server_cert'
since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning]
Option 'tls_key_file' is deprecated in favor of 'tls_server_key'
since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 702911 local6.notice]
checkpointing cyrus databases
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 127214 local6.notice] done
checkpointing cyrus databases
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option
'tls_ca_file' is deprecated in favor of 'tls_client_ca_file' since
version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since
version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option
'tls_key_file' is deprecated in favor of 'tls_server_key' since
version 2.5.0.
Aug 3 09:46:22 www imap[8528]: [ID 529592 local6.notice] login:
localhost [::1] sonicle PLAIN User logged in SESSIONID=
once I issue "lm", I get nothing.
Do I need to run reconstruct to get my mailboxes back?
I tried various cyrus mailbox commands, but none can see any mailbox data.
Any way to inspect what mailboxes it really sees?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 19.25.22 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
https://www.cyrusimap.org/imap/download/upgrade.html#copy-config-files-and-update
On 08/02/2017 01:18 PM, Gabriele Bulfon wrote:
I upgraded the cyrus binaries from 2.4.12 to 3.0.2.
The cyrus daemons run, imap authentication works, logs look fine.
But then, no folder...users authenticate but there is no folder.
Using cyradm on the original 2.4.12 host, "lm" shows every folder.
Using cyradm on the new upgraded, "lm" shows nothing.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Stephan Lauffer
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 15.34.18 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
We've almost f

Re: any working cyrus-imapd-3.0.2?

2017-08-03 Thread Gabriele Bulfon
I tried some imap manual sessions on my account, and found that only "LIST" 
commands return nothing.
If I blindly select INBOX or Sent or any other known folder, it opens it 
correctly giving me back all the informations on that folders (e.g. personal 
flags being used etc.).
Once selected, I can issue fetch commands and they correctly work.
Only list :(
What's up? :(
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Ken Murchison
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 10.22.04 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
I tried using ctl_mboxlist -d , and I have a correct output of my mailboxes, 
listed in the internal cyrus format, e.g. :
sonicle.com!user.test^gabry 0 default gbulfon   lrswipkxtecda1  cyrus   
lrswipkxtecda   sonicle lrswipkxtecda   test.ga...@sonicle.com  lrswipkxtecda
using "." separator instead of "/" (unixhierarchysep: 1) and "^" instead of "."
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Ken Murchison
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 9.51.21 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
Sorry, non of the stated operations are needed nor work.
My mailboxes.db has been converted to twoskip as stated from the db header 
bytes:
sonicle@www:/sonicle/var/imap$ od -xc mailboxes.db | more
000 02a1 0d8b 7774 736f 696b 2070 6966 656c
241 002 213 \r t w o s k i p f i l e
The master runs without complains, even turning on imapd.log I get only these, 
where the last one is my cyradm session
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option 'tls_ca_file' 
is deprecated in favor of 'tls_client_ca_file' since version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option 
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option 
'tls_key_file' is deprecated in favor of 'tls_server_key' since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning] Option 
'tls_ca_file' is deprecated in favor of 'tls_client_ca_file' since version 
2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning] Option 
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning] Option 
'tls_key_file' is deprecated in favor of 'tls_server_key' since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 702911 local6.notice] checkpointing 
cyrus databases
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 127214 local6.notice] done 
checkpointing cyrus databases
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option 'tls_ca_file' 
is deprecated in favor of 'tls_client_ca_file' since version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option 
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option 'tls_key_file' 
is deprecated in favor of 'tls_server_key' since version 2.5.0.
Aug 3 09:46:22 www imap[8528]: [ID 529592 local6.notice] login: localhost [::1] 
sonicle PLAIN User logged in SESSIONID=
once I issue "lm", I get nothing.
Do I need to run reconstruct to get my mailboxes back?
I tried various cyrus mailbox commands, but none can see any mailbox data.
Any way to inspect what mailboxes it really sees?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 19.25.22 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
https://www.cyrusimap.org/imap/download/upgrade.html#copy-config-files-and-update
On 08/02/2017 01:18 PM, Gabriele Bulfon wrote:
I upgraded the cyrus binaries from 2.4.12 to 3.0.2.
The cyrus daemons run, imap authentication works, logs look fine.
But then, no folder...users authenticate but there is no folder.
Using cyradm on the original 2.4.12 host, "lm" shows every folder.
Using cyradm on the new upgraded, "lm" shows nothing.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Stephan Lauffer
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 15.34.18 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
We've almost finished packaging cyrus imapd 3.0.2 on XStreamOS.
I had to make a patch to build, though:
--- cyrus-imapd-3.0.2/imap/mailbox.hWed Aug  2 12:48:45 2017+++ 
cyrus-imapd-3.0.2/imap/mailbox.h.newWed Aug  2 12:50:48 2017@@ -283,7 
+283,10 @@ #define ITER_SKIP_DELETED (1
Gabriele
Sonicle S.r.l.

Re: any working cyrus-imapd-3.0.2?

2017-08-03 Thread Gabriele Bulfon
I tried using ctl_mboxlist -d , and I have a correct output of my mailboxes, 
listed in the internal cyrus format, e.g. :
sonicle.com!user.test^gabry 0 default gbulfon   lrswipkxtecda1  cyrus   
lrswipkxtecda   sonicle lrswipkxtecda   test.ga...@sonicle.com  lrswipkxtecda
using "." separator instead of "/" (unixhierarchysep: 1) and "^" instead of "."
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Ken Murchison
info-cyrus@lists.andrew.cmu.edu
Data:
3 agosto 2017 9.51.21 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
Sorry, non of the stated operations are needed nor work.
My mailboxes.db has been converted to twoskip as stated from the db header 
bytes:
sonicle@www:/sonicle/var/imap$ od -xc mailboxes.db | more
000 02a1 0d8b 7774 736f 696b 2070 6966 656c
241 002 213 \r t w o s k i p f i l e
The master runs without complains, even turning on imapd.log I get only these, 
where the last one is my cyradm session
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option 'tls_ca_file' 
is deprecated in favor of 'tls_client_ca_file' since version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option 
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option 
'tls_key_file' is deprecated in favor of 'tls_server_key' since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning] Option 
'tls_ca_file' is deprecated in favor of 'tls_client_ca_file' since version 
2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning] Option 
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning] Option 
'tls_key_file' is deprecated in favor of 'tls_server_key' since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 702911 local6.notice] checkpointing 
cyrus databases
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 127214 local6.notice] done 
checkpointing cyrus databases
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option 'tls_ca_file' 
is deprecated in favor of 'tls_client_ca_file' since version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option 
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option 'tls_key_file' 
is deprecated in favor of 'tls_server_key' since version 2.5.0.
Aug 3 09:46:22 www imap[8528]: [ID 529592 local6.notice] login: localhost [::1] 
sonicle PLAIN User logged in SESSIONID=
once I issue "lm", I get nothing.
Do I need to run reconstruct to get my mailboxes back?
I tried various cyrus mailbox commands, but none can see any mailbox data.
Any way to inspect what mailboxes it really sees?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 19.25.22 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
https://www.cyrusimap.org/imap/download/upgrade.html#copy-config-files-and-update
On 08/02/2017 01:18 PM, Gabriele Bulfon wrote:
I upgraded the cyrus binaries from 2.4.12 to 3.0.2.
The cyrus daemons run, imap authentication works, logs look fine.
But then, no folder...users authenticate but there is no folder.
Using cyradm on the original 2.4.12 host, "lm" shows every folder.
Using cyradm on the new upgraded, "lm" shows nothing.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Stephan Lauffer
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 15.34.18 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
We've almost finished packaging cyrus imapd 3.0.2 on XStreamOS.
I had to make a patch to build, though:
--- cyrus-imapd-3.0.2/imap/mailbox.hWed Aug  2 12:48:45 2017+++ 
cyrus-imapd-3.0.2/imap/mailbox.h.newWed Aug  2 12:50:48 2017@@ -283,7 
+283,10 @@ #define ITER_SKIP_DELETED (1
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A:
info-cyrus@lists.andrew.cmu.edu
Data: 1 agosto 2017 9.26.02 CEST
Oggetto: any working cyrus-imapd-3.0.2?
Hi!
Anybody with a working cyrus-imapd-3.0.2? Could I get the configure
parameter and the name of the distro (or pre build packages)?
--
Liebe Gruesse, with best regards
Stephan Lauffer
Pedagogical University Freiburg - Germany
http://www.ph-freiburg.de/zik/
Fon/ Fax: +49 761 682 -559/ -486

Cyrus Home Page:
http://www.cyrusimap.org

Re: any working cyrus-imapd-3.0.2?

2017-08-03 Thread Gabriele Bulfon
Sorry, non of the stated operations are needed nor work.
My mailboxes.db has been converted to twoskip as stated from the db header 
bytes:
sonicle@www:/sonicle/var/imap$ od -xc mailboxes.db | more
000 02a1 0d8b 7774 736f 696b 2070 6966 656c
241 002 213 \r t w o s k i p f i l e
The master runs without complains, even turning on imapd.log I get only these, 
where the last one is my cyradm session
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option 'tls_ca_file' 
is deprecated in favor of 'tls_client_ca_file' since version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option 
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since version 2.5.0.
Aug 3 09:46:15 www idled[8519]: [ID 189579 local6.warning] Option 
'tls_key_file' is deprecated in favor of 'tls_server_key' since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning] Option 
'tls_ca_file' is deprecated in favor of 'tls_client_ca_file' since version 
2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning] Option 
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 189579 local6.warning] Option 
'tls_key_file' is deprecated in favor of 'tls_server_key' since version 2.5.0.
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 702911 local6.notice] checkpointing 
cyrus databases
Aug 3 09:46:15 www ctl_cyrusdb[8521]: [ID 127214 local6.notice] done 
checkpointing cyrus databases
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option 'tls_ca_file' 
is deprecated in favor of 'tls_client_ca_file' since version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option 
'tls_cert_file' is deprecated in favor of 'tls_server_cert' since version 2.5.0.
Aug 3 09:46:20 www imap[8528]: [ID 189579 local6.warning] Option 'tls_key_file' 
is deprecated in favor of 'tls_server_key' since version 2.5.0.
Aug 3 09:46:22 www imap[8528]: [ID 529592 local6.notice] login: localhost [::1] 
sonicle PLAIN User logged in SESSIONID=
once I issue "lm", I get nothing.
Do I need to run reconstruct to get my mailboxes back?
I tried various cyrus mailbox commands, but none can see any mailbox data.
Any way to inspect what mailboxes it really sees?
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 19.25.22 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
https://www.cyrusimap.org/imap/download/upgrade.html#copy-config-files-and-update
On 08/02/2017 01:18 PM, Gabriele Bulfon wrote:
I upgraded the cyrus binaries from 2.4.12 to 3.0.2.
The cyrus daemons run, imap authentication works, logs look fine.
But then, no folder...users authenticate but there is no folder.
Using cyradm on the original 2.4.12 host, "lm" shows every folder.
Using cyradm on the new upgraded, "lm" shows nothing.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Stephan Lauffer
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 15.34.18 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
We've almost finished packaging cyrus imapd 3.0.2 on XStreamOS.
I had to make a patch to build, though:
--- cyrus-imapd-3.0.2/imap/mailbox.hWed Aug  2 12:48:45 2017+++ 
cyrus-imapd-3.0.2/imap/mailbox.h.newWed Aug  2 12:50:48 2017@@ -283,7 
+283,10 @@ #define ITER_SKIP_DELETED (1
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A:
info-cyrus@lists.andrew.cmu.edu
Data: 1 agosto 2017 9.26.02 CEST
Oggetto: any working cyrus-imapd-3.0.2?
Hi!
Anybody with a working cyrus-imapd-3.0.2? Could I get the configure
parameter and the name of the distro (or pre build packages)?
--
Liebe Gruesse, with best regards
Stephan Lauffer
Pedagogical University Freiburg - Germany
http://www.ph-freiburg.de/zik/
Fon/ Fax: +49 761 682 -559/ -486

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-- Kenneth MurchisonCyrus Development TeamFastMail Pty Ltd
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/in

Re: any working cyrus-imapd-3.0.2?

2017-08-02 Thread Gabriele Bulfon
Thanks a lot! Tomorrow I will be digging this ;)
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 19.25.22 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
https://www.cyrusimap.org/imap/download/upgrade.html#copy-config-files-and-update
On 08/02/2017 01:18 PM, Gabriele Bulfon wrote:
I upgraded the cyrus binaries from 2.4.12 to 3.0.2.
The cyrus daemons run, imap authentication works, logs look fine.
But then, no folder...users authenticate but there is no folder.
Using cyradm on the original 2.4.12 host, "lm" shows every folder.
Using cyradm on the new upgraded, "lm" shows nothing.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Stephan Lauffer
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 15.34.18 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
We've almost finished packaging cyrus imapd 3.0.2 on XStreamOS.
I had to make a patch to build, though:
--- cyrus-imapd-3.0.2/imap/mailbox.hWed Aug  2 12:48:45 2017+++ 
cyrus-imapd-3.0.2/imap/mailbox.h.newWed Aug  2 12:50:48 2017@@ -283,7 
+283,10 @@ #define ITER_SKIP_DELETED (1
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A:
info-cyrus@lists.andrew.cmu.edu
Data: 1 agosto 2017 9.26.02 CEST
Oggetto: any working cyrus-imapd-3.0.2?
Hi!
Anybody with a working cyrus-imapd-3.0.2? Could I get the configure
parameter and the name of the distro (or pre build packages)?
--
Liebe Gruesse, with best regards
Stephan Lauffer
Pedagogical University Freiburg - Germany
http://www.ph-freiburg.de/zik/
Fon/ Fax: +49 761 682 -559/ -486

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-- Kenneth MurchisonCyrus Development TeamFastMail Pty Ltd
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: any working cyrus-imapd-3.0.2?

2017-08-02 Thread Gabriele Bulfon
I upgraded the cyrus binaries from 2.4.12 to 3.0.2.
The cyrus daemons run, imap authentication works, logs look fine.
But then, no folder...users authenticate but there is no folder.
Using cyradm on the original 2.4.12 host, "lm" shows every folder.
Using cyradm on the new upgraded, "lm" shows nothing.
Any idea?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Stephan Lauffer
info-cyrus@lists.andrew.cmu.edu
Data:
2 agosto 2017 15.34.18 CEST
Oggetto:
Re: any working cyrus-imapd-3.0.2?
We've almost finished packaging cyrus imapd 3.0.2 on XStreamOS.
I had to make a patch to build, though:
--- cyrus-imapd-3.0.2/imap/mailbox.hWed Aug  2 12:48:45 2017+++ 
cyrus-imapd-3.0.2/imap/mailbox.h.newWed Aug  2 12:50:48 2017@@ -283,7 
+283,10 @@ #define ITER_SKIP_DELETED (1
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A: info-cyrus@lists.andrew.cmu.edu
Data: 1 agosto 2017 9.26.02 CEST
Oggetto: any working cyrus-imapd-3.0.2?
Hi!
Anybody with a working cyrus-imapd-3.0.2? Could I get the configure
parameter and the name of the distro (or pre build packages)?
--
Liebe Gruesse, with best regards
Stephan Lauffer
Pedagogical University Freiburg - Germany
http://www.ph-freiburg.de/zik/
Fon/ Fax: +49 761 682 -559/ -486

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: any working cyrus-imapd-3.0.2?

2017-08-02 Thread Gabriele Bulfon
We've almost finished packaging cyrus imapd 3.0.2 on XStreamOS.
I had to make a patch to build, though:
--- cyrus-imapd-3.0.2/imap/mailbox.hWed Aug  2 12:48:45 2017+++ 
cyrus-imapd-3.0.2/imap/mailbox.h.newWed Aug  2 12:50:48 2017@@ -283,7 
+283,10 @@ #define ITER_SKIP_DELETED (1
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Stephan Lauffer
A: info-cyrus@lists.andrew.cmu.edu
Data: 1 agosto 2017 9.26.02 CEST
Oggetto: any working cyrus-imapd-3.0.2?
Hi!
Anybody with a working cyrus-imapd-3.0.2? Could I get the configure
parameter and the name of the distro (or pre build packages)?
--
Liebe Gruesse, with best regards
Stephan Lauffer
Pedagogical University Freiburg - Germany
http://www.ph-freiburg.de/zik/
Fon/ Fax: +49 761 682 -559/ -486

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Sieve impersonate

2017-07-28 Thread Gabriele Bulfon
Hi, is there any valid way to impersonate using authorization on timsieved?
I tried with:
AUTHENTICATE "PLAIN" "x"
creating the auth string with a perl script as:
encode_base64($authid."\x00".$username."\x00".$password."")
being :
authid="impersonatedu...@sonicle.com"
username="admin"
password="adminpass"
Doesn't work :(
Any help?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Upgrading Cyrus from 2.3.16, going to 2.5.11 or 3.0.2 ?

2017-07-03 Thread Gabriele Bulfon
I'm planning to upgrade from 2.4.12 to a stable recent version.
Similarly, we have many installation based on our XStreamOS / illumos, our 
server distribution already deploy everything from cyrus to amavis , 
plus our web based collaboration platform.
What is the best choice to start upgrading? May I think to go straight to 
3.0.2? Will the system upgrade my imap base automagically? :)
Gabriele

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Marty Lee
A: Eric Luyten
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 29 giugno 2017 0.27.06 CEST
Oggetto: Re: Upgrading Cyrus from 2.3.16, going to 2.5.11 or 3.0.2 ?
Eric,
I know 3.0 compiles on Solaris 10 &11; I think the only bit that
didnt work was the http section to provide caldav/carddav, as the
implementation seems to depend on linuxisms. I got it compiled
without the calendar and address book functionality (although
that was a couple of months ago and I havent done any more with
it as yet).
marty
On 28 Jun 2017, at 13:39, Eric Luyten
wrote:
Hi,
Our environment is Solaris 10 / Intel.
Are there good reasons to stay away from 3.0 ?
We have a pretty impressive user count and mail spool volume
but not a lot of complexity (no murder nor replication, no domains,
and few, if any, access control extravaganza).
Thank you in advance for your feedback,
Eric Luyten, Computing Centre VUB/ULB.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Cyrus 2.4.12 illumos and large files

2017-04-13 Thread Gabriele Bulfon
Switched to the large files binaries.
Every mailbox look sane and new ones can be created.
The only strange effect is that running squatter I had many new reindexing I 
didn't have before.
Comparing the manual run with the last log, looks like many folders were not 
considered before.
Any idea?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
info-cyrus@lists.andrew.cmu.edu
Data:
13 aprile 2017 12.21.35 CEST
Oggetto:
Cyrus 2.4.12 illumos and large files
Hi,
I have some installations of Cyrus 2.4.12 built on our XStreamOS/illumos distro.
The source tree was built some time ago, without large files support 
(-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64).
Now that we're moving zfs pools to new systems, these get larger and larger.
What happens is that when the available space is larger than 2TB, cyradm cannot 
create mailboxes causing strange errors.
I could verify that rebuilding the same source tree with "-D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64" and installing on a test machine, everything starts to 
work again.
My question is : can I safely install the new binaries on systems with existing 
mailboxes?
Thanks for any help,
Gabriele

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: 
http://lists.andrew.cmu.edu/pipermail/info-cyrus/To 
Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus 2.4.12 illumos and large files

2017-04-13 Thread Gabriele Bulfon
Hi,
I have some installations of Cyrus 2.4.12 built on our XStreamOS/illumos distro.
The source tree was built some time ago, without large files support 
(-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64).
Now that we're moving zfs pools to new systems, these get larger and larger.
What happens is that when the available space is larger than 2TB, cyradm cannot 
create mailboxes causing strange errors.
I could verify that rebuilding the same source tree with "-D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64" and installing on a test machine, everything starts to 
work again.
My question is : can I safely install the new binaries on systems with existing 
mailboxes?
Thanks for any help,
Gabriele

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: imap impersonate

2017-01-19 Thread Gabriele Bulfon via Info-cyrus
wow...I just found that in Java is already implemented:
Properties props=System.getProperties();
props.setProperty("mail.imap.sasl.authorizationid","targetmail...@domain.tld" );
Session session=Session.getInstance(props);
Store store=session.getStore("imap");
store.connect("host",143,"adminuser","adminpass");
there you go with the session on the targetmailbox ;)
Thanks a lot!
Gabriele

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
------
Da: Michael Menge
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 19 gennaio 2017 13.14.13 CET
Oggetto: Re: imap impersonate
Quoting Gabriele Bulfon
:
Thanks,
my imapd.conf has already :
admins: sonicle
sasl_mech_list: plain
if I try an imap session with:
A01 AUTHENTICATE PLAIN
+
xxx
where xxx comes from 'echo -en "\0sonicle\0pass" | base64' , I
get authenticated as sonicle.
Now, how do I switch to the desired user?
Once I understand how to do it via imap protocol, I need to
replicate it in java code through:
store.connect(host,143,user,pass);
Thanks in advance!
Gabriele
Quoting from https://tools.ietf.org/html/rfc4616
2.  PLAIN SASL Mechanism
The mechanism consists of a single message, a string of [UTF-8]
encoded [Unicode] characters, from the client to the server.  The
client presents the authorization identity (identity to act as),
followed by a NUL (U+) character, followed by the authentication
identity (identity whose password will be used), followed by a NUL
(U+) character, followed by the clear-text password.  As with
other SASL mechanisms, the client does not provide an authorization
identity when it wishes the server to derive an identity from the
credentials and use that as the authorization identity.
so it is UserID\0AdminID\0AdminPass

M.MengeTel.: (49) 7071/29-70316
Universität Tübingen   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung  mail:
michael.me...@zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: imap impersonate

2017-01-19 Thread Gabriele Bulfon via Info-cyrus
Thanks,
my imapd.conf has already :
admins: sonicle
sasl_mech_list: plain
if I try an imap session with:
A01 AUTHENTICATE PLAIN
+
xxx
where xxx comes from 'echo -en "\0sonicle\0pass" | base64' , I get 
authenticated as sonicle.
Now, how do I switch to the desired user?
Once I understand how to do it via imap protocol, I need to replicate it in 
java code through:
store.connect(host,143,user,pass);
Thanks in advance!
Gabriele

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
--
Da: Michael Menge via Info-cyrus
A: info-cyrus@lists.andrew.cmu.edu
Data: 19 gennaio 2017 9.53.51 CET
Oggetto: Re: imap impersonate
Quoting Gabriele Bulfon via Info-cyrus
:
Hi,
is there any mechanism with Cyrus imap to impersonate another user?
I've seen other imap servers scenarios where one may use plain
authentication and sending user as mailboxuser plus a separator plus
adminuser and use only adminpassword, to get access to the
mailboxuser as is (dovecot, exchange).
Anything like this in Cyrus?
Gabriele
Cyrus can use the PLAIN mech to allow admin access as the user.
You need to add plain to sasl_mech_list in imapd.conf
And the "admin" account has to be listed in admins or proxyservers
in imapd.conf
Regards,
Michael

M.MengeTel.: (49) 7071/29-70316
Universität Tübingen   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung  mail:
michael.me...@zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

imap impersonate

2017-01-19 Thread Gabriele Bulfon via Info-cyrus
Hi,
is there any mechanism with Cyrus imap to impersonate another user?
I've seen other imap servers scenarios where one may use plain authentication 
and sending user as mailboxuser plus a separator plus adminuser and use only 
adminpassword, to get access to the mailboxuser as is (dovecot, exchange).
Anything like this in Cyrus?
Gabriele

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: thread=refs

2016-07-22 Thread Gabriele Bulfon via Info-cyrus
Moving to 2.5 at the moment The it's a little bit to much work. I will consider 
it later.
So I'm trying to backport your patches to 2.4.12.
The function index_msgdata_free is not a "for" cycle in 2.4.12, but a single 
call to one md instance:
/* * Free a msgdata node. */static void index_msgdata_free(MsgData *md){#define 
FREE(x) if (x) free(x)int i;if (!md)return;FREE(md-cc);
FREE(md-from);FREE(md-to);FREE(md-displayfrom);FREE(md-displayto);  
  FREE(md-xsubj);FREE(md-msgid);for (i = 0; i
nref; i++)free(md-ref[i]);FREE(md-ref);for (i = 0; i
nannot; i++)free(md-annot[i]);FREE(md-annot);
}
where should I place the "if (!md) continue;" in this case?
I cannot find any other similar for cycle calling this function.
Thanks for your help
Gabriele

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com info-cyrus@lists.andrew.cmu.edu
Data:
19 luglio 2016 18.00.28 CEST
Oggetto:
Re: thread=refs
On 07/19/2016 11:49 AM, Gabriele Bulfon  wrote:
I found thatexpecially the function "_index_thread_ref" is quite 
different(arguments and implementation) in 2.4.12, while it's very  
  similar in 2.5.8 : is it safe to upgrade binaries from 2.4.12 to2.5.8 
on a running system, or do I need any kind of conversion?
doc/install-upgrade.html
Also, the diffaround "index_msgdata_free" where "if (!md) continue;" is 
added,is quite different from 2.5.8 too, but it's probably not
necessary, as far as I can see...can you check this?
It is necessary.  It would be necessary in 2.5.8 if this patch wereto be 
backported.

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com
info-cyrus@lists.andrew.cmu.edu
Data:
19 luglio 2016 15.02.36 CEST
Oggetto:
Re: thread=refs
I don't think much has changed in the  threading code for a while. I 
would expect that the patch  would apply pretty cleanly to 2.4.x.
On 07/19/2016 02:58 AM, GabrieleBulfon wrote:
Wow! Thisis really interesting!
Whatminimum version of cyrus sources can I use for these
changes?
At themoment I'm running servers with 2.4.12, on our illumos
based distro XStreamOS.

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com
info-cyrus@lists.andrew.cmu.edu
Data:
14 luglio 2016 17.14.18 CEST
Oggetto:
Re: thread=refs
I went ahead andcommitted an implementation of THREAD-REFS:
https://github.com/cyrusimap/cyrus-imapd/commit/16747e608f32f9dd9348988d3f83cb8f1b037ff6
Per the draft, grouping by subject is skipped andthreads 
(toplevel messages) are sorted by INTERNALDATE,while the 
messages within the threads are still sortedby SENTDATE.
I confirmed that THREAD=REFERENCES is still correct, butI have 
nothing to compare THREAD=REFS results to. Thecurrent threading 
in Thunderbird is close, but it mightbe using INTERNALDATE 
throughout.
On 07/12/2016 04:44 PM, Ken  Murchison via Info-cyrus wrote:
Gabriele,
The attached patch is what I was thinking in terms of  
implementation. It skips the grouping by subject for  REFS, but 
I didn't do the REFS-specific date handling.  Contrary to what 
the THREAD=REFS draft says, I'm not  sure if the special date 
handling should be done in  step 4 or 6. I would have to did 
deeper into the code  to see where is belongs.
On 07/08/2016 11:36 AM,Gabriele Bulfon via Info-cyrus wrote:
Mainly  web clients, installed clients usually implements   
   threading internally to overcome problems with the   
   original references algorithm that is often  
confusing.
The  problem with references is that it includes
  subject grouping, that is an old netscape model of
  the 90s: today, we just need references within the  
headers ids, or we may take a wrong message in the  thread 
just because it has a similar subject (for 

Re: thread=refs

2016-07-19 Thread Gabriele Bulfon via Info-cyrus
I found that expecially the function "_index_thread_ref" is quite different 
(arguments and implementation) in 2.4.12, while it's very similar in 2.5.8 : is 
it safe to upgrade binaries from 2.4.12 to 2.5.8 on a running system, or do I 
need any kind of conversion?
Also, the diff around "index_msgdata_free" where "if (!md) continue;" is added, 
is quite different from 2.5.8 too, but it's probably not necessary, as far as I 
can see...can you check this?
Gabriele

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com info-cyrus@lists.andrew.cmu.edu
Data:
19 luglio 2016 15.02.36 CEST
Oggetto:
Re: thread=refs
I don't think much has changed in the threading code for a while.  Iwould 
expect that the patch would apply pretty cleanly to 2.4.x.
On 07/19/2016 02:58 AM, Gabriele Bulfon  wrote:
Wow! This is  really interesting!
What minimum  version of cyrus sources can I use for these changes?
At the  moment I'm running servers with 2.4.12, on our illumos based
  distro XStreamOS.

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com
info-cyrus@lists.andrew.cmu.edu
Data:
14 luglio 2016 17.14.18 CEST
Oggetto:
Re: thread=refs
I went ahead and committed an  implementation of THREAD-REFS:
https://github.com/cyrusimap/cyrus-imapd/commit/16747e608f32f9dd9348988d3f83cb8f1b037ff6
Per the draft, grouping by subject is skipped and threads  (toplevel 
messages) are sorted by INTERNALDATE, while the  messages within the 
threads are still sorted by SENTDATE.
I confirmed that THREAD=REFERENCES is still correct, but I  have 
nothing to compare THREAD=REFS results to. The current  threading in 
Thunderbird is close, but it might be using  INTERNALDATE throughout.
On 07/12/2016 04:44 PM, KenMurchison via Info-cyrus wrote:
Gabriele,
The attached patch is what I was thinking in terms of
implementation. It skips the grouping by subject for REFS,but I 
didn't do the REFS-specific date handling. Contrary towhat the 
THREAD=REFS draft says, I'm not sure if the specialdate handling 
should be done in step 4 or 6. I would have todid deeper into the 
code to see where is belongs.
On 07/08/2016 11:36 AM,  Gabriele Bulfon via Info-cyrus wrote:
Mainly webclients, installed clients usually implements 
threadinginternally to overcome problems with the original  
  references algorithm that is often confusing.
Theproblem with references is that it includes subject  
  grouping, that is an old netscape model of the 90s:today, 
we just need references within the headers ids,or we may take a 
wrong message in the thread justbecause it has a similar 
subject (for example automaticmails with same subjects would be 
treated as a thread,which is wrong).
Now, we'restaring to implement threading view on our web
collaboration software, running on cyrus.
So we areinvestigating how RoundCube is doing threading on a
dovecot installation, and we found it to be the same as 
   the client algrithm of Thunderbird, which is fine.Looking at 
the protocol, it uses REFS first, probablybecause it has no 
subject grouping by definition, and itshould have a better date 
sorting. Should, because Ifound that Dovecot does not sort it 
reversed...
Maybe Iwill ask Dovecot guys why they choose to keep sort same  
  as references: I suspect that claim to support refs, but  
  actually the do the same references functions, but never
do subject grouping.

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics  :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com
info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 17.17.32 CEST
Oggetto:
Re: thread=refs
On 07/08/2016 11:08 AM,    Gabriele Bulfon wrote:
Ok,  sure, but still two issues remain other than the   
   draft:
- we  need to get rid of subject grouping in REFS, it   
   only 

Re: thread=refs

2016-07-19 Thread Gabriele Bulfon via Info-cyrus
Wow! This is really interesting!
What minimum version of cyrus sources can I use for these changes?
At the moment I'm running servers with 2.4.12, on our illumos based distro 
XStreamOS.

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com info-cyrus@lists.andrew.cmu.edu
Data:
14 luglio 2016 17.14.18 CEST
Oggetto:
Re: thread=refs
I went ahead and committed an implementation of THREAD-REFS:
https://github.com/cyrusimap/cyrus-imapd/commit/16747e608f32f9dd9348988d3f83cb8f1b037ff6
Per the draft, grouping by subject is skipped and threads (toplevel
messages) are sorted by INTERNALDATE, while the messages within thethreads 
are still sorted by SENTDATE.
I confirmed that THREAD=REFERENCES is still correct, but I havenothing to 
compare THREAD=REFS results to.  The current threading inThunderbird is 
close, but it might be using INTERNALDATE throughout.
On 07/12/2016 04:44 PM, Ken Murchison  via Info-cyrus wrote:
Gabriele,
The attached patch is what I was thinking in terms of  implementation.  It 
skips the grouping by subject for REFS, but I  didn't do the REFS-specific 
date handling.  Contrary to what the  THREAD=REFS draft says, I'm not sure 
if the special date handling  should be done in step 4 or 6.  I would have 
to did deeper into  the code to see where is belongs.
On 07/08/2016 11:36 AM, GabrieleBulfon via Info-cyrus wrote:
Mainly web  clients, installed clients usually implements threading 
 internally to overcome problems with the original references  
algorithm that is often confusing.
The problem with  references is that it includes subject grouping, that 
is an  old netscape model of the 90s: today, we just need references
  within the headers ids, or we may take a wrong message in the  
thread just because it has a similar subject (for example  automatic 
mails with same subjects would be treated as a  thread, which is wrong).
Now, we're  staring to implement threading view on our web 
collaboration  software, running on cyrus.
So we are  investigating how RoundCube is doing threading on a dovecot  
installation, and we found it to be the same as the client  
algrithm of Thunderbird, which is fine. Looking at the  protocol, it 
uses REFS first, probably because it has no  subject grouping by 
definition, and it should have a better  date sorting. Should, because 
I found that Dovecot does not  sort it reversed...
Maybe I will ask  Dovecot guys why they choose to keep sort same as 
references:  I suspect that claim to support refs, but actually the do 
the  same references functions, but never do subject grouping.

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com
info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 17.17.32 CEST
Oggetto:
Re: thread=refs
On 07/08/2016 11:08 AM,  Gabriele Bulfon wrote:
Ok, sure,but still two issues remain other than the draft:
- we needto get rid of subject grouping in REFS, it only brings 
   disorder, merging stuff that is not related
I believe that the parameterization of the core functionsshould be 
able to handle this.
- I wouldtry to guess why dovecot does not change sorting in
REFS, keeping it same as REFERENCES
I would contact that Dovecot authors and find out whichversion of 
the THREAD=REFS draft they based their work on.
BTW, which clients use THREAD=REFS?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics  :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com
info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 16.39.17 CEST
Oggetto:
Re: thread=refs
Is there an actual RFC? All I find is
draft-ietf-morg-inthread-01. Looking at that draft,the only 
difference between REFS ad REFERENCES isthis:
THREAD=REFS sorts threads by the most recent INTERNALDATE in eachthread, 
replacing THREAD=REFERENCES step (4). This means that when anew message 
arrives, its thread becomes the latest thread. (Notethat while threads are 
sorted by arrival date, messages within athread are sorted by sent date, 
just as for THREAD=REFERENCES.)
This being the case, I don't think we need two

Re: thread=refs

2016-07-08 Thread Gabriele Bulfon via Info-cyrus
Mainly web clients, installed clients usually implements threading internally 
to overcome problems with the original references algorithm that is often 
confusing.
The problem with references is that it includes subject grouping, that is an 
old netscape model of the 90s: today, we just need references within the 
headers ids, or we may take a wrong message in the thread just because it has a 
similar subject (for example  automatic mails with same subjects would be 
treated as a thread, which is wrong).
Now, we're staring to implement threading view on our web collaboration 
software, running on cyrus.
So we are investigating how RoundCube is doing threading on a dovecot 
installation, and we found it to be the same as the client algrithm of 
Thunderbird, which is fine. Looking at the protocol, it uses REFS first, 
probably because it has no subject grouping by definition, and it should have a 
better date sorting. Should, because I found that Dovecot does not sort it 
reversed...
Maybe I will ask Dovecot guys why they choose to keep sort same as references: 
I suspect that claim to support refs, but actually the do the same references 
functions, but never do subject grouping.

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 17.17.32 CEST
Oggetto:
Re: thread=refs
On 07/08/2016 11:08 AM, Gabriele Bulfon  wrote:
Ok, sure, butstill two issues remain other than the draft:
- we need to getrid of subject grouping in REFS, it only brings 
disorder,merging stuff that is not related
I believe that the parameterization of the core functions should beable to 
handle this.
- I would try toguess why dovecot does not change sorting in REFS, 
keeping itsame as REFERENCES
I would contact that Dovecot authors and find out which version ofthe 
THREAD=REFS draft they based their work on.
BTW, which clients use THREAD=REFS?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com
info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 16.39.17 CEST
Oggetto:
Re: thread=refs
Is there an actual RFC? All I find isdraft-ietf-morg-inthread-01. 
Looking at that draft, the onlydifference between REFS ad 
REFERENCES is this:
THREAD=REFS sorts threads by the most recent INTERNALDATE in eachthread, 
replacing THREAD=REFERENCES step (4). This means that when anew message 
arrives, its thread becomes the latest thread. (Notethat while threads are 
sorted by arrival date, messages within athread are sorted by sent date, 
just as for THREAD=REFERENCES.)
This being the case, I don't think we need two copies of the  threading 
functions. I'd modify the exiting functions to take  an additional 
parameter to specify whether we're doing REFS or  REFERENCES and then 
have 2 wrapper functions which call the  main function with the 
parameter set appropriately for the  given algorithm.
On 07/08/2016 10:03 AM, GabrieleBulfon wrote:
Ok, it works  :) but checking against dovecot implementation, it 
looks  like they have refs order same as references, but without
  subject grouping. AFAIK the RFC on refs says ordering of  
dates within the group should be reversed. Am I wrong?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon via Info-cyrus
A:
Ken Murchison
info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 15.22.56 CEST
Oggetto:
Re: thread=refs
Testing  ;) and checking against a dovecot machine with refs
  and same messages.
Will let  you know

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
QuantumMechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com
info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 15.02.38 CEST
Oggetto:
Re: thread=refs
On 07/07/2016 02:03 PM,  Gabriele Bulfon via Info-cyrus 
wrote:
Ican finally get back to this after so many 
   months!
Ichecked the sources, and I actually see it 
   doesn't look very hard.
Lookslike

Re: thread=refs

2016-07-08 Thread Gabriele Bulfon via Info-cyrus
Ok, sure, but still two issues remain other than the draft:
- we need to get rid of subject grouping in REFS, it only brings disorder, 
merging stuff that is not related
- I would try to guess why dovecot does not change sorting in REFS, keeping it 
same as REFERENCES

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 16.39.17 CEST
Oggetto:
Re: thread=refs
Is there an actual RFC?  All I find is  draft-ietf-morg-inthread-01.   
Looking at that draft, the only  difference between REFS ad REFERENCES is 
this:
THREAD=REFS sorts threads by the most recent INTERNALDATE in eachthread, 
replacing THREAD=REFERENCES step (4). This means that when anew message 
arrives, its thread becomes the latest thread. (Notethat while threads are 
sorted by arrival date, messages within athread are sorted by sent date, 
just as for THREAD=REFERENCES.)
This being the case, I don't think we need two copies of thethreading 
functions.  I'd modify the exiting functions to take anadditional parameter 
to specify whether we're doing REFS orREFERENCES and then have 2 wrapper 
functions which call the mainfunction with the parameter set appropriately 
for the givenalgorithm.
On 07/08/2016 10:03 AM, Gabriele Bulfon  wrote:
Ok, it works :)but checking against dovecot implementation, it looks 
like theyhave refs order same as references, but without subject
grouping. AFAIK the RFC on refs says ordering of dates withinthe group 
should be reversed. Am I wrong?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon via Info-cyrus
A:
Ken Murchison
info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 15.22.56 CEST
Oggetto:
Re: thread=refs
Testing ;) andchecking against a dovecot machine with refs and same 
   messages.
Will let youknow

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com
info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 15.02.38 CEST
Oggetto:
Re: thread=refs
On 07/07/2016 02:03 PM,Gabriele Bulfon via Info-cyrus wrote:
I can  finally get back to this after so many months!
I  checked the sources, and I actually see it doesn't   
   look very hard.
Looks  like:
-  renaming all functions like "index_thread_ref" into  
"index_thread_references"
-  duplicate them as "index_thread_refs"
- let  "references" alg call the "references" funcs
- add  support for "refs" in thread_algs and let them call  
the "refs" funcs
Makes sense.
then:
-  completely remove the call to "ref_group_subjects", we   
   don't want it at all in refs
- change  the sortcrit to use the SORT_REVERSE modifier
As long as you mean making these changes for just the  "refs" 
variant and not both.
what do  you think? may be fine?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
QuantumMechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
5 ottobre 2015 14.04.02 CEST
Oggetto:
Re: thread=refs
As far as Ican tell, the last specification for thread=refs 
washere:
https://tools.ietf.org/html/draft-ietf-morg-inthread-01
To implement this you want to look at index.c in theCyrus 
source and add another entry to thethread_algs[] array. I'm 
guessing that you can reusea lot of the existing 
index_thread_ref() code (whichis probably needs to be 
renamed to        index_thread_references()).
On 10/05/2015 06:07 AM,  Gabriele Bulfon wrote:
Great, Ken. Can you give  me some advice / pointer to 
the sources I  should look at?
Gabriele
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 19.08.04 CEST
Oggetto:
Re: thread=refs
On 10/02/201510:53 

Re: thread=refs

2016-07-08 Thread Gabriele Bulfon via Info-cyrus
Ok, it works :) but checking against dovecot implementation, it looks like they 
have refs order same as references, but without subject grouping. AFAIK the RFC 
on refs says ordering of dates within the group should be reversed. Am I wrong?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon via Info-cyrus
A:
Ken Murchison
info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 15.22.56 CEST
Oggetto:
Re: thread=refs
Testing ;) and checking against a dovecot machine with refs and same messages.
Will let you know

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 15.02.38 CEST
Oggetto:
Re: thread=refs
On 07/07/2016 02:03 PM, Gabriele Bulfon  via Info-cyrus wrote:
I can finally getback to this after so many months!
I checked thesources, and I actually see it doesn't look very hard.
Looks like:
- renaming allfunctions like "index_thread_ref" into 
"index_thread_references"
- duplicate themas "index_thread_refs"
- let "references"alg call the "references" funcs
- add support for"refs" in thread_algs and let them call the "refs" 
funcs
Makes sense.
then:
- completelyremove the call to "ref_group_subjects", we don't want it 
at allin refs
- change thesortcrit to use the SORT_REVERSE modifier
As long as you mean making these changes for just the "refs" variantand not 
both.
what do you think?may be fine?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
5 ottobre 2015 14.04.02 CEST
Oggetto:
Re: thread=refs
As far as I can tell, the last  specification for thread=refs was here:
https://tools.ietf.org/html/draft-ietf-morg-inthread-01
To implement this you want to look at index.c in the Cyrus  source and 
add another entry to the thread_algs[] array. I'm  guessing that you 
can reuse a lot of the existing  index_thread_ref() code (which is 
probably needs to be renamed  to index_thread_references()).
On 10/05/2015 06:07 AM, GabrieleBulfon wrote:
Great, Ken. Can you give me someadvice / pointer to the sources 
I should look at?
Gabriele
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 19.08.04 CEST
Oggetto:
Re: thread=refs
On 10/02/2015 10:53 AM,  Gabriele Bulfon wrote:
Nice, it's not a big deal for  us to upgrade to new 
versions, surely easier than  porting to Dovecot! ;)
So, maybe we can help with the implementation.
In my mind, it's almost about  changing the 
"thread=reference" and let it omit  the subject matching, 
change sorting
and...maybe just this? How  much hard do you think it is?
That sounds about right from what I remember of
THREAD=REFERENCES (which I co-authored and implemented)and 
THREAD=REFS (which I think was last documented in2010).
Da:
Bron Gondwana
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 12.59.08 CEST
Oggetto:
Re: thread=refs
No, there isn't. The conversations work in3.0 beta 
contains a lot of what would berequired to efficiently 
implement THREAD=REFS,but nobody has done the work to 
implement it.
It certainly will never be backported to the2.4 series, 
which is only getting security    updates and fixes for 
major bugs now.
Regards,
Bron.
On Fri, Oct 2, 2015, at 18:40, GabrieleBulfon wrote:
Hi,
we have systems running cyrus 2.4.12, where  thread 
algorithms are only references and  orderedsubject.
Is there support for the thread=refs  algorithm?
Thanks
Gabriele

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Bron Gondwana
br...@fastmail.fm
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.ed

Re: thread=refs

2016-07-08 Thread Gabriele Bulfon via Info-cyrus
Testing ;) and checking against a dovecot machine with refs and same messages.
Will let you know

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
gbul...@sonicle.com info-cyrus@lists.andrew.cmu.edu
Data:
8 luglio 2016 15.02.38 CEST
Oggetto:
Re: thread=refs
On 07/07/2016 02:03 PM, Gabriele Bulfon  via Info-cyrus wrote:
I can finally getback to this after so many months!
I checked thesources, and I actually see it doesn't look very hard.
Looks like:
- renaming allfunctions like "index_thread_ref" into 
"index_thread_references"
- duplicate themas "index_thread_refs"
- let "references"alg call the "references" funcs
- add support for"refs" in thread_algs and let them call the "refs" 
funcs
Makes sense.
then:
- completelyremove the call to "ref_group_subjects", we don't want it 
at allin refs
- change thesortcrit to use the SORT_REVERSE modifier
As long as you mean making these changes for just the "refs" variantand not 
both.
what do you think?may be fine?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
5 ottobre 2015 14.04.02 CEST
Oggetto:
Re: thread=refs
As far as I can tell, the last  specification for thread=refs was here:
https://tools.ietf.org/html/draft-ietf-morg-inthread-01
To implement this you want to look at index.c in the Cyrus  source and 
add another entry to the thread_algs[] array. I'm  guessing that you 
can reuse a lot of the existing  index_thread_ref() code (which is 
probably needs to be renamed  to index_thread_references()).
On 10/05/2015 06:07 AM, GabrieleBulfon wrote:
Great, Ken. Can you give me someadvice / pointer to the sources 
I should look at?
Gabriele
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 19.08.04 CEST
Oggetto:
Re: thread=refs
On 10/02/2015 10:53 AM,  Gabriele Bulfon wrote:
Nice, it's not a big deal for  us to upgrade to new 
versions, surely easier than  porting to Dovecot! ;)
So, maybe we can help with the implementation.
In my mind, it's almost about  changing the 
"thread=reference" and let it omit  the subject matching, 
change sorting
and...maybe just this? How  much hard do you think it is?
That sounds about right from what I remember of
THREAD=REFERENCES (which I co-authored and implemented)and 
THREAD=REFS (which I think was last documented in2010).
Da:
Bron Gondwana
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 12.59.08 CEST
Oggetto:
Re: thread=refs
No, there isn't. The conversations work in3.0 beta 
contains a lot of what would berequired to efficiently 
implement THREAD=REFS,but nobody has done the work to 
implement it.
It certainly will never be backported to the2.4 series, 
which is only getting security    updates and fixes for 
major bugs now.
Regards,
Bron.
On Fri, Oct 2, 2015, at 18:40, GabrieleBulfon wrote:
Hi,
we have systems running cyrus 2.4.12, where  thread 
algorithms are only references and  orderedsubject.
Is there support for the thread=refs  algorithm?
Thanks
Gabriele

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Bron Gondwana
br...@fastmail.fm
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-- Kenneth MurchisonPrincipal Systems Software EngineerCarnegie Mellon 
University
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-- Kenneth MurchisonPrincipal Systems Software EngineerCarnegie Mellon 
University
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-- Kenneth MurchisonPrincipal Systems Softwa

Re: thread=refs

2016-07-07 Thread Gabriele Bulfon via Info-cyrus
I can finally get back to this after so many months!
I checked the sources, and I actually see it doesn't look very hard.
Looks like:
- renaming all functions like "index_thread_ref" into "index_thread_references"
- duplicate them as "index_thread_refs"
- let "references" alg call the "references" funcs
- add support for "refs" in thread_algs and let them call the "refs" funcs
then:
- completely remove the call to "ref_group_subjects", we don't want it at all 
in refs
- change the sortcrit to use the SORT_REVERSE modifier
what do you think? may be fine?

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
5 ottobre 2015 14.04.02 CEST
Oggetto:
Re: thread=refs
As far as I can tell, the last specification for thread=refs washere:
https://tools.ietf.org/html/draft-ietf-morg-inthread-01
To implement this you want to look at index.c in the Cyrus sourceand add 
another entry to the thread_algs[] array.  I'm guessing thatyou can reuse a 
lot of the existing index_thread_ref() code (whichis probably needs to be 
renamed to index_thread_references()).
On 10/05/2015 06:07 AM, Gabriele Bulfon  wrote:
Great, Ken. Can you give me some advice /  pointer to the sources I 
should look at?
Gabriele
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 19.08.04 CEST
Oggetto:
Re: thread=refs
On 10/02/2015 10:53 AM, GabrieleBulfon wrote:
Nice, it's not a big deal for us toupgrade to new versions, 
surely easier than porting toDovecot! ;)
So, maybe we can help with the implementation.
In my mind, it's almost aboutchanging the "thread=reference" 
and let it omit thesubject matching, change sorting
and...maybe just this? How much harddo you think it is?
That sounds about right from what I remember of  THREAD=REFERENCES 
(which I co-authored and implemented) and  THREAD=REFS (which I think 
was last documented in 2010).
Da:
Bron Gondwana
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 12.59.08 CEST
Oggetto:
Re: thread=refs
No, there isn't. The conversations work in 3.0 beta  contains a 
lot of what would be required to  efficiently implement 
THREAD=REFS, but nobody has done  the work to implement it.
It certainly will never be backported to the 2.4  series, which 
is only getting security updates and      fixes for major bugs now.
Regards,
Bron.
On Fri, Oct 2, 2015, at 18:40, Gabriele Bulfon  wrote:
Hi,
we have systems running cyrus 2.4.12, wherethread 
algorithms are only references andorderedsubject.
Is there support for the thread=refs algorithm?
Thanks
Gabriele

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Bron Gondwana
br...@fastmail.fm
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-- Kenneth MurchisonPrincipal Systems Software EngineerCarnegie Mellon 
University
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-- Kenneth MurchisonPrincipal Systems Software EngineerCarnegie Mellon 
University

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

disable starttls, ssl only

2016-04-26 Thread Gabriele Bulfon via Info-cyrus
Hi,
is it possible to disable completely the starttls option on cyrus imapd?
I want just connections on 993 over ssl, no starttls at all.
I noticed a number of  "Fatal error: tls_start_servertls() failed" and noticed 
a slow down of the entire machine during these errors.
I wouldn't like to have some kind of ddos attak using starttls on 993 or 
something.
Gabriele

Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

residual moved folders

2016-03-08 Thread Gabriele Bulfon via Info-cyrus
Hi,
we noticed that when a user moves a big folder in a different tree position, 
that is shared among many connected users,
the original moved folder will be unvisible via imap commands to new 
connections, but will stay in the filesystem until old
connections get closed.
All fine.
Then, we noticed that sometimes the original moved folders may stay there 
forever in the filesystem, with all the emails and cyrus files.
Dates on files and the folders themselves show that they are not being touched 
since the moving date, and do not show anymore via imap.
Even restarting all the server, those folders remain.
How can avoid this situation? What is the possibility of this event?
At the moment I am scripting to find all folders that has no "lm" via cyradm.
May I feel safe removing physically the residuals found folders?
Thanks for any help.
Gabriele

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

2.4.12 and folders with spaces and same prefix double

2016-01-08 Thread Gabriele Bulfon via Info-cyrus
Hi,
I don't know if this is is related to bug 3628 (
https://bugzilla.cyrusimap.org/show_bug.cgi?id=3628
).
If I have two main folders:
"Test"
"Test_2016"
I get correct list with LIST "" "%".
If I have :
"Test"
"Test 2016"
I get this wrong answer with LIST "" "%":
* LIST (\HasNoChildren) "/" Test
* LIST (\HasChildren) "/" "Test 2016"
* LIST (\HasChildren) "/" Test
where some imap tree code may be misleaded by the presence of a double "Test" 
folder, one with and one without children.
Any clue?
Gabriele

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: thread=refs

2015-10-05 Thread Gabriele Bulfon
Great, Ken. Can you give me some advice / pointer to the sources I should look 
at?
Gabriele
Da:
Ken Murchison
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 19.08.04 CEST
Oggetto:
Re: thread=refs
On 10/02/2015 10:53 AM, Gabriele Bulfon  wrote:
Nice, it's not a big deal for us to  upgrade to new versions, surely 
easier than porting to  Dovecot! ;)
So, maybe we can help with the implementation.
In my mind, it's almost about changing the  "thread=reference" and let 
it omit the subject matching,  change sorting
and...maybe just this? How much hard do  you think it is?
That sounds about right from what I remember of THREAD=REFERENCES(which I 
co-authored and implemented) and THREAD=REFS (which I thinkwas last 
documented in 2010).
Da:
Bron Gondwana
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 12.59.08 CEST
Oggetto:
Re: thread=refs
No, there isn't. The conversations work in 3.0 betacontains a lot 
of what would be required to efficientlyimplement THREAD=REFS, but 
nobody has done the work toimplement it.
It certainly will never be backported to the 2.4 series,which is 
only getting security updates and fixes for majorbugs now.
Regards,
Bron.
On Fri, Oct 2, 2015, at 18:40, Gabriele Bulfon wrote:
Hi,
we have systems running cyrus 2.4.12, where thread  algorithms are 
only references and orderedsubject.
Is there support for the thread=refs algorithm?
Thanks
Gabriele

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Bron Gondwana
br...@fastmail.fm
Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-- Kenneth MurchisonPrincipal Systems Software EngineerCarnegie Mellon 
University

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

thread=refs

2015-10-02 Thread Gabriele Bulfon
Hi,
we have systems running cyrus 2.4.12, where thread algorithms are only 
references and orderedsubject.
Is there support for the thread=refs algorithm?
Thanks
Gabriele

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: thread=refs

2015-10-02 Thread Gabriele Bulfon
Nice, it's not a big deal for us to upgrade to new versions, surely easier than 
porting to Dovecot! ;)
So, maybe we can help with the implementation.
In my mind, it's almost about changing the "thread=reference" and let it omit 
the subject matching, change sorting
and...maybe just this? How much hard do you think it is?
We use cyrus built from sources on our XStreamOS/illumos distribution for years 
now, and we used it for ages on
Solaris 8/9/10, but we never ever need to change its code.
Happy to help, if we can.
Gabriele
Da:
Bron Gondwana
A:
info-cyrus@lists.andrew.cmu.edu
Data:
2 ottobre 2015 12.59.08 CEST
Oggetto:
Re: thread=refs
No, there isn't.  The conversations work in 3.0 beta contains a lot of what 
would be required to efficiently implement THREAD=REFS, but nobody has done the 
work to implement it.
It certainly will never be backported to the 2.4 series, which is only getting 
security updates and fixes for major bugs now.
Regards,
Bron.
On Fri, Oct 2, 2015, at 18:40, Gabriele Bulfon wrote:
Hi,
we have systems running cyrus 2.4.12, where thread algorithms are only 
references and orderedsubject.
Is there support for the thread=refs algorithm?
Thanks
Gabriele

Cyrus Home Page:
http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Bron Gondwana
br...@fastmail.fm

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: saslauthd and multiple dc levels

2014-12-30 Thread Gabriele Bulfon
Hi, I'm trying to follow your suggestion.
So, first I changed openldap configuration with sasl-secprops  none to have 
also plain auth enabled.
Running pluginviewer to see the plugins:
Sonicle XStream Server (XStreamOS/illumos) SunOS 5.11 xs_153 Apr 2014
sonicle@www:~$ pluginviewer -m PLAIN
Installed and properly configured auxprop mechanisms are:
sasldb
List of auxprop plugins follows
Plugin sasldb ,   API version: 8
supports store: yes
Installed and properly configured SASL (server side) mechanisms are:
SCRAM-SHA-1 GS2-IAKERB GS2-KRB5 GSSAPI DIGEST-MD5 EXTERNAL OTP CRAM-MD5 PLAIN 
ANONYMOUS
Available SASL (server side) mechanisms matching your criteria are:
PLAIN
List of server plugins follows
Plugin plain [loaded],API version: 4
SASL mechanism: PLAIN, best SSF: 0, supports setpass: no
security flags: NO_ANONYMOUS|PASS_CREDENTIALS
features: WANT_CLIENT_FIRST|PROXY_AUTHENTICATION
Installed and properly configured SASL (client side) mechanisms are:
SCRAM-SHA-1 GS2-IAKERB GS2-KRB5 GSSAPI DIGEST-MD5 EXTERNAL OTP CRAM-MD5 PLAIN 
ANONYMOUS
Available SASL (client side) mechanisms matching your criteria are:
SCRAM-SHA-1 GS2-IAKERB GS2-KRB5 GSSAPI DIGEST-MD5 EXTERNAL OTP CRAM-MD5 PLAIN 
ANONYMOUS
List of client plugins follows
Plugin plain [loaded],API version: 4
SASL mechanism: PLAIN, best SSF: 0
security flags: NO_ANONYMOUS|PASS_CREDENTIALS
features: WANT_CLIENT_FIRST|PROXY_AUTHENTICATION
Now running a search of SASL mechs:
sonicle@www:~$ ldapsearch -xLLLH 'ldap://localhost/' -s base -b '' 
'supportedSASLMechanisms'
dn:
supportedSASLMechanisms: SCRAM-SHA-1
supportedSASLMechanisms: GS2-IAKERB
supportedSASLMechanisms: GS2-KRB5
supportedSASLMechanisms: GSSAPI
supportedSASLMechanisms: DIGEST-MD5
supportedSASLMechanisms: OTP
supportedSASLMechanisms: CRAM-MD5
supportedSASLMechanisms: PLAIN
supportedSASLMechanisms: ANONYMOUS
Now, try plain auth doing a earch of an existing user:
sonicle@www:~$ ldapsearch -Y PLAIN -U test.u...@sonicle.com -H ldap://localhost 
-W
Enter LDAP Password:
ldap_sasl_interactive_bind_s: Unknown authentication method (-6)
additional info: SASL(-4): no mechanism available: No worthy mechs found
Can't find a reason for ldapsearch not finding the plain mech.
Also, slapd has been built with sasl:
sonicle@www:~$ ldd /sonicle/libexec/slapd
libdb-4.8.so =/sonicle/lib/libdb-4.8.so
libpthread.so.1 =/lib/libpthread.so.1
libsasl2.so.2 =/sonicle/lib/libsasl2.so.2
libdl.so.1 =/lib/libdl.so.1
libssl.so.0.9.8 =/lib/libssl.so.0.9.8
libcrypto.so.0.9.8 =/lib/libcrypto.so.0.9.8
libresolv.so.2 =/lib/libresolv.so.2
libgen.so.1 =/lib/libgen.so.1
libnsl.so.1 =/lib/libnsl.so.1
libsocket.so.1 =/lib/libsocket.so.1
libc.so.1 =/lib/libc.so.1
libgcc_s.so.1 =/usr/sfw/lib/libgcc_s.so.1
libmd.so.1 =/lib/libmd.so.1
libmp.so.2 =/lib/libmp.so.2
libm.so.2 =/lib/libm.so.2
Any clue? Or...any simpler way to let saslauthd do multiple search base 
takes?...or maybe let it choose the correct search base
depending on the number of dc arguments determined?
Thanks for your help!
Gabriele.
--
Da: Dan White
A: Willy Offermans
Cc: Gabriele Bulfon
Raffaele Fullone
info-cyrus@lists.andrew.cmu.edu
Data: 23 dicembre 2014 16.52.46 CET
Oggetto: Re: saslauthd and multiple dc levels
On 12/23/14 16:07 +0100, Willy Offermans wrote:
Hello Dan,
On Tue, Dec 23, 2014 at 08:50:07AM -0600, Dan White wrote:
On 12/23/14 15:22 +0100, Gabriele Bulfon wrote:
How can I let saslauthd support both configurations?
Is the server OpenLDAP? If so, using olcAuthzRegexp would be a far more
flexible way to handle this scenario. Within saslauthd's ldap config, use
'ldap_use_sasl' without specifying a search filter or base.
Within slapd, your regex rules could perform a subtree search, or a simple
string replacement for each domain. See
http://www.openldap.org/doc/admin24/sasl.html and slapd-config(5).
I don't understand how this works.
ldap_use_sasl in saslauthd.conf tells saslauthd to contact OpenLDAP server
via sasl protocol directly. Is this correct?
Correct. The ldap backend to saslauthd itself performs sasl authentication.
And what happens then? How do saslauthd and slapd communicate and how is
authentication performed?
The communication between Cyrus IMAP and saslauthd would not change. imapd
would still communicate with saslauthd in the same manor, by submitting a
username and password via the saslauthd mux.
The ldap backend to saslauthd can be configured to perform SASL over LDAP
authentication to slapd (not to be confused with SASL over IMAP
authentication). slapd would simply return a successful bind code back to
the saslauthd backend, which in turn would respond with an 'OK' to cyrus
IMAP.
Using SASL within the LDAP saslauthd backend is a much simpler
configuration. i.e.:
ldap_servers: ldap://ldap.example.com
ldap_use_sasl: yes
ldap_mech: PLAIN
(This may require you to configure olcSaslSecProps)
The '-r' option to saslauthd may be necessary, if you're not already

saslauthd and multiple dc levels

2014-12-23 Thread Gabriele Bulfon
Hi,
I recently stumbled upon this issue, where I can't find a solution.
Same cyrus/sasl server, serving multiple 2 level domains (dc=domain,dc=com).
Sasl configuration is like:
ldap_search_base: ou=People,dc=%2,dc=%1
ldap_filter: uid=%u
Enter a new domain, but this time it's a 3 level one (dc=dpt,dc=domain,dc=com).
Sasl configuration should be like:
ldap_search_base: ou=People,dc=%3,dc=%2,dc=%1
ldap_filter: uid=%u
How can I let saslauthd support both configurations?
Google didn't find an answer to this, just a lot of confused discussions.
Any help? :)
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

postfix-amavis-cyrus on multidomain ldap

2014-08-04 Thread Gabriele Bulfon
Hi,
I've been using postfix-amavis-cyrus for years, with normal passwd+aliases mode.
We recently switched to virtual domains using ldap.
Because we don't want to mantain a virtual mailbox map for postfix, we decided 
to have
a vmailbox file like:
@domain1 allow
@domain2 allow
and have cyrus detect wrong destinations, via ldap.
What happens here, is that any quarantined mail by amavis (having very high 
score, that should
not even be reconsidered once qurantined) get back to postfix in some way, 
devliered to cyrus,
which in many cases is a wrong invented mailbox, so back to postfix wich sends 
back en error.
This was not happening before: a quarantined mail by amavis would be just 
quarantined.
No answer back. No delivery in the spam folder.
So first, my question is: why the mail is being delivered to postfix even if 
it's quarantined and
have a very high score?
Last question is about configuring vmailbox to lookup ldap.
I've seen many examples, but they all look for a single domain, while I have 
multiple domains
both in cyrus,ldap and postfix.
Exemples like this:
server_host = localhost
search_base = ou=Users,dc=example,dc=com
version = 3
scope = sub
query_filter = (mail=%s)
result_attribute = mail
are for just the example.com domain
How should I write the vmailbox ldap file to query different domains?
Thanks for any help
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Sieve vacation in virtdomains / ldap

2013-06-15 Thread Gabriele Bulfon
Hi,
we've been using cyrus for years in pam auth mode, with vacation scripts 
working correctly.
We recently switched to virtdomains: userid using ldap authentication.
Since this switch, vacation scripts are never considered, while filters parts 
of the script work fine.
Sieve scripts are usually like this:
#
# Generated by Sonicle WebTop Services [http://www.sonicle.com]
#
require [fileinto,vacation,reject];
if anyof (header :contains subject ***SPAM***) {
fileinto Spam;
}
else {
keep;
}
vacation :days 1 :addresses [realm...@realdomain.com] text:
Test risposta automatica.
.
;
Is there anything to consider in virtomains mode??
Thanks for any help
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

domain mode mailbox aliasing

2013-02-18 Thread Gabriele Bulfon
Hi,
I recently reimplemented cyrus+postfix+ldap in multi domain mode, and 
everything works fine.
I found my self needing to convert a situation where a dom1.com is same as 
dom2.com,
and every user in 1st domain are actually the same users of 2nd domain.
On postfix, I can manage this with virtual aliases.
On ldap, I could manage common authentication through relay / rwm, so that 
u...@dom1.com
can still authenticate as u...@dom2.com, with same password (and this works for 
any service
trying to authenticate on ldap).
Being cyrus authentication routed through saslauthd+ldap, I can authenticate on 
imap both
as u...@dom1.com and u...@dom2.com, but then cyrus look for a different mailbox 
as it doesn't
actually know the two domains are the same one.
Is there any way to instruct cyrus to treat dom2.com as dom1.com?
Thanx for any help.
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: IMAP on NFS still unusable?

2011-10-28 Thread Gabriele Bulfon
Interesting.
Though, I noticed that NFS client on Linux is much less performant than my old 
beloved Solaris10.
That's why I'm moving to OpenIndiana, I will check if I will get the same as 
Solaris 10, probably
BSD unixes have better NFS than Linux.
Gabriele.
--
Da: Francesc Guasch
A: info-cyrus@lists.andrew.cmu.edu
Data: 28 ottobre 2011 9.14.30 CEST
Oggetto: Re: IMAP on NFS still unusable?
Al 24/10/11 15:20, En/na Gabriele Bulfon ha escrit:
I read all around the web that is not safe to run Cyrus imap over NFS, but
these posts are old,
so I was wandering if something changed with new releases of Cyrus and/or NFS.
Hi. I am also interested in a NFS backend. I don't want to share
the NFS partition among servers, so locking should not be an issue.
I found this FAQ, it is old:
http://www.cyrusimap.org/docs/cyrus-imapd/2.2.13p1/faq.php
Actually, I have a Solaris based Cyrus 2.3.16 that happily runs its spool over
NFS, and it's even
quite fast.
I do have a cyrus-2.2 with the mail spool in NFS but the /var/lib/cyrus
in local drive. It runs fine so long. It is even faster than iSCSI in
my hardware.
Now, I'm trying with a Linux and Cyrus 2.4.12. Here it looks unstable,
sometime fast, sometime like locked.
I guess you already found it, but did you see this thread ?
http://comments.gmane.org/gmane.mail.imap.cyrus/26472

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

moving from linux to openindiana

2011-10-26 Thread Gabriele Bulfon
Hi,
may I safely move the cyrus db (/var/imap) and spool (/var/spool/imap) from 
linux to an openindiana?

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: imapd 2.4.12 hangs SOLVED bug in configure?

2011-10-24 Thread Gabriele Bulfon
Problem solved: the imap daemon forking from master, was looking for the 
imapd.conf
in the wrong place, and died unexpectedly.
My configure specifies --prefix=/sonicle, and any cyrus daemon usually looks at 
/sonicle/etc
Looks like last 4-5 source distros do not get the default of PREFIX/etc, so I 
had to force it
through --sysconfdir=/sonicle/etc
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 24 ottobre 2011 9.28.38 CEST
Oggetto: Re: imapd 2.4.12 hangs
I see, and I remember reading about it.
But, what will happen if I make install a skiplist version onto an older
BDB deployment
with running users? Will I need to run a reconstruct? Will I need to get
rid of older bdb files
manually? Also, do you think I will find any benefits by using skiplist on
NFS instead of BDB?
Sorry, I can't help you here as we only do packaging on build hosts and
then install resulting RPMs on production systems.
What I'm sure is that you have to convert away from BDB before installing
new binaries, because they won't do anything with any BDB file.
I have never used NFS in this case.
Simon
Inviato da iPad
Il giorno 21/ott/2011, alle ore 14:07, Simon Matter
ha scritto:
Well, I've been using BDB for years on Cyrus.
Now I'm rebuilding a new distribution with the latest Cyrus, and I just
went on with the same
scheme.
How do I get rid of BDB? What will it use instead?
skiplist, most databases default to skiplist anyway. Those which still
default to BDB can be configured to use skiplist instead. Works fine for
me and many others.
Of course, I don't say your problems have to do with BDB, it's just
possible.
Simon
Gabriele.
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 21 ottobre 2011 12.17.33 CEST
Oggetto: Re: imapd 2.4.12 hangs
Hi, I'm still having trouble running 2.4.12, once started, if I connect
to
port 143, I never
get the hello response, and the launched imapd goes in a loop.
These is the output of ldd against master, maybe some libraries are bad
versions?
Hi,
Do you build yourself? If so, do you really need BDB? I not, then you
may
want to build without BDB just to make sure to get rid of a possible
source of problems.
Regards,
Simon
linux-gate.so.1 =(0x009ff000)
libgssapi_krb5.so.2 =/sonicle/lib/libgssapi_krb5.so.2 (0x00a81000)
libkrb5.so.3 =/sonicle/lib/libkrb5.so.3 (0x00923000)
libk5crypto.so.3 =/sonicle/lib/libk5crypto.so.3 (0x00b76000)
libcom_err.so.3 =/sonicle/lib/libcom_err.so.3 (0x004a3000)
libkrb5support.so.0 =/sonicle/lib/libkrb5support.so.0 (0x00cc8000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00a2e000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x0030)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0011)
libdb-4.8.so =/sonicle/lib/libdb-4.8.so (0x004a6000)
libpcre.so.0 =/sonicle/lib/libpcre.so.0 (0x00257000)
libpcreposix.so.0 =/sonicle/lib/libpcreposix.so.0 (0x00cdf000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00277000)
libc.so.6 =/lib/libc.so.6 (0x00655000)
libdl.so.2 =/lib/libdl.so.2 (0x0028f000)
libpthread.so.0 =/lib/libpthread.so.0 (0x00294000)
/lib/ld-linux.so.2 (0x00421000)

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

IMAP on NFS still unusable?

2011-10-24 Thread Gabriele Bulfon
Hi,
I have an openindiana based storage, holding native ZFS filesystems shared over 
NFS,
allowing me to benefit of ZFS snapshots even with systems that cannot ZFS 
(Linux in this case).
I read all around the web that is not safe to run Cyrus imap over NFS, but 
these posts are old,
so I was wandering if something changed with new releases of Cyrus and/or NFS.
Actually, I have a Solaris based Cyrus 2.3.16 that happily runs its spool over 
NFS, and it's even
quite fast.
Now, I'm trying with a Linux and Cyrus 2.4.12. Here it looks unstable, sometime 
fast, sometime like locked.
Any experience?
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

imapd 2.4.12 hangs

2011-10-21 Thread Gabriele Bulfon
Hi, I'm still having trouble running 2.4.12, once started, if I connect to port 
143, I never
get the hello response, and the launched imapd goes in a loop.
These is the output of ldd against master, maybe some libraries are bad 
versions?
linux-gate.so.1 =(0x009ff000)
libgssapi_krb5.so.2 =/sonicle/lib/libgssapi_krb5.so.2 (0x00a81000)
libkrb5.so.3 =/sonicle/lib/libkrb5.so.3 (0x00923000)
libk5crypto.so.3 =/sonicle/lib/libk5crypto.so.3 (0x00b76000)
libcom_err.so.3 =/sonicle/lib/libcom_err.so.3 (0x004a3000)
libkrb5support.so.0 =/sonicle/lib/libkrb5support.so.0 (0x00cc8000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00a2e000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x0030)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0011)
libdb-4.8.so =/sonicle/lib/libdb-4.8.so (0x004a6000)
libpcre.so.0 =/sonicle/lib/libpcre.so.0 (0x00257000)
libpcreposix.so.0 =/sonicle/lib/libpcreposix.so.0 (0x00cdf000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00277000)
libc.so.6 =/lib/libc.so.6 (0x00655000)
libdl.so.2 =/lib/libdl.so.2 (0x0028f000)
libpthread.so.0 =/lib/libpthread.so.0 (0x00294000)
/lib/ld-linux.so.2 (0x00421000)

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: imapd 2.4.12 hangs

2011-10-21 Thread Gabriele Bulfon
Well, I've been using BDB for years on Cyrus.
Now I'm rebuilding a new distribution with the latest Cyrus, and I just went on 
with the same
scheme.
How do I get rid of BDB? What will it use instead?
Gabriele.
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 21 ottobre 2011 12.17.33 CEST
Oggetto: Re: imapd 2.4.12 hangs
Hi, I'm still having trouble running 2.4.12, once started, if I connect to
port 143, I never
get the hello response, and the launched imapd goes in a loop.
These is the output of ldd against master, maybe some libraries are bad
versions?
Hi,
Do you build yourself? If so, do you really need BDB? I not, then you may
want to build without BDB just to make sure to get rid of a possible
source of problems.
Regards,
Simon
linux-gate.so.1 =(0x009ff000)
libgssapi_krb5.so.2 =/sonicle/lib/libgssapi_krb5.so.2 (0x00a81000)
libkrb5.so.3 =/sonicle/lib/libkrb5.so.3 (0x00923000)
libk5crypto.so.3 =/sonicle/lib/libk5crypto.so.3 (0x00b76000)
libcom_err.so.3 =/sonicle/lib/libcom_err.so.3 (0x004a3000)
libkrb5support.so.0 =/sonicle/lib/libkrb5support.so.0 (0x00cc8000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00a2e000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x0030)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0011)
libdb-4.8.so =/sonicle/lib/libdb-4.8.so (0x004a6000)
libpcre.so.0 =/sonicle/lib/libpcre.so.0 (0x00257000)
libpcreposix.so.0 =/sonicle/lib/libpcreposix.so.0 (0x00cdf000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00277000)
libc.so.6 =/lib/libc.so.6 (0x00655000)
libdl.so.2 =/lib/libdl.so.2 (0x0028f000)
libpthread.so.0 =/lib/libpthread.so.0 (0x00294000)
/lib/ld-linux.so.2 (0x00421000)

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: imapd 2.4.12 hangs

2011-10-21 Thread Gabriele Bulfon
I see, and I remember reading about it.
But, what will happen if I make install a skiplist version onto an older BDB 
deployment
with running users? Will I need to run a reconstruct? Will I need to get rid of 
older bdb files
manually? Also, do you think I will find any benefits by using skiplist on NFS 
instead of BDB?
Thanx again
Gabriele

Inviato da iPad

Il giorno 21/ott/2011, alle ore 14:07, Simon Matter simon.mat...@invoca.ch 
ha scritto:

 Well, I've been using BDB for years on Cyrus.
 Now I'm rebuilding a new distribution with the latest Cyrus, and I just
 went on with the same
 scheme.
 How do I get rid of BDB? What will it use instead?
 
 skiplist, most databases default to skiplist anyway. Those which still
 default to BDB can be configured to use skiplist instead. Works fine for
 me and many others.
 
 Of course, I don't say your problems have to do with BDB, it's just possible.
 
 Simon
 
 Gabriele.
 --
 Da: Simon Matter
 A: Gabriele Bulfon
 Cc: info-cyrus@lists.andrew.cmu.edu
 Data: 21 ottobre 2011 12.17.33 CEST
 Oggetto: Re: imapd 2.4.12 hangs
 Hi, I'm still having trouble running 2.4.12, once started, if I connect to
 port 143, I never
 get the hello response, and the launched imapd goes in a loop.
 These is the output of ldd against master, maybe some libraries are bad
 versions?
 Hi,
 Do you build yourself? If so, do you really need BDB? I not, then you may
 want to build without BDB just to make sure to get rid of a possible
 source of problems.
 Regards,
 Simon
 linux-gate.so.1 =(0x009ff000)
 libgssapi_krb5.so.2 =/sonicle/lib/libgssapi_krb5.so.2 (0x00a81000)
 libkrb5.so.3 =/sonicle/lib/libkrb5.so.3 (0x00923000)
 libk5crypto.so.3 =/sonicle/lib/libk5crypto.so.3 (0x00b76000)
 libcom_err.so.3 =/sonicle/lib/libcom_err.so.3 (0x004a3000)
 libkrb5support.so.0 =/sonicle/lib/libkrb5support.so.0 (0x00cc8000)
 libresolv.so.2 =/lib/libresolv.so.2 (0x00a2e000)
 libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x0030)
 libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0011)
 libdb-4.8.so =/sonicle/lib/libdb-4.8.so (0x004a6000)
 libpcre.so.0 =/sonicle/lib/libpcre.so.0 (0x00257000)
 libpcreposix.so.0 =/sonicle/lib/libpcreposix.so.0 (0x00cdf000)
 libz.so.1 =/sonicle/lib/libz.so.1 (0x00277000)
 libc.so.6 =/lib/libc.so.6 (0x00655000)
 libdl.so.2 =/lib/libdl.so.2 (0x0028f000)
 libpthread.so.0 =/lib/libpthread.so.0 (0x00294000)
 /lib/ld-linux.so.2 (0x00421000)
 
 Cyrus Home Page: http://www.cyrusimap.org/
 List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
 
 
 
 

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: user folder

2011-10-13 Thread Gabriele Bulfon
 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32], NULL, NULL, 
{8, 0}) = 1 (in [10], left {8, 0})
time(NULL)  = 1318493062
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0xb7fef708) = 20198
time(NULL)  = 1318493062
gettimeofday({1318493062, 9412}, NULL)  = 0
never ending loop here.
Any clue?
--
Da: Bron Gondwana
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 11 ottobre 2011 15.48.54 CEST
Oggetto: Re: user folder
Date:   Tue Oct 19 14:08:28 2010 +1100
Release 2.4.2
There were numerous bugs in early 2.4 versions related to configurations
which I hadn't used, and which hadn't been tested enough when developing
it.  As others have said, 2.4.2 is very early 2.4 series, and had many
bugs.  2.4.12 is much better.
Bron.
On 10/11/2011 11:57 AM, Gabriele Bulfon wrote:
Hi
I'm using cyrus in production for years, recently I'm working on a new
distribution with a new
update cyrus, built from sources.
Previous version was 2.3.16, new version is 2.4.2.
On the previous version, you could issue 'LIST  user' to the imap
server and receive this response:
A0 LIST  user
* LIST (\Noselect \HasChildren) . user
A0 OK Completed (0.260 secs 419 calls)
In the new version the response is different:
A0 LIST  user
A0 OK Completed (0.030 secs 202 calls)
This open up a problem to our web app using JavaMail, when it tries to
list the shared folders from
other users.
The code examines the user namespaces and finds user.
Then it asks JavaMail to list the folder user to obtain the list of
users sharing something.
Debugging the IMAP transaction, I see JavaMail trying to do the above
command first,
then, after receiving the response, it will issue a LIST  user.% and
go on.
Now, because the above command answers with nothing, I can't seem to
find a correct way to
list the user magic folder.
Why has this changed in Cyrus?
Is there any way I can let it work as before?
Thanks,
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: user folder

2011-10-13 Thread Gabriele Bulfon
Hi, thanx.
Here's my configure:
./configure --prefix=/sonicle --with-cyrus-user=sonicle 
--with-cyrus-group=sonicle --enable-idled --with-lock=fcntl 
--with-ldap=/sonicle --with-bdb-libdir=/sonicle/lib 
--with-bdb-incdir=/sonicle/include --with-sasl=/sonicle 
--with-cyrus-prefix=/sonicle --without-snmp CFLAGS=-I/sonicle/include 
CXXFLAGS=-I/sonicle/include LDFLAGS=-L/sonicle/lib
All of the required libs are inside our /sonicle/lib, built against sources:
- libz.so.1.2.5
- libssl.so.0.9.8
--
Da: Bron Gondwana
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 13 ottobre 2011 11.20.37 CEST
Oggetto: Re: user folder
Sounds like there's something wrong in your compile... are you compiling
with zlib and openssl?
Bron.
On 10/13/2011 10:11 AM, Gabriele Bulfon wrote:
Hi,
as suggested, I upgraded to 2.4.12, but master seems to hang on first
telnet to 143, never
giving me the cyrus imap welcome string.
I tried to step back up to 2.4.10 always with the same problem.
Then got back to 2.4.2 and is fine again.
I used strace to check what master is doing on my first connect, and
compared what happens
on 2.4.2 and on 2.4.12. Looks like 2.4.12 goes into a loop.
Here are the outputs of strace:
2.4.2
=
[sonicle@xstream ~]$ sudo strace -p 19790
Process 19790 attached - interrupt to quit
select(33, [7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32],
NULL, NULL, {1, 95000}) = 0 (Timeout)
time(NULL) = 1318492904
gettimeofday({1318492904, 52043}, NULL) = 0
select(33, [7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32],
NULL, NULL, {10, 0}) = 1 (in [10], left {1, 804000})
time(NULL) = 1318492912
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7f9d708) = 19802
time(NULL) = 1318492912
gettimeofday({1318492912, 251845}, NULL) = 0
select(33, [7 8 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32], NULL,
NULL, {2, 0}) = 1 (in [11], left {1, 938000})
read(11, \2\0\0\0ZM\0\0, 8) = 8
read(11, 0xbf833a34, 8) = -1 EAGAIN (Resource temporarily unavailable)
time(NULL) = 1318492912
gettimeofday({1318492912, 314802}, NULL) = 0
select(33, [7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32],
NULL, NULL, {2, 0}) = 1 (in [11], left {2, 0})
read(11, \3\0\0\0ZM\0\0, 8) = 8
read(11, 0xbf833a34, 8) = -1 EAGAIN (Resource temporarily unavailable)
time(NULL) = 1318492912
gettimeofday({1318492912, 315531}, NULL) = 0
select(33, [7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32],
NULL, NULL, {2, 0}) = 0 (Timeout)
time(NULL) = 1318492914
gettimeofday({1318492914, 315843}, NULL) = 0
select(33, [7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32],
NULL, NULL, {10, 0}
..
2.4.12
==
select(33, [7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32],
NULL, NULL, {8, 0}) = 1 (in [10], left {8, 0})
time(NULL) = 1318493061
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7fef708) = 20196
time(NULL) = 1318493061
gettimeofday({1318493061, 990811}, NULL) = 0
select(33, [7 8 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32], NULL,
NULL, {8, 0}) = ? ERESTARTNOHAND (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
waitpid(-1, [{WIFEXITED(s)  WEXITSTATUS(s) == 75}], WNOHANG) = 20196
time(NULL) = 1318493061
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
send(5, 
Oct 13 10:04:21 master[2015..., 67, MSG_NOSIGNAL) = 67
time(NULL) = 1318493061
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
send(5, 
Oct 13 10:04:21 master[2015..., 96, MSG_NOSIGNAL) = 96
time(NULL) = 1318493061
waitpid(-1, 0xbfb42b64, WNOHANG) = -1 ECHILD (No child processes)
select(33, [7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32],
NULL, NULL, {8, 0}) = 1 (in [10], left {8, 0})
time(NULL) = 1318493061
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7fef708) = 20197
time(NULL) = 1318493061
gettimeofday({1318493062, 264}, NULL) = 0
select(33, [7 8 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32], NULL,
NULL, {8, 0}) = ? ERESTARTNOHAND (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
waitpid(-1, [{WIFEXITED(s)  WEXITSTATUS(s) == 75}], WNOHANG) = 20197
time(NULL) = 1318493062
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
send(5, 
Oct 13 10:04:22 master[2015..., 67, MSG_NOSIGNAL) = 67
time(NULL) = 1318493062
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size

user folder

2011-10-11 Thread Gabriele Bulfon
Hi
I'm using cyrus in production for years, recently I'm working on a new 
distribution with a new
update cyrus, built from sources.
Previous version was 2.3.16, new version is 2.4.2.
On the previous version, you could issue 'LIST  user' to the imap server and 
receive this response:
A0 LIST  user
* LIST (\Noselect \HasChildren) . user
A0 OK Completed (0.260 secs 419 calls)
In the new version the response is different:
A0 LIST  user
A0 OK Completed (0.030 secs 202 calls)
This open up a problem to our web app using JavaMail, when it tries to list the 
shared folders from
other users.
The code examines the user namespaces and finds user.
Then it asks JavaMail to list the folder user to obtain the list of users 
sharing something.
Debugging the IMAP transaction, I see JavaMail trying to do the above command 
first,
then, after receiving the response, it will issue a LIST  user.% and go on.
Now, because the above command answers with nothing, I can't seem to find a 
correct way to
list the user magic folder.
Why has this changed in Cyrus?
Is there any way I can let it work as before?
Thanks,
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: sql authentication

2011-01-31 Thread Gabriele Bulfon
Oh yes I got the same answer privately by anothe user on this list :)
Thanks a lot!
Gabriele.
--
Da: Michael Menge
A: info-cyrus@lists.andrew.cmu.edu
Data: 27 gennaio 2011 9.35.35 CET
Oggetto: Re: sql authentication
Hi,
Quoting Gabriele Bulfon
:
...to bd.. :(
--
Da: Berend de Boer
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 26 gennaio 2011 18.20.11 CET
Oggetto: Re: sql authentication
Gabriele == Gabriele Bulfon
writes:
GabrieleLast but not least, my password is encrypted.  My
Gabrieleapplications usually encrypt the typed password with a
Gabrieleselected algorithm, and matches the two encrypted
Gabrieleresults. I may have no way do decrypt the saved password
Gabrielein the db.
I have found no option so far to use encrypted passwords, so mailbox
passwords are stored unencrypted in the database.
You can use pam_sql (pam_pgsql, pam_mysql) to use encrypted passwords
stored in postgresql or mysql via pam.
http://puszcza.gnu.org.ua/software/pam-modules/download.html

M.MengeTel.: (49) 7071/29-70316
Universität Tübingen   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung  mail:
michael.me...@zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: sql authentication

2011-01-27 Thread Gabriele Bulfon
...to bd.. :(
--
Da: Berend de Boer
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 26 gennaio 2011 18.20.11 CET
Oggetto: Re: sql authentication
Gabriele == Gabriele Bulfon
writes:
GabrieleLast but not least, my password is encrypted.  My
Gabrieleapplications usually encrypt the typed password with a
Gabrieleselected algorithm, and matches the two encrypted
Gabrieleresults. I may have no way do decrypt the saved password
Gabrielein the db.
I have found no option so far to use encrypted passwords, so mailbox
passwords are stored unencrypted in the database.
--
All the best,
Berend de Boer

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: sql authentication

2011-01-26 Thread Gabriele Bulfon
Yes, I thought about this as a possible way.
Thanks :)
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 26 gennaio 2011 9.56.11 CET
Oggetto: Re: sql authentication
Hi,
I've been using cyrus imapd for years using saslauthd against unix
passwd/shadow.
This way it's easy to understand the relation between a user and its
mailbox.
Now I want to integrate authentication with a sql backend, forgetting
about unix users.
I have a postgres db containing users and passwords.
These are actually a complete email and a password.
I would like imapd to authenticate using my db, where login is an email.
I've seen many ways to accomplish sql authentication, so I don't know
which is the right one.
At last, how do I map the complete email to a cyrus mailbox?
For example, if a user succesfully authenticate as
name.lastn...@domain.com, how does
cyrus translate it into a user.mailbox?
Hi,
I could be wrong but I think cyrus doesn't handle this case the way you
want it. I think the @domain.com part will be stripped as configured but
you end up with name.lastname, which will also be used as mailbox name. To
do this, the usual hack seems to be to enable unixhierarchysep and then
use mailbox names in the form of user/name.lastname.
Of course, I may be completely wrong because I have never used such thing
and it's some years ago when I looked at this last time.
Simon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: Re: sql authentication

2011-01-26 Thread Gabriele Bulfon
Thanks, another interesting option.
How would I let it query my postgres db?
And what if the password in the db is encrypted with SHA or DES?
--
Da: Syren Baran
A: simon.mat...@invoca.ch
Cc: gbul...@sonicle.com info-cyrus@lists.andrew.cmu.edu
Data: 26 gennaio 2011 10.59.45 CET
Oggetto: Re: Re: sql authentication
Am Mittwoch, den 26.01.2011, 09:56 +0100 schrieb Simon Matter:
Hi,
I could be wrong but I think cyrus doesn't handle this case the way you
want it. I think the @domain.com part will be stripped as configured but
you end up with name.lastname, which will also be used as mailbox name.
Actually, if you use saslauthd, you can use the -r flag, then its
possible to authenticate against the email-address instead of just the
username part.
You will also want to check that the mta calls cyrdeliver in a similiar
fashion, e.g. /usr/sbin/cyrdeliver -e -m ${extension} ${user}@
${domain} in postfix.
Creating the mailbox is simple, e.g sending a . create
user/first.l...@domain.tld via imap (using unix hierachy seperators,
obviously).
Syren
+++
Niederlassung Deutschland:
BIT-HOUSE Ltd.
internet professionals
Erthalstr. 17
63739 Aschaffenburg
Deutschland
Amtsgericht:Aschaffenburg
HRB-Nr.:9136
St/Nr.: 204/104/60603
USt-Id-Nr.: DE814408164
Gechäftsführer: Thomas Witzel
+++
Telefon:+49.6021.8622-680
VoIP:   +49.6021.8622-680
Fax:+49.6021.8622-676
E-Mail: m...@bit-house.com
Homepage: www.bit-house.com
+++
Hauptsitz:
BIT-HOUSE Ltd.
69 Great Hampton Street
Birmingham
West Midlands
United Kingdom
Registergericht: Companies House of Cardiff
Registernummer:  05325636
Registereintrag: United Kingdom
Director: Thomas Witzel
+++

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: SASL w/ Encrypted SQL Password Security (Comment, Suggestion and Possible Solution)

2011-01-26 Thread Gabriele Bulfon
Hi, interesting that I was delving into the same problem with the same tools 
just one mail later :)
I use SHA encryption in my postgres.
Your idea was very good, pity you found it's not working...
Did you find alternatives?
Gabriele.
--
Da: Raymond T. Sundland
A: Dan White
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 25 gennaio 2011 19.52.42 CET
Oggetto: Re: SASL w/ Encrypted SQL Password Security (Comment, Suggestion   
and Possible Solution)
Thanks for the explanation.  Though, I would prefer something better
than MD5 since it has been broken for years.
As for my hack, it doesn't work because I mis-read what %p was,
thinking it was the password, not the column to look for... so back to
the drawing board.  I will look at using something like kerberos, but it
seems like an awful lot of work given my installation requirements.  I'm
up for the challenge, nonetheless.
Thanks again.
On 1/25/2011 1:08 PM, Dan White wrote:
On 25/01/11 12:48 -0500, Raymond T. Sundland wrote:
So given that it's been at least 6 years since it's been common
security practice to not store cleartext passwords in a database, why
does SASL still require it?  Can't SASL be modified to accept
some token from the SQL query that basically says, yes the password
you gave me matches ??
SASL provides saslauthd for simple password verification against hashes,
which you could use along with a SQL PAM module to authenticate against
Postgres (sasl_pwcheck_method: saslauthd, with a '-a pam' passed to
saslauthd).
Access to passwords stored in the clear (using an auxprop module) is
really only necessary if you're using shared secret authentication
mechanisms, such as DIGEST-MD5.
With that said, there appears to be a patch within 2.1.24rc1 which would
allow you to store your passwords md5 hashed, and configure
'sasl_pwcheck_method: auxprop-hashed' to do what you want (but without
shared secret functionality).

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

sql authentication

2011-01-25 Thread Gabriele Bulfon
Hi,
I've been using cyrus imapd for years using saslauthd against unix 
passwd/shadow.
This way it's easy to understand the relation between a user and its mailbox.
Now I want to integrate authentication with a sql backend, forgetting about 
unix users.
I have a postgres db containing users and passwords.
These are actually a complete email and a password.
I would like imapd to authenticate using my db, where login is an email.
I've seen many ways to accomplish sql authentication, so I don't know which is 
the right one.
At last, how do I map the complete email to a cyrus mailbox?
For example, if a user succesfully authenticate as name.lastn...@domain.com, 
how does
cyrus translate it into a user.mailbox?
Thanks for any help,
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: Running Cyrus Imap under a different user

2010-11-04 Thread Gabriele Bulfon
Thanx, here is the output of master proc, and it looks it has all the needed 
environment:
=
[soni...@sl imap]$ ps -ef | fgrep master
root  3370 1  0 09:26 pts/100:00:00 sh /sonicle/scripts/envrun 
/sonicle/bin/master -C /sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf -p 
/sonicle/var/run/cyrus-master.pid
sonicle   3372  3370  0 09:26 pts/100:00:00 /sonicle/bin/master -C 
/sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf -p 
/sonicle/var/run/cyrus-master.pid
sonicle   3381  2555  0 09:26 pts/100:00:00 fgrep master
[soni...@sl imap]$ strings /proc/3372/environ
strings: /proc/3372/environ: Permission denied
[soni...@sl imap]$ sudo strings /proc/3372/environ
LDFLAGS=-L/sonicle/lib
MANPATH=/sonicle/man:/sonicle/ssl/man:
HOSTNAME=sl.sonicle.com
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
CPPFLAGS=-I/sonicle/include
USER=root
LD_LIBRARY_PATH=/sonicle/lib:
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
SUDO_USER=sonicle
SUDO_UID=501
CXXFLAGS=-I/sonicle/include
USERNAME=root
PATH=/sonicle/scripts:/sonicle/sbin:/sonicle/java/bin:/sonicle/bin:/sonicle/bacula/etc:/sonicle/mysql/bin:/usr/bin:/bin
MAIL=/var/spool/mail/sonicle
SUDO=sudo
PWD=/sonicle/var/log/imap
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
SHLVL=1
SUDO_COMMAND=/sonicle/scripts/envrun /sonicle/bin/master -C 
/sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf -p 
/sonicle/var/run/cyrus-master.pid
HOME=/home/sonicle
TERMINFO=/sonicle/lib/terminfo
CFLAGS=-I/sonicle/include
LOGNAME=root
PGDATA=/sonicle/pgdata
SUDO_GID=501
_=/sonicle/bin/master
=
I tried connecting to local port 143, it connects and then waits forever.
After that, I get this into imapd.log :
Nov  4 09:24:55 sl master[3341]: about to exec /sonicle/bin/imapd
Nov  4 09:24:55 sl imap[3341]: incorrect version of Berkeley db: compiled 
against 4.8.30, linked against 4.3.29
Nov  4 09:24:55 sl imap[3341]: Fatal error: wrong db version
Nov  4 09:24:55 sl master[2581]: process 3341 exited, signaled to death by 11
Nov  4 09:24:55 sl master[2581]: service imap pid 3341 in READY state: 
terminated abnormally
And then many retries
To me, looks like imapd has no more my LD_LIBRARY_PATH (master has it).
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: Clement Hermann (nodens)
info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 7.11.08 CET
Oggetto: Re: Running Cyrus Imap under a different user
Thanx, I understand what you mean, but I'm also supposed to stop and start
the same deamon
from this user again, manually, without su.
I already solved the sudo problem, by wrapping the master launch inside a
shell that will
set the environment for it, and infact it does.
What happens is later, when master forks and change user.
Why is it again loosing my environment?
That's really interesting because in my tests it seems to have worked.
Could you show us strings /proc/
/environ and strings
/proc/
/environ?
BTW, are you running Linux or another *X?
Simon
I just want the binaries to override system libs with mine :)
(of course I could set system environemnt inside master profile or
elsewhere, but this is not what I want to do. I can't touch any root
system behaviour)
Thanx again :)
Gabriele.
-= Mail sent through WebTop2 =-
--
Da: Clement Hermann (nodens)
A: info-cyrus@lists.andrew.cmu.edu
Data: 3 novembre 2010 20.59.53 CET
Oggetto: Re: Running Cyrus Imap under a different user
Le 03/11/2010 18:03, Gabriele Bulfon a écrit :
Thanx for the quick reply ;)
Yes, environment is correctly exported.
Maybe there is something I can tell to Linux so that it gives my
environement to anyone
changing user to myuser?
You are not supposed to use sudo to do this. The correct way is to login
as root (or change identity via su -, or let init run the init script
for you at startup), and launch the init script to start cyrus master,
which will drop privileges when forking to child processes (imapd,
pop3d, etc).
sudo *will* remove some environment variables, as a security mesure.
It could be that the best way to achieve what you want is to modify an
existing binary package of cyrus imapd for your distribution, modifiying
only the user-related configure options and configuration scripts.
Cheers,
--
Clement Hermann (nodens)
- L'air pur ? c'est pas en RL, ça ? c'est pas hors charte ?
Jean in L'Histoire

Re: Running Cyrus Imap under a different user

2010-11-04 Thread Gabriele Bulfon
The system is a Scientific Linux.
The imapd process just tries to exec and then fails and exit, as you can see 
from the log.
This happens on any process that master tries to execv (e.g. ctl_cyrusdb,imapd 
and s on).
Reading around, looks like execv brings all the parent environment, but not 
LD_LIBRARY_PATH,
for some security reason
In my case, to be sure that my daemons always run my own versions of the 
libraries, I just
compiled BerkeleyDB from sources, into my /sonicle/lib.
Then I compiled cyrus against it.
Problem is, if I bring my prebuilt package into another system, and this system 
has different
versions of my libraries into /usr/lib, execv calls will link into the system 
ones, not mine...
There must be a way to have everything link into my environement... :(
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: Clement Hermann (nodens)
info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 9.50.00 CET
Oggetto: Re: Running Cyrus Imap under a different user
Thanx, here is the output of master proc, and it looks it has all the
needed environment:
=
[soni...@sl imap]$ ps -ef | fgrep master
root  3370 1  0 09:26 pts/100:00:00 sh /sonicle/scripts/envrun
/sonicle/bin/master -C /sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf
-p /sonicle/var/run/cyrus-master.pid
sonicle   3372  3370  0 09:26 pts/100:00:00 /sonicle/bin/master -C
/sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf -p
/sonicle/var/run/cyrus-master.pid
sonicle   3381  2555  0 09:26 pts/100:00:00 fgrep master
[soni...@sl imap]$ strings /proc/3372/environ
strings: /proc/3372/environ: Permission denied
[soni...@sl imap]$ sudo strings /proc/3372/environ
LDFLAGS=-L/sonicle/lib
MANPATH=/sonicle/man:/sonicle/ssl/man:
HOSTNAME=sl.sonicle.com
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
CPPFLAGS=-I/sonicle/include
USER=root
LD_LIBRARY_PATH=/sonicle/lib:
I don't know if it hurts but that should really be
LD_LIBRARY_PATH=/sonicle/lib
LS_COLORSo=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
SUDO_USER=sonicle
SUDO_UID=501
CXXFLAGS=-I/sonicle/include
USERNAME=root
PATH=/sonicle/scripts:/sonicle/sbin:/sonicle/java/bin:/sonicle/bin:/sonicle/bacula/etc:/sonicle/mysql/bin:/usr/bin:/bin
MAIL=/var/spool/mail/sonicle
SUDO=sudo
PWD=/sonicle/var/log/imap
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
SHLVL=1
SUDO_COMMAND=/sonicle/scripts/envrun /sonicle/bin/master -C
/sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf -p
/sonicle/var/run/cyrus-master.pid
HOME=/home/sonicle
TERMINFO=/sonicle/lib/terminfo
CFLAGS=-I/sonicle/include
LOGNAME=root
PGDATA=/sonicle/pgdata
SUDO_GID=501
_=/sonicle/bin/master
=
I tried connecting to local port 143, it connects and then waits forever.
After that, I get this into imapd.log :
Nov  4 09:24:55 sl master[3341]: about to exec /sonicle/bin/imapd
Nov  4 09:24:55 sl imap[3341]: incorrect version of Berkeley db: compiled
against 4.8.30, linked against 4.3.29
Nov  4 09:24:55 sl imap[3341]: Fatal error: wrong db version
Nov  4 09:24:55 sl master[2581]: process 3341 exited, signaled to death by
11
Nov  4 09:24:55 sl master[2581]: service imap pid 3341 in READY state:
terminated abnormally
And then many retries
To me, looks like imapd has no more my LD_LIBRARY_PATH (master has it).
That's why I asked for the environment dump on an imapd process. Please
check it because there you will see how LD_LIBRARY_PATH looks like.
If it's difficult to get a long running imapd process you could use a
preforked cyrus.conf for that.
Simon
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: Clement Hermann (nodens)
info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 7.11.08 CET
Oggetto: Re: Running Cyrus Imap under a different user
Thanx, I understand what you mean, but I'm also supposed to stop and start
the same deamon
from this user again, manually, without su.
I already solved the sudo problem, by wrapping the master launch inside a
shell that will
set the environment for it, and infact it does.
What happens is later, when master forks and change user.
Why is it again loosing my environment?
That's really interesting because in my tests it seems to have worked.
Could you show us strings /proc/
/environ and strings
/proc/
/environ?
BTW, are you running Linux or another *X?
Simon
I just want the binaries

Re: Running Cyrus Imap under a different user

2010-11-04 Thread Gabriele Bulfon
Thanx Simon, I will consider your suggestion after trying another step.
I tried this:
[soni...@sl cyrus-imapd-2.4.2]$ ldd /sonicle/bin/ctl_cyrusdb
linux-gate.so.1 =(0x0047d000)
libsasl2.so.2 =/sonicle/lib/libsasl2.so.2 (0x00ee9000)
libgssapi_krb5.so.2 =/sonicle/lib/libgssapi_krb5.so.2 (0x00d64000)
libkrb5.so.3 =/sonicle/lib/libkrb5.so.3 (0x0011)
libk5crypto.so.3 =/sonicle/lib/libk5crypto.so.3 (0x00446000)
libcom_err.so.3 =/sonicle/lib/libcom_err.so.3 (0x00a92000)
libkrb5support.so.0 =/sonicle/lib/libkrb5support.so.0 (0x00c48000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00cf8000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x001d4000)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0021a000)
libdb-4.3.so =/lib/libdb-4.3.so (0x07345000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00361000)
libc.so.6 =/lib/libc.so.6 (0x007bd000)
libdl.so.2 =/lib/libdl.so.2 (0x00918000)
libpthread.so.0 =/lib/libpthread.so.0 (0x0094a000)
/lib/ld-linux.so.2 (0x0079e000)
As you can see, all my libraries are considered (instead of system ones) but 
not libdb (
libdb-4.3.so =/lib/libdb-4.3.so
). This sounds strange as I compiled with --with-bdb=/sonicle , and actually 
the errors in imapd states that the binaries were compiled against libdb-4.8.30 
(my /sonicle/lib one) but linking against libdb-4.3.I'm confused
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: Clement Hermann (nodens)
info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 10.33.01 CET
Oggetto: Re: Running Cyrus Imap under a different user
The system is a Scientific Linux.
The imapd process just tries to exec and then fails and exit, as you can
see from the log.
This happens on any process that master tries to execv (e.g.
ctl_cyrusdb,imapd and s on).
Reading around, looks like execv brings all the parent environment, but
not LD_LIBRARY_PATH,
for some security reason
In my case, to be sure that my daemons always run my own versions of the
libraries, I just
compiled BerkeleyDB from sources, into my /sonicle/lib.
Then I compiled cyrus against it.
Problem is, if I bring my prebuilt package into another system, and this
system has different
versions of my libraries into /usr/lib, execv calls will link into the
system ones, not mine...
There must be a way to have everything link into my environement... :(
Hm, maybe RPATH is the solution
http://en.wikipedia.org/wiki/Rpath_%28linking%29
Simon
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: Clement Hermann (nodens)
info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 9.50.00 CET
Oggetto: Re: Running Cyrus Imap under a different user
Thanx, here is the output of master proc, and it looks it has all the
needed environment:
=
[soni...@sl imap]$ ps -ef | fgrep master
root  3370 1  0 09:26 pts/100:00:00 sh /sonicle/scripts/envrun
/sonicle/bin/master -C /sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf
-p /sonicle/var/run/cyrus-master.pid
sonicle   3372  3370  0 09:26 pts/100:00:00 /sonicle/bin/master -C
/sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf -p
/sonicle/var/run/cyrus-master.pid
sonicle   3381  2555  0 09:26 pts/100:00:00 fgrep master
[soni...@sl imap]$ strings /proc/3372/environ
strings: /proc/3372/environ: Permission denied
[soni...@sl imap]$ sudo strings /proc/3372/environ
LDFLAGS=-L/sonicle/lib
MANPATH=/sonicle/man:/sonicle/ssl/man:
HOSTNAME=sl.sonicle.com
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
CPPFLAGS=-I/sonicle/include
USER=root
LD_LIBRARY_PATH=/sonicle/lib:
I don't know if it hurts but that should really be
LD_LIBRARY_PATH=/sonicle/lib
LS_COLORSo=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
SUDO_USER=sonicle
SUDO_UID=501
CXXFLAGS=-I/sonicle/include
USERNAME=root
PATH=/sonicle/scripts:/sonicle/sbin:/sonicle/java/bin:/sonicle/bin:/sonicle/bacula/etc:/sonicle/mysql/bin:/usr/bin:/bin
MAIL=/var/spool/mail/sonicle
SUDO=sudo
PWD=/sonicle/var/log/imap
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
SHLVL=1
SUDO_COMMAND=/sonicle/scripts/envrun /sonicle/bin/master -C
/sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf -p
/sonicle/var/run/cyrus-master.pid
HOME=/home/sonicle
TERMINFO=/sonicle/lib/terminfo
CFLAGS=-I/sonicle/include
LOGNAME=root
PGDATA=/sonicle/pgdata
SUDO_GID=501
_=/sonicle/bin/master
=
I tried connecting to local port 143, it connects

Re: Running Cyrus Imap under a different user

2010-11-04 Thread Gabriele Bulfon
omg, I also noticed that saslauthd has the correct reference of libdb:
[soni...@sl cyrus-sasl-2.1.23]$ ldd /sonicle/sbin/saslauthd
linux-gate.so.1 =(0x00531000)
libcrypt.so.1 =/lib/libcrypt.so.1 (0x07121000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00cf8000)
libldap-2.4.so.2 =/sonicle/lib/libldap-2.4.so.2 (0x0026)
liblber-2.4.so.2 =/sonicle/lib/liblber-2.4.so.2 (0x00ec5000)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0011)
libc.so.6 =/lib/libc.so.6 (0x007bd000)
libdb-4.8.so =/sonicle/lib/libdb-4.8.so (0x002a8000)
libsasl2.so.2 =/sonicle/lib/libsasl2.so.2 (0x00457000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x00471000)
libdl.so.2 =/lib/libdl.so.2 (0x00918000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00d3)
/lib/ld-linux.so.2 (0x0079e000)
libpthread.so.0 =/lib/libpthread.so.0 (0x0094a000)
I compiled both sasl and imap with --with-bdb-libdir=/sonicle/lib, but sasl 
shows it correct,
while imap shows it bad.
-= Mail sent through WebTop2 =-
Da:
Gabriele Bulfon
A:
Simon Matter
Cc:
info-cyrus@lists.andrew.cmu.edu
Data:
4 novembre 2010 10.43.07 CET
Oggetto:
Re: Running Cyrus Imap under a different user
Thanx Simon, I will consider your suggestion after trying another step.
I tried this:
[soni...@sl cyrus-imapd-2.4.2]$ ldd /sonicle/bin/ctl_cyrusdb
linux-gate.so.1 =(0x0047d000)
libsasl2.so.2 =/sonicle/lib/libsasl2.so.2 (0x00ee9000)
libgssapi_krb5.so.2 =/sonicle/lib/libgssapi_krb5.so.2 (0x00d64000)
libkrb5.so.3 =/sonicle/lib/libkrb5.so.3 (0x0011)
libk5crypto.so.3 =/sonicle/lib/libk5crypto.so.3 (0x00446000)
libcom_err.so.3 =/sonicle/lib/libcom_err.so.3 (0x00a92000)
libkrb5support.so.0 =/sonicle/lib/libkrb5support.so.0 (0x00c48000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00cf8000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x001d4000)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0021a000)
libdb-4.3.so =/lib/libdb-4.3.so (0x07345000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00361000)
libc.so.6 =/lib/libc.so.6 (0x007bd000)
libdl.so.2 =/lib/libdl.so.2 (0x00918000)
libpthread.so.0 =/lib/libpthread.so.0 (0x0094a000)
/lib/ld-linux.so.2 (0x0079e000)
As you can see, all my libraries are considered (instead of system ones) but 
not libdb (
libdb-4.3.so =/lib/libdb-4.3.so
). This sounds strange as I compiled with --with-bdb=/sonicle , and actually 
the errors in imapd states that the binaries were compiled against libdb-4.8.30 
(my /sonicle/lib one) but linking against libdb-4.3.I'm confused
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: Clement Hermann (nodens)
info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 10.33.01 CET
Oggetto: Re: Running Cyrus Imap under a different user
The system is a Scientific Linux.
The imapd process just tries to exec and then fails and exit, as you can
see from the log.
This happens on any process that master tries to execv (e.g.
ctl_cyrusdb,imapd and s on).
Reading around, looks like execv brings all the parent environment, but
not LD_LIBRARY_PATH,
for some security reason
In my case, to be sure that my daemons always run my own versions of the
libraries, I just
compiled BerkeleyDB from sources, into my /sonicle/lib.
Then I compiled cyrus against it.
Problem is, if I bring my prebuilt package into another system, and this
system has different
versions of my libraries into /usr/lib, execv calls will link into the
system ones, not mine...
There must be a way to have everything link into my environement... :(
Hm, maybe RPATH is the solution
http://en.wikipedia.org/wiki/Rpath_%28linking%29
Simon
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: Clement Hermann (nodens)
info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 9.50.00 CET
Oggetto: Re: Running Cyrus Imap under a different user
Thanx, here is the output of master proc, and it looks it has all the
needed environment:
=
[soni...@sl imap]$ ps -ef | fgrep master
root  3370 1  0 09:26 pts/100:00:00 sh /sonicle/scripts/envrun
/sonicle/bin/master -C /sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf
-p /sonicle/var/run/cyrus-master.pid
sonicle   3372  3370  0 09:26 pts/100:00:00 /sonicle/bin/master -C
/sonicle/etc/imapd.conf -M /sonicle/etc/cyrus.conf -p
/sonicle/var/run/cyrus-master.pid
sonicle   3381  2555  0 09:26 pts/100:00:00 fgrep master
[soni...@sl imap]$ strings /proc/3372/environ
strings: /proc/3372/environ: Permission denied
[soni...@sl imap]$ sudo strings /proc/3372/environ
LDFLAGS=-L/sonicle/lib
MANPATH=/sonicle/man:/sonicle/ssl/man:
HOSTNAME=sl.sonicle.com
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
CPPFLAGS=-I/sonicle/include
USER=root
LD_LIBRARY_PATH=/sonicle/lib:
I don't know if it hurts but that should really be
LD_LIBRARY_PATH=/sonicle/lib
LS_COLORSo=00:fi=00:di=01;34:ln

Re: Running Cyrus Imap under a different user

2010-11-04 Thread Gabriele Bulfon
Yes, I also do the incdir.
I did a make clean and re-run configure and make, now I noticed this last gcc 
line!
gcc -L/sonicle/lib -Wl,-rpath,/sonicle/lib -L/sonicle/lib -o notifyd \
../master/service.o notifyd.o notify_null.o notify_log.o notify_mailto.o 
notify_zephyr.o notify_external.o ../imap/mutex_fake.o ../imap/libimap.a 
../lib/libcyrus.a ../lib/libcyrus_min.a  -L/sonicle/lib  
-Wl,-rpath,/sonicle/lib -lsasl2  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 
-lkrb5support -lresolv -lresolv -lssl -lcrypto   -lresolv -lfl   -L/sonicle/lib 
 -Wl,-rpath,/sonicle/lib -ldb-4.3 -lz   -lgssapi_krb5 -lkrb5 -lk5crypto 
-lcom_err -lkrb5support -lresolv -lresolv -lssl -lcrypto   -lresolv -lfl   
-L/sonicle/lib  -Wl,-rpath,/sonicle/lib -ldb-4.3 -lz -lcom_err -lwrap -lnsl
...seems like it's already using rpath, ANDwhy -ldb.4.3??? shouldn't it 
be just -ldb???
Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 10.59.58 CET
Oggetto: Re: Running Cyrus Imap under a different user
omg, I also noticed that saslauthd has the correct reference of libdb:
[soni...@sl cyrus-sasl-2.1.23]$ ldd /sonicle/sbin/saslauthd
linux-gate.so.1 =(0x00531000)
libcrypt.so.1 =/lib/libcrypt.so.1 (0x07121000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00cf8000)
libldap-2.4.so.2 =/sonicle/lib/libldap-2.4.so.2 (0x0026)
liblber-2.4.so.2 =/sonicle/lib/liblber-2.4.so.2 (0x00ec5000)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0011)
libc.so.6 =/lib/libc.so.6 (0x007bd000)
libdb-4.8.so =/sonicle/lib/libdb-4.8.so (0x002a8000)
libsasl2.so.2 =/sonicle/lib/libsasl2.so.2 (0x00457000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x00471000)
libdl.so.2 =/lib/libdl.so.2 (0x00918000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00d3)
/lib/ld-linux.so.2 (0x0079e000)
libpthread.so.0 =/lib/libpthread.so.0 (0x0094a000)
I compiled both sasl and imap with --with-bdb-libdir=/sonicle/lib, but
sasl shows it correct,
while imap shows it bad.
I'm using --with-bdb-incdir= for cyrus-imapd, maybe you should try it.
Simon
-= Mail sent through WebTop2 =-
Da:
Gabriele Bulfon
A:
Simon Matter
Cc:
info-cyrus@lists.andrew.cmu.edu
Data:
4 novembre 2010 10.43.07 CET
Oggetto:
Re: Running Cyrus Imap under a different user
Thanx Simon, I will consider your suggestion after trying another step.
I tried this:
[soni...@sl cyrus-imapd-2.4.2]$ ldd /sonicle/bin/ctl_cyrusdb
linux-gate.so.1 =(0x0047d000)
libsasl2.so.2 =/sonicle/lib/libsasl2.so.2 (0x00ee9000)
libgssapi_krb5.so.2 =/sonicle/lib/libgssapi_krb5.so.2 (0x00d64000)
libkrb5.so.3 =/sonicle/lib/libkrb5.so.3 (0x0011)
libk5crypto.so.3 =/sonicle/lib/libk5crypto.so.3 (0x00446000)
libcom_err.so.3 =/sonicle/lib/libcom_err.so.3 (0x00a92000)
libkrb5support.so.0 =/sonicle/lib/libkrb5support.so.0 (0x00c48000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00cf8000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x001d4000)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0021a000)
libdb-4.3.so =/lib/libdb-4.3.so (0x07345000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00361000)
libc.so.6 =/lib/libc.so.6 (0x007bd000)
libdl.so.2 =/lib/libdl.so.2 (0x00918000)
libpthread.so.0 =/lib/libpthread.so.0 (0x0094a000)
/lib/ld-linux.so.2 (0x0079e000)
As you can see, all my libraries are considered (instead of system ones)
but not libdb (
libdb-4.3.so =/lib/libdb-4.3.so
). This sounds strange as I compiled with --with-bdb=/sonicle , and
actually the errors in imapd states that the binaries were compiled
against libdb-4.8.30 (my /sonicle/lib one) but linking against
libdb-4.3.I'm confused
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: Clement Hermann (nodens)
info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 10.33.01 CET
Oggetto: Re: Running Cyrus Imap under a different user
The system is a Scientific Linux.
The imapd process just tries to exec and then fails and exit, as you can
see from the log.
This happens on any process that master tries to execv (e.g.
ctl_cyrusdb,imapd and s on).
Reading around, looks like execv brings all the parent environment, but
not LD_LIBRARY_PATH,
for some security reason
In my case, to be sure that my daemons always run my own versions of the
libraries, I just
compiled BerkeleyDB from sources, into my /sonicle/lib.
Then I compiled cyrus against it.
Problem is, if I bring my prebuilt package into another system, and this
system has different
versions of my libraries into /usr/lib, execv calls will link into the
system ones, not mine...
There must be a way to have everything link into my environement... :(
Hm, maybe RPATH is the solution
http://en.wikipedia.org/wiki/Rpath_%28linking%29

Re: Running Cyrus Imap under a different user

2010-11-04 Thread Gabriele Bulfon
oh oh, I found that imapd configure scripts searches for -ldb starting from 
4.7, going down
until it finds a good one
I was so unlucky to put 4.8 inside my environment! :)
I will rebuild my environment with db4.7 and see what happens ;)
thanks for all your help!
Gabriele.
-= Mail sent through WebTop2 =-
Da:
Gabriele Bulfon
A:
Simon Matter
Cc:
info-cyrus@lists.andrew.cmu.edu
Data:
4 novembre 2010 11.03.40 CET
Oggetto:
Re: Running Cyrus Imap under a different user
Yes, I also do the incdir.
I did a make clean and re-run configure and make, now I noticed this last gcc 
line!
gcc -L/sonicle/lib -Wl,-rpath,/sonicle/lib -L/sonicle/lib -o notifyd \
../master/service.o notifyd.o notify_null.o notify_log.o notify_mailto.o 
notify_zephyr.o notify_external.o ../imap/mutex_fake.o ../imap/libimap.a 
../lib/libcyrus.a ../lib/libcyrus_min.a  -L/sonicle/lib  
-Wl,-rpath,/sonicle/lib -lsasl2  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 
-lkrb5support -lresolv -lresolv -lssl -lcrypto   -lresolv -lfl   -L/sonicle/lib 
 -Wl,-rpath,/sonicle/lib -ldb-4.3 -lz   -lgssapi_krb5 -lkrb5 -lk5crypto 
-lcom_err -lkrb5support -lresolv -lresolv -lssl -lcrypto   -lresolv -lfl   
-L/sonicle/lib  -Wl,-rpath,/sonicle/lib -ldb-4.3 -lz -lcom_err -lwrap -lnsl
...seems like it's already using rpath, ANDwhy -ldb.4.3??? shouldn't it 
be just -ldb???
Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 10.59.58 CET
Oggetto: Re: Running Cyrus Imap under a different user
omg, I also noticed that saslauthd has the correct reference of libdb:
[soni...@sl cyrus-sasl-2.1.23]$ ldd /sonicle/sbin/saslauthd
linux-gate.so.1 =(0x00531000)
libcrypt.so.1 =/lib/libcrypt.so.1 (0x07121000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00cf8000)
libldap-2.4.so.2 =/sonicle/lib/libldap-2.4.so.2 (0x0026)
liblber-2.4.so.2 =/sonicle/lib/liblber-2.4.so.2 (0x00ec5000)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0011)
libc.so.6 =/lib/libc.so.6 (0x007bd000)
libdb-4.8.so =/sonicle/lib/libdb-4.8.so (0x002a8000)
libsasl2.so.2 =/sonicle/lib/libsasl2.so.2 (0x00457000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x00471000)
libdl.so.2 =/lib/libdl.so.2 (0x00918000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00d3)
/lib/ld-linux.so.2 (0x0079e000)
libpthread.so.0 =/lib/libpthread.so.0 (0x0094a000)
I compiled both sasl and imap with --with-bdb-libdir=/sonicle/lib, but
sasl shows it correct,
while imap shows it bad.
I'm using --with-bdb-incdir= for cyrus-imapd, maybe you should try it.
Simon
-= Mail sent through WebTop2 =-
Da:
Gabriele Bulfon
A:
Simon Matter
Cc:
info-cyrus@lists.andrew.cmu.edu
Data:
4 novembre 2010 10.43.07 CET
Oggetto:
Re: Running Cyrus Imap under a different user
Thanx Simon, I will consider your suggestion after trying another step.
I tried this:
[soni...@sl cyrus-imapd-2.4.2]$ ldd /sonicle/bin/ctl_cyrusdb
linux-gate.so.1 =(0x0047d000)
libsasl2.so.2 =/sonicle/lib/libsasl2.so.2 (0x00ee9000)
libgssapi_krb5.so.2 =/sonicle/lib/libgssapi_krb5.so.2 (0x00d64000)
libkrb5.so.3 =/sonicle/lib/libkrb5.so.3 (0x0011)
libk5crypto.so.3 =/sonicle/lib/libk5crypto.so.3 (0x00446000)
libcom_err.so.3 =/sonicle/lib/libcom_err.so.3 (0x00a92000)
libkrb5support.so.0 =/sonicle/lib/libkrb5support.so.0 (0x00c48000)
libresolv.so.2 =/lib/libresolv.so.2 (0x00cf8000)
libssl.so.0.9.8 =/sonicle/lib/libssl.so.0.9.8 (0x001d4000)
libcrypto.so.0.9.8 =/sonicle/lib/libcrypto.so.0.9.8 (0x0021a000)
libdb-4.3.so =/lib/libdb-4.3.so (0x07345000)
libz.so.1 =/sonicle/lib/libz.so.1 (0x00361000)
libc.so.6 =/lib/libc.so.6 (0x007bd000)
libdl.so.2 =/lib/libdl.so.2 (0x00918000)
libpthread.so.0 =/lib/libpthread.so.0 (0x0094a000)
/lib/ld-linux.so.2 (0x0079e000)
As you can see, all my libraries are considered (instead of system ones)
but not libdb (
libdb-4.3.so =/lib/libdb-4.3.so
). This sounds strange as I compiled with --with-bdb=/sonicle , and
actually the errors in imapd states that the binaries were compiled
against libdb-4.8.30 (my /sonicle/lib one) but linking against
libdb-4.3.I'm confused
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: Clement Hermann (nodens)
info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 10.33.01 CET
Oggetto: Re: Running Cyrus Imap under a different user
The system is a Scientific Linux.
The imapd process just tries to exec and then fails and exit, as you can
see from the log.
This happens on any process that master tries to execv (e.g.
ctl_cyrusdb,imapd and s on).
Reading around, looks like execv brings all the parent environment, but
not LD_LIBRARY_PATH,
for some security reason
In my case, to be sure that my daemons always run my

Re: Running Cyrus Imap under a different user

2010-11-04 Thread Gabriele Bulfon
Oh yes, that's what I did infact :) but I'll have to be careful on next 
downloads.
And also, should I be worried that 4.8 is not considered safe for cyrus-imap?
-= Mail sent through WebTop2 =-
--
Da: Patrick Boutilier
A: info-cyrus@lists.andrew.cmu.edu
Data: 4 novembre 2010 12.31.24 CET
Oggetto: Re: Running Cyrus Imap under a different user
On 11/04/2010 07:21 AM, Gabriele Bulfon wrote:
oh oh, I found that imapd configure scripts searches for -ldb starting
from 4.7, going down
until it finds a good one
I was so unlucky to put 4.8 inside my environment! :)
Or just modify the configure script to also search for 4.8 :-)
I will rebuild my environment with db4.7 and see what happens ;)
thanks for all your help!
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Running Cyrus Imap under a different user

2010-11-03 Thread Gabriele Bulfon
Hello,
I need to run cyrus as a different user, because for some reason I don't want 
to touch system users.
I've built all the cyrus stuff under this different user, also using the 
configure switches
(--with-cyrus-user=myuser --with-cyrus-group=mygroup).
I followed the documentation to prepare all the needed directories by changing 
cyrus into myuser
and mail into mygroup.
I tried starting the master daemon as myuser, but it seems it has not enough 
privileges
to listen on standard ports and some other problems.
So I tried starting the master as root.
To do this, the script (ran as myuser) do a sudo.
The problem is that the new process will have a different environment than what 
my user has.
Expecially, my environment has his own libs against which I compiled, different 
from the system ones.
So, I prepared another script that prepares the environment and starts master.
This way I could sudo myscript.
Master now runs, but then changes user to fork processes, and once again it 
seems to loose my environment:
Nov  3 17:34:13 sl master[18963]: setrlimit: Unable to set file descriptors 
limit to -1: Operation not permitted
Nov  3 17:34:13 sl master[18963]: retrying with 1024 (current max)
Nov  3 17:34:13 sl master[18963]: process started
Nov  3 17:34:13 sl master[18964]: about to exec /sonicle/bin/ctl_cyrusdb
Nov  3 17:34:13 sl ctl_cyrusdb[18964]: incorrect version of Berkeley db: 
compiled against 4.8.30, linked against 4.3.29
Nov  3 17:34:13 sl master[18963]: process 18964 exited, signaled to death by 11
Nov  3 17:34:13 sl master[18963]: unable to setsocketopt(IP_TOS): Operation not 
supported
Nov  3 17:34:13 sl master[18963]: ready for work
Nov  3 17:34:13 sl master[18965]: about to exec /sonicle/bin/ctl_cyrusdb
Nov  3 17:34:13 sl ctl_cyrusdb[18965]: incorrect version of Berkeley db: 
compiled against 4.8.30, linked against 4.3.29
Nov  3 17:34:13 sl master[18963]: process 18965 exited, signaled to death by 11
How can I solve this problem?
Is there anyway to let the new processes have the correct environment?
Thanx
Gabriele.
-= Mail sent through WebTop2 =-

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: Running Cyrus Imap under a different user

2010-11-03 Thread Gabriele Bulfon
Thanx for the quick reply ;)
Yes, environment is correctly exported.
Maybe there is something I can tell to Linux so that it gives my environement 
to anyone
changing user to myuser?
-= Mail sent through WebTop2 =-
--
Da: Simon Matter
A: Gabriele Bulfon
Cc: info-cyrus@lists.andrew.cmu.edu
Data: 3 novembre 2010 17.56.52 CET
Oggetto: Re: Running Cyrus Imap under a different user
Hello,
I need to run cyrus as a different user, because for some reason I don't
want to touch system users.
I've built all the cyrus stuff under this different user, also using the
configure switches
(--with-cyrus-user=myuser --with-cyrus-group=mygroup).
I followed the documentation to prepare all the needed directories by
changing cyrus into myuser
and mail into mygroup.
I tried starting the master daemon as myuser, but it seems it has not
enough privileges
to listen on standard ports and some other problems.
So I tried starting the master as root.
I think starting master as root is the correct way.
To do this, the script (ran as myuser) do a sudo.
The problem is that the new process will have a different environment than
what my user has.
Expecially, my environment has his own libs against which I compiled,
different from the system ones.
So how exactly does you environment look? Is it LD_LIBRARY_PATH which
makes you cyrus use the correct libs?
So, I prepared another script that prepares the environment and starts
master.
This way I could sudo myscript.
Master now runs, but then changes user to fork processes, and once again
it seems to loose my environment:
Nov  3 17:34:13 sl master[18963]: setrlimit: Unable to set file
descriptors limit to -1: Operation not permitted
Nov  3 17:34:13 sl master[18963]: retrying with 1024 (current max)
Nov  3 17:34:13 sl master[18963]: process started
Nov  3 17:34:13 sl master[18964]: about to exec /sonicle/bin/ctl_cyrusdb
Nov  3 17:34:13 sl ctl_cyrusdb[18964]: incorrect version of Berkeley db:
compiled against 4.8.30, linked against 4.3.29
Nov  3 17:34:13 sl master[18963]: process 18964 exited, signaled to death
by 11
Nov  3 17:34:13 sl master[18963]: unable to setsocketopt(IP_TOS):
Operation not supported
Nov  3 17:34:13 sl master[18963]: ready for work
Nov  3 17:34:13 sl master[18965]: about to exec /sonicle/bin/ctl_cyrusdb
Nov  3 17:34:13 sl ctl_cyrusdb[18965]: incorrect version of Berkeley db:
compiled against 4.8.30, linked against 4.3.29
Nov  3 17:34:13 sl master[18963]: process 18965 exited, signaled to death
by 11
How can I solve this problem?
Is there anyway to let the new processes have the correct environment?
Hm, I didn't check whether Cyrus resets the environment but, stupid
question, did you forget to export the vars in question?
Simon

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: Running Cyrus Imap under a different user

2010-11-03 Thread Gabriele Bulfon
Thanx, I understand what you mean, but I'm also supposed to stop and start the 
same deamon
from this user again, manually, without su.
I already solved the sudo problem, by wrapping the master launch inside a shell 
that will
set the environment for it, and infact it does.
What happens is later, when master forks and change user.
Why is it again loosing my environment?
I just want the binaries to override system libs with mine :)
(of course I could set system environemnt inside master profile or elsewhere, 
but this is not what I want to do. I can't touch any root system behaviour)
Thanx again :)
Gabriele.
-= Mail sent through WebTop2 =-
--
Da: Clement Hermann (nodens)
A: info-cyrus@lists.andrew.cmu.edu
Data: 3 novembre 2010 20.59.53 CET
Oggetto: Re: Running Cyrus Imap under a different user
Le 03/11/2010 18:03, Gabriele Bulfon a écrit :
Thanx for the quick reply ;)
Yes, environment is correctly exported.
Maybe there is something I can tell to Linux so that it gives my
environement to anyone
changing user to myuser?
You are not supposed to use sudo to do this. The correct way is to login
as root (or change identity via su -, or let init run the init script
for you at startup), and launch the init script to start cyrus master,
which will drop privileges when forking to child processes (imapd,
pop3d, etc).
sudo *will* remove some environment variables, as a security mesure.
It could be that the best way to achieve what you want is to modify an
existing binary package of cyrus imapd for your distribution, modifiying
only the user-related configure options and configuration scripts.
Cheers,
--
Clement Hermann (nodens)
- L'air pur ? c'est pas en RL, ça ? c'est pas hors charte ?
Jean in L'Histoire des Pingouins, http://tnemeth.free.fr/fmbl/linuxsf/
Vous trouverez ma clef publique sur le serveur public pgp.mit.edu.
Please find my public key on the public keyserver pgp.mit.edu.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

imapd 2.2.10 performance

2010-01-18 Thread Gabriele Bulfon
Hi,
in the recent months I started to have performance issues on some installations
deployed happily for many years.
I tried running a reconstruct of all mailboxes during the weekend, but no 
results.
Maybe the amount of mail is now affecting imap performance?
These installations has 50-100 users, many of them keeping 2-8Gb of history.
How can I get back to the normal cyrus performance? (without archiving)
- would reducing checkpoint from 30m to 5m help?
- would switching db from Berkley to Sleepycat help?
- would an upgrade to 3.x help? (and would just a rebuild work without any 
conversion?)
Please help,
Gabriele.
Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com
-= Mail sent through WebTop2 =-

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: imapd 2.2.10 performance

2010-01-18 Thread Gabriele Bulfon
Thanx so much for your reply.
Yes, I forgot about some technical details...
Systems are all Solaris 10 5/08, some are x86 multicores, some are sparc T 
multicores, some
are virtual servers inside VMWare infrastructure, but I must say the 
degradation is almost
the same indipendently of the underlying hardware.
These machines have been changed in time, upgrading to modern hardware and 
latest
Solaris 10 releases, everytime by reconstructing all the db from the imap spool 
on a fresh
install of our Intranet Server distribution (that contains cyrus and all the 
other software).
All the cyrus base runs on top of a ZFS mirrored pool.
We never suffered problems from Cyrus, and we never found imapd on top of the 
processes.
Now these updated machines are running for at least a couple of years (Solaris 
05/08 :) ).
I believe that the degradation has been slowly coming to this point, and only 
now
I started to have feedback from users tired of waiting some seconds to delete 
and so on.
I think I should anyway start by upgrading, and then check again.
Do you think I can safely rebuild the new cyrus with the same flags and make 
install on my binaries?
This is how I was building my 2.2.10:
./configure --prefix=/iserver --with-auth=unix --with-ldap=/iserver 
--with-bdb=/iserver --with-sasl=/iserver --with-cyrus-prefix=/iserver 
--without-snmp --with-openssl=/usr/sfw
The SASL built inside the iserver is cyrus-sasl-2.1.20.
Thanks a lot for your help.
Gabriele.
Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com
--
Da: Michael Menge
A: info-cyrus@lists.andrew.cmu.edu
Data: 18 gennaio 2010 17.11.55 CET
Oggetto: Re: imapd 2.2.10 performance
Hi,
Quoting Gabriele Bulfon
:
Hi,
in the recent months I started to have performance issues on some
installations
deployed happily for many years.
I tried running a reconstruct of all mailboxes during the weekend,
but no results.
Maybe the amount of mail is now affecting imap performance?
These installations has 50-100 users, many of them keeping 2-8Gb of history.
How can I get back to the normal cyrus performance? (without archiving)
It is hard to help you to fix this issues, without knowing
where the bottleneck is.
So lets try to find the bottleneck. If it was running fine for many
years did the performance droped at one point or did it go down slowly?
What has changed? More users/ larger mailboxes?
Harddisk getting old and slower?
Is the system swaping?
What hardware does this run on?
Which OS?
Which filesystem?
- would reducing checkpoint from 30m to 5m help?
no, these checkpoints are only backups in case databasecorruption.
- would switching db from Berkley to Sleepycat help?
I don't know if Sleepycat is faster than Berkley DB. And i don't
know if your bottleneck is the db-access. You can try to use skiplist
for some dbs but you should combine this with a more recend version of
cyrus, as the
skiplistcode has been improved in the last few versions.
- would an upgrade to 3.x help? (and would just a rebuild work
without any conversion?)
I would guess that upgrading cyrus to 2.3.16 could improve your
performance, nevertheless should you upgrade you cyrus version as your
version is very old.
Cyrus 2.3.16 has many new features i don't want to miss and many bugs
have been fixed since 2.2.10

M.MengeTel.: (49) 7071/29-70316
Universität Tübingen   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung  mail:
michael.me...@zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: visibility of Mailbox-folders

2010-01-18 Thread Gabriele Bulfon
Hi, you should check each of the folder's ACLs.
You probably lost permissions for these folders.
Gabriele.
Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com
--
Da: Dr. Harry Knitter
A: info-cyrus@lists.andrew.cmu.edu
Data: 18 gennaio 2010 17.42.12 CET
Oggetto: visibility of Mailbox-folders
Hello,
after having transferred a cyrus imap from one machine to another some
subfolders are not visible to the clients any more. The directories exist and
also cyradm tells me the whole tree of these mailboxes?
However the clients don? see them.
What went wrong and how can I fix this?
Regards
Harry
p.s. the box runs with debian lenny

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: imapd 2.2.10 performance

2010-01-18 Thread Gabriele Bulfon
That's really interesting.
Yes, I'll do this, my /iserver/var/imap (config dir) is about 150Mb.
I'll have to think about how though...those on VMWare can be done easily, but
those on hardware...they usually have 2 partitions (one for the system and a 
second one
for the whole data, taking all the disk space), both mirrored.
Thanks again for all your answers.
Gabriele.
Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com
--
Da: Dietmar Rieder
A: info-cyrus@lists.andrew.cmu.edu
Data: 18 gennaio 2010 18.16.35 CET
Oggetto: Re: imapd 2.2.10 performance
On 01/18/2010 05:44 PM, Gabriele Bulfon wrote:
Thanx so much for your reply.
Yes, I forgot about some technical details...
Systems are all Solaris 10 5/08, some are x86 multicores, some are sparc
T multicores, some
are virtual servers inside VMWare infrastructure, but I must say the
degradation is almost
the same indipendently of the underlying hardware.
These machines have been changed in time, upgrading to modern hardware
and latest
Solaris 10 releases, everytime by reconstructing all the db from the
imap spool on a fresh
install of our Intranet Server distribution (that contains cyrus and all
the other software).
All the cyrus base runs on top of a ZFS mirrored pool.
so ZFS
we also hit a huge performance problem when our zpool on which we stored
all cyrus data was exceeding 80% of the available space.
Our soloution was to transfer the data from configdirectory (usually
/var/imap but see your imapd.conf) to a separate zfs that was big enough
to hold all data (from configdirectory) there and still not being
filled up to 80% of the capacity. In our case the data from
configdirectory is about 500 Mb for ~16k users.
We never suffered problems from Cyrus, and we never found imapd on top
of the processes.
Now these updated machines are running for at least a couple of years
(Solaris 05/08 :) ).
Did you ever update and/or apply the recommended patches from SUN, there
were changes in ZFS.
I believe that the degradation has been slowly coming to this point, and
only now
I started to have feedback from users tired of waiting some seconds to
delete and so on.
I bet it is the same ZFS problem as we had. Try to relocate the data
from configdirectory.
It would also be a good idea to install the solaris/zfs updates.
I think I should anyway start by upgrading, and then check again.
Do you think I can safely rebuild the new cyrus with the same flags and
make install on my binaries?
This is how I was building my 2.2.10:
./configure --prefix=/iserver --with-auth=unix --with-ldap=/iserver
--with-bdb=/iserver --with-sasl=/iserver --with-cyrus-prefix=/iserver
--without-snmp --with-openssl=/usr/sfw
The SASL built inside the iserver is cyrus-sasl-2.1.20.
Didi

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Sieve filter with spaces

2009-05-26 Thread Gabriele Bulfon
Hello,
I'm having trouble with some filters that match a sentence with spaces.
Is there a special way I should specify spaces in a rule?
This is the rule that is not considered at all:
...
elsif allof (address :contains [from] Mall LM Giver) {
fileinto SL.Mall;
}
...
The mails that should be matched, all contains this header:
...
From: Mall LM Giver 
2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd...@im.agni.lindenlab.com
...
Thanx for any help
Gabriele.
Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Sieve filter with spaces

2009-05-26 Thread Gabriele Bulfon
Uhmso...how would I let it match the complete From header instead of just 
the email address?
I assumed that from was all the from string, including the display name.
And...actually I have remembrances of having the same problem with a Subject 
containing spaces...
Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com
--
Da: Michael Menge michael.me...@zdv.uni-tuebingen.de
A: info-cyrus@lists.andrew.cmu.edu
Data: 26 maggio 2009 11.30.27 CEST
Oggetto: Re: Sieve filter with spaces
Hi,
Quoting Gabriele Bulfon gbul...@sonicle.com:
 Hello,
 I'm having trouble with some filters that match a sentence with spaces.
 Is there a special way I should specify spaces in a rule?
 This is the rule that is not considered at all:
 ...
 elsif allof (address :contains [from] Mall LM Giver) {
 fileinto SL.Mall;
 }
 ...
 The mails that should be matched, all contains this header:
 ...
 From: Mall LM Giver
 2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd...@im.agni.lindenlab.com
 ...
The space is not the problem. String has to match the address not
the display name. In your case
2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd...@im.agni.lindenlab.com

M.MengeTel.: (49) 7071/29-70316
Universität Tübingen   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung  mail:
michael.me...@zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

  1   2   >