Moving Cyrus mailing lists to Topicbox

2020-10-15 Thread Dave McMurtrie

Hi,

I'm working with Fastmail to transition the Cyrus mailing lists from 
lists.andrew.cmu.edu over to cyrus.topicbox.com.


Our plan is to transition the active mailing lists as follows:

cyrus-annou...@lists.andrew.cmu.edu -> annou...@cyrus.topicbox.com
cyrus-de...@lists.andrew.cmu.edu -> de...@cyrus.topicbox.com
info-cyrus@lists.andrew.cmu.edu -> i...@cyrus.topicbox.com
cyrus-s...@lists.andrew.cmu.edu -> s...@cyrus.topicbox.com

We have already copied over subscriber information and list archives to 
Topicbox for these lists.  You should begin using Topicbox immediately. 
If you have questions about using Topicbox, please see:


http://www.topicbox.com/helpspot

I will unsubscribe everyone from the lists.andrew.cmu.edu mailing lists 
later today.


I will be deleting the following mailing lists which are no longer in use:

cyrus-bugzi...@lists.andrew.cmu.edu
cyrus-...@lists.andrew.cmu.edu
cyrus-proj...@lists.andrew.cmu.edu

Thanks!

Dave

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: LMTP said: 550-Mailbox unknown or you do not have authorization to see it

2020-10-15 Thread Ezsra McDonald
Sebastian,
Thank you for the response.

I have never heard of this tool but it looks interesting. I will give it a
try.

Will let you all know if I find anything.

-Ez


On Thu, Oct 15, 2020 at 9:28 AM Sebastian Hagedorn 
wrote:

>
> Am 15.10.20 um 15:49 schrieb Ezsra McDonald:
> > I wonder if there is a way to test LMTP manually to verify LMTP can see
> > the imap accounts? I have not done much with LMTP because it always
> > worked for us in the past.
>
> My favorite tool for mail delivery testing is swaks. You can test LMTP
> this way:
>
> swaks --to YOUR-TEST-USER --socket /var/lib/imap/socket/lmtp --protocol
> LMTP
>
> --
> .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
>  .:.Regionales Rechenzentrum (RRZK).:.
>.:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.
>
>

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: LMTP said: 550-Mailbox unknown or you do not have authorization to see it

2020-10-15 Thread Sebastian Hagedorn


Am 15.10.20 um 15:49 schrieb Ezsra McDonald:
I wonder if there is a way to test LMTP manually to verify LMTP can see 
the imap accounts? I have not done much with LMTP because it always 
worked for us in the past.


My favorite tool for mail delivery testing is swaks. You can test LMTP 
this way:


swaks --to YOUR-TEST-USER --socket /var/lib/imap/socket/lmtp --protocol LMTP

--
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.



smime.p7s
Description: S/MIME Cryptographic Signature

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: LMTP said: 550-Mailbox unknown or you do not have authorization to see it

2020-10-15 Thread Ezsra McDonald
Albert,
Thank you for your response.

LDAP is only used for the Postfix/Imap servers. We do not configure Pam  to
use LDAP. We are using saslauthd.

I wonder if there is a way to test LMTP manually to verify LMTP can see the
imap accounts? I have not done much with LMTP because it always worked for
us in the past.

ldapsearch, testsaslauthd and imtest all tested successfully.

I deleted and recreated my test user's imap account
cm user.testuser
sam user.testuser testuser write
sq user.testuser 100

-Ez

On Wed, Oct 14, 2020 at 4:15 PM Albert Shih  wrote:

> Le 14/10/2020 à 14:30:31-0500, Ezsra McDonald a écrit
> > I am building a new mail server to replace an older EL6 server. The new
> server
> > is Centos 8. I keep getting this response when trying to deliver email
> to a
> > local account stored in LDAP.
> >
> > host mail.example.org[/var/lib/imap/socket/lmtp] said:
> > 550-Mailbox unknown.  Either there is no mailbox associated with this
> > 550-name or you do not have authorization to see it.
> > 550 5.1.1 User unknown (in reply to RCPT TO command))
> >
> > I have tried replacing the new configs with my old working configs from
> the EL6
> > server but they get the same result.
> >
> > a postmap -q against the LDAP table config returns the appropriate
> information.
> > I am wondering if the key is the 'or you do not have authorization to
> see it`
> > part of the message. What exactly does LMTP need to authorize the
> delivery?
> >
> > Enabling verbose logging on LMTP and LDAP did not give any clues.
>
> If you run
>
>   getent passwd
>
> what you got ?
>
> Personnaly I don't run the lmtp against ldap, to risky IMHO, if you got any
> problem with the connection betwen your postfix/cyrus server and the ldap
> server your are going to loose email.
>
> So for me I'm using a script who dump the ldap inside the /etc/passwd, so
> the all account are local.
>
> Regards
>
> --
> Albert SHIH
> Observatoire de Paris
> xmpp: j...@obspm.fr
> Heure local/Local time:
> Wed Oct 14 11:13:14 PM CEST 2020
>

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: LMTP said: 550-Mailbox unknown or you do not have authorization to see it

2020-10-14 Thread Albert Shih
Le 14/10/2020 à 14:30:31-0500, Ezsra McDonald a écrit
> I am building a new mail server to replace an older EL6 server. The new server
> is Centos 8. I keep getting this response when trying to deliver email to a
> local account stored in LDAP.
>
> host mail.example.org[/var/lib/imap/socket/lmtp] said:
> 550-Mailbox unknown.  Either there is no mailbox associated with this
> 550-name or you do not have authorization to see it.
> 550 5.1.1 User unknown (in reply to RCPT TO command))
>
> I have tried replacing the new configs with my old working configs from the 
> EL6
> server but they get the same result.
>
> a postmap -q against the LDAP table config returns the appropriate 
> information.
> I am wondering if the key is the 'or you do not have authorization to see it`
> part of the message. What exactly does LMTP need to authorize the delivery?
>
> Enabling verbose logging on LMTP and LDAP did not give any clues.

If you run

  getent passwd

what you got ?

Personnaly I don't run the lmtp against ldap, to risky IMHO, if you got any
problem with the connection betwen your postfix/cyrus server and the ldap
server your are going to loose email.

So for me I'm using a script who dump the ldap inside the /etc/passwd, so
the all account are local.

Regards

--
Albert SHIH
Observatoire de Paris
xmpp: j...@obspm.fr
Heure local/Local time:
Wed Oct 14 11:13:14 PM CEST 2020

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


LMTP said: 550-Mailbox unknown or you do not have authorization to see it

2020-10-14 Thread Ezsra McDonald
I am building a new mail server to replace an older EL6 server. The new
server is Centos 8. I keep getting this response when trying to deliver
email to a local account stored in LDAP.

host mail.example.org[/var/lib/imap/socket/lmtp] said:
550-Mailbox unknown.  Either there is no mailbox associated with this
550-name or you do not have authorization to see it.
550 5.1.1 User unknown (in reply to RCPT TO command))

I have tried replacing the new configs with my old working configs from the
EL6 server but they get the same result.

