migration from 2.1.x to 2.4.5

2010-12-01 Thread Ron Vachiyer

Hello,

I am pretty much done testing a 2.4.5 Cyrus setup to replace an aging (2.1.x) 
installation.  I have about 36GB of spool, 11,000 accounts or so.

I have done some small-scale testing of using imapsync to fetch the contents of 
the legacy imap folders which seem to work successfully.  My question is, when 
it comes time to migrate, is it safe to allow lmtpd to forward mails to 
mailboxes that theoretically could be getting imapsync'ed at that time?  Or is 
my only option to spool inbound emails until the imapsync is done?  I'm 
guessing that, from the speed I saw imapsync run, that this might take a good 
number of hours to complete.  As well, is it safe/unsafe to allow imap/pop3 
connections to those same mailboxes during the sync?

I am open to any ideas should I be looking at this migration the wrong way.  I 
read about using rsync to copy the files directly, however I am wondering if 
the jump between 2.1 and 2.4 might be too large and cause unforseen issues.

Thanks,

Ron

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

Re: migration from 2.1.x to 2.4.5

2010-12-01 Thread Andrew Morgan
On Wed, 1 Dec 2010, Ron Vachiyer wrote:


 Hello,

 I am pretty much done testing a 2.4.5 Cyrus setup to replace an aging 
 (2.1.x) installation.  I have about 36GB of spool, 11,000 accounts or 
 so.

 I have done some small-scale testing of using imapsync to fetch the 
 contents of the legacy imap folders which seem to work successfully. 
 My question is, when it comes time to migrate, is it safe to allow lmtpd 
 to forward mails to mailboxes that theoretically could be getting 
 imapsync'ed at that time?  Or is my only option to spool inbound emails 
 until the imapsync is done?  I'm guessing that, from the speed I saw 
 imapsync run, that this might take a good number of hours to complete. 
 As well, is it safe/unsafe to allow imap/pop3 connections to those same 
 mailboxes during the sync?

 I am open to any ideas should I be looking at this migration the wrong 
 way.  I read about using rsync to copy the files directly, however I am 
 wondering if the jump between 2.1 and 2.4 might be too large and cause 
 unforseen issues.

Why not run imapsync multiple times in the lead-up to the actual 
migration?  That way, your final migration can be very short because there 
will be very little data that needs to be sync'd.  I think it would be 
wise to disable imap/pop3 connections and lmtp delivery while you are 
performing the final migration.

Andy

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


toying with SIEVE and ldap

2010-12-01 Thread Chris Conn
Hello,

I'm toying with a Horde module that allows to create SIEVE filters and 
store them in an ldap directory.  This works, however I haven't found 
any documentation as to how it might be (is it?) possible to read these 
filters from the mailSieveRuleSource: of a ldap dn.

The module is Ingo, and it seems to convert a vacation message into;

mailSieveRuleSource:: 
IyBTaWV2ZSBGaWx0ZXIKIyBHZW5lcmF0ZWQgYnkgSW5nbyAoaHR0cDov
 
L3d3dy5ob3JkZS5vcmcvaW5nby8pICgxMi8wMS8yMDEwLCAxMTo0NjoxNCBBTSkKCnJlcXVpcmUgW
 
yJ2YWNhdGlvbiIsICJyZWdleCJdOwoKIyBWYWNhdGlvbgppZiBhbGxvZiAoIG5vdCBleGlzdHMgWy
 
JsaXN0LWhlbHAiLCAibGlzdC11bnN1YnNjcmliZSIsICJsaXN0LXN1YnNjcmliZSIsICJsaXN0LW9
 
3bmVyIiwgImxpc3QtcG9zdCIsICJsaXN0LWFyY2hpdmUiLCAibGlzdC1pZCIsICJNYWlsaW5nLUxp
 
c3QiXSwgbm90IGhlYWRlciA6Y29tcGFyYXRvciAiaTthc2NpaS1jYXNlbWFwIiA6aXMgIlByZWNlZ
 
GVuY2UiIFsibGlzdCIsICJidWxrIiwgImp1bmsiXSwgbm90IGhlYWRlciA6Y29tcGFyYXRvciAiaT
 
thc2NpaS1jYXNlbWFwIiA6bWF0Y2hlcyAiVG8iICJNdWx0aXBsZSByZWNpcGllbnRzIG9mKiIgKSB
 
7IAogICAgaWYgaGVhZGVyIDpyZWdleCAiUmVjZWl2ZWQiICJeLiooMjAxMCkgKFxcKC4qXFwpICk/
 
Li46Li46Li4gKFxcKC4qXFwpICk/KChcXCt8XFwtKVtbOmRpZ2l0Ol1dezR9fC57MSw1fSkoIFxcK
  C4qXFwpKT8kIiB7CiAgICB9Cgp9Cg==


Is there a way to get Cyrus to read this and apply the sieve filter?

Thanks,

Chris

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


Re: toying with SIEVE and ldap

2010-12-01 Thread Adam Tauno Williams
On Wed, 2010-12-01 at 13:50 -0500, Chris Conn wrote: 
 Hello,
 I'm toying with a Horde module that allows to create SIEVE filters and 
 store them in an ldap directory.  