a postmap -q against the LDAP table config returns the appropriate
information. I am wondering if the key is the 'or you do not have
authorization to see it` part of the message. What exactly does LMTP need
to authorize the delivery?

Enabling verbose logging on LMTP and LDAP did not give any clues.

Any assistance is appreciated. I have been googling and hitting my head on
the desk for days.

Thanks,

-Ez

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: Mailshare conversations

2020-10-09 Thread Bron Gondwana
Sorry for the delay.  Yes, this does seem like the right thing to do.  The 
conversation root being the user is a convenience for a ton of things to the 
point that we're basically using "fake users" for storing related things for a 
business.

But doing the same thing for mailshare would be quite easy I think.  There are 
only a few places where we convert mailbox name to conversations_db path.

Bron.

On Tue, Sep 22, 2020, at 01:00, Thomas Fricker wrote:

> Hello,
> 
> I noticed that Cyrus does not keep track of conversations in mailshare 
> folders. 
> There is a code comment addressing this issue in conversations.c:
> 
> /* only users have conversations.  Later we may introduce the idea of
> * "conversationroot" in the same way we have quotaroot, but for now
> * it's hard-coded as the user */
> 
> Is it still imaginable adding this feature in a future Cyrus version?
> Can you elaborate on a reasonable approach of implementing this on the 
> current codebase?
> My goal is to have 1 conversation.db per mailshare subtree (not per single 
> folder).
> 
> Any ideas?
> 
> Thanks,
> --
> Thomas Fricker

>  

>  

> BlueMind LogoLinkedin 
>   Facebook 
>   Twitter 
>   
> 


> *Thomas Fricker * 
> DEVELOPPEUR 
> +33 (0)5 81 91 55 60
> www.bluemind.net / Blog 

>  [*WEBINAR*] 

> *Migrer sa messagerie vers BlueMind depuis Exchange*

> *24/09/20 - 11h*

> *INSCRIPTION* 
> 

>  

> 
> 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
> 
> *Attachments:*
>  * x-disclaimer1569892563-0.png
>  * x-disclaimer1569892563-1.png
>  * x-disclaimer1569892563-2.png
>  * x-disclaimer1569892563-3.png
>  * x-disclaimer1569892563-4.png

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

Re: sync_client: IOERROR: fetching subscriptions

2020-10-09 Thread Jean Charles Delépine
Jean Charles Delépine  écrivait (wrote) :

> 2020-10-06T10:51:45.070636+02:00 cyrus-3.0.8  cyrus/imap[2714758]: IOERROR: 
> fetching subscriptions for user1

user1.sub didn't have correct tab line termination. Certainly my fault
sometime in the past.

Jean Chales Delépine

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

sync_client: IOERROR: fetching subscriptions

2020-10-07 Thread Jean Charles Delépine

Hello,

While replicating one 3.0.9 server to a 3.2.3 server 2 accounts failed to 
synchronise with this error :


OK success
cyrus/sync_client[2745008]: IOERROR: fetching subscriptions for user1
Error from sync_do_user(user1): bailing out!
cyrus/sync_client[2745008]: Error in sync_do_user(user1): bailing out!

1601973199>EXIT

<1601973199Trying to migrate this mailbox on another server (3.0.9) gave a similar 
error :


2020-10-06T10:51:43.556312+02:00 cyrus-3.0.8  cyrus/imap[2714758]: XFER: user 
'user1' ->  cyrus-3.2.3
2020-10-06T10:51:43.558342+02:00 cyrus-3.0.8  cyrus/imap[2714758]: XFER: 
initial sync of user user1
2020-10-06T10:51:43.558575+02:00 cyrus-3.0.8  cyrus/imap[2714758]: USER user1
2020-10-06T10:51:43.933958+02:00 cyrus-3.0.8  cyrus/imap[2714758]: 
LOCAL_MAILBOX user.user1
2020-10-06T10:51:44.714252+02:00 cyrus-3.0.8  cyrus/imap[2714758]: 
LOCAL_MAILBOX user.user1.Drafts
[...]
2020-10-06T10:51:44.988079+02:00 cyrus-3.0.8  cyrus/imap[2714758]: 
LOCAL_MAILBOX user.user1.Trash
2020-10-06T10:51:45.070636+02:00 cyrus-3.0.8  cyrus/imap[2714758]: IOERROR: 
fetching subscriptions for user1

The user can list his subscriptions and change them :

C: A01 AUTHENTICATE PLAIN ZGQtbGFyaWEAZGQtbGFyaWEARzRsYUZvdWkx  
S: A01 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 MUPDATE=mupdate://cyrus-mupdate/

LOGINDISABLED COMPRESS=DEFLATE X-QUOTA=STORAGE X-QUOTA=MESSAGE 
X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] Success (tls
 protection) SESSIONID= 
Authenticated.  
Security strength factor: 256   
. LSUB "*" "*"  
* LSUB (\HasChildren) "." INBOX 
[...]

* LSUB () "." INBOX.archives.2000-2019.2018
* LSUB () "." INBOX.archives.2000-2019.2019 
. OK Completed (0.006 secs) 
. UNSUBSCRIBE INBOX.archives.2000-2019.2019 
. OK Completed  
. LSUB "*" "*"  
* LSUB (\HasChildren) "." INBOX

[...]
* LSUB () "." INBOX.archives.2000-2019.2018



I don't understand. Where can be the problem ?

Sincerly,
 Jean Charles Delépine

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 IMAP 3.2.4 released

2020-10-05 Thread ellie timoney
The Cyrus team is proud to announce the immediate availability of a new version 
of Cyrus IMAP: 3.2.4

Download URLs:


https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-3.2.4/cyrus-imapd-3.2.4.tar.gz

https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-3.2.4/cyrus-imapd-3.2.4.tar.gz.sig


Please consult the release notes and upgrade documentation before upgrading to 
3.2.4:

https://www.cyrusimap.org/imap/download/release-notes/3.2/x/3.2.4.html
https://www.cyrusimap.org/imap/download/upgrade.html

And join us on Github at https://github.com/cyrusimap/cyrus-imapd to report 
issues, join in the deliberations of new features for the next Cyrus IMAP 
release, and to contribute to the documentation.

On behalf of the Cyrus team,

Kind regards,

ellie timoney

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: sync_clients bails out - failed to order folders correctly

2020-10-01 Thread ellie timoney
Hi Konrad,

> do_folders: failed to order folders correctly

Do you have "improved_mboxlist_sort" enabled in your imapd.conf?  My guess is 
you don't.

> every time on a specific mailbox of a specific user.

It sounds like this user has two mailboxes where one is an exact substring of 
another, and the difference starts with a  character earlier than your 
hierarchy separator in ascii order (space and hyphen are the usual culprits).  
e.g. Something like this can cause a variety of problems:

user.ellie.foo
user.ellie.foo-etc
user.ellie.foo.bar

Note the "-" sorts earlier than the hierarchy separator, and so even though 
"bar" is a child of "foo" and should be processed right after "foo", "foo-etc" 
sorts earlier than it and gets in the way...

I guess if this only started happening in the last days, then one of these 
folders must have been created recently.

If this is the cause, the quick workaround is to find the offending folder pair 
and ask the user to rename one of them.  They could replace the space or hyphen 
with an underscore ("_") and this will be fine.

The proper fix is to turn on "improved_mboxlist_sort", but note that the 
documentation says this SHOULD NOT be turned on on a live system, and provides 
instructions for converting the mailboxes.db and subscription databases with 
the service down.  I believe the most up to date documentation for this process 
is here:
https://www.cyrusimap.org/imap/developer/thoughts/improved_mboxlist_sort.html

Hope this helps,

ellie

On Wed, 30 Sep 2020, at 11:03 PM, Konrad Mauz wrote:
> Hello list,
> 
> I had a working replication between to cyrus 3.0 servers running.
> 
> The sync_client is started once a day.
> 
> In the last days the sync_client bails out with 
> 
> do_folders: failed to order folders correctly
> 
> every time on a  specific mailbox of a specific user.
> 
> I can't see that there is a problem with the mailbox ( cyr_expire and 
> squatter are running correctly ).
> 
> How can I get the sync_client work again?
> 
> thanks in advance and kind regards,
> 
> Konrad
> -- 
> Konrad Mauz - Rechenzentrum HTWG Konstanz
> Tel: +497531206472 - Fax: +497531206153
> E-Mail: km...@htwg-konstanz.de
> Web: http://www.htwg-konstanz.de/rz.html
> 
> 
> 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: Replication : IMAP_PROTOCOL_ERROR Protocol error

2020-10-01 Thread Jean Charles Delépine
Jean Charles Delépine  écrivait (wrote) :

> Jean Charles Delépine  écrivait (wrote) :
> 
> > Hello,
> > 
> > I'm on the way to migrate one quite big murder config with Cyrus IMAP
> > 3.0.8-Debian-3.0.8-6+deb10u4
> > to Cyrus IMAP 3.2.3-Debian-3.2.3-1~bpo10+1.
> > 
> > My plan is to replicate 3.0.8's backends on 3.2.3 ones. This plan has work
> > before for 2.5
> > to 3.0. migration.
> > 
> > Il can replicate empty mailboxes. So the conf (attached) seems ok.
> > But if the mailbox isn't empty here's the result (completes traces 
> > attached) :
> 
> The conf might not be _that_ ok.
> 
> If the option conversation is set to 1 and I create new mailboxes, ond
> send mails to this mailboxes, no sync of these mailboxes is possible.
> 
> If I remove the option 'conversation: 1', any new populated mailboxes can 
> be sync.
> 
> So, the problem seems to be in this option.
> 
> But even after removing "conversation: 1" and zeroed conversation indexes
> (ctl_conversationsdb -z), the old "bad" mailboxes can't be synced. Even
> removing their .conversations and .counters files doesn't help.
> 
> Can I, and how can I,  get rid of those conversation indexes in order to have
> my mailboxes being "as if there never been conversation" ?

After removing "conversations: 1" option AND restarted the serveur,
ctl_conversationsdb -z did correctly remove conversations indexes and
the replication finally works fine.

I did have to revert xapian usage (which needs conversations) and switch
back to squat indexes.

Jean Charles Delépine

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

sync_clients bails out - failed to order folders correctly

2020-09-30 Thread Konrad Mauz
Hello list,

I had a working replication between to cyrus 3.0 servers running.

The sync_client is started once a day.

In the last days the sync_client bails out with 

do_folders: failed to order folders correctly

every time on a  specific mailbox of a specific user.

I can't see that there is a problem with the mailbox ( cyr_expire and squatter 
are running correctly ).

How can I get the sync_client work again?

thanks in advance and kind regards,

Konrad
-- 
Konrad Mauz - Rechenzentrum HTWG Konstanz
Tel: +497531206472 - Fax: +497531206153
E-Mail: km...@htwg-konstanz.de
Web: http://www.htwg-konstanz.de/rz.html


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: Replication : IMAP_PROTOCOL_ERROR Protocol error

2020-09-26 Thread Jean Charles Delépine
ellie timoney  écrivait (wrote) :

> On Thu, 24 Sep 2020, at 1:44 AM, Jean Charles Delépine wrote:
> > Is this a known problem corrected after 3.0.9 ?
> 
> Off the top of my head I no longer remember, but the current release in the 
> 3.0 series is 3.0.14.  I'd suggest, if you haven't already, that you look in 
> the release notes from 3.0.8-3.0.14 and see if anything looks relevant.  
> They're here: 
> https://www.cyrusimap.org/imap/download/release-notes/3.0/index.html

I didn't find anything relevant.

> We don't generally recommend in-place upgrades between series (so, upgrading 
> in-place from 3.0.8 to 3.2.3 is not something we'd recommend).  
> Within-series, an in-place upgrade ought to be safe -- but please check the 
> release notes carefully for extra steps/considerations you may need to make, 
> depending on your deployment.  I think you'll probably want to upgrade your 
> 3.0 systems in place as far forward as you can (while staying 3.0), and then 
> use the replication strategy to upgrade to 3.2 after that.

I just do that. My test server is now using 3.0.14 (self build debian package) :

>1601118406>APPLY MAILBOX %(UNIQUEID m8lfz12835tr5y3dfucebk95 MBOXNAME 
>user.testes2 SYNC_CRC 2393559122 SYNC_CRC_ANNOT 4164967045 LAST_UID 2 
>HIGHESTMODSEQ 4 RECENTUID 0 RECENTTIME 0 LAST_APPENDDATE 1601117744 
>POP3_LAST_LOGIN 0 POP3_SHOW_AFTER 0 XCONVMODSEQ 4 UIDVALIDITY 1601117689 
>PARTITION default ACL "testes2lrswipkxtecdan  " OPTIONS P RECORD 
>(%(UID 1 MODSEQ 4 LAST_UPDATED 1601118406 FLAGS (\Expunged) INTERNALDATE 
>1601117744 SIZE 2890 GUID 6f160d7026f4adbaebb2d0941c6398272a8692da ANNOTATIONS 
>(%(ENTRY /vendor/cmu/cyrus-imapd/thrid USERID NIL VALUE fee5d4912d9da6a8))) 
>%(UID 2 MODSEQ 3 LAST_UPDATED 1601118406 FLAGS () INTERNALDATE 1601117744 SIZE 
>2890 GUID 6f160d7026f4adbaebb2d0941c6398272a8692da ANNOTATIONS (%(ENTRY 
>/vendor/cmu/cyrus-imapd/thrid USERID NIL VALUE fee5d4912d9da6a8)
<16011184061601118406>EXIT
<1601118406http://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: Replication : IMAP_PROTOCOL_ERROR Protocol error

2020-09-24 Thread ellie timoney
On Thu, 24 Sep 2020, at 1:44 AM, Jean Charles Delépine wrote:
> Is this a known problem corrected after 3.0.9 ?

Off the top of my head I no longer remember, but the current release in the 3.0 
series is 3.0.14.  I'd suggest, if you haven't already, that you look in the 
release notes from 3.0.8-3.0.14 and see if anything looks relevant.  They're 
here: https://www.cyrusimap.org/imap/download/release-notes/3.0/index.html

We don't generally recommend in-place upgrades between series (so, upgrading 
in-place from 3.0.8 to 3.2.3 is not something we'd recommend).  Within-series, 
an in-place upgrade ought to be safe -- but please check the release notes 
carefully for extra steps/considerations you may need to make, depending on 
your deployment.  I think you'll probably want to upgrade your 3.0 systems in 
place as far forward as you can (while staying 3.0), and then use the 
replication strategy to upgrade to 3.2 after that.
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: Replication : IMAP_PROTOCOL_ERROR Protocol error

2020-09-24 Thread Jean Charles Delépine
Jean Charles Delépine  écrivait (wrote) :

> Hello,
> 
> I'm on the way to migrate one quite big murder config with Cyrus IMAP
> 3.0.8-Debian-3.0.8-6+deb10u4
> to Cyrus IMAP 3.2.3-Debian-3.2.3-1~bpo10+1.
> 
> My plan is to replicate 3.0.8's backends on 3.2.3 ones. This plan has work
> before for 2.5
> to 3.0. migration.
> 
> Il can replicate empty mailboxes. So the conf (attached) seems ok.
> But if the mailbox isn't empty here's the result (completes traces attached) :

The conf might not be _that_ ok.

If the option conversation is set to 1 and I create new mailboxes, ond
send mails to this mailboxes, no sync of these mailboxes is possible.

If I remove the option 'conversation: 1', any new populated mailboxes can 
be sync.

So, the problem seems to be in this option.

But even after removing "conversation: 1" and zeroed conversation indexes
(ctl_conversationsdb -z), the old "bad" mailboxes can't be synced. Even
removing their .conversations and .counters files doesn't help.

Can I, and how can I,  get rid of those conversation indexes in order to have
my mailboxes being "as if there never been conversation" ?

Sincerly,
  Jean charles Delépine

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

Replication : IMAP_PROTOCOL_ERROR Protocol error

2020-09-23 Thread Jean Charles Delépine

Hello,

I'm on the way to migrate one quite big murder config with Cyrus IMAP  
3.0.8-Debian-3.0.8-6+deb10u4

to Cyrus IMAP 3.2.3-Debian-3.2.3-1~bpo10+1.

My plan is to replicate 3.0.8's backends on 3.2.3 ones. This plan has  
work before for 2.5

to 3.0. migration.

Il can replicate empty mailboxes. So the conf (attached) seems ok.
But if the mailbox isn't empty here's the result (completes traces attached) :

cyrus/sync_client[3082351]: MAILBOX received NO response:  
IMAP_PROTOCOL_ERROR Protocol error

cyrus/sync_client[3082351]: do_folders(): update failed: user.t 'Bad protocol'
cyrus/sync_client[3082351]: IOERROR: do_user_main: Bad protocol for t  
to [no channel] (test-3.2.3)

Error from sync_do_user(t): bailing out!
cyrus/sync_client[3082351]: Error in sync_do_user(t): bailing out!

The destination server says :
   SYNCERROR: failed to parse uploaded record


If I upgrade this test server to 3.2.3-Debian-3.2.3-1~bpo10+1 with  
the same configuration, the same mailbox

can be sync whith the problem being corrected :


APPLY MAILBOX %(UNIQUEID 6kjf8ro4032wfjefcdewaqyl MBOXNAME user.t  
SYNC_CRC 3435668400 SYNC_CRC_ANNOT 1359939586 LAST_UID 1 HIGHESTMODSEQ  
3 RECENTUID 0 RECENTTIME 0 LAST_APPENDDATE 0 POP3_LAST_LOGIN 0  
POP3_SHOW_AFTER 0 XCONVMODSEQ 3 UIDVALIDITY 1600855436 PARTITION  
default ACL "" OPTIONS P FOLDERMODSEQ 3 SINCE_MODSEQ 3 SINCE_CRC 0  
SINCE_CRC_ANNOT 12345678 RECORD ())

<1600872848cyrus/sync_client[3131948]: MAILBOX received NO response:  
IMAP_SYNC_CHECKSUM Checksum Failure
cyrus/sync_client[3131948]: SYNC_NOTICE: CRC failure on sync user.t,  
recalculating counts and trying again


Error but retry.

MAILBOX user.t
1600872848>APPLY MAILBOX %(UNIQUEID 6kjf8ro4032wfjefcdewaqyl  
MBOXNAME user.t SYNC_CRC 3435668400 SYNC_CRC_ANNOT 1370712396  
LAST_UID 1 HIGHESTMODSEQ 3 RECENTUID 0 RECENTTIME 0 LAST_APPENDDATE  
0 POP3_LAST_LOGIN 0 POP3_SHOW_AFTER 0 XCONVMODSEQ 3 UIDVALIDITY  
1600855436 PARTITION default ACL "" OPTIONS P FOLDERMODSEQ 3 RECORD  
())

<1600872848cyrus/sync_client[3131948]: MAILBOX received NO response:  
IMAP_SYNC_CHECKSUM Checksum Failure

cyrus/sync_client[3131948]: CRC failure on sync for user.t, trying full update

Error then full update

FULLMAILBOX user.t

1600872848>GET FULLMAILBOX user.t
<1600872848<* MAILBOX %(UNIQUEID 6kjf8ro4032wfjefcdewaqyl MBOXNAME  
user.t SYNC_CRC 0 SYNC_CRC_ANNOT 12345678 LAST_UID 1 HIGHESTMODSEQ 3  
RECENTUID 0 RECENTTIME 0 LAST_APPENDDATE 0 POP3_LAST_LOGIN 0  
POP3_SHOW_AFTER 0 XCONVMODSEQ 3 UIDVALIDITY 1600855436 PARTITION  
default ACL "" OPTIONS P FOLDERMODSEQ 3 RECORD ())

OK success
cyrus/sync_client[3131948]: user.t: same message appears twice 1 2
MAILBOX user.t
1600872849>APPLY MESSAGE (%{default  
f0eeef2cc42f23884089760cf5de1961b358a498 2627}



)
<16008728491600872849>APPLY MAILBOX %(UNIQUEID 6kjf8ro4032wfjefcdewaqyl  
MBOXNAME user.t SYNC_CRC 1009437458 SYNC_CRC_ANNOT 455745080  
LAST_UID 2 HIGHESTMODSEQ 5 RECENTUID 0 RECENTTIME 0 LAST_APPENDDATE  
0 POP3_LAST_LOGIN 0 POP3_SHOW_AFTER 0 XCONVMODSEQ 5 UIDVALIDITY  
1600855436 PARTITION default ACL "" OPTIONS P FOLDERMODSEQ 3 RECORD  
(%(UID 1 MODSEQ 5 LAST_UPDATED 1600872848 FLAGS (\Expunged)  
INTERNALDATE 1600855652 SIZE 2627 GUID  
f0eeef2cc42f23884089760cf5de1961b358a498 ANNOTATIONS (%(ENTRY  
/vendor/cmu/cyrus-imapd/thrid USERID "" MODSEQ 0 VALUE  
611d36cdcf46289a))) %(UID 2 MODSEQ 4 LAST_UPDATED 1600872848 FLAGS  
() INTERNALDATE 1600855652 SIZE 2627 GUID  
f0eeef2cc42f23884089760cf5de1961b358a498 ANNOTATIONS (%(ENTRY  
/vendor/cmu/cyrus-imapd/thrid USERID "" MODSEQ 0 VALUE  
611d36cdcf46289a)

<16008728491600872849>APPLY MAILBOX %(UNIQUEID nckzm4o710aom3c22o9ugy6a  
MBOXNAME user.t.Drafts SYNC_CRC 0 SYNC_CRC_ANNOT 0 LAST_UID 0  
HIGHESTMODSEQ 2 RECENTUID 0 RECENTTIME 0 LAST_APPENDDATE 0  
POP3_LAST_LOGIN 0 POP3_SHOW_AFTER 0 XCONVMODSEQ 2 UIDVALIDITY  
160087 PARTITION default ACL "" OPTIONS P FOLDERMODSEQ 2 RECORD  
())

<1600872849
1600872849>EXIT

<1600872849Is there something I can do to successfully replicate my backends to  
my new servers ?


Sincerly,
Jean Charles Delépine
configdirectory: /var/lib/cyrus
proc_path: /run/cyrus/proc
mboxname_lockpath: /run/cyrus/lock
defaultpartition: default
partition-default: /var/spool/cyrus/mail
partition-news: /var/spool/cyrus/news
newsspool: /var/spool/news
altnamespace: no
postuser: share-post
unixhierarchysep: no
lmtp_downcase_rcpt: yes
allowanonymouslogin: no
popminpoll: 1
autocreate_post: yes
autocreate_quota: 0
umask: 077
sieveusehomedir: false
sievedir: /var/spool/sieve
httpmodules: caldav carddav
hashimapspool: true
sasl_auto_transition: no
tls_client_ca_dir:
tls_session_timeout:
tls_versions:
lmtpsocket: /var/run/cyrus/socket/lmtp
idlesocket: /var/run/cyrus/socket/idle
notifysocket: /var/run/cyrus/socket/notify
syslog_prefix: cyrus
admins: mailadmin
metapartition_files: header index cache expunge squat annotations lock dav 
archivecache
metapartition-default: /var/lib/cyrus/metas
search_engine: xapian

Mailshare conversations

2020-09-21 Thread Thomas Fricker
Hello,

I noticed that Cyrus does not keep track of conversations in
mailshare folders. 
There is a code comment addressing this issue in
conversations.c:

/* only users have conversations.  Later we may
introduce the idea of
* "conversationroot" in the same way we have
quotaroot, but for now
* it's hard-coded as the user */

Is it still
imaginable adding this feature in a future Cyrus version?
Can you
elaborate on a reasonable approach of implementing this on the current
codebase?
My goal is to have 1 conversation.db per mailshare subtree
(not per single folder).

Any ideas?

Thanks,
--
Thomas Fricker




Thomas Fricker
DEVELOPPEUR


BlueMind
+33 (0)5 81 91 55 60
Hotel des Télécoms, 40 rue du village d'entreprises
31670 Labège, France
www.bluemind.net / https://blog.bluemind.net/fr/ 
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: Sync failing. Possible db corruption

2020-09-16 Thread Michael Sofka
Problem resolved, or resolving.  This version of Cyrus may be old, but 
it's been rock solid and compared to previous versions I've had no 
problems with sync_client dying. It turns out the behavior I was seeing 
is normal recover behavior.  There are still errors I have not seen 
before, but they appear to be from turning on verbose logging, and the 
synchronization being out of step from the previous errors.  As people 
check mailboxes, it is catching up.


Mike

On 9/15/20 4:20 PM, Michael Sofka wrote:
I have confirmed that running sync_client on individual mailboxes 
works, as does running sync on the accumulated log files.  But rolling 
replication is not working.   After sync_client is restarted there is 
a burst of sync activity on the accumulated log, then nothing. The new 
log file continues to accumulate, sync_client continues to run, but is 
not processing anything so far as I can determine.




--
--
Michael D. Sofka   sof...@rpi.edu
ITI Software Architect,   Email, TeX, Epistemology
Rensselaer Polytechnic Institute, Troy, NY.  http://www.rpi.edu/~sofkam/


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: How to find mailbox name from id

2020-09-16 Thread Ismaël Tanguy




On 14/09/2020 11:43, Ismaël Tanguy has written:

Hello,

cyrus-imapd-3.0.7-16.el8.src.rpm installed on Centos 8.2

An user fails to receive an email from  a mailing list of 1000 
subscribers.
 From SMTP server, I found the uid of the mail and look for it in the 
IMAP store logs.


While the delivery is OK for the most part, I found 5 mistakes :

# grep 280aa530-f9a0-c1fd-b100-51201aa6b2fc /var/log/maillog | grep 
-v Delivered


dupelim: eliminated duplicate message to i21mdycbfokfu8yq6jul3hvt id 
<280aa530-f9a0-c1fd-b100-51201aa6b2fc>

[...]

Hello,
 good question!


I answer myself.
With this command :

$ cyr_dbtool /var/lib/imap/mailboxes.db twoskip show | grep 
i21mdycbfokfu8yq6jul3hvt


But I found two mailboxes :

user.e22009540  %(A %(e22009540 lrswipkxtecdan) I 
i21mdycbfokfu8yq6jul3hvt P splitmeta V 1599471223 F 1 M 1599471222)
user.e22009563  %(A %(e22009563 lrswipkxtecdan) I 
i21mdycbfokfu8yq6jul3hvt P splitmeta V 1599471224 F 1 M 1599471223)


Is it the expected behavior?

I thought Unique ID was unique for one mailbox..




btw... on Cyrus 2.4 these logs told me the mailbox name too. On Cyrus 
3.x this info disappears. Ouch :(


If you delete the mailbox the syslog shows the mailbox name and the 
uniqueid together, only dupelim lacks of this info.


Cheers
Marco

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: Sync failing. Possible db corruption

2020-09-15 Thread Michael Sofka
I have confirmed that running sync_client on individual mailboxes works, 
as does running sync on the accumulated log files.  But rolling 
replication is not working.   After sync_client is restarted there is a 
burst of sync activity on the accumulated log, then nothing.  The new 
log file continues to accumulate, sync_client continues to run, but is 
not processing anything so far as I can determine.


Sep 15 15:59:17 imap-be6 cyrus/sync_client[22370]: SYNCNOTICE: replica 
uid:7451 modseq:19935 last_updated:1600023598 internaldate:1600023598 
flags:( \Seen)
Sep 15 15:59:17 imap-be6 cyrus/sync_client[22370]: inefficient 
replication (1487 > 1484) user.jins4.Sent
Sep 15 15:59:18 imap-be6 cyrus/sync_client[22370]: inefficient 
replication (182427 > 182409) user.newelj
Sep 15 15:59:18 imap-be6 cyrus/sync_client[22370]: SYNCERROR: only 
exists on replica user.newelj 121180 
(a27c1dffed0326fb930b072fd85f04a8c2cbdf24)
Sep 15 15:59:23 imap-be6 cyrus/sync_client[22370]: inefficient 
replication (5598 > 5571) user.berryk3
Sep 15 15:59:23 imap-be6 cyrus/sync_client[22370]: SYNCNOTICE: record 
mismatch with replica: user.berryk3 more recent on master
Sep 15 15:59:23 imap-be6 cyrus/sync_client[22370]: SYNCNOTICE: master 
uid:2614 modseq:5636 last_updated:1600191010 internaldate:1599245383 
flags:(\Seen)


From the previous day's log I see:

Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: MAILBOX received NO 
response: System I/O error
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: do_folders(): update 
failed: user.chauhs2 'The remote Server(s) denied the operation'
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: seen_db: user swankd 
opened /var/lib/cyrus/user/s/swankd.seen
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: seen_db: user edena2 
opened /var/lib/cyrus/user/e/edena2.seen
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: seen_db: user searsm2 
opened /var/lib/cyrus/user/s/searsm2.seen
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: USER received NO 
response: System I/O error
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: Error in do_sync(): 
bailing out! The remote Server(s) denied the operation
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: Processing sync log 
file /var/lib/cyrus/sync/log-29665 failed: The remote Server(s) denied 
the operation
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: Reprocessing sync log 
file /var/lib/cyrus/sync/log-29665



I have not seen a repeat of the DBERROR, and have since restarted cyrus 
services.  So I'm not sure a ctl_cyrusdb -r is needed, or even it it 
would fix things.




--
--
Michael D. sofkasof...@rpi.edu
ITI Software Architect,   Email, TeX, Epistemology
Rensselaer Polytechnic Institute, Troy, NY.http://www.rpi.edu/~sofkam/


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: Sync failing. Possible db corruption

2020-09-15 Thread Michael Sofka
Okay, these errors may be admin error. In running the old logs I 
specified -u, instead of -m.


I am still concerned about the DBERROR, but those did not appear after I 
restarted cyrus.  And rolling replication is still not working.


Mike

On 9/15/20 10:49 AM, Michael Sofka wrote:


Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.travi

t
Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.sutto

e
Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.maran

v


On the replication server I have:

Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.linr7.mboxkey: No such file or directory
Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.kjells.mboxkey: No such file or directory
Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.ngang.mboxkey: No such file or directory

When I try to process the sync/log- files.


Any pointers or help appreciated.  IMAP is functioning as far as I can 
tell, and only the replication process is failing.


Thank you,

MIke



--
--
Michael D. Sofka   sof...@rpi.edu
ITI Software Architect,   Email, TeX, Epistemology
Rensselaer Polytechnic Institute, Troy, NY.  http://www.rpi.edu/~sofkam/


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

Sync failing. Possible db corruption

2020-09-15 Thread Michael Sofka

Before I proceed, I am seeking advice.

This is on Cyrus IMAP Murder v2.4.18-Debian-2.4.18-3

On one of our back-end servers sync started failing.  I restarted 
sync_server on the replication, and on the backend server, which did not 
work.  There are the following errors in the logs


Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: Processing sync log 
file /var/lib/cyrus/sync/l

og-29665 failed: Bad protocol
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB1581 
File handles still open a

t environment close
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB1582 
Open file handle: /var/li

b/cyrus/db/__db.001
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB1582 
Open file handle: /var/li

b/cyrus/db/__db.002
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB1582 
Open file handle: /var/li

b/cyrus/db/__db.003
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB0060 
PANIC: fatal region error

 detected; run recovery
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR: critical 
database situation


...


Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.travi

t
Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.sutto

e
Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.maran

v


On the replication server I have:

Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.linr7.mboxkey: No such file or directory
Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.kjells.mboxkey: No such file or directory
Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.ngang.mboxkey: No such file or directory

When I try to process the sync/log- files.


Any pointers or help appreciated.  IMAP is functioning as far as I can 
tell, and only the replication process is failing.


Thank you,

MIke


--
--
Michael D. Sofka   sof...@rpi.edu
ITI Software Architect,   Email, TeX, Epistemology
Rensselaer Polytechnic Institute, Troy, NY.  http://www.rpi.edu/~sofkam/


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: How to find mailbox name from id

2020-09-15 Thread Marco

On 14/09/2020 11:43, Ismaël Tanguy has written:

Hello,

cyrus-imapd-3.0.7-16.el8.src.rpm installed on Centos 8.2

An user fails to receive an email from  a mailing list of 1000 subscribers.
 From SMTP server, I found the uid of the mail and look for it in the 
IMAP store logs.


While the delivery is OK for the most part, I found 5 mistakes :

# grep 280aa530-f9a0-c1fd-b100-51201aa6b2fc /var/log/maillog | grep -v 
Delivered


dupelim: eliminated duplicate message to i21mdycbfokfu8yq6jul3hvt id 
<280aa530-f9a0-c1fd-b100-51201aa6b2fc>

[...]

Hello,
 good question!

btw... on Cyrus 2.4 these logs told me the mailbox name too. On Cyrus 
3.x this info disappears. Ouch :(


If you delete the mailbox the syslog shows the mailbox name and the 
uniqueid together, only dupelim lacks of this info.


Cheers
Marco

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

How to find mailbox name from id

2020-09-14 Thread Ismaël Tanguy

Hello,

cyrus-imapd-3.0.7-16.el8.src.rpm installed on Centos 8.2

An user fails to receive an email from  a mailing list of 1000 subscribers.
From SMTP server, I found the uid of the mail and look for it in the 
IMAP store logs.


While the delivery is OK for the most part, I found 5 mistakes :

# grep 280aa530-f9a0-c1fd-b100-51201aa6b2fc /var/log/maillog | grep -v 
Delivered


dupelim: eliminated duplicate message to i21mdycbfokfu8yq6jul3hvt id 
<280aa530-f9a0-c1fd-b100-51201aa6b2fc>

dupelim: eliminated duplicate message to gpcnws97fd5kke9ywveu8ms5
dupelim: eliminated duplicate message to izl2yz009e4dr9q0fnq4fls0
dupelim: eliminated duplicate message to e4l4zysb2f14o3ins52g2nb1
dupelim: eliminated duplicate message to ziaim4ec3kh0sxwf1angvq21
dupelim: eliminated duplicate message to 74zgw35o41swdp4aixmo7b8f
dupelim: eliminated duplicate message to iualfalhbrp0lq3mk37uxnx9

With the mailbox name of this user, it's easy to found the Unique ID of 
the mailbox :

$ mbexamine user.e22005103

 Mailbox ACL: e22005103    lrswipkxtecdan
  Unique ID: 74zgw35o41swdp4aixmo7b8f


Then, I would like to know the mailbox names corresponding to the uids 
reported in the logs.

How can I do it?
Is there any commands?


For the problem of eliminating duplicate message, singleinstancestore is 
activated on cyrus-imapd.

Do you think the problem is coming from this parameter?

Thank you,

Ismaël Tanguy
Université de Bretagne Occidentale
Brest - France

--


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

ptloader doesn't work anymore (SEGFAULT)

2020-09-11 Thread Rainer Ruprechtsberger
Hi,
I used ptlaoder quite successfully up to version 2.4 of cyrus. Since the
upgrade to 2.5 I get SEGFAULTs.

After the upgrade to 3.2.2 I tested it again, but still:

process type:SERVICE name:ptloader path:/usr/lib/cyrus/bin/ptloader
age:0.665s pid:19082 signaled to death by signal 11 (Segmentation fault)

I tried to enter 'ptloader -d' in cyrus.conf but this did not work for
me (no ptloader started at all).

My environment is Debian Buster and I use the packages from backports.
My ldap server is an openldap slapd accessed via local unix socket.

Any hint on where and how to debug this would be appreciated.

/rupi

-- 
Rainer Ruprechtsberger
Volkshilfe Oberösterreich
IT
4020 Linz, Glimpfingerstrasse 48
Tel.: +43 732 3405 123
Mobil.: +43 676 8734 1123

ZVR Zahl: 064371505

Volkshilfe. Wir sind für die Menschen da.

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: OutLook support

2020-09-08 Thread Deborah Pickett
Hi Andrea,

> What I found really annoying is "non-read" receipts.

Ouch, I did not know about this!  I will file it away in case it ever bites me.

> > Rarely, Outlook will decide that a folder is local-only
> > [...]
> Does it at least shows the folder is local?
> Then I could train the users to stop using it and call me.

Haha, no, no one notices until (if you're lucky) someone else who sees
the same folder in a shared account notices they can't see It, or (if you're 
not)
the computer housing these unexpected local folders dies, and then
you discover that the messages have been absent for months.



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: OutLook support

2020-09-05 Thread Andrea Venturoli

On 2020-09-05 03:11, Deborah Pickett wrote:

On 2020-09-04 18.30, Andrea Venturoli wrote:

What's the status of interoperability today?
Will OL 2013 work reliably with CyrusIMAP 3.0? 3.2?
What about newer versions of OL? 


Hi Andrea,


Hello.



I can offer anecdata of interoperability between Cyrus 3.0.x and Outlook 
2016 from ten months of experience.


Thank you very much for sharing.



Like Outlook in general, it works fine, until it doesn't. With ~40 users 
with mailboxes up to 15 GB in size, I've had to help users start with 
fresh Outlook profiles about half a dozen times when their Outlook data 
file got corrupted.


Nothing new here: when I said pre-2013 version worked, what I meant is a 
~50 users installation required 2-3 reconfigurations per month.

I can live with that.
Of course using ThunderBird would mean max. 2-3 per *year* or even less, 
but it's up to the customer to choose.





Some specific observations:

Like any IMAP account in Outlook, you lose the ability to tag messages 
with colour.  All you can do is flag or unflag a message.


Fine, I guess.



Outlook does not handle the \Deleted flag well, and it has a habit of 
showing messages which are \Deleted as if they are still present 
(especially in Drafts). I recommend configuring all clients sharing an 
account with Outlook to purge folders early and often.


True, I remember that.
Showing deleted messages with an overstroke and forcing the user to 
"delete twice" was puzzling most of my users.




Outlook respects special-use folders about as well as other IMAP 
clients, which is to say, not super-well.  If you try to change which 
folder is the Trash folder using cyradm, Outlook may not notice the 
change.


Fine as long as I can set this up for a new account.
Then I can always delete/recreate.



64-bit Outlook is needed if both (a) your data file is > 2 GB, and (b) 
you want search indexing to work.  With 32-bit Outlook, search will 
silently miss messages.


:-O
Thanks for pointing this out!



Outlook is inefficient at IMAP synchronization.  If you have large 
mailboxes, it can spend a lot of its time synchronizing subscribed 
folders.  There are ways of winnowing the list of folders that Outlook 
tries to sync during Send And Receive, and this helps a bit.


Now I remember this too...




Outlook by default wants to send read receipts.


What I found really annoying is "non-read" receipts.
In case a user loses view of a shared folders, OL will send a "non-read" 
receipt for any unread message, potentially queueing thousands of 
messages in a few seconds!
This could be turned off in older versions; on post-2010 the option is 
either not there or hidden.

>:-<



To sync Outlook with Cyrus contacts, calendars and tasks, the free 
Outlook CalDav Synchronizer add-in works well (but sync rules are 
tedious to set up, and I haven't found a way to deploy preconfigured 
sync rules to users).  Outlook tries to disable the add-in because it 
slows down startup, but you can prevent this with a registry setting.


Thanks again.
I don't think I'll need this soon, but it's useful to know.



Rarely, Outlook will decide that a folder is local-only, and any 
messages moved into that folder will stop syncing with Cyrus.  The only 
fix I have found is to create a new Outlook profile (and then hunt for 
lost messages to drag back under synchronized folders).


Yes, I remember this too :-<
Does it at least shows the folder is local?
Then I could train the users to stop using it and call me.



These corruptions seem to occur more often in "Other Users" and "Shared 
Folders", but this might just be because said folders are huge (> 4 GB) 
in my company.


I hope I don't need to use this, at least for now.



Of course, it's unlikely that any of these irritations will ever get 
fixed by Microsoft.


That's sure.



In the long term, I am considering migrating my 
users from Outlook to Thunderbird or webmail.


All the users of my servers are using TB (along with mobile devices and 
occasionally RoundCube).
Now I'm evaulating installing a new instance at a customer who is 
already using OutLook (so to overcome the limitations of their ISP, 
which only offers POP3).

I'll suggest they move to ThunderBird but:
a) habits are hard to lose;
b) some use a management software who might require OL :-(



 bye & Thanks
av.

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: OutLook support

2020-09-04 Thread Deborah Pickett

On 2020-09-04 18.30, Andrea Venturoli wrote:

What's the status of interoperability today?
Will OL 2013 work reliably with CyrusIMAP 3.0? 3.2?
What about newer versions of OL? 


Hi Andrea,

I can offer anecdata of interoperability between Cyrus 3.0.x and Outlook 
2016 from ten months of experience.


Like Outlook in general, it works fine, until it doesn't. With ~40 users 
with mailboxes up to 15 GB in size, I've had to help users start with 
fresh Outlook profiles about half a dozen times when their Outlook data 
file got corrupted.


Some specific observations:

Like any IMAP account in Outlook, you lose the ability to tag messages 
with colour.  All you can do is flag or unflag a message.


Outlook does not handle the \Deleted flag well, and it has a habit of 
showing messages which are \Deleted as if they are still present 
(especially in Drafts). I recommend configuring all clients sharing an 
account with Outlook to purge folders early and often.


Outlook respects special-use folders about as well as other IMAP 
clients, which is to say, not super-well.  If you try to change which 
folder is the Trash folder using cyradm, Outlook may not notice the 
change.  That said, it's not as bad as Windows 10 mail, which flat out 
refuses to respect special-use folder tags at all.


64-bit Outlook is needed if both (a) your data file is > 2 GB, and (b) 
you want search indexing to work.  With 32-bit Outlook, search will 
silently miss messages.


Outlook is inefficient at IMAP synchronization.  If you have large 
mailboxes, it can spend a lot of its time synchronizing subscribed 
folders.  There are ways of winnowing the list of folders that Outlook 
tries to sync during Send And Receive, and this helps a bit.


Outlook by default wants to send read receipts.  These invisible 
messages can silently clog up the outbox, preventing any messages from 
being sent.  It is a very good idea to disable sending read receipts 
entirely; I have set a Group Policy object to do this. I've had to use a 
free program called MFCMAPI to manually delete queued read receipts that 
accidentally got through.


To sync Outlook with Cyrus contacts, calendars and tasks, the free 
Outlook CalDav Synchronizer add-in works well (but sync rules are 
tedious to set up, and I haven't found a way to deploy preconfigured 
sync rules to users).  Outlook tries to disable the add-in because it 
slows down startup, but you can prevent this with a registry setting.


Rarely, Outlook will decide that a folder is local-only, and any 
messages moved into that folder will stop syncing with Cyrus.  The only 
fix I have found is to create a new Outlook profile (and then hunt for 
lost messages to drag back under synchronized folders).


Renaming a folder, or moving it somewhere else, in Outlook usually 
works.  Rarely, it'll make the folder local-only.  A slightly more 
robust way of renaming a folder is to make a new folder with the new 
name, and move the contents of the old folder over to the new folder.  I 
have seen this fail too.


These corruptions seem to occur more often in "Other Users" and "Shared 
Folders", but this might just be because said folders are huge (> 4 GB) 
in my company.


Of course, it's unlikely that any of these irritations will ever get 
fixed by Microsoft.  In the long term, I am considering migrating my 
users from Outlook to Thunderbird or webmail.


Hope these data points are useful.

Deborah


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

OutLook support

2020-09-04 Thread Andrea Venturoli

Hello.

A long time ago I had a customer who used OutLook with a Cyrus-IMAP 
server (I think it was 2.2 at the time).
Up to OL 2010 everything was (almost) fine, but upgrading to OL 2013 was 
a disaster, e.g. local-only folders, ability to move messages to folders 
which didn't exist on the server (thus losing it!), renaming folders 
seemed to work, but on the server nothing happened, etc...


What's the status of interoperability today?
Will OL 2013 work reliably with CyrusIMAP 3.0? 3.2?
What about newer versions of OL?

 bye & Thanks
av.

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 IMAP 3.2.3 released

2020-08-27 Thread ellie timoney
The Cyrus team is proud to announce the immediate availability of a new version 
of Cyrus IMAP: 3.2.3

Download URLs:


https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-3.2.3/cyrus-imapd-3.2.3.tar.gz

https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-3.2.3/cyrus-imapd-3.2.3.tar.gz.sig


Please consult the release notes and upgrade documentation before upgrading to 
3.2.3:

https://www.cyrusimap.org/imap/download/release-notes/3.2/x/3.2.3.html
https://www.cyrusimap.org/imap/download/upgrade.html

And join us on Github at https://github.com/cyrusimap/cyrus-imapd to report 
issues, join in the deliberations of new features for the next Cyrus IMAP 
release, and to contribute to the documentation.

On behalf of the Cyrus team,

Kind regards,

ellie timoney

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: IOERROR: conversations_audit on store

2020-08-27 Thread ellie timoney
Hi Frederik,

>From the source, it looks like this error is reported when the internal counts 
>in the conversations data are out of sync.

I don't have any insight as to what might cause this, but I think you should be 
able to run "ctl_conversationsdb" with the "-R" argument for the affected 
users, to recalculate their counts.

Cheers,

ellie

On Mon, 24 Aug 2020, at 6:22 PM, Frederik Himpe via Info-cyrus wrote:
> I am using Cyrus 3.2.2 on Debian Buster 10 (package from buster-
> backports).
> 
> I am having lots of errors similar to these in the logs:
> 
> cyrus/imaps[24052]: IOERROR: conversations_audit on store: 
> /var/lib/cyrus/user/e/example.conversations Bff62cd0852db22e1 0 
> (1452110 1 0 0 () ((1 1452109 1 1 0)) () foobar. 0 () 1452109)
> 
> The same problem happend with Cyrus 3.0.x and seems to happen often for
> specific users, usually with big mailboxes (one of them 40GB+). When
> upgrading to 3.2.2, I ran
> 
> reconstruct -V max
> ctl_conversationsdb -b -r
> quota -f
> dav_reconstruct -a
> 
> as per the instructions given in the documentation.
> 
> 
> /var/lib/cyrus and /var/spool/cyrus are on ext4, Linux kernel at this
> moment is 5.4.48 (also happend with different kernels).
> 
> imapd.conf:
> configdirectory: /var/lib/cyrus
> proc_path: /run/cyrus/proc
> mboxname_lockpath: /run/cyrus/lock
> defaultpartition: default
> partition-default: /var/spool/cyrus/mail
> partition-news: /var/spool/cyrus/news
> altnamespace: yes
> unixhierarchysep: yes
> lmtp_downcase_rcpt: yes
> admins: cyradm
> allowanonymouslogin: no
> popminpoll: 1
> autocreate_quota: 500
> umask: 077
> sieveusehomedir: false
> sievedir: /var/spool/sieve
> httpmodules: caldav carddav
> hashimapspool: true
> allowplaintext: yes
> sasl_mech_list: PLAIN
> sasl_saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux
> sasl_minimum_layer: 128
> sasl_pwcheck_method: saslauthd
> sasl_auto_transition: no
> tls_server_cert: /etc/letsencrypt/live/ai.vub.ac.be/fullchain.pem
> tls_server_key:  /etc/letsencrypt/live/ai.vub.ac.be/privkey.pem
> tls_client_ca_dir: /etc/ssl/certs
> tls_session_timeout: 1440
> tls_ciphers: TLSv1.2:+TLSv1:+HIGH:!aNULL:@STRENGTH
> tls_versions: tls1_0 tls1_1 tls1_2
> lmtpsocket: /run/cyrus/socket/lmtp
> idlesocket: /run/cyrus/socket/idle
> notifysocket: /run/cyrus/socket/notify
> syslog_prefix: cyrus
> delete_mode: delayed
> expunge_mode: delayed
> sync_log: on
> sync_log_channels: squatter
> conversations: 1
> 
> cyrus.conf:
> START {
>   recover cmd="/usr/sbin/cyrus ctl_cyrusdb -r"
>   
>   idled   cmd="idled"
> }
> SERVICES {
>   imapcmd="imapd -U 30" listen="imap" prefork=0 maxchild=100
>   imaps   cmd="imapd -s -U 30" listen="imaps" prefork=0 
> maxchild=100
>   pop3cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50
>   pop3s   cmd="pop3d -s -U 30" listen="pop3s" prefork=0 
> maxchild=50
>   httpcmd="httpd -U 30 -p 256" listen="localhost:8008" 
> prefork=0 
> maxchild=100
>   lmtpunixcmd="lmtpd" 
> listen="/var/spool/postfix/var/run/cyrus/socket/lmtp" prefork=0 
> maxchild=20
>   sieve   cmd="timsieved" listen="sieve" prefork=0 maxchild=100
>   notify  cmd="notifyd" listen="/run/cyrus/socket/notify" 
> proto="udp" 
> prefork=1
> }
> EVENTS {
>   checkpoint  cmd="/usr/sbin/cyrus ctl_cyrusdb -c" period=30
>   delprunecmd="/usr/sbin/cyrus expire -E 3" at=0401
>   tlsprunecmd="/usr/sbin/cyrus tls_prune" at=0415
>   deleteprune cmd="/usr/sbin/cyrus expire -E 4 -D 28" at=0430
>   expungeprunecmd="/usr/sbin/cyrus expire -E 4 -X 28" at=0445
>   squatter1   cmd="/usr/bin/nice -n 19 /usr/sbin/cyrus squatter -i" 
> period=120
>   squattera   cmd="/usr/bin/nice -n 19 /usr/sbin/cyrus squatter -i" 
> at=0517
> }
> 
> Any idea what is going wrong?
> 
> -- 
> Frederik Himpe 
> 
> 
> 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


IOERROR: conversations_audit on store

2020-08-24 Thread Frederik Himpe via Info-cyrus
I am using Cyrus 3.2.2 on Debian Buster 10 (package from buster-
backports).

I am having lots of errors similar to these in the logs:

cyrus/imaps[24052]: IOERROR: conversations_audit on store: 
/var/lib/cyrus/user/e/example.conversations Bff62cd0852db22e1 0 (1452110 1 0 0 
() ((1 1452109 1 1 0)) () foobar. 0 () 1452109)

The same problem happend with Cyrus 3.0.x and seems to happen often for
specific users, usually with big mailboxes (one of them 40GB+). When
upgrading to 3.2.2, I ran

reconstruct -V max
ctl_conversationsdb -b -r
quota -f
dav_reconstruct -a

as per the instructions given in the documentation.


/var/lib/cyrus and /var/spool/cyrus are on ext4, Linux kernel at this
moment is 5.4.48 (also happend with different kernels).

imapd.conf:
configdirectory: /var/lib/cyrus
proc_path: /run/cyrus/proc
mboxname_lockpath: /run/cyrus/lock
defaultpartition: default
partition-default: /var/spool/cyrus/mail
partition-news: /var/spool/cyrus/news
altnamespace: yes
unixhierarchysep: yes
lmtp_downcase_rcpt: yes
admins: cyradm
allowanonymouslogin: no
popminpoll: 1
autocreate_quota: 500
umask: 077
sieveusehomedir: false
sievedir: /var/spool/sieve
httpmodules: caldav carddav
hashimapspool: true
allowplaintext: yes
sasl_mech_list: PLAIN
sasl_saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux
sasl_minimum_layer: 128
sasl_pwcheck_method: saslauthd
sasl_auto_transition: no
tls_server_cert: /etc/letsencrypt/live/ai.vub.ac.be/fullchain.pem
tls_server_key:  /etc/letsencrypt/live/ai.vub.ac.be/privkey.pem
tls_client_ca_dir: /etc/ssl/certs
tls_session_timeout: 1440
tls_ciphers: TLSv1.2:+TLSv1:+HIGH:!aNULL:@STRENGTH
tls_versions: tls1_0 tls1_1 tls1_2
lmtpsocket: /run/cyrus/socket/lmtp
idlesocket: /run/cyrus/socket/idle
notifysocket: /run/cyrus/socket/notify
syslog_prefix: cyrus
delete_mode: delayed
expunge_mode: delayed
sync_log: on
sync_log_channels: squatter
conversations: 1

cyrus.conf:
START {
recover cmd="/usr/sbin/cyrus ctl_cyrusdb -r"
  
idled   cmd="idled"
}
SERVICES {
imapcmd="imapd -U 30" listen="imap" prefork=0 maxchild=100
imaps   cmd="imapd -s -U 30" listen="imaps" prefork=0 
maxchild=100
pop3cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50
pop3s   cmd="pop3d -s -U 30" listen="pop3s" prefork=0 
maxchild=50
httpcmd="httpd -U 30 -p 256" listen="localhost:8008" 
prefork=0 maxchild=100
lmtpunixcmd="lmtpd" 
listen="/var/spool/postfix/var/run/cyrus/socket/lmtp" prefork=0 maxchild=20
sieve   cmd="timsieved" listen="sieve" prefork=0 maxchild=100
notify  cmd="notifyd" listen="/run/cyrus/socket/notify" 
proto="udp" prefork=1
}
EVENTS {
checkpoint  cmd="/usr/sbin/cyrus ctl_cyrusdb -c" period=30
delprunecmd="/usr/sbin/cyrus expire -E 3" at=0401
tlsprunecmd="/usr/sbin/cyrus tls_prune" at=0415
deleteprune cmd="/usr/sbin/cyrus expire -E 4 -D 28" at=0430
expungeprunecmd="/usr/sbin/cyrus expire -E 4 -X 28" at=0445
squatter1   cmd="/usr/bin/nice -n 19 /usr/sbin/cyrus squatter -i" 
period=120
squattera   cmd="/usr/bin/nice -n 19 /usr/sbin/cyrus squatter -i" 
at=0517
}

Any idea what is going wrong?

-- 
Frederik Himpe 


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 IMAP 2.4.21, 2.5.16 and 3.0.14 released

2020-08-19 Thread ellie timoney
The Cyrus team is proud to announce the immediate availability of new legacy 
versions of Cyrus IMAP.

The primary motivator for these releases is to allow XFER to correctly 
recognise newer Cyrus backends.  If you run a legacy Cyrus installation in a 
murder configuration, and ever wish to upgrade your backends to 3.1, 3.2 or 
3.3, you will need these fixes.  Details and discussion of this issue are 
available at https://github.com/cyrusimap/cyrus-imapd/issues/3123

If your legacy Cyrus installation is not in a murder configuration, please 
check the release notes to see if any of the other changes are things you care 
about.

2.4.21 release notes:
https://www.cyrusimap.org/imap/download/release-notes/2.4/x/2.4.21.html

2.4.21 download URLs:

https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-2.4.21/cyrus-imapd-2.4.21.tar.gz

https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-2.4.21/cyrus-imapd-2.4.21.tar.gz.sig

2.5.16 release notes:
https://www.cyrusimap.org/imap/download/release-notes/2.5/x/2.5.16.html

2.5.16 download URLs:

https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-2.5.16/cyrus-imapd-2.5.16.tar.gz

https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-2.5.16/cyrus-imapd-2.5.16.tar.gz.sig

3.0.14 release notes:
https://www.cyrusimap.org/imap/download/release-notes/3.0/x/3.0.14.html

3.0.14 download URLs:

https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-3.0.14/cyrus-imapd-3.0.14.tar.gz

https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-3.0.14/cyrus-imapd-3.0.14.tar.gz.sig

There should also be a new stable 3.2 release in the next week or so, so keep 
an eye out for the announcement!

On behalf of the Cyrus team,

ellie timoney

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: Cryus 3.2.2: Remote does not support ANNOTATEMORE

2020-08-12 Thread Rainer Ruprechtsberger
On 8/12/20 11:59 AM, Marco wrote:
[...]
> I suggest to use the Cyrus::IMAP::Admin version provided by the Cyrus
> IMAP server. So, when you upgrade Cyrus IMAP, upgrade the Perl admin
> utility too and use that.

Thanks a lot. My problem came from installing cyrus from the debian
backports repository and I indeed forgot to pull the cyrus-admin package
from there as well.

/r

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: Cryus 3.2.2: Remote does not support ANNOTATEMORE

2020-08-12 Thread Marco

Il 12/08/2020 11:16, Rainer Ruprechtsberger ha scritto:

Hi,
not sure if it is only after the upgrade to 3.2.2 since the features are
not that much in use. But I did set 'expire' and 'sharedseen' before.

Now I get 'Remote does not support ANNOTATEMORE' using 'mboxconfig ..
expire' or 'sharedseen' or even 'info'.

[...]
Hello Rainer,

  if I well remember, from 3.2 version Cyrus IMAP does not support the 
ANNOTATEMORE experimental extension by default no more. It provides now 
the support for METADATA only.


Sharedseen, comment, expire, etc are all annotations.

I have a lot of problems using Cyrus::IMAP::Admin between different 
Cyrus IMAP server versions.


I suggest to use the Cyrus::IMAP::Admin version provided by the Cyrus 
IMAP server. So, when you upgrade Cyrus IMAP, upgrade the Perl admin 
utility too and use that.



Alternatively, you can try to configure your Cyrus IMAP 3.2 with

annotation_enable_legacy_commands: 1

but I never verified this chance. Upgrade the client to use METADATA 
could be the better and definitive choice.


Cheers
Marco

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


Cryus 3.2.2: Remote does not support ANNOTATEMORE

2020-08-12 Thread Rainer Ruprechtsberger
Hi,
not sure if it is only after the upgrade to 3.2.2 since the features are
not that much in use. But I did set 'expire' and 'sharedseen' before.

Now I get 'Remote does not support ANNOTATEMORE' using 'mboxconfig ..
expire' or 'sharedseen' or even 'info'.

My admin account seems to be admin still (no problem creating, removing
mailboxes or set acls).

Any idea what could have happend there?

Thanks,
-- 
Rainer Ruprechtsberger
Volkshilfe Oberösterreich
IT
4020 Linz, Glimpfingerstrasse 48
Tel.: +43 732 3405 123
Mobil.: +43 676 8734 1123

ZVR Zahl: 064371505

Volkshilfe. Wir sind für die Menschen da.

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

Event notifications question

2020-08-07 Thread Marco

Hello,

 I'm trying event notifications. I would like to see if there are some 
methods to track all messages moved on a folder named "Spam", for instance.


First, I see that event filters in imapd.conf don't allow to specify a 
folder name... so the notifications produced are very large.
A way to emit only a kind of event, such as "vnd.cmu.MessageMove" could 
be appreciated.


My question is about "event_extra_params". It seems that I can add extra 
parameters. For instance, as you can see in 
https://www.cyrusimap.org/imap/concepts/features/event-notifications.html#imap-features-event-notifications-messagemove 
messageMove doesn't report the "messageContent" field.


So in imapd.conf I added:

event_extra_params: timestamp messages messageContent

I restarted the server, but messageMove events still exclude messageContent.

Do I have misunderstood something?

This is my config:

# Notify
event_notifier: log
event_exclude_specialuse: \Drafts
event_extra_params: timestamp messages messageContent
event_groups: message


Thank you very much

Cheers
Marco

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: Restore message date from "Date:" field

2020-07-31 Thread Nic Bernstein

Gionatan,
I believe the tool you're looking for is 'mbtool'  From the man page:

   DESCRIPTION
   mbtool  is  a  tool  for performing various actions on the indexes 
of a
   list of mailboxes. The only actions currently supported are  -t,  
which
   will  normalize the internaldate time stamp of each record in the 
index
   to GMT, and -r which will create a new unique ID for each mailbox.
   ...
   -t Normalize  internaldate on all index records of all listed 
mail‐
  boxes to match the Date: header if theyâre off by  more  than 
 a
  day,  which  can  be used to fix up a mailbox which has been 
re‐
  stored from backup and lost its internaldate information.
   ...
   EXAMPLES*mbtool -t*  user.jsmith

   Normalize |internaldate| on all index records in /user.jsmith/.

   Working  on  user.jsmith...
   0001:  Tue,  08  Jul  2014  16:45:18  -0500  =>  Mon,  07  Jul  2014  
20:44:18  +
   0002:  Tue  Jul  08  16:45:13  CDT  2013  =>  Fri,  30  Aug  2013  
19:46:03  +
   <...>

http://www.cyrusimap.org/imap/reference/manpages/systemcommands/mbtool.html?highlight=mbtool

Cheers,
    -nic

On 7/31/20 6:39 AM, Gionatan Danti wrote:

Hi all,
I just noticed the dates of some old emails are wrongly displayed on 
roundcube webmail.


In short, the list view shows the filesystem date of the affected 
messages (ie: mtime of u.1 file), rather than what is found in the 
"Date:" header field


These were emails migrated from an old system, but I vaguely remember 
I had some issue at the time which I solved with some combination of 
rsync+imapsync.


Can "reconstruct" be used to repopulate the index file with the 
correct date from "Date:" field? If not, what I can do to solve the 
issue? I already tried "reconstruct -u user@domain -x -f -r -G", but 
with no avail.


Thanks.



--
Nic Bernstein   n...@nicbernstein.com
https://www.nicbernstein.com
https://www.linkedin.com/in/nic-b-26577a178/


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

Restore message date from "Date:" field

2020-07-31 Thread Gionatan Danti

Hi all,
I just noticed the dates of some old emails are wrongly displayed on 
roundcube webmail.


In short, the list view shows the filesystem date of the affected 
messages (ie: mtime of u.1 file), rather than what is found in the 
"Date:" header field


These were emails migrated from an old system, but I vaguely remember I 
had some issue at the time which I solved with some combination of 
rsync+imapsync.


Can "reconstruct" be used to repopulate the index file with the correct 
date from "Date:" field? If not, what I can do to solve the issue? I 
already tried "reconstruct -u user@domain -x -f -r -G", but with no 
avail.


Thanks.

--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.da...@assyoma.it - i...@assyoma.it
GPG public key ID: FF5F32A8

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 replica 2.4 to 3.2.2 issues

2020-07-23 Thread Marco
Hello, I'm trying to replicate from Cyrus IMAP 2.4.20 to Cyrus IMAP 
3.2.2 using replication.


Because Cyrus 2.4 doesn't support IMAP replication (is this true?), I 
configured the replica with


replica2to3syncserver cmd="/usr/libexec/cyrus-imapd/sync_server" 
proto=tcp4 listen="csync"


in SERVICES of cyrus.conf.

The sync_client in master works in rolling mode, such as

/usr/lib/cyrus-imapd/sync_client -r -n replica2-3

Both master and replica hosts work with delayed deleted and delayed 
expunge fashion.


I experience some problems.
In the below logs tst-msg01 is the master, tst-msg03 is the replica.

== 1 ==
I found "errors" of this kind:

2020-07-21T15:05:16.803765+02:00 tst-msg03 
cyrus/replica2to3syncserver[1238 sync_log(): Failed to lock 
/var/lib/imap/sync/squatter/log for MAILBOX 
example.com!user.demo^gruppoarchivio.ticket.Vecchi#012 after 65 attempts
2020-07-21T15:05:16.803898+02:00 tst-msg03 
cyrus/replica2to3syncserver[1238 mailbox: longlock 
example.com!user.demo^gruppoarchivio.ticket.Vecchi for 2.5 seconds
2020-07-21T15:05:17.090124+02:00 tst-msg03 
cyrus/replica2to3syncserver[1238 sync_log(): Failed to lock 
/var/lib/imap/sync/squatter/log for MAILBOX 
example.com!user.demo^gruppoarchivio.ticket.Vecchi#012 after 65 attempts
2020-07-21T15:05:17.101288+02:00 tst-msg03 
cyrus/replica2to3syncserver[1238 mappedfile: longlock 
/var/lib/imap/domain/Q/example.com/user/E/demo.gruppoarchivio.conversations 
for 2.7 seconds
2020-07-21T15:05:17.101410+02:00 tst-msg03 cyrus/squatter[27276]: 
indexing mailbox user/demo.gruppoarchivio/ticket/vec...@example.com...
2020-07-21T15:05:18.132371+02:00 tst-msg03 cyrus/squatter[27276]: Xapian 
committed 740 updates in 0.374236 sec
2020-07-21T15:05:18.145507+02:00 tst-msg03 cyrus/squatter[27276]: 
mappedfile: longlock 
/var/lib/imap/domain/Q/example.com/user/E/demo.gruppoarchivio.xapianactive 
for 1.0 seconds


But the xapian index seems to be ok:

-rw--- 1 cyrus mail  864 Jul 21 15:05 cyrus.indexed.db
-rw--- 1 cyrus mail0 Jul 21 15:05 flintlock
-rw--- 1 cyrus mail  116 Jul 21 15:05 iamglass
-rw--- 1 cyrus mail 13115392 Jul 21 15:05 position.glass
-rw--- 1 cyrus mail  5545984 Jul 21 15:05 postlist.glass
-rw--- 1 cyrus mail  3530752 Jul 21 15:05 termlist.glass

I hope I can ignore this. I've found these errors only for one mailbox.


== 2 ==
Another problem is that the "expire" annotation value is not configured 
as an "expire" metadata value on Cyrus 3.2.2. I don't know if this is 
expected or if this is a bug. But it is a problem for me, I have to 
rewrite all these mailboxes metadata.


To be more clear, the Cyrus IMAP 2.4.20 annotation like

* ANNOTATION "user/marco/tr...@example.com" 
"/vendor/cmu/cyrus-imapd/expire" ("value.shared" "14" 
"content-type.shared" "text/plain" "size.shared" "2" 
"modifiedsince.shared" "1406624279")


become in Cyrus IMAP 3.2.2 after the sync:
* METADATA user/marco/tr...@example.com 
("/shared/vendor/cmu/cyrus-imapd/expire" NIL)


I expected "14" and not NIL.

== 3 ==
The specialuse flags are not kept in the replica server:

* LIST (\HasNoChildren \Sent) "/" INBOX/Sent
become
* LIST (\HasNoChildren) "/" INBOX/Sent

Do I have to suppose that I must run the cvt_xlist_specialuse tool as 
described in 
https://www.cyrusimap.org/3.2/imap/download/upgrade.html#upgrade-specific-items 
?
It's not clear to me if this instruction is related to the in place 
upgrade only or to the replication mode too.



== 4 ==
This is a severe error. When I expunge a message in the master, the 
expunge action is not replicated on the replica, and the sync_client dies:


2020-07-23T14:50:44.695378+02:00 tst-msg01 cyrus/imap[26851]: Expunged 1 
messages from example.com!user.marco^fff.Trash
2020-07-23T14:51:10.147600+02:00 tst-msg03 
cyrus/replica2to3syncserver[1207 Fatal error: Internal error: assertion 
failed: imap/dlist.c: 156: base != NULL
2020-07-23T14:51:10.693261+02:00 tst-msg01 cyrus/sync_client[26834]: 
RESERVE received * response:
2020-07-23T14:51:10.693321+02:00 tst-msg01 cyrus/sync_client[26834]: 
reserve messages: failed: Bad protocol
2020-07-23T14:51:10.693730+02:00 tst-msg01 cyrus/sync_client[26834]: 
Error in do_sync(): bailing out! Bad protocol
2020-07-23T14:51:10.693750+02:00 tst-msg01 cyrus/sync_client[26834]: 
Processing sync log file /var/lib/imap/sync/replica2-3/log-26834 failed: 
Bad protocol
2020-07-23T14:51:10.706750+02:00 tst-msg03 cyrus/master[24009]: process 
type:SERVICE name:replica2to3syncserver 
path:/usr/libexec/cyrus-imapd/sync_server age:1142.993s pid:1207 exited, 
status 70


I can't no more suppress this error. All sync_client die, even in non 
rolling mode. I have to delete permanently the replicated mailboxes to 
resume the right working.


I see the same error when I delete a mailbox on replica and after that I 
do a sync_client on master. In this last case the error disappear only 
when I delete the delayed DELETED mailbox too.


I read the documentation, I didn't find 

Re: backupd and sync_client Syntax error

2020-07-23 Thread Marco

Ouch, sorry, ignore this.

I suppose to have found the problem.

My goal is to sync from Cyrus IMAP 2.4 to 3.2, and to 3.2 to a backupd host.
I see it works just starting by hand the sync_client in Cyrus IMAP 2.4, 
meanwhile in the middle host the rolling mode is sufficient with 
sync_log_chain.


But I had a bad Cyrus IMAP 2.4 with some mailboxes which had references 
in mailboxes.db only, and not in file system and metadata.


Solving above error, then sync_client from 3.2 IMAP host to backupd host 
works.


I don't know why I don't see errors in sync_client from 2.4 to 3.2 already.

Cheers
Marco


Il 22/07/2020 11:51, Marco ha scritto:

Hello,

  I would ask an help with a new replication error in backup channel.
I have this never-ending loop error:

2020-07-22T11:35:16.212126+02:00 tst-msg03 cyrus/sync_client[22465]: 
MAILBOXES received NO response: IMAP_PROTOCOL_BAD_PARAMETERS Bad parameters
2020-07-22T11:35:16.212185+02:00 tst-msg03 cyrus/sync_client[22465]: 
Error in do_sync(): bailing out! Syntax error in parameters
2020-07-22T11:35:16.212228+02:00 tst-msg03 cyrus/sync_client[22465]: 
Processing sync log file /var/lib/imap/sync/bck/log-run failed: Syntax 
error in parameters
2020-07-22T11:35:16.216962+02:00 tst-msg03 cyrus/sync_client[22465]: 
Reprocessing sync log file /var/lib/imap/sync/bck/log-run



The "log-run" file ends with:

APPEND "example.com!user.gianni^ferromagnetic.  Cartella Molto Spaziosa"
MAILBOX "example.com!user.gianni^ferromagnetic.  Cartella Molto Spaziosa"
MAILBOX "example.com!user.gianni^ferromagnetic.  Cartella Molto Spaziosa"
APPEND "example.com!user.gianni^ferromagnetic.  Cartella Molto 
Spaziosa.Sottocartella"
MAILBOX "example.com!user.gianni^ferromagnetic.  Cartella Molto 
Spaziosa.Sottocartella"
MAILBOX "example.com!user.gianni^ferromagnetic.  Cartella Molto 
Spaziosa.Sottocartella"

APPEND example.com!user.gianni^ferromagnetic.10
MAILBOX example.com!user.gianni^ferromagnetic.10
MAILBOX example.com!user.gianni^ferromagnetic.10
APPEND example.com!user.gianni^ferromagnetic.Abbcc
MAILBOX example.com!user.gianni^ferromagnetic.Abbcc
MAILBOX example.com!user.gianni^ferromagnetic.Abbcc
APPEND example.com!user.gianni^ferromagnetic.Abc
MAILBOX example.com!user.gianni^ferromagnetic.Abc
MAILBOX example.com!user.gianni^ferromagnetic.Abc
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1"
APPEND "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino"
APPEND "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino.Test"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino.Test"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino.Test"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Spam"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Spam"
APPEND "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia.Archivio"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia.Archivio"
APPEND "example.com!user.gianni^ferromagnetic.Cartella Spaziosa"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella Spaziosa"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella Spaziosa"

The log-run has the same last-modified date of the first syslog error 
message of syntax error.



Other strange folder names I created are

MAILBOX example.com!user.baraccone.prova:prova:
MAILBOX example.com!user.baraccone.prova:prova:
MAILBOX example.com!user.baraccone.prova^1
MAILBOX example.com!user.baraccone.prova^1


I suspect that some folder name breaks the backup replication...

Thank you very much

Cheers
Marco

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: sync_client Sieve from 2.4.20 to 3.2.2 issue

2020-07-22 Thread Marco
For Sieve the new path "C" 
is reported by mbpath, but sync_client replicates the sieve scripts 
elsewhere.


Sorry, I would mean "For Sieve the new path with "H" is reported by 
mbpath, but sync_client replicates the scripts elsewhere (in the path 
with "S").


Many many thanks for every help

Cheers
Marco

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


sync_client Sieve from 2.4.20 to 3.2.2 issue

2020-07-22 Thread Marco

Hello,

 I have a replication issue from Cyrus IMAP 2.4.20 to 3.2.2 about sieve 
path.


Let suppose there is a user in Cyrus IMAP 2.4.20 with

# mbpath user/gianni.ferromagne...@example.com
/maildata/example.com/maildata1/domain/C/example.com/S/user/gianni^ferromagnetic

and the Sieve is in:

/var/lib/imap/sieve/domain/C/example.com/S/gianni^ferromagnetic

when the sync_client replicates the user in the Cyrus IMAP 3.2.2 I see:

$ mbpath -a user/gianni.ferromagne...@example.com
Archive: 
/sysarchivio/example.com/maildata1/domain/C/example.com/H/user/gianni^ferromagnetic
Data: 
/maildata/example.com/maildata1/domain/C/example.com/H/user/gianni^ferromagnetic
Meta: 
/metamaildata/example.com/maildata1/domain/C/example.com/H/user/gianni^ferromagnetic

Sieve: /var/spool/sieve/domain/C/example.com/H/gianni.ferromagnetic

So the hash path changes. Archive, data and meta path exists really as 
expected. But


/var/spool/sieve/domain/C/example.com/H/gianni.ferromagnetic

doesn't exist.

The sync_client create instead

/var/spool/sieve/domain/C/example.com/S/gianni.ferromagnetic

The "S" is the same hash result in master server. So it seems that for 
all data but sieve the new path is honored. For Sieve the new path "C" 
is reported by mbpath, but sync_client replicates the sieve scripts 
elsewhere.


Both master and replica have

fulldirhash: 1
hashimapspool: true
unixhierarchysep: yes

and the partition names are equals.



If I try to open a sieve connection I see:

$ telnet 0 4190
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
NO Fatal error: Error initializing actions
Connection closed by foreign host.

and the syslog says:
cyrus/sieve[31393]: can't use home directories

I think this is a consequence of the above issue, uhm...


Thank you very much

Cheers
Marco

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


backupd and sync_client Syntax error

2020-07-22 Thread Marco

Hello,

 I would ask an help with a new replication error in backup channel.
I have this never-ending loop error:

2020-07-22T11:35:16.212126+02:00 tst-msg03 cyrus/sync_client[22465]: 
MAILBOXES received NO response: IMAP_PROTOCOL_BAD_PARAMETERS Bad parameters
2020-07-22T11:35:16.212185+02:00 tst-msg03 cyrus/sync_client[22465]: 
Error in do_sync(): bailing out! Syntax error in parameters
2020-07-22T11:35:16.212228+02:00 tst-msg03 cyrus/sync_client[22465]: 
Processing sync log file /var/lib/imap/sync/bck/log-run failed: Syntax 
error in parameters
2020-07-22T11:35:16.216962+02:00 tst-msg03 cyrus/sync_client[22465]: 
Reprocessing sync log file /var/lib/imap/sync/bck/log-run



The "log-run" file ends with:

APPEND "example.com!user.gianni^ferromagnetic.  Cartella Molto Spaziosa"
MAILBOX "example.com!user.gianni^ferromagnetic.  Cartella Molto Spaziosa"
MAILBOX "example.com!user.gianni^ferromagnetic.  Cartella Molto Spaziosa"
APPEND "example.com!user.gianni^ferromagnetic.  Cartella Molto 
Spaziosa.Sottocartella"
MAILBOX "example.com!user.gianni^ferromagnetic.  Cartella Molto 
Spaziosa.Sottocartella"
MAILBOX "example.com!user.gianni^ferromagnetic.  Cartella Molto 
Spaziosa.Sottocartella"

APPEND example.com!user.gianni^ferromagnetic.10
MAILBOX example.com!user.gianni^ferromagnetic.10
MAILBOX example.com!user.gianni^ferromagnetic.10
APPEND example.com!user.gianni^ferromagnetic.Abbcc
MAILBOX example.com!user.gianni^ferromagnetic.Abbcc
MAILBOX example.com!user.gianni^ferromagnetic.Abbcc
APPEND example.com!user.gianni^ferromagnetic.Abc
MAILBOX example.com!user.gianni^ferromagnetic.Abc
MAILBOX example.com!user.gianni^ferromagnetic.Abc
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1"
APPEND "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino"
APPEND "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino.Test"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino.Test"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Cestino.Test"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Spam"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.Spam"
APPEND "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia.Archivio"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella 1.ma,cia.Archivio"
APPEND "example.com!user.gianni^ferromagnetic.Cartella Spaziosa"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella Spaziosa"
MAILBOX "example.com!user.gianni^ferromagnetic.Cartella Spaziosa"

The log-run has the same last-modified date of the first syslog error 
message of syntax error.



Other strange folder names I created are

MAILBOX example.com!user.baraccone.prova:prova:
MAILBOX example.com!user.baraccone.prova:prova:
MAILBOX example.com!user.baraccone.prova^1
MAILBOX example.com!user.baraccone.prova^1


I suspect that some folder name breaks the backup replication...

Thank you very much

Cheers
Marco

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: assertion failed: imap/mboxevent.c: 743: filled_params(type, event)

2020-07-20 Thread Matthew Schumacher

Bug filed:

https://github.com/cyrusimap/cyrus-imapd/issues/3115

On 7/17/20 1:52 AM, Matthew Schumacher wrote:

HI Ellie,

I agree that it's probably a bug.  I'll open a github issue.

I'll report back with the issue number.

Thanks,
Matt

On 7/16/20 5:47 PM, ellie timoney wrote:

Hi,

I've seen something like this before, and my gut feel is that this is 
going to turn out to be a bug in Cyrus.


I think what's happening is that, somewhere in Cyrus, an event is 
being generated with a type that's supposed to contain a 
serverAddress field, but the serverAddress field is not being 
initialised.


Before a generated event actually gets sent out to the notifier, we 
validate that all the required parameters have been filled 
("filled_params()"), and the fatal assertion is telling us that this 
one has not been, even though it should have been.


Would you like to open a GitHub issue at 
https://github.com/cyrusimap/cyrus-imapd/issues ?  If you don't, I 
will.  But if I do it, then you won't get automatic notifications 
about updates, so if you can, it's better if you do it.  Feel free to 
just paste your previous email as the issue text. :)


Cheers,

ellie

On Thu, Jul 16, 2020, at 11:23 AM, Matthew Schumacher wrote:

I'm trying to use external notifications on 3.2.2 but it doesn't work.
If I define

event_notifier: external
notify_external: /usr/cyrus/bin/cyrus_notify
event_groups: access
event_extra_params: clientAddress timestamp service

Then the imapd thread dies with this assertion:

Jul 15 18:01:54 snow imaps[28108]: Cannot notify event Login: missing
parameters: serverAddress clientAddress
Jul 15 18:01:54 snow imaps[28108]: Fatal error: Internal error:
assertion failed: imap/mboxevent.c: 743: filled_params(type, event)

If I remove event_groups and event_extra_params then notify never calls
my external script and notify breaks.

If I define "event_groups: access" and omit event_extra_params then I'm
back to:

Jul 15 18:14:26 snow imaps[28934]: Cannot notify event Login: missing
parameters: serverAddress
Jul 15 18:14:26 snow imaps[28934]: Fatal error: Internal error:
assertion failed: imap/mboxevent.c: 743: filled_params(type, event)

Anyone know where this serverAddress is coming from and how to fix it?

schu

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



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: assertion failed: imap/mboxevent.c: 743: filled_params(type, event)

2020-07-17 Thread Matthew Schumacher

HI Ellie,

I agree that it's probably a bug.  I'll open a github issue.

I'll report back with the issue number.

Thanks,
Matt

On 7/16/20 5:47 PM, ellie timoney wrote:

Hi,

I've seen something like this before, and my gut feel is that this is going to 
turn out to be a bug in Cyrus.

I think what's happening is that, somewhere in Cyrus, an event is being 
generated with a type that's supposed to contain a serverAddress field, but the 
serverAddress field is not being initialised.

Before a generated event actually gets sent out to the notifier, we validate that all the 
required parameters have been filled ("filled_params()"), and the fatal 
assertion is telling us that this one has not been, even though it should have been.

Would you like to open a GitHub issue at 
https://github.com/cyrusimap/cyrus-imapd/issues ?  If you don't, I will.  But 
if I do it, then you won't get automatic notifications about updates, so if you 
can, it's better if you do it.  Feel free to just paste your previous email as 
the issue text. :)

Cheers,

ellie

On Thu, Jul 16, 2020, at 11:23 AM, Matthew Schumacher wrote:

I'm trying to use external notifications on 3.2.2 but it doesn't work.
If I define

event_notifier: external
notify_external: /usr/cyrus/bin/cyrus_notify
event_groups: access
event_extra_params: clientAddress timestamp service

Then the imapd thread dies with this assertion:

Jul 15 18:01:54 snow imaps[28108]: Cannot notify event Login: missing
parameters: serverAddress clientAddress
Jul 15 18:01:54 snow imaps[28108]: Fatal error: Internal error:
assertion failed: imap/mboxevent.c: 743: filled_params(type, event)

If I remove event_groups and event_extra_params then notify never calls
my external script and notify breaks.

If I define "event_groups: access" and omit event_extra_params then I'm
back to:

Jul 15 18:14:26 snow imaps[28934]: Cannot notify event Login: missing
parameters: serverAddress
Jul 15 18:14:26 snow imaps[28934]: Fatal error: Internal error:
assertion failed: imap/mboxevent.c: 743: filled_params(type, event)

Anyone know where this serverAddress is coming from and how to fix it?

schu

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: assertion failed: imap/mboxevent.c: 743: filled_params(type, event)

2020-07-16 Thread ellie timoney
Hi,

I've seen something like this before, and my gut feel is that this is going to 
turn out to be a bug in Cyrus.

I think what's happening is that, somewhere in Cyrus, an event is being 
generated with a type that's supposed to contain a serverAddress field, but the 
serverAddress field is not being initialised.

Before a generated event actually gets sent out to the notifier, we validate 
that all the required parameters have been filled ("filled_params()"), and the 
fatal assertion is telling us that this one has not been, even though it should 
have been.

Would you like to open a GitHub issue at 
https://github.com/cyrusimap/cyrus-imapd/issues ?  If you don't, I will.  But 
if I do it, then you won't get automatic notifications about updates, so if you 
can, it's better if you do it.  Feel free to just paste your previous email as 
the issue text. :)

Cheers,

ellie

On Thu, Jul 16, 2020, at 11:23 AM, Matthew Schumacher wrote:
> I'm trying to use external notifications on 3.2.2 but it doesn't work.   
> If I define
> 
> event_notifier: external
> notify_external: /usr/cyrus/bin/cyrus_notify
> event_groups: access
> event_extra_params: clientAddress timestamp service
> 
> Then the imapd thread dies with this assertion:
> 
> Jul 15 18:01:54 snow imaps[28108]: Cannot notify event Login: missing 
> parameters: serverAddress clientAddress
> Jul 15 18:01:54 snow imaps[28108]: Fatal error: Internal error: 
> assertion failed: imap/mboxevent.c: 743: filled_params(type, event)
> 
> If I remove event_groups and event_extra_params then notify never calls 
> my external script and notify breaks.
> 
> If I define "event_groups: access" and omit event_extra_params then I'm 
> back to:
> 
> Jul 15 18:14:26 snow imaps[28934]: Cannot notify event Login: missing 
> parameters: serverAddress
> Jul 15 18:14:26 snow imaps[28934]: Fatal error: Internal error: 
> assertion failed: imap/mboxevent.c: 743: filled_params(type, event)
> 
> Anyone know where this serverAddress is coming from and how to fix it?
> 
> schu
> 
> 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

assertion failed: imap/mboxevent.c: 743: filled_params(type, event)

2020-07-15 Thread Matthew Schumacher
I'm trying to use external notifications on 3.2.2 but it doesn't work.   
If I define


event_notifier: external
notify_external: /usr/cyrus/bin/cyrus_notify
event_groups: access
event_extra_params: clientAddress timestamp service

Then the imapd thread dies with this assertion:

Jul 15 18:01:54 snow imaps[28108]: Cannot notify event Login: missing 
parameters: serverAddress clientAddress
Jul 15 18:01:54 snow imaps[28108]: Fatal error: Internal error: 
assertion failed: imap/mboxevent.c: 743: filled_params(type, event)


If I remove event_groups and event_extra_params then notify never calls 
my external script and notify breaks.


If I define "event_groups: access" and omit event_extra_params then I'm 
back to:


Jul 15 18:14:26 snow imaps[28934]: Cannot notify event Login: missing 
parameters: serverAddress
Jul 15 18:14:26 snow imaps[28934]: Fatal error: Internal error: 
assertion failed: imap/mboxevent.c: 743: filled_params(type, event)


Anyone know where this serverAddress is coming from and how to fix it?

schu

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: www.cyrusimap.org is down

2020-07-14 Thread ellie timoney
CMU report that it's been fixed, and it does indeed seem to be working again 
for me now.  The usual caveats about DNS propagation probably apply.

I don't know why the entry disappeared, and if the cause was something 
automated I suppose it might disappear again... I guess we'll keep an eye on it 
and see what unfolds.

Cheers,

ellie

On Wed, Jul 15, 2020, at 10:39 AM, ellie timoney wrote:
> It's hosted on GitHub Pages.  There's supposed to be a DNS CNAME entry at 
> "www.cyrusimap.org" pointing to "cyrusimap.github.io", but it seems to have 
> disappeared. /sigh
> 
> Without that DNS entry, even going directly to "cyrusimap.github.io" isn't 
> working, because GitHub Pages wants to redirect to our custom domain... which 
> is currently broken.
> 
> Thanks for the alert, we'll try and get hold of someone at CMU to get this 
> fixed (or maybe they're watching the list and see this thread).
> 
> Cheers,
> 
> ellie
> 
> On Wed, Jul 15, 2020, at 12:52 AM, Sebastian Hagedorn wrote:
>> Hi,
>> 
>> currently the hostname www.cyrusimap.org cannot be resolved.
>> cyrusimap.org still works, but it appears to point to Github, from where
>> there is a redirect to www.cyrusimap.org
>> -- 
>>.:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
>> .:.Regionales Rechenzentrum (RRZK).:.
>>   .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.
>> 
>> 
>> 
>> 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
>> 
>> *Attachments:*
>>  * smime.p7s
> 
> 
> 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: www.cyrusimap.org is down

2020-07-14 Thread ellie timoney
It's hosted on GitHub Pages.  There's supposed to be a DNS CNAME entry at 
"www.cyrusimap.org" pointing to "cyrusimap.github.io", but it seems to have 
disappeared. /sigh

Without that DNS entry, even going directly to "cyrusimap.github.io" isn't 
working, because GitHub Pages wants to redirect to our custom domain... which 
is currently broken.

Thanks for the alert, we'll try and get hold of someone at CMU to get this 
fixed (or maybe they're watching the list and see this thread).

Cheers,

ellie

On Wed, Jul 15, 2020, at 12:52 AM, Sebastian Hagedorn wrote:
> Hi,
> 
> currently the hostname www.cyrusimap.org cannot be resolved.
> cyrusimap.org still works, but it appears to point to Github, from where
> there is a redirect to www.cyrusimap.org
> -- 
>.:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
> .:.Regionales Rechenzentrum (RRZK).:.
>   .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.
> 
> 
> 
> 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
> 
> *Attachments:*
>  * smime.p7s

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

www.cyrusimap.org is down

2020-07-14 Thread Sebastian Hagedorn
Hi,

currently the hostname www.cyrusimap.org cannot be resolved.
cyrusimap.org still works, but it appears to point to Github, from where
there is a redirect to www.cyrusimap.org
-- 
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.



smime.p7s
Description: S/MIME Cryptographic Signature

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

IOERROR: writing cache file : Bad address

2020-07-10 Thread Ismaël Tanguy

Hello,

we have separate our Postfix Server from our old Cyrus Server and so 
pass LMTP on TCP :


  #lmtpunix cmd="/usr/cyrus/bin/lmtpd -C /etc/imapd.conf" 
listen="/var/lib/imap/socket/lmtp" prefork=10 maxchild=240

 lmtp  cmd="lmtpd" listen="lmtp" prefork=1

We are not facing problems with seen State reseting all Inbox mails to 
Unread.


We have many lines like that in /var/log/messages :

 skiplist: checkpointed /var/lib/imap/user/s/silaot.seen (43 records, 
3160 bytes) in 0 seconds


and this ones :

IOERROR: writing cache file for user.silaot.Trash: Bad address

We have observed that all mails came back to unread after expunging a mail.

We've tried with no success to reconstruct mailbox folder after delete 
cyrus files (cyrus.cache, cyrus.index, ..)


Has anyone some advices to help us?

Our cyrus version is :

> version
name   : Cyrus IMAPD
version    : v2.3.11 2007/12/10 14:48:14
vendor : Project Cyrus
support-url: http://cyrusimap.web.cmu.edu
os : Linux
os-version : 2.6.18-194.11.4.el5
environment: Built w/Cyrus SASL 2.1.22
 Running w/Cyrus SASL 2.1.22
 Built w/Sleepycat Software: Berkeley DB 4.3.29: (January  
7, 2007)
 Running w/Sleepycat Software: Berkeley DB 4.3.29: 
(January  7, 2007)

 Built w/OpenSSL 0.9.8b 04 May 2006
 Running w/OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
 CMU Sieve 2.3
 TCP Wrappers
 mmap = shared
 lock = fcntl
 nonblock = fcntl
 idle = idled

Thanks,

Ismaël TANGUY

--


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: lmtp Trying to unput wrong character

2020-07-09 Thread Sebastian Hagedorn
Am 09.07.20 um 11:47 Uhr schrieb Stephan:
> Hello,
> 
> I am having trouble with a mail stuck in the queue, it can't get
> delivered because lmtpd has some problem, it says:
> 
> lmtp: FATAL: Trying to unput wrong character
> 
> I'm not sure what to do about this. I found the error message in
> prot_ungetc() which is sitting in lib/prot.c but don't know what this
> actually does. If I interpret this correctly, it gets called in
> pushmsg() in lmtpengine.c and the comment says that there is a carriage
> return that should be put back, which apparently doesn't work.
> 
> Any hints ?

If you check the list archives you will find that this happens
occasionally. IMO your best bet is to delete the mail from the queue.

Cheers,
Sebastian
<>

smime.p7s
Description: S/MIME Cryptographic Signature

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

lmtp Trying to unput wrong character

2020-07-09 Thread Stephan

Hello,

I am having trouble with a mail stuck in the queue, it can't get
delivered because lmtpd has some problem, it says:

lmtp: FATAL: Trying to unput wrong character

I'm not sure what to do about this. I found the error message in
prot_ungetc() which is sitting in lib/prot.c but don't know what this
actually does. If I interpret this correctly, it gets called in
pushmsg() in lmtpengine.c and the comment says that there is a carriage
return that should be put back, which apparently doesn't work.

Any hints ?

Thanks,
Stephan

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: backupd and sync_client IOERROR

2020-07-08 Thread Marco

Hi Ellie,

On 08/07/2020 06:23, ellie timoney has written:

Oh that's very curious.  It suggests that something about the mailbox contents 
is causing it to fail under -A but not under -u.  I was hoping it would just be 
the dot in the name, cause something like that should be fairly easy to 
reproduce and debug.  But it's sounding like it'll be more difficult!

It might be worth running "mbexamine" over some of these mailboxes -- both some 
that work correctly, and the ones that are misbehaving -- and see if any interesting 
patterns emerge?  The man page is 
here:https://www.cyrusimap.org/imap/reference/manpages/systemcommands/mbexamine.html


The mailbox which fails is quite large (over 32000 msgs and over 1GB). 
mbexamine produces a very large output for all mails. I can see that it 
doesn't fail: it terminates without errors and with 0 exit status.


Even switches -c or -q terminates without errors. All quotas checks are 
correct.



Does it fail in the same way replicating to a normal replica, instead of a 
backup server?

At this moment I don't have a normal replica server yet. I'll try...

Thanks. I think this will be important for figuring out whether the problem is 
replication generally, or backupd specific.


I understand. As soon as I can, I'll setup a normal replica.

Thank you

Cheers
Marco

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: backupd and sync_client IOERROR

2020-07-07 Thread ellie timoney
Hi Marco,

On Tue, Jul 7, 2020, at 12:17 AM, Marco wrote:
> I copied the content of the failing mailbox into another mailbox with a 
> name without dots:

Oh that's very curious.  It suggests that something about the mailbox contents 
is causing it to fail under -A but not under -u.  I was hoping it would just be 
the dot in the name, cause something like that should be fairly easy to 
reproduce and debug.  But it's sounding like it'll be more difficult!

It might be worth running "mbexamine" over some of these mailboxes -- both some 
that work correctly, and the ones that are misbehaving -- and see if any 
interesting patterns emerge?  The man page is here: 
https://www.cyrusimap.org/imap/reference/manpages/systemcommands/mbexamine.html

> > Does it fail in the same way replicating to a normal replica, instead of a 
> > backup server?
> 
> At this moment I don't have a normal replica server yet. I'll try...

Thanks. I think this will be important for figuring out whether the problem is 
replication generally, or backupd specific.

Cheers,

ellie

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: backupd and sync_client IOERROR

2020-07-06 Thread Marco

Hello,

On 03/07/2020 05:08, ellie timoney has written:

I notice that the users that worked correctly with "sync_client -A" don't have 
dots in their address localparts.  If you create another user that also has a dot, does 
it fail under -A in the same way?


I copied the content of the failing mailbox into another mailbox with a 
name without dots:


springst...@example.com

and the result is the same:

# sync_client -A -n bck -z -v

USER springst...@example.com
MAILBOX example.com!user.springsteen
Error from do_user(springst...@example.com): bailing out!


2020-07-06T15:31:51.538935+02:00 tst-msg03-bck backupd[2234574]: login: 
tst-msg03.example.com [10.102.102.102] cyr_backup LOGIN User logged in
2020-07-06T15:31:51.576283+02:00 tst-msg03-bck backupd[2234574]: 
creating sql_db /var/spool/cyr_backup/s/springsteen@example.com_t8Yjcb.index
2020-07-06T15:36:57.552290+02:00 tst-msg03 cyrus/sync_client[17488]: 
MESSAGE received NO response: IMAP_PROTOCOL_ERROR Protocol error
2020-07-06T15:36:57.753294+02:00 tst-msg03 cyrus/sync_client[17488]: 
do_folders(): update failed: example.com!user.springsteen 'Bad protocol'
2020-07-06T15:36:57.758121+02:00 tst-msg03 cyrus/sync_client[17488]: 
IOERROR: do_user_main: Bad protocol for springst...@example.com to [no 
channel] (tst-msg03-bck.example.com)
2020-07-06T15:36:57.765868+02:00 tst-msg03 cyrus/sync_client[17488]: 
Error in do_user(springst...@example.com): bailing out!


Instead, if I do:

# sync_client -n bck -z -v -u springst...@uc.csi.it

USER springst...@example.com
MAILBOX example.com!user.springsteen
MAILBOX example.com!user.springsteen.#splitconversations
MAILBOX example.com!user.springsteen.ALLARMI
MAILBOX example.com!user.springsteen.ALLARMI.John
[...]

the program replicates as well and without any errors.


Does it fail in the same way replicating to a normal replica, instead of a 
backup server?


At this moment I don't have a normal replica server yet. I'll try...

Thank you very much

Cheers
Marco

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: UID THREAD REFS US-ASCII ALL slow / stalls forever on one folder.

2020-07-04 Thread Jesper Schmitz Mouridsen via Info-cyrus

Hi

Thanks for the debugging hints!

client_timeout sat to 30M and the UID THREAD REFS US-ASCII ALL actually 
completes.
But first after ~10 mins on a CPU: Intel(R) Celeron(R) CPU  N2930  @ 1.83GHz 
(1833.38-MHz K8-class CPU)
and after 69.484 secs on a CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (The 
same jail, moved to faster hardware)
63994 messages in around 40k threads.
What could cause the much spent time building the thread data? version is still 
3.2.2, but 3.0.13 shows the same
behavior. The thread output of the slow folder is here FWIW 
https://pastebin.com/PpiJ8X2E

Regards
/Jesper


On 03.07.2020 01.52, ellie timoney wrote:

Hi,

I think I would do something like:

0) set client_timeout to a big value (see below)
1) let the imapd start normally
2) connect to it with a minimal imap client (like imtest or telnet)
3) check logs to see which imapd process id your client is connected to (if 
there's more than one)
4) use the "gdb /path/to/binary pid" invocation to attach gdb to the running 
imap process
5) repeat #4 in a few different ways if it's unable to find symbols
6) set a breakpoint on the cmd_thread function (since that's what handles the 
THREAD command) and then continue
7) back in your imap client, send the UID THREAD REFS US-ASCII ALL" command and 
step through to see what happens

Note that these are not exhaustive steps, more of a "get started, and then react 
accordingly, depending on what you see"

I would also try variations of that THREAD command -- if you add/remove 
options, does it start working?  Can you isolate the problem to a specific 
combination of options?  Does it only happen for some mailboxes?

You probably want to set client_timeout to a big value.  The default is 10 seconds, so the server will 
probably throw your client off while you're reading output from gdb, and then you'll wind up debugging the 
"disconnect an unresponsive client code" instead.  I usually set this to be 30 minutes or so for 
debugging.  For 3.2 and newer, you can spell this as "30m".  For older versions, the value is in 
seconds, so you want "1800".

Permissions may be awkward.  You will need to be the cyrus user (or root) to 
connect gdb to the running imapd, but you will also need permission to read the 
source that it was built from, which is probably not owned by the cyrus user.  
In my case it's under my user account's home directory, so I add the cyrus user 
to my user account's group, and make sure the path to the source directory is 
g+rx (because I don't like running gdb as root).

Cheers,

ellie

On Fri, Jul 3, 2020, at 5:23 AM, Jesper Schmitz Mouridsen via Info-cyrus wrote:

Hi.

I recently upgraded Cyrus to 3.2.2 from 3.0.13.

Now threading "UID THREAD REFS US-ASCII ALL" on one specific folder with
  >50K mails,

makes imapd process use 100 CPU% without any progress. truss[1] or dtrace

shows no output. The process seems totally stuck.

I installed in a FreeBSD 12.1 jail. Any hints beside the online docs of
how to use gdb to

see what  is going one. I could not make imapd run under gdb even with
the -D option

and debug_command setting or reading
https://www.cyrusimap.org/imap/developer/developer-testing.html?highlight=debug

It is fast enough on other folders also with ~50k mails < 3 secs.

Any hints, highly appreciated :-)

[1] https://www.freebsd.org/cgi/man.cgi?truss

Regards

Jesper


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

sync_client: Fallback on master

2020-07-03 Thread Ismaël Tanguy

Hello,

During the upgrade of a master backend server (~15k mailboxes) from 
Centos7 to Centos8, we fail over on a replica.
Before the failover, we run a last time sync_client -r, to flush 
entirely sync log.


Everything went fine, except that the replica was not allowed to 
mupdatepush (ctl_mboxlist -m) and all the mailboxes dissapear in the 
murder mailboxes.db
That has been fixed as soon as we saw this error. Mailboxes.db has been 
repopulated.


Then, when the backend cames up, we fall back on it and run sync_client 
from the replica to the master.
I think now that was not the good way, because new mails start to arrive 
on the master while replication occured from the replica.


Replica's sync log size is as big as yesterday (the failover day) = 23M 
and around 1 million lines (mainly MAILBOX and APPEND commands).


replica /var/log/maillog reports various errors :


Jul  3 09:37:25 store-1-replicat-etudiant cyrus/sync_client[4000]: 
UNMAILBOX received NO response: Unknown error
Jul  3 09:37:25 store-1-replicat-etudiant cyrus/sync_client[4000]: 
sync_folder_delete(): failed: user.e21901967.Bibli-Culture 'The remote 
Server(s) denied the operation'
Jul  3 09:37:25 store-1-replicat-etudiant cyrus/sync_client[4000]: 
IOERROR: do_user_main: The remote Server(s) denied the operation for 
e21901967 to [no channel] (store-x)
Jul  3 09:37:25 store-1-replicat-etudiant cyrus/sync_client[4000]: Error 
in do_sync(): bailing out! The remote Server(s) denied the operation


Jul  3 09:42:45 store-1-replicat-etudiant cyrus/sync_client[4045]: 
SYNCNOTICE: highestmodseq higher on replica user.e21603781, updating 
8692 => 8694
Jul  3 09:42:45 store-1-replicat-etudiant cyrus/sync_client[4045]: 
SYNCNOTICE: record mismatch with replica: user.e21603781 more recent on 
replica



Jul  3 09:42:45 store-1-replicat-etudiant cyrus/sync_client[4045]: 
SYNCNOTICE: master uid:4340 modseq:8692 last_updated:1593736158 
internaldate:1593736091 flags:(\Seen) cid:
Jul  3 09:42:45 store-1-replicat-etudiant cyrus/sync_client[4045]: 
SYNCNOTICE: replica uid:4340 modseq:8693 last_updated:1593762055 
internaldate:1593736091 flags:(\Seen) cid:


Jul  3 09:43:03 store-1-replicat-etudiant cyrus/sync_client[4045]: 
MAILBOX received NO response: IMAP_SYNC_CHECKSUM Checksum Failure
Jul  3 09:43:03 store-1-replicat-etudiant cyrus/sync_client[4045]: CRC 
failure on sync for user.e21913149, trying full update



Therefore, there are 24Go of additionals mails on the master IMAP spool, 
compared to the replica.


What's is the best way to empty the replica sync_log?
I would like to be sure that every mail arrived on the replica during 
the failover has been copied on the master.
I could use external tool like imapsync, maybe Cyrus has one that 
permits that.


Thank you,

--
Ismaël Tanguy


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: backupd and sync_client IOERROR

2020-07-02 Thread ellie timoney
On Wed, Jul 1, 2020, at 11:57 PM, Marco wrote:
> Uhm...

Wow, that's wierd.

I notice that the users that worked correctly with "sync_client -A" don't have 
dots in their address localparts.  If you create another user that also has a 
dot, does it fail under -A in the same way?

Does it fail in the same way replicating to a normal replica, instead of a 
backup server?

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: UID THREAD REFS US-ASCII ALL slow / stalls forever on one folder.

2020-07-02 Thread ellie timoney
Hi,

I think I would do something like:

0) set client_timeout to a big value (see below)
1) let the imapd start normally
2) connect to it with a minimal imap client (like imtest or telnet)
3) check logs to see which imapd process id your client is connected to (if 
there's more than one)
4) use the "gdb /path/to/binary pid" invocation to attach gdb to the running 
imap process
5) repeat #4 in a few different ways if it's unable to find symbols
6) set a breakpoint on the cmd_thread function (since that's what handles the 
THREAD command) and then continue
7) back in your imap client, send the UID THREAD REFS US-ASCII ALL" command and 
step through to see what happens

Note that these are not exhaustive steps, more of a "get started, and then 
react accordingly, depending on what you see"

I would also try variations of that THREAD command -- if you add/remove 
options, does it start working?  Can you isolate the problem to a specific 
combination of options?  Does it only happen for some mailboxes?

You probably want to set client_timeout to a big value.  The default is 10 
seconds, so the server will probably throw your client off while you're reading 
output from gdb, and then you'll wind up debugging the "disconnect an 
unresponsive client code" instead.  I usually set this to be 30 minutes or so 
for debugging.  For 3.2 and newer, you can spell this as "30m".  For older 
versions, the value is in seconds, so you want "1800".

Permissions may be awkward.  You will need to be the cyrus user (or root) to 
connect gdb to the running imapd, but you will also need permission to read the 
source that it was built from, which is probably not owned by the cyrus user.  
In my case it's under my user account's home directory, so I add the cyrus user 
to my user account's group, and make sure the path to the source directory is 
g+rx (because I don't like running gdb as root).

Cheers,

ellie

On Fri, Jul 3, 2020, at 5:23 AM, Jesper Schmitz Mouridsen via Info-cyrus wrote:
> Hi.
> 
> I recently upgraded Cyrus to 3.2.2 from 3.0.13.
> 
> Now threading "UID THREAD REFS US-ASCII ALL" on one specific folder with 
>  >50K mails,
> 
> makes imapd process use 100 CPU% without any progress. truss[1] or dtrace
> 
> shows no output. The process seems totally stuck.
> 
> I installed in a FreeBSD 12.1 jail. Any hints beside the online docs of 
> how to use gdb to
> 
> see what  is going one. I could not make imapd run under gdb even with 
> the -D option
> 
> and debug_command setting or reading 
> https://www.cyrusimap.org/imap/developer/developer-testing.html?highlight=debug
> 
> It is fast enough on other folders also with ~50k mails < 3 secs.
> 
> Any hints, highly appreciated :-)
> 
> [1] https://www.freebsd.org/cgi/man.cgi?truss
> 
> Regards
> 
> Jesper
> 
> 
> 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

UID THREAD REFS US-ASCII ALL slow / stalls forever on one folder.

2020-07-02 Thread Jesper Schmitz Mouridsen via Info-cyrus

Hi.

I recently upgraded Cyrus to 3.2.2 from 3.0.13.

Now threading "UID THREAD REFS US-ASCII ALL" on one specific folder with 
>50K mails,


makes imapd process use 100 CPU% without any progress. truss[1] or dtrace

shows no output. The process seems totally stuck.

I installed in a FreeBSD 12.1 jail. Any hints beside the online docs of 
how to use gdb to


see what  is going one. I could not make imapd run under gdb even with 
the -D option


and debug_command setting or reading 
https://www.cyrusimap.org/imap/developer/developer-testing.html?highlight=debug


It is fast enough on other folders also with ~50k mails < 3 secs.

Any hints, highly appreciated :-)

[1] https://www.freebsd.org/cgi/man.cgi?truss

Regards

Jesper


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: backupd and sync_client IOERROR

2020-07-01 Thread Marco

On 19/06/2020 03:01, ellie timoney has written:

Rolling mode only makes incremental updates, so if you're starting from a 
server that already has existing data, you should do the first manual initial 
backups before enabling the rolling mode.


Hello,

 about this error, I retried more times. It seems really reproducible 
all times.


I don't enable rolling mode. At the initial sync if I do:


$ sync_client -A -n bck -z -v
USER d...@example.com
MAILBOX example.com!user.dan
MAILBOX example.com!user.dan.Sent
QUOTA example.com!user.dan
QUOTA example.com!user.dan.Sent
USER d...@example.com
MAILBOX example.com!user.din
MAILBOX example.com!user.din.Spam
MAILBOX example.com!user.din.Trash
QUOTA example.com!user.din
USER d...@example.com
MAILBOX example.com!user.don
QUOTA example.com!user.don
USER utente.archivi...@example.com
MAILBOX example.com!user.utente^archivista
Error from do_user(utente.archivi...@example.com): bailing out!

and the error log is:

2020-07-01T15:42:14.161553+02:00 tst-msg03 cyrus/sync_client[4861]: 
MESSAGE received NO response: IMAP_PROTOCOL_ERROR Protocol error
2020-07-01T15:42:14.296022+02:00 tst-msg03 cyrus/sync_client[4861]: 
do_folders(): update failed: example.com!user.utente^archivista 'Bad 
protocol'
2020-07-01T15:42:14.296220+02:00 tst-msg03 cyrus/sync_client[4861]: 
IOERROR: do_user_main: Bad protocol for utente.archivi...@example.com to 
[no channel] (tst-msg03-bck.example.com)
2020-07-01T15:42:14.296290+02:00 tst-msg03 cyrus/sync_client[4861]: 
Error in do_user(utente.archivi...@example.com): bailing out!



If I repeat the "sync_client -A -n bck -z -v" the error still occurs 
every time.



If I do:

$ sync_client -n bck -z -v -u utente.archivi...@example.com
USER utente.archivi...@example.com
MAILBOX example.com!user.utente^archivista
MAILBOX example.com!user.utente^archivista.Cest
MAILBOX example.com!user.utente^archivista.Posta archiviata
MAILBOX example.com!user.utente^archivista.Posta archiviata.Archivio
[...]

it works without errors.

Uhm...

Thank you again
Cheers
Marco

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 IMAP 3.2.2 released

2020-07-01 Thread Sergey
On Wednesday 01 July 2020, ellie timoney wrote:

> Yes, please.  If you don't, I will, but then you won't get
> automatic notifications of updates. 

https://github.com/cyrusimap/cyrus-imapd/issues/3090

> Are they appearing in a log somewhere, or is this output
> from an analysis tool you're running?

Second. This is ALT Linux specific part of rpm-build package:
http://git.altlinux.org/gears/r/rpm-build.git

This is a heavily modified part of the original rpm 4.0.4, but
verify-elf is a sh script and it can be used separately.
3 sh scripts from rpm-build is needed: verify-elf, ldd and functions.

-- 
Regards,
Sergey

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 IMAP 3.2.2 (Re: cyrus imap 2.5.5 build in Linux: problem with pcre)

2020-06-30 Thread ellie timoney
Hi Sergey,

Quoting out of order, because it's a bit easier to explain that way:

> And there is another problem that is not obvious. -lpcreposix is needed
> in perl/imap/Makefile.PL and in perl/sieve/managesieve/Makefile.PL I seems.

This bit sounds a lot like https://github.com/cyrusimap/cyrus-imapd/issues/2629

There's an experimental patch from me in that issue, which seems to have worked 
around the issue for Fedora package maintainers.  But I can't reproduce the 
problem on Debian, so I can't confirm myself that it fixes things correctly.  
More feedback would be great.

> I returned to this question. 3.2.2 still does not find 
> /usr/include/pcre/pcre.h
> 
> $ pkg-config --cflags libpcre
> -I/usr/include/pcre
> 
> Build is successful with CFLAGS="-I/usr/include/pcre" ./configure ...

Cyrus's configure script does not currently use pkg-config to locate libpcre.  
Instead it uses bespoke detection built from AC_CHECK_HEADER, which I guess 
doesn't know to look in /usr/include/pcre.  There might be a generic way for a 
sysadmin to add this path to the paths that AC_CHECK_HEADER checks, but I don't 
know it offhand.  Otherwise, specifying it in CFLAGS like you have done seems 
like the right thing to do.

The issue linked above also touches on the possibility of changing the libpcre 
detection to use pkg-config instead of bespoke detection, in which case this 
wouldn't be necessary, but it has its own complications.

> Except perl/imap: CFLAGS is not used by Makefile.PL.

Aaand this sounds like its own whole separate bug!  I'm not sure offhand what 
the right way to pass this down will be, but it clearly needs doing.  New issue 
here: https://github.com/cyrusimap/cyrus-imapd/issues/3087

Cheers,

ellie

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 IMAP 3.2.2 released

2020-06-30 Thread ellie timoney
On Tue, Jun 30, 2020, at 10:10 PM, Sergey wrote:
> On Monday 22 June 2020, ellie timoney wrote:
> 
> > The Cyrus team is proud to announce the immediate availability
> > of a new version of Cyrus IMAP: 3.2.2 
>  
> There was a problem with AC_SYS_LARGEFILE. Most likely it was
> there before, but I was no need to use AC_SYS_LARGEFILE.
> Programs for x32 cannot work with large partitions without
> building with _FILE_OFFSET_BITS 64. AC_SYS_LARGEFILE in configure.ac
> usually helps. This mostly helps when building Cyrus IMAP, but not
> for all components.
> 
> without AC_SYS_LARGEFILE:
> 
> $ cat cyrus-imapd-3.2.2-alt0-SS.log | grep "uses non-LFS functions"| wc -l
> 42
> 
> with AC_SYS_LARGEFILE:
> 
> $ cat cyrus-imapd-3.2.2-alt0-SS.log | grep "uses non-LFS functions"| wc -l
> 7
> 
> verify-elf: WARNING: ./usr/lib/libcyrus_imap.so.0.0.0: uses non-LFS 
> functions: statvfs
> verify-elf: WARNING: ./usr/lib/cyrus/restore: uses non-LFS functions: 
> lseek open
> verify-elf: WARNING: ./usr/lib/cyrus/httpd: uses non-LFS functions: 
> __fxstat __xstat
> verify-elf: WARNING: ./usr/lib/cyrus/cyr_backup: uses non-LFS 
> functions: lseek open
> verify-elf: WARNING: ./usr/lib/cyrus/ctl_backups: uses non-LFS 
> functions: lseek open
> verify-elf: WARNING: ./usr/lib/cyrus/backupd: uses non-LFS functions: 
> lseek open
> verify-elf: WARNING: ./usr/lib/libcyrus.so.0.0.0: uses non-LFS 
> functions: fopen
> 
> Put it in a bugtracker on github?

Yes, please.  If you don't, I will, but then you won't get automatic 
notifications of updates.

Where do you see these warnings?  Are they appearing in a log somewhere, or is 
this output from an analysis tool you're running?  I tried searching for 
"verify-elf" but most of the results seem to be about signing binaries, which I 
don't think is related.

Cheers,

ellie

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 IMAP 3.2.2 released

2020-06-30 Thread Sergey
On Monday 22 June 2020, ellie timoney wrote:

> The Cyrus team is proud to announce the immediate availability
> of a new version of Cyrus IMAP: 3.2.2 
 
There was a problem with AC_SYS_LARGEFILE. Most likely it was
there before, but I was no need to use AC_SYS_LARGEFILE.
Programs for x32 cannot work with large partitions without
building with _FILE_OFFSET_BITS 64. AC_SYS_LARGEFILE in configure.ac
usually helps. This mostly helps when building Cyrus IMAP, but not
for all components.

without AC_SYS_LARGEFILE:

$ cat cyrus-imapd-3.2.2-alt0-SS.log | grep "uses non-LFS functions"| wc -l
42

with AC_SYS_LARGEFILE:

$ cat cyrus-imapd-3.2.2-alt0-SS.log | grep "uses non-LFS functions"| wc -l
7

verify-elf: WARNING: ./usr/lib/libcyrus_imap.so.0.0.0: uses non-LFS functions: 
statvfs
verify-elf: WARNING: ./usr/lib/cyrus/restore: uses non-LFS functions: lseek open
verify-elf: WARNING: ./usr/lib/cyrus/httpd: uses non-LFS functions: __fxstat 
__xstat
verify-elf: WARNING: ./usr/lib/cyrus/cyr_backup: uses non-LFS functions: lseek 
open
verify-elf: WARNING: ./usr/lib/cyrus/ctl_backups: uses non-LFS functions: lseek 
open
verify-elf: WARNING: ./usr/lib/cyrus/backupd: uses non-LFS functions: lseek open
verify-elf: WARNING: ./usr/lib/libcyrus.so.0.0.0: uses non-LFS functions: fopen

Put it in a bugtracker on github?

-- 
Regards, Sergey

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 IMAP 3.2.2 released

2020-06-30 Thread Sergey
On Tuesday 30 June 2020, ellie timoney wrote:

> > > The Cyrus team is proud to announce the immediate availability of
> > > a new version of Cyrus IMAP: 3.2.2 
> > 
> > Tests have issued a new warning compared to 3.0.x (building in Linux):
 
> > verify-elf: WARNING: ./usr/lib64/libcyrus.so.0.0.0: found executable 
> > STACK entry:
> >   GNU_STACK  0x00 0x   0x 0x00 
> > 0x00 RWE 0x10
> > 
> > Is executable STACK really needed?

> I have no idea what this refers to or where it comes from.  Any
> further information you could provide would be greatly appreciated! 
 
I didn't go investigate detail yet and remove it from binary by
"execstack -c libcyrus.so.0.0.0". Everything seems to be working.
The problem is probably wrong flags for gcc. I can find out it
later maybe.

-- 
Regards, Sergey

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 IMAP 3.2.2 released

2020-06-29 Thread ellie timoney
I have no idea what this refers to or where it comes from.  Any further 
information you could provide would be greatly appreciated!

Thanks

On Tue, Jun 30, 2020, at 5:14 AM, Sergey wrote:
> On Monday 22 June 2020, ellie timoney wrote:
> 
> > The Cyrus team is proud to announce the immediate availability of a new 
> > version of Cyrus IMAP: 3.2.2
> 
> Tests have issued a new warning compared to 3.0.x (building in Linux):
> 
> verify-elf: WARNING: ./usr/lib64/libcyrus.so.0.0.0: found executable 
> STACK entry:
>   GNU_STACK  0x00 0x   0x 0x00 
> 0x00 RWE 0x10
> 
> Is executable STACK really needed?
> 
> -- 
> Regards,
> Sergey
> 
> 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 IMAP 3.2.2 (Re: cyrus imap 2.5.5 build in Linux: problem with pcre)

2020-06-29 Thread Sergey
On Friday 16 October 2015, Sergey wrote:

> I wanted to build Cyrus-IMAP with libpcre but it did not success.
> System libpcre-devel package install headers to /usr/include/pcre.
 
I returned to this question. 3.2.2 still does not find /usr/include/pcre/pcre.h

$ pkg-config --cflags libpcre
-I/usr/include/pcre

Build is successful with CFLAGS="-I/usr/include/pcre" ./configure ...
Except perl/imap: CFLAGS is not used by Makefile.PL.

And there is another problem that is not obvious. -lpcreposix is needed
in perl/imap/Makefile.PL and in perl/sieve/managesieve/Makefile.PL I seems.

-- 
Regards,
Sergey

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 IMAP 3.2.2 released

2020-06-29 Thread Sergey
On Monday 22 June 2020, ellie timoney wrote:

> The Cyrus team is proud to announce the immediate availability of a new 
> version of Cyrus IMAP: 3.2.2

Tests have issued a new warning compared to 3.0.x (building in Linux):

verify-elf: WARNING: ./usr/lib64/libcyrus.so.0.0.0: found executable STACK 
entry:
  GNU_STACK  0x00 0x   0x 0x00 0x00 
RWE 0x10

Is executable STACK really needed?

-- 
Regards,
Sergey

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-imap building: sse extension

2020-06-29 Thread Sergey
On Monday 29 June 2020, ellie timoney wrote:

> If you _want_ to use the hardware CRC32c algorithm

No. I want for Cyrus-IMAP works on systems without SSE4 when it built
on system with SSE4.

> > Can Cyrus-IMAP be running on systems without SSE4 at this case?
> 
> Yep, it'll work just fine.  The hardware CRC32c code will simply not
> be compiled, which, since it isn't used anyway, will have no effect.

Question about running precompiled binary.

> I don't know if it's even possible to implement the same algorithm
> with SSE2

--disable-hardware-CRC32c would be enough In my case. :-)

> Cyrus doesn't actually use it though

--disable-hardware-CRC32c may be required in the future I think.

-- 
Regards,
Sergey

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-imap buildin: sse extention

2020-06-29 Thread Anatoli
Ellie,

I also had the doubt about this feature, though I'd already seen a mention that 
the result of the hw implementation is incompatible (and before your last mail 
completely forgot about it).

Maybe it makes sense to remove its mention (and detection) from configure 
altogether, until it becomes useful? Just to not confuse those building it from 
sources.

Regards,
Anatoli

On 28/6/20 21:29, ellie timoney wrote:
> Hi Sergey,
> 
>> Hardware support:
>>SSE4.2: yes
> 
> This is detected for a hardware implementation of the CRC32c algorithm.  
> Cyrus doesn't actually use it though, because it's not compatible with the 
> existing CRC32 algorithm: i.e. for the same input, it produces a different 
> checksum, which would break everything on a system with pre-existing data.
> 
> If you _want_ to use the hardware CRC32c algorithm on a brand new deployment 
> (and know what you are doing), I believe at this stage you would need to 
> patch Cyrus to use it -- the code is there, but it is never called.
> 
>> Can Cyrus-IMAP be running on systems without SSE4 at this case?
> 
> Yep, it'll work just fine.  The hardware CRC32c code will simply not be 
> compiled, which, since it isn't used anyway, will have no effect.
> 
>> If no, can I set limit to SSE2 ?
> 
> There's currently no configurability for this at all.  I don't know if it's 
> even possible to implement the same algorithm with SSE2.  At the moment I 
> assume that, since it's looking for SSE42 specifically, then that means that 
> the hardware feature it needs is probably only available in SSE42.
> 
> Cheers,
> 
> ellie
> 
> 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: Newly arrived mail is marked as "read"

2020-06-28 Thread ellie timoney
Hi,

I'm not sure, but it kind of sounds like your mailbox's index version is too 
old?

Around 2.4, the storage of the mailbox owner's seen state was moved from the 
seen databases to the cyrus.index.  (i.e. nowadays the seen database only 
stores the seen state for _other_ users who have been given access to a mailbox 
-- which is often nobody).

If your mailbox indexes have not been updated yet, then they won't have a field 
to record the owner's seen state, which might result in the behaviour you're 
seeing?

To update your mailbox indexes to the latest version, you can use the "-V max" 
option with the reconstruct utility.  The upgrade documentation for 3.0 
(https://www.cyrusimap.org/3.0/imap/download/upgrade.html#reconstruct-databases-and-cache)
 mentions that this may take a long time, so maybe you already saw this but 
haven't gotten to that stage yet.

You should definitely take note of the warning on that page though, and 
consider upgrading to at least 3.0.11 rather than 3.0.7.

Hope this is helpful!

Cheers,

ellie

On Fri, Jun 26, 2020, at 10:43 PM, Cheng-Jih Chen wrote:
> I'm in the process of testing the upgrade from a CentOS 6 box running 
> 2.3.16 to a CentOS 8 box running 3.0.7.
> 
> The upgrade has been less troublesome than expected, but I'm seeing a 
> strange problem with newly received mail being marked as "read" even 
> though they have not been opened by the client.  This is the case for 
> both mail sent locally as well as mail received externally (Gmail).
> 
> Can anyone point me in the right direction on where to look to fix this?
> 
> Thanks.
> 
> 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-imap buildin: sse extention

2020-06-28 Thread ellie timoney
Hi Sergey,

> Hardware support:
>SSE4.2: yes

This is detected for a hardware implementation of the CRC32c algorithm.  Cyrus 
doesn't actually use it though, because it's not compatible with the existing 
CRC32 algorithm: i.e. for the same input, it produces a different checksum, 
which would break everything on a system with pre-existing data.

If you _want_ to use the hardware CRC32c algorithm on a brand new deployment 
(and know what you are doing), I believe at this stage you would need to patch 
Cyrus to use it -- the code is there, but it is never called.

> Can Cyrus-IMAP be running on systems without SSE4 at this case?

Yep, it'll work just fine.  The hardware CRC32c code will simply not be 
compiled, which, since it isn't used anyway, will have no effect.

> If no, can I set limit to SSE2 ?

There's currently no configurability for this at all.  I don't know if it's 
even possible to implement the same algorithm with SSE2.  At the moment I 
assume that, since it's looking for SSE42 specifically, then that means that 
the hardware feature it needs is probably only available in SSE42.

Cheers,

ellie

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-imap buildin: sse extention

2020-06-28 Thread Sergey
Hello.

I saw what Cyrus-IMAP use SSE:

Hardware support:
   SSE4.2: yes

Can Cyrus-IMAP be running on systems without SSE4 at this case?
If no, can I set limit to SSE2 ?

-- 
Regards,
Sergey

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: Upgrade to 3.2.2 and sieve

2020-06-26 Thread Stephan

Am 26.06.20 um 14:18 schrieb Jean Charles Delépine:

Stephan  écrivait (wrote) :


sieve_rebuild: [path to script] parse failed: script errors:#015#012line
5: header 'resent-from': not a valid header for an address test


I had the same error with a 2.5 to 3.0 migration.

Corrected with 'rfc3028_strict: 0' :

rfc3028_strict: 1
   If enabled, Sieve will be strict (per RFC 3028) with regards to which
   headers are allowed to be used in address and envelope tests.  This means 
that
   only those headers which are defined to contain addresses will be allowed in
   address tests and  only  "to"  and "from" will be allowed in envelope tests.
   When disabled, ANY grammatically correct header will be allowed.



Thank you ! rfc3028_strict was enabled here in 3.0.13 and the scripts
were accepted so I guess it must be one of the sieve bug fixes and
features mentioned in the 3.2 release notes.

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

Newly arrived mail is marked as "read"

2020-06-26 Thread Cheng-Jih Chen
I'm in the process of testing the upgrade from a CentOS 6 box running 
2.3.16 to a CentOS 8 box running 3.0.7.


The upgrade has been less troublesome than expected, but I'm seeing a 
strange problem with newly received mail being marked as "read" even 
though they have not been opened by the client.  This is the case for 
both mail sent locally as well as mail received externally (Gmail).


Can anyone point me in the right direction on where to look to fix this?

Thanks.

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: Upgrade to 3.2.2 and sieve

2020-06-26 Thread Jean Charles Delépine
Stephan  écrivait (wrote) :

> sieve_rebuild: [path to script] parse failed: script errors:#015#012line
> 5: header 'resent-from': not a valid header for an address test

I had the same error with a 2.5 to 3.0 migration.

Corrected with 'rfc3028_strict: 0' :

rfc3028_strict: 1
  If enabled, Sieve will be strict (per RFC 3028) with regards to which
  headers are allowed to be used in address and envelope tests.  This means that
  only those headers which are defined to contain addresses will be allowed in
  address tests and  only  "to"  and "from" will be allowed in envelope tests.
  When disabled, ANY grammatically correct header will be allowed.


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 3.2.2 and sieve

2020-06-26 Thread Stephan

Hi all,

I'm having trouble upgrading version 3.0.13 to 3.2.2. I am running two
systems, one of them is a replica. I upgraded on the replica first and
had issues with "intermediate" mailboxes being created which seems to be
expected if I read the release notes right.

Now I'm seeing errors on the replica when users update their script on
the master, they do this via horde's ingo module. On the replica I get
errors like

sieve_rebuild: [path to script] parse failed: script errors:#015#012line
5: header 'resent-from': not a valid header for an address test

These lines are generated by ingo when entering whitelist addresses and
3.2.2 doesn't like them

if address :all :comparator "i;ascii-casemap" :is ["From", "Sender",
"Resent-From"] "thisaddr...@ourdomain.xyz"  {

I'm not familiar with the sieve specification, is this a problem in
cyrus or should ingo handle things differently ?

Regards,
Stephan

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


MESSAGES UNSEEN RECENT and IMAP server closes connection.

2020-06-24 Thread javier.sanc...@coam.org


    Hi


    I'm dealing with a very old cyrus server (cyrus-imapd-2.2.12-27.2).


    Two days ago we had a problem that made "/var" full (/var/lib/imap/ 
is the cyrus imap directory).



    After cleaning the postfix queue and restarting cyrus daemon 
everything looked to be fine. But today we have found two user mailboxes 
that are unable to login using IMAP (pop3 looks to be working for these 
users).



    When the user tries to login IMAP the connection with the server is 
closed with the message "MESSAGES UNSEEN RECENT".



    This is the trace:

    [...]

-- user Wed Jun 24 16:15:48 2020

>1593008148>A001 OK User logged in
<1593008148>1593008148>* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ 
MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT 
CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES 
ANNOTATEMORE IDLE LOGINDISABLED X-NETSCAPE

A002 OK Completed
<15930081481593008148>* NAMESPACE (("INBOX." ".")) (("user." ".")) (("" "."))
A003 OK Completed
<15930081481593008148>* BYE LOGOUT received
A004 OK Completed

-- user Wed Jun 24 16:15:49 2020

>1593008149>A001 OK User logged in
<1593008149    We have tried to reconstruct the mailbox (-r -f), the reconstruct 
command finishes without errors but the problem persists.



    Any idea about what is happening and how to try to solve It.


    Kind regards.



--


Javier Sánchez.


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: backupd and sync_client IOERROR

2020-06-23 Thread ellie timoney
> I think there isn't a all-in-one command for this use case: a user 
> expunged some messages and deleted some folders somewhere. I want to 
> recover all expunged messages and all the deleted folders which are no 
> more present in the original IMAP server (because they were expired from 
> cyr_expire).
> 
> I have to set "-x" to avoid duplication of messages.
> With "-a -x" I recover all expunged messages and all deleted mailboxes. 
> But messages inside deleted mailboxes are not marked as expunged, so 
> these mailboxes are recovered empty in the IMAP server.

I would run restore twice in this case:  once without -x, specifying just the 
deleted mailboxes (you can use "cyr_backup list mailboxes ..." to get a list of 
the mailboxes in the user's backup).  And once with -x to get all the expunged 
stuff.  For the -x invocation only, I would probably also use the -M option to 
dump all the recovered stuff into a new folder, so they can easily tell it 
apart from any new mail that might have arrived coincidentally at the same time.

> Another idea is to recover all in another empty IMAP server, without 
> "-x" at all, and the user can look at the mailbox recovered there...

We kinda had a similar idea!  Putting it all into a folder with -M is much 
easier than setting up a separate server, but it'll lose the folder structure.  
Recovering to a separate server means the folder structure can be preserved.  I 
guess it depends on the specific recovery situation, and how hard it is to spin 
up a server in your environment.

Cheers,

ellie

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: reconstructing mailboxes from backup

2020-06-23 Thread ellie timoney
Hi Tim,

It's worth observing that, in Cyrus, the user "george"'s IMAP inbox is the 
"user/george" folder.  Which means, on disk, this user has another folder 
called "INBOX" within their inbox.  Depending on the Cyrus version, and maybe 
depending on your server's value of "altnamespace", this is invalid -- and it 
looks like your reconstruct has skipped it and everything under it, 
unsurprisingly.

It's also worth observing that there is both a "Deleted Messages" folder as a 
subdirectory of the bad "INBOX", and an "INBOX^Deleted Messages" directory that 
looks like maybe the result of unixhierarchysep being changed out from under 
the client, or something like that.  Looks like reconstruct has pulled the 
latter one in, cause it's not technically bad (but it will be very 
weird/confusing for the user to have a folder called "INBOX.Deleted Messages" 
in their client that is neither their inbox, nor their Deleted Messages folder, 
nor a directory hierarchy of the two).

So, it looks like reconstruct has found all the valid folders, and skipped the 
invalid INBOX and everything in it.  That seems coherent.

If you can start again from scratch: then I'd suggest renaming, on disk, that 
"INBOX" folder to something like "old inbox", and optionally renaming the 
"INBOX^Deleted Messages" folder to something like "old deleted messages", 
before you run the reconstruct.  Then the reconstruct will be able to find 
everything, and the user can then move the messages from the "old..." folders 
back into wherever they want them to be just over IMAP.

If you can't start again from scratch: then you should only rename the bad 
"INBOX" folder on disk, and then reconstruct. The previous reconstruct already 
found and repaired the "INBOX^Deleted Messages" folder, so renaming it on disk 
now might make a new mess.  But it can be renamed over IMAP, either by an admin 
session or the user.

Hope this helps :)

ellie

On Tue, Jun 23, 2020, at 11:42 PM, Tim Coote wrote:
> Hullo
> 
> I have a cyrus implementation on Fedora for a small (~10) users that’s 
> been migrated through many versions of the various components, 
> including several different of IMAP clients.
> 
> Realising the fragility of the setup, I thought I’d restore from a 
> backup. However, I’m finding that several of the mailboxes are not 
> being recovered. I feel that I am missing somethign obvious, but I 
> cannot spot it. 
> 
> The restoring version of cyrus-imap is: cyrus-imapd-3.0.13-2.fc32.x86_64,
> 
> The restored filesystem layout can be summarised thus:
> 
> `sudo find /var/spool/imap/g | grep cyrus.header`:
> 
> /var/spool/imap/g/user/george/Notes/cyrus.header
> /var/spool/imap/g/user/george/cyrus.header
> /var/spool/imap/g/user/george/Sent Messages/cyrus.header
> /var/spool/imap/g/user/george/Deleted Messages/cyrus.header
> /var/spool/imap/g/user/george/Sent/cyrus.header
> /var/spool/imap/g/user/george/Trash/cyrus.header
> /var/spool/imap/g/user/george/INBOX/Sent Messages/cyrus.header
> /var/spool/imap/g/user/george/INBOX/Deleted Messages/cyrus.header
> /var/spool/imap/g/user/george/INBOX/Drafts/cyrus.header
> /var/spool/imap/g/user/george/INBOX^Deleted Messages/cyrus.header
> /var/spool/imap/g/user/george/Drafts/cyrus.header
> 
> [so I would expect all of the subdirectories to be reconstructed as mailboxes]
> 
> however, using:
> `sudo -u cyrus reconstruct -r -f user/george`
> 
> I only get:
> user/george
> user/george/Deleted Messages
> user/george/Drafts
> user/george/INBOX.Deleted Messages
> user/george/Notes
> user/george/Sent
> user/george/Sent Messages
> user/george/Trash
> 
> ie no subdirectories below the top level, but excluding those 
> directories below INBOX.
> Should there be a file: 
> `/var/spool/imap/g/user/george/INBOX/cyrus.header`? 
> 
> Is there anything that I should be doing/how can I recover the other 
> mailboxes?
> 
> 
> 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: What you do with old account

2020-06-23 Thread Kenneth Marshall
On Tue, Jun 23, 2020 at 04:10:56PM +0200, Albert Shih wrote:
> 
> In fact I just notice, I've no idea...how to remove a mailbox in cyrus
> 
> With dovecot it's rm -rf ;-) Something I famillar with.

cyradm deletemailbox user/xxx

Regards,
Ken

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: What you do with old account

2020-06-23 Thread Albert Shih
Le 14/06/2020 à 21:51:49+0200, Sebastian Hagedorn a écrit

Hi,


Thanks for your answer.

> Am 09.06.20 um 16:32 schrieb Adam Tauno Williams:
> > On Tue, 2020-06-09 at 15:51 +0200, Albert Shih wrote:>
> >> After switching to cyrus imap, I think about how to do that.
> >> If I'm correct I cannot just copy the file somewhere else, because cyrus
> >> database would keep the information about the existance of the mailbox, so
> >> what will the «state of the art» way to remove a mail account and all the
> >> mail.
> >> And how what would be the «state of the art» way to put it back ?
> > I create a calendar event [task] to delete the mailbox and otherwise
> > just leave it. If the account itself is disabled it cannot be accessed.
> >
> > Putting things back-into a mailstore is too much of a pain with current
> > storage prices.
>
> We have about 90,000 accounts, and our current model is that we leave
> expired accounts around for a year. The user can't login, and we don't
> accept new mails, but it's still there in case the account is
> re-activated. After one year the mailbox hierarchy is put into a .tgz
> and written to tape. When that is done the account is permanently
> deleted. If the user should come back, they get a completely new

In fact I just notice, I've no idea...how to remove a mailbox in cyrus

With dovecot it's rm -rf ;-) Something I famillar with.

> account. I can't recall a single instance where the .tgz was ever
> needed, but that's not my problem. After one more year the .tgz is

Absolutly.

> deleted from tape as well.

Ok.

Thanks

Regards.


--
Albert SHIH
Observatoire de Paris
xmpp: j...@obspm.fr
Heure local/Local time:
Tue 23 Jun 2020 04:09:05 PM CEST

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


reconstructing mailboxes from backup

2020-06-23 Thread Tim Coote
Hullo

I have a cyrus implementation on Fedora for a small (~10) users that’s been 
migrated through many versions of the various components, including several 
different of IMAP clients.

Realising the fragility of the setup, I thought I’d restore from a backup. 
However, I’m finding that several of the mailboxes are not being recovered. I 
feel that I am missing somethign obvious, but I cannot spot it. 

The restoring version of cyrus-imap is: cyrus-imapd-3.0.13-2.fc32.x86_64,

The restored filesystem layout can be summarised thus:

`sudo find /var/spool/imap/g | grep cyrus.header`:

/var/spool/imap/g/user/george/Notes/cyrus.header
/var/spool/imap/g/user/george/cyrus.header
/var/spool/imap/g/user/george/Sent Messages/cyrus.header
/var/spool/imap/g/user/george/Deleted Messages/cyrus.header
/var/spool/imap/g/user/george/Sent/cyrus.header
/var/spool/imap/g/user/george/Trash/cyrus.header
/var/spool/imap/g/user/george/INBOX/Sent Messages/cyrus.header
/var/spool/imap/g/user/george/INBOX/Deleted Messages/cyrus.header
/var/spool/imap/g/user/george/INBOX/Drafts/cyrus.header
/var/spool/imap/g/user/george/INBOX^Deleted Messages/cyrus.header
/var/spool/imap/g/user/george/Drafts/cyrus.header

[so I would expect all of the subdirectories to be reconstructed as mailboxes]

however, using:
`sudo -u cyrus reconstruct -r -f user/george`

I only get:
user/george
user/george/Deleted Messages
user/george/Drafts
user/george/INBOX.Deleted Messages
user/george/Notes
user/george/Sent
user/george/Sent Messages
user/george/Trash

ie no subdirectories below the top level, but excluding those directories below 
INBOX.
Should there be a file: `/var/spool/imap/g/user/george/INBOX/cyrus.header`? 

Is there anything that I should be doing/how can I recover the other mailboxes?


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

Maintenance of cyrus

2020-06-23 Thread Albert Shih
Hi everyone.

Just like to know if some can tell me until when the cyrus 3.0.x will be
maintained ?

The mail are super top critical for me, so I don't like to change major
version during the life of the hardware.

I see they are still update on 2.x so...maybe I'm lucky and the 3.0.x will
ben maintained until end of time ;-)

Of course I can understand the cyrus team don't want to do something like
that, so no misunderstanding I don't want to blame anyone if you tell me
tomorrow it's the end of cyrus 3.0.x (just I rush to the supermarket to buy
a bottle of whisky if it is ;-) ).

Regards

--
Albert SHIH
Observatoire de Paris
xmpp: j...@obspm.fr
Heure local/Local time:
Tue 23 Jun 2020 03:37:50 PM CEST

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: httpd server signature off

2020-06-23 Thread Ken Murchison

Are you talking about removing this from the body of error responses?

Currently you can't, but I will patch master so that it obeys the 
serverinfo option.



On 6/23/20 8:19 AM, Zorg wrote:

Hi

for security reason i want to get rid off

Cyrus-HTTP/3.0.6-Debian-3.0.6-6+deb1u1 Cyrus-SASL/2.1.23 OpenSSL/1.1 
Zlib/1.2.10 LibXML2.9.5 SQLite/3.21.1 LibiCal/3.0 ICU4C/63.1 
Jansson/2.12 Server at cyrus.domain.com Port 9443


like apache using

ServerTokens Prod or ServerSignature Off


Have I try serverinfo: off in imapd.conf but it don't work

What should i do

Cyril


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 Murchison
Cyrus Development Team
Fastmail US LLC


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


httpd server signature off

2020-06-23 Thread Zorg

Hi

for security reason i want to get rid off

Cyrus-HTTP/3.0.6-Debian-3.0.6-6+deb1u1 Cyrus-SASL/2.1.23 OpenSSL/1.1 
Zlib/1.2.10 LibXML2.9.5 SQLite/3.21.1 LibiCal/3.0 ICU4C/63.1 
Jansson/2.12 Server at cyrus.domain.com Port 9443


like apache using

ServerTokens Prod or ServerSignature Off


Have I try serverinfo: off in imapd.conf but it don't work

What should i do

Cyril


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: backupd and sync_client IOERROR

2020-06-22 Thread Marco

Hello,

On 22/06/2020 03:29, ellie timoney has written:
[...]

So like, maybe a user has deleted some stuff, and you don't want to mess around figuring out which 
individual messages they need restored, so you just want to restore everything, and let the user 
figure it out.  This is what -x is for -- so you can say "restore the contents of mailbox foo, 
but only the expunged stuff" or "restore every mailbox (-a), but only the expunged 
stuff".

[...]


 thank you for all these explanations, I think I understand now. My use 
case is "the user accidentally deleted and expunged and now he ask for 
recovery". I have to unexpunge all messages after I recovered it with 
"restore -x".


I think there isn't a all-in-one command for this use case: a user 
expunged some messages and deleted some folders somewhere. I want to 
recover all expunged messages and all the deleted folders which are no 
more present in the original IMAP server (because they were expired from 
cyr_expire).


I have to set "-x" to avoid duplication of messages.
With "-a -x" I recover all expunged messages and all deleted mailboxes. 
But messages inside deleted mailboxes are not marked as expunged, so 
these mailboxes are recovered empty in the IMAP server.


I have to examine the output of the restore command and repeat a restore 
without the "-x" on each DELETED recovered mailboxes at the previous step.



Another idea is to recover all in another empty IMAP server, without 
"-x" at all, and the user can look at the mailbox recovered there...


Thank you very much!!

Cheers
Marco

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 IMAP 3.2.2 released

2020-06-21 Thread ellie timoney
The Cyrus team is proud to announce the immediate availability of a new version 
of Cyrus IMAP: 3.2.2

Download URLs:


https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-3.2.2/cyrus-imapd-3.2.2.tar.gz

https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-3.2.2/cyrus-imapd-3.2.2.tar.gz.sig


Please consult the release notes and upgrade documentation before upgrading to 
3.2.2:

https://www.cyrusimap.org/imap/download/release-notes/3.2/x/3.2.2.html
https://www.cyrusimap.org/imap/download/upgrade.html

And join us on Github at https://github.com/cyrusimap/cyrus-imapd to report 
issues, join in the deliberations of new features for the next Cyrus IMAP 
release, and to contribute to the documentation.

On behalf of the Cyrus team,

Kind regards,

ellie timoney

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: backupd and sync_client IOERROR

2020-06-21 Thread ellie timoney
Hi Marco,

On Fri, Jun 19, 2020, at 6:44 PM, Marco wrote:
> wow, yes, it works. With this config, after the Cyrus restart the 
> mailboxes.db and the skipstamps dbs are created and the error disappears 
> from syslog.

Great! I've updated the documentation, and the website should update shortly.

> I suggested the possibility to choose the recovery date (ie: all 
> messages and mailboxes deleted or expunged from  to ). I 
> hope you could add this feature.

Yep, I saw that, thanks for the request :)

> I now tried a restore, but I still have some problems. I very appreciate 
> if you could read the following issue.
> 
> My goal is to recover a message that was removed (expunged) from the 
> IMAP server, ignoring already existing messages.
> 
> It seems the "-x" flag could help. It seems it allows to restore and 
> unexpunge a previously expunged messages in the IMAP server.

No, you've misunderstood.  The "-x" flag is to ONLY restore expunged messages.  
If you've specified a list of mailboxes or messages on the command line, and 
some of them are not expunged, the "-x" option will cause it to ignore the ones 
that are not expunged, and only restore the expunged ones.  The "-X" option 
does the inverse -- they're filters.  Without one of these filters, it will 
restore everything you asked for, regardless of its expunged status.

So like, maybe a user has deleted some stuff, and you don't want to mess around 
figuring out which individual messages they need restored, so you just want to 
restore everything, and let the user figure it out.  This is what -x is for -- 
so you can say "restore the contents of mailbox foo, but only the expunged 
stuff" or "restore every mailbox (-a), but only the expunged stuff".

Think about it: if the messages _weren't_ expunged, there would usually be no 
need to restore them from backup!  You would simply remove the \Deleted flag 
over IMAP.  So, you are almost always using restore to bring back expunged 
messages, thus there is no special flag needed to enable this functionality.

(But, if you had lost an entire server to some disaster, and restoring to its 
replacement, then you would need to also restore the unexpunged stuff.)
 
> Yesterday I expunged the message 16ceead9802286784d7a54c5bc782891f76f2f2e:
> 
> 2020-06-18T15:44:37.374556+02:00 tst-msg03 cyrus/imap[9461]: auditlog: 
> expunge sessionid= 
> mailbox= 
> uniqueid= uid=<32092> modseq=<46828> 
> sysflags= guid=<16ceead9802286784d7a54c5bc782891f76f2f2e>
> 
> 
> I tried today to restore it:
> cyr_restore -v -U -x tst-msg03.example.com -u 
> utente.archivi...@example.com 16ceead9802286784d7a54c5bc782891f76f2f2e
> example.com!user.utente^archivista: trying to keep 
> uidvalidity(1550228105), uniqueid(nvf96uirjgfs6xaekwwc7g44), 
> highestmodseq(46828)
> 
> and I see:
> 2020-06-19T09:29:24.030624+02:00 tst-msg03 cyrus/imap[32742]: login: 
> tst-msg03-bck.example.com [10.102.42.169] cyr_restore LOGIN User logged 
> in SESSIONID=
> 
> 2020-06-19T09:29:24.162909+02:00 tst-msg03 cyrus/imap[32742]: auditlog: 
> append sessionid= 
> mailbox= 
> uniqueid= uid=<32096> modseq=<46829> 
> sysflags= guid=<16ceead9802286784d7a54c5bc782891f76f2f2e> 
> messageid=
> 
> 2020-06-19T09:29:24.163058+02:00 tst-msg03 cyrus/imap[32742]: auditlog: 
> expunge sessionid= 
> mailbox= 
> uniqueid= uid=<32096> modseq=<46829> 
> sysflags= guid=<16ceead9802286784d7a54c5bc782891f76f2f2e>
> 
> 2020-06-19T09:29:24.167561+02:00 tst-msg03 cyrus/imap[32742]: auditlog: 
> modseq sessionid= 
> mailbox= 
> uniqueid= highestmodseq=<46829>
> 
> 2020-06-19T09:29:24.215036+02:00 tst-msg03 cyrus/imap[32742]: USAGE 
> cyr_restore user: 0.042492 sys: 0.015435
> 
> 2020-06-19T09:29:24.215191+02:00 tst-msg03 cyrus/imap[32742]: auditlog: 
> traffic sessionid= 
> bytes_in=<2412> bytes_out=<1039>
> 
> 2020-06-19T09:29:32.855379+02:00 tst-msg03 cyrus/sync_client[32566]: 
> IOERROR: zero length response to MAILBOXES (end of file reached)
> 
> 2020-06-19T09:29:32.855682+02:00 tst-msg03 cyrus/sync_client[32566]: 
> IOERROR: zero length response to RESTART (end of file reached)
> 
> 2020-06-19T09:29:32.855713+02:00 tst-msg03 cyrus/sync_client[32566]: 
> Error in do_sync(): bailing out! Bad protocol
> 
> 2020-06-19T09:29:32.855738+02:00 tst-msg03 cyrus/sync_client[32566]: 
> Processing sync log file /var/lib/imap/sync/bck/log-run failed: Bad protocol
> 
> I tried again and I see the same result, but without the IOERROR:
> 
> 2020-06-19T09:36:51.153939+02:00 tst-msg03 cyrus/imap[32762]: login: 
> tst-msg03-bck.example.com [10.102.42.169] cyr_restore LOGIN User logged 
> in SESSIONID=
> 
> 2020-06-19T09:36:51.199742+02:00 tst-msg03 cyrus/imap[32762]: 
> example.com!user.utente^archivista: same message appears twice 32096 32097
> 
> (why twice? It expunges 32096 just above)
> 
> 2020-06-19T09:36:51.225525+02:00 tst-msg03 cyrus/imap[32762]: auditlog: 
> append sessionid= 
> mailbox= 
> uniqueid= uid=<32097> modseq=<46834> 
> sysflags= 

SOLVED Re: cyrus-imapd exporting databases failed on shutdown - deliver.db.skiplist 2048M

2020-06-21 Thread Pongrácz István
2020. 06.  21, vasárnap keltezéssel 10.53-kor Simon Matter ezt írta:
> 2020. 06.  20, szombat keltezéssel 21.31-kor Simon Matter ezt írta:
> 
> The deliver.db still about 48MB.
> 

I just deleted deliver.db and restart cyrus.
Restarting was pretty quick, takes only some seconds.
New deliver.db created, its size is 8KByte.

So far, so good.

Thank you!

István

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-imapd exporting databases failed on shutdown - deliver.db.skiplist 2048M

2020-06-21 Thread Pongrácz István


2020. 06.  21, vasárnap keltezéssel 10.53-kor Simon Matter ezt írta:
> 2020. 06.  20, szombat keltezéssel 21.31-kor Simon Matter ezt írta:
> Please make sure the options here are also valid for your cyrus version.
> However, I also guess your deliver.db is corrupted somehow. From my own
> experience skiplist dbs are easier to handle than bdb and using skiplist
> only has not shown any issues.
> 
> Regards,
> Simon

Hi,

Thank you the hint Simon.
They are valid.

What do you think, should I just delete deliver.db after I stopped cyrus-imap 
and restart again?
What can I loose?

Cheers,
István

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-imapd exporting databases failed on shutdown - deliver.db.skiplist 2048M

2020-06-21 Thread Simon Matter via Info-cyrus
> 2020. 06.  20, szombat keltezéssel 21.31-kor Simon Matter ezt írta:
>> Hi,
>>
>> The question is why is the deliver db > 2GB in skiplist format? Is it
>> normal or do you have a corrupt BDB db or does your db pruning not work
>> for deliverdb. I think that should be something like 'delprune
>> cmd="cyr_expire -D 7 -E 3 -X 7" at=0400' in cyrus.conf.
>>
>> I think the easiest way would be to make sure you have pruning
>> configured
>> correctly, then change config of deliver db to skiplist, and start
>> without
>> a db so a new, empty deliver db is created.
>>
>> Then have an eye on the db file to see if it grows again to almost 2GB.
>> If
>> it doesn't grow so much, you should be fine.
>>
>> Regards,
>> Simon
>
> Hi,
>
> Something definitely not seems fine:
>
> -bash-3.2$ /usr/lib/cyrus-imapd/cyr_expire -E 3 -D 7 -X 7 -v

Please make sure the options here are also valid for your cyrus version.
However, I also guess your deliver.db is corrupted somehow. From my own
experience skiplist dbs are easier to handle than bdb and using skiplist
only has not shown any issues.

Regards,
Simon

>
> expunged 0 out of 0 messages from 0 mailboxes
>
> The deliver.db still about 48MB.
>
> Tomorrow I will continue.
>
> Thanks,
> István
>



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-imapd exporting databases failed on shutdown - deliver.db.skiplist 2048M

2020-06-20 Thread Pongrácz István
2020. 06.  20, szombat keltezéssel 21.31-kor Simon Matter ezt írta:
> Hi,
> 
> The question is why is the deliver db > 2GB in skiplist format? Is it
> normal or do you have a corrupt BDB db or does your db pruning not work
> for deliverdb. I think that should be something like 'delprune 
> cmd="cyr_expire -D 7 -E 3 -X 7" at=0400' in cyrus.conf.
> 
> I think the easiest way would be to make sure you have pruning configured
> correctly, then change config of deliver db to skiplist, and start without
> a db so a new, empty deliver db is created.
> 
> Then have an eye on the db file to see if it grows again to almost 2GB. If
> it doesn't grow so much, you should be fine.
> 
> Regards,
> Simon

Hi,

Something definitely not seems fine:

-bash-3.2$ /usr/lib/cyrus-imapd/cyr_expire -E 3 -D 7 -X 7 -v

expunged 0 out of 0 messages from 0 mailboxes

The deliver.db still about 48MB.

Tomorrow I will continue.

Thanks,
István

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-imapd exporting databases failed on shutdown - deliver.db.skiplist 2048M

2020-06-20 Thread Pongrácz István
2020. 06.  20, szombat keltezéssel 21.31-kor Simon Matter ezt írta:
> 
> Hi,
> 
> The question is why is the deliver db > 2GB in skiplist format? Is it
> normal or do you have a corrupt BDB db or does your db pruning not work
> for deliverdb. I think that should be something like 'delprune 
> cmd="cyr_expire -D 7 -E 3 -X 7" at=0400' in cyrus.conf.
> 
> I think the easiest way would be to make sure you have pruning configured
> correctly, then change config of deliver db to skiplist, and start without
> a db so a new, empty deliver db is created.
> 
> Then have an eye on the db file to see if it grows again to almost 2GB. If
> it doesn't grow so much, you should be fine.
> 
> Regards,
> Simon
> 
> 

Hi,
Thank you for your answer!
I have this in my config at EVENTS section:

EVENTS {
  # this is required
  checkpointcmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression
  delprune  cmd="ctl_deliver -E 3" period=1440

  # this is only necessary if caching TLS sessions
  tlsprune  cmd="tls_prune" period=1440
}

Regarding to users, we do not see any anomalies on daily use or restarting the 
server sometimes, only this exporting failed.

I issued the mentioned command on command line (cyr_expire -D 7 -E 3 -X 7) it 
finished in around 1-2 seconds. (At this moment there are no online users as 
this is weekend).

Additional information I forgot to mention:
there are a lot of shared email folder of the catchall account to share common 
mailboxes.

I got this error after some lines, when I run /usr/lib/cyrus-imapd/ctl_deliver 
-d

fatal error: Internal error: assertion failed: duplicate.c: 344: (datalen == 
sizeof(time_t)) || (datalen == sizeof(time_t) + sizeof(unsigned long))

Probably deliver.db itself is corrupted?

Cheers,
István

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-imapd exporting databases failed on shutdown - deliver.db.skiplist 2048M

2020-06-20 Thread Simon Matter via Info-cyrus
> Hi,
>
> I run into a problem on an old clearos server, where the cyrus shutdown
> always failed at step exporting databases.
> As I checked the situation using ps ax on an other console, I found
> that, it was exporting deliver.db.skiplist file, which failed after a
> lng time (some minutes).
> I checked that file on the filesystem, I saw the file size is 2048MB,
> which seems a limit for me and I suspect the problem should be that,
> the 32 bit cyrus cannot write more data to that file and caused the
> problem.
> As I read the db_export.log, that confirmed my theory, file size limit
> exceeded.

Hi,

The question is why is the deliver db > 2GB in skiplist format? Is it
normal or do you have a corrupt BDB db or does your db pruning not work
for deliverdb. I think that should be something like 'delprune 
cmd="cyr_expire -D 7 -E 3 -X 7" at=0400' in cyrus.conf.

I think the easiest way would be to make sure you have pruning configured
correctly, then change config of deliver db to skiplist, and start without
a db so a new, empty deliver db is created.

Then have an eye on the db file to see if it grows again to almost 2GB. If
it doesn't grow so much, you should be fine.

Regards,
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-imapd exporting databases failed on shutdown - deliver.db.skiplist 2048M

2020-06-20 Thread Pongrácz István
Hi,

I run into a problem on an old clearos server, where the cyrus shutdown
always failed at step exporting databases.
As I checked the situation using ps ax on an other console, I found
that, it was exporting deliver.db.skiplist file, which failed after a
lng time (some minutes).
I checked that file on the filesystem, I saw the file size is 2048MB,
which seems a limit for me and I suspect the problem should be that,
the 32 bit cyrus cannot write more data to that file and caused the
problem.
As I read the db_export.log, that confirmed my theory, file size limit
exceeded.

This kind of issue causes long hangup at system shutdown and I guess
causes other potential problems, as this file could be truncated and
useless.

My question, do you have any idea/hint, what to do to get it work?
For example, changing export.db format to something else? (How?)
Thank you!

I copied some important information below, please check it.

db_export.log:
cvt_cyrusdb_all version: 1.2.1db_checkpoint: open: No such file or
directory/usr/lib/cyrus-imapd/cvt_cyrusdb_all: line 199:  9150 File
size limit exceeded$cvt_cyrusdb "$target" "$old_db"
"${target}.skiplist" skiplistERROR: unable to convert
/var/lib/imap/deliver.db from berkeley to skiplistremoved
`/var/lib/imap/db/log.01'removed
`/var/lib/imap/db/__db.001'removed `/var/lib/imap/db/__db.002'removed
`/var/lib/imap/db/__db.003'removed `/var/lib/imap/db/__db.004'removed
`/var/lib/imap/db/__db.005'removed `/var/lib/imap/db/__db.006'removed
`/var/lib/imap/db/__db.007'removed `/var/lib/imap/db/__db.008'removed
`/var/lib/imap/db/__db.009'removed `/var/lib/imap/db/__db.010'removed
`/var/lib/imap/db/__db.011'removed `/var/lib/imap/db/__db.012'

The system details:
 * Clearos 5.2 32 bit
 * Cyrus is 2.3.11
 * kernel 2.6.18-308.1.1.v5
 * filesystem is ext3 (no problem to write 200-300GB into a single
file)
 * size of email folder (/var/spool/imap/*): 1007 GB
 * size of /var/lib/imap/deliver.db 48MB

Other interesting config files:


db.cfg.cache content
annotation_db=skiplistduplicate_db=berkeleymboxkey_db=skiplistmboxlist_
db=skiplistptscache_db=berkeleyquota_db=quotalegacyseenstate_db=skiplis
tsieve_version=2.2.3subscription_db=flattlscache_db=berkeley


/var/lib/imap/db/DB_CONFIG
set_cachesize 0 8388608 8set_lg_regionmax 5242880set_lg_bsize 8097152



Thank you!

István (Steve)

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

  1   2   3   4   5   6   7   8   9   10   >