Neat.  Sadly it is probably just this side of worthless.

 This works, however I haven't found 
 any documentation as to how it might be (is it?) possible to read these 
 filters from the mailSieveRuleSource: of a ldap dn.
 The module is Ingo, and it seems to convert a vacation message into;

Whenever you see a double colon in LDIF it means the subsequent data is
base64 encoded.

So

 mailSieveRuleSource:: 
 IyBTaWV2ZSBGaWx0ZXIKIyBHZW5lcmF0ZWQgYnkgSW5nbyAoaHR0cDov
 L3d3dy5ob3JkZS5vcmcvaW5nby8pICgxMi8wMS8yMDEwLCAxMTo0NjoxNCBBTSkKCnJlcXVpcmUgW
 yJ2YWNhdGlvbiIsICJyZWdleCJdOwoKIyBWYWNhdGlvbgppZiBhbGxvZiAoIG5vdCBleGlzdHMgWy
 JsaXN0LWhlbHAiLCAibGlzdC11bnN1YnNjcmliZSIsICJsaXN0LXN1YnNjcmliZSIsICJsaXN0LW9
 3bmVyIiwgImxpc3QtcG9zdCIsICJsaXN0LWFyY2hpdmUiLCAibGlzdC1pZCIsICJNYWlsaW5nLUxp
 c3QiXSwgbm90IGhlYWRlciA6Y29tcGFyYXRvciAiaTthc2NpaS1jYXNlbWFwIiA6aXMgIlByZWNlZ
 GVuY2UiIFsibGlzdCIsICJidWxrIiwgImp1bmsiXSwgbm90IGhlYWRlciA6Y29tcGFyYXRvciAiaT
 thc2NpaS1jYXNlbWFwIiA6bWF0Y2hlcyAiVG8iICJNdWx0aXBsZSByZWNpcGllbnRzIG9mKiIgKSB
 7IAogICAgaWYgaGVhZGVyIDpyZWdleCAiUmVjZWl2ZWQiICJeLiooMjAxMCkgKFxcKC4qXFwpICk/
 Li46Li46Li4gKFxcKC4qXFwpICk/KChcXCt8XFwtKVtbOmRpZ2l0Ol1dezR9fC57MSw1fSkoIFxcK
 C4qXFwpKT8kIiB7CiAgICB9Cgp9Cg==

is
BEGIN
require [vacation, regex];

# Vacation
if allof ( not exists [list-help, list-unsubscribe,
list-subscribe, list-owner, list-post, list-archive, list-id,
Mailing-List], not header :comparator i;ascii-casemap :is
Precedence [list, bulk, junk], not header :comparator
i;ascii-casemap :matches To Multiple recipients of* ) { 
if header :regex Received ^.*(2010) (\\(.*\\) )?..:..:.. (\\(.*\
\) )?((\\+|\\-)[[:digit:]]{4}|.{1,5})( \\(.*\\))?$ {
}

}
END

 Is there a way to get Cyrus to read this and apply the sieve filter?

No.

You just enable Ingo to connect to the SIEVE service of the Cyrus
instance.  Ingo will continue to store the rules in the user's
preferences [LDAP in your case (and mine)] but must install the script
on the Cyrus instance.


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


Script to move imap mailboxes between backends and partitions ?

2010-12-01 Thread Lucas Zinato Carraro
Hi,

Anyone has a good script to move users between several
backends and partitions ??

In the 'old' cyrus web page i remember that exist link
for some tools  and scripts in a Wiki.

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


Re: Script to move imap mailboxes between backends and partitions ?

2010-12-01 Thread Andrew Morgan
On Wed, 1 Dec 2010, Lucas Zinato Carraro wrote:

 Hi,

 Anyone has a good script to move users between several
 backends and partitions ??

 In the 'old' cyrus web page i remember that exist link
 for some tools  and scripts in a Wiki.

I have a variety of perl scripts for managing our Cyrus Murder 
installation.  They were in the Wiki at one time, but you can find them 
here now:

   http://people.oregonstate.edu/~morgan/cyrus/public/

In particular, look at:

batch-move-mailboxes-to-new-backend.pl
rename-with-backend.pl
rename-with-partition.pl
utils.pl


Andy

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


Re: Script to move imap mailboxes between backends and partitions ?

2010-12-01 Thread Lucas Zinato Carraro
Thanks Andrew,

This scripts could be included im cyrusimap web page.
Regards
Zinato


On Wed, Dec 1, 2010 at 8:28 PM, Andrew Morgan mor...@orst.edu wrote:
 On Wed, 1 Dec 2010, Lucas Zinato Carraro wrote:

 Hi,

 Anyone has a good script to move users between several
 backends and partitions ??

 In the 'old' cyrus web page i remember that exist link
 for some tools  and scripts in a Wiki.

 I have a variety of perl scripts for managing our Cyrus Murder installation.
  They were in the Wiki at one time, but you can find them here now:

  http://people.oregonstate.edu/~morgan/cyrus/public/

 In particular, look at:

 batch-move-mailboxes-to-new-backend.pl
 rename-with-backend.pl
 rename-with-partition.pl
 utils.pl


        Andy


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