Re: Skiplist vs Berkley db

2006-04-19 Thread Marc G. Fournier

On Thu, 20 Apr 2006, Marc G. Fournier wrote:


On Wed, 19 Apr 2006, John Hampton wrote:


barsalou wrote:
What I was wondering iscan someone help list the pro's and cons of 
skiplist and Bdb?


I found the following link to be very helpful

http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/WhatDatabaseBackend


'k, just read this, thx ... first question I have is what is 
/var/spool/imap/db?  mboxlist?  nothing else on that page appears 
appropriate, but just want to make sure ...


Oh, and what about the cyrus.* files within the mailbox itself:

# file cyrus.*
cyrus.cache:  data
cyrus.header: data
cyrus.index:  data



Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email: [EMAIL PROTECTED]   Yahoo!: yscrappy  ICQ: 7615664

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


Re: Skiplist vs Berkley db

2006-04-19 Thread Marc G. Fournier

On Wed, 19 Apr 2006, John Hampton wrote:


barsalou wrote:
What I was wondering iscan someone help list the pro's and cons of 
skiplist and Bdb?


I found the following link to be very helpful

http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/WhatDatabaseBackend


'k, just read this, thx ... first question I have is what is 
/var/spool/imap/db?  mboxlist?  nothing else on that page appears 
appropriate, but just want to make sure ...




Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email: [EMAIL PROTECTED]   Yahoo!: yscrappy  ICQ: 7615664

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


Re: does xfer require murder?

2006-04-19 Thread Perry Brown

Thanks for the imtest idea.

It looks like I can log in OK.


server1.sub1% /opt/mail/cyrus-imapd/bin/imtest -m login -p imap 
server2.sub2.domain.com

S: * OK server2.sub2.domain.com Cyrus IMAP4 v2.2.8 server ready
C: C01 CAPABILITY
S: * 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 AUTH=GSSAPI 
AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR LISTEXT LIST-SUBSCRIBED X-NETSCAPE

S: C01 OK Completed
Please enter your password:
C: L01 LOGIN cyrus {8}
S: + go ahead
C: 
S: L01 OK User logged in
Authenticated.
Security strength factor: 0
CAPABILITY
* BAD Invalid tag
LIST
* BAD Invalid tag
list
* BAD Invalid tag


It looks like the cyrus account gets authenticated OK.




Andrew Morgan wrote:

On Wed, 19 Apr 2006, Ken Murchison wrote:


Perry Brown wrote:


Here is what my imapd.conf looks like:

defaultpartition: imap1
configdirectory: /var/imap
partition-imap1: /var/spool/imap1
admins: cyrus support
srvtab: /var/imap/srvtab
quotawarn: 85
popminpoll: 0
autocreatequota: 3
sasl_pwcheck_method: saslauthd
lmtp_over_quota_perm_failure: 1
allowusermoves:yes
proxy_authname: cyrus
proxy_password: password
proxyservers: cyrus


Just tested XFER on 2.2.13 and it works fine.  Your problem is that 
you've specified the password for a machine named 'proxy'.  Presumably, 
you want:


server1_password: password
server2_password: password

on the respective machines


I have a test murder environment running with v2.2.12.  I've been using 
proxy_authname and proxy_password on my frontend server just fine.  The 
man page says that those parameters set the defaults for connecting to a 
backend, but they an be overridden with hostname specific versions.


Hmm.  You're right.  Then I'd try using imtest to connect to the backends 
using the proxy_authname and proxy_password to see what its complains 
about.



--
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University




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


Re: SAN based storage

2006-04-19 Thread Ben Carter
Michael Loftis wrote:
> 
> 
> --On April 19, 2006 12:47:26 PM -0500 John Wade <[EMAIL PROTECTED]> wrote:
> 
>> We run cyrus on RedHat on a CX600.  For our administrative users, we put
>> the whole thing on a nine disk fibre channel RAIDgroup, split into 6
>> luns, 5 for mail spool partitions and 1 for all the other metadata.
>> Total mail spool size is 300GB.   We average about 300 concurrent
>> users.   The CX600 is heavily used by other applications.   I/O
>> performance has never been an issue as far as I can tell.   The large
>> write caches in the CX600 solve the write problem and the host memory
>> caching seems to solve the read problem.Your mileage may vary. We
>> couldn't do a direct cyrus  SAN performance comparision because when we
>> moved to this box, we migrated to the SAN and new server hardware at the
>> same time,  but tests on other systems where we just moved storage on to
>> the array saw a huge performance boost vs. locally attached SCSI RAID 5
>> storage with no write cache enabled.
> 

If you're really building 9-disk RAID 5 RAID groups, you might see a
pretty big performance hit on a drive failure - until the data has been
rebuilt on the hot spare of course.  You might want to test this before
going this way.

-- 
Ben Carter
University of Pittsburgh/CSSD
[EMAIL PROTECTED]
412-624-6470

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


Re: SAN based storage

2006-04-19 Thread Michael Loftis



--On April 19, 2006 12:47:26 PM -0500 John Wade <[EMAIL PROTECTED]> wrote:


We run cyrus on RedHat on a CX600.  For our administrative users, we put
the whole thing on a nine disk fibre channel RAIDgroup, split into 6
luns, 5 for mail spool partitions and 1 for all the other metadata.
Total mail spool size is 300GB.   We average about 300 concurrent
users.   The CX600 is heavily used by other applications.   I/O
performance has never been an issue as far as I can tell.   The large
write caches in the CX600 solve the write problem and the host memory
caching seems to solve the read problem.Your mileage may vary. We
couldn't do a direct cyrus  SAN performance comparision because when we
moved to this box, we migrated to the SAN and new server hardware at the
same time,  but tests on other systems where we just moved storage on to
the array saw a huge performance boost vs. locally attached SCSI RAID 5
storage with no write cache enabled.



Our mail cluster lives and dies by our CX200's write caches.  When they get 
turned off (as can happen during a failover rebuild on the SAN, or if you 
lose a vault drive) the mail cluster starts choking.  Even though we have 
used array's with write caching before the algorithms in the CX are 
definitely better.  


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


Re: Avoiding deliver.db corruption

2006-04-19 Thread Patrick Radtke
basically duplicate suppression might miss a few messages (since  
you've deleted what it does its comparison against).

Also, I think it resets any state associated with vacation.

e.g. Someone who has already gotten a vacation auto-response, may get  
another one after the deliver.db is deleted and if they send another  
message to the address using vacation.


-Patrick
On Apr 19, 2006, at 1:12 PM, Karl Boyken wrote:

If I hacked our init script to delete deliver.db before starting  
Cyrus IMAPD, what adverse consequences would there be, if any?  We  
recently were bitten by deliver.db corruption when our mail server  
went down ungracefully.


Thanks in advance.

Karl Boyken

--
Karl Boyken, system administrator [EMAIL PROTECTED]
303A MLH, Dept. of Comp. Sci. http://www.cs.uiowa.edu/~boyken/
The U. of Iowa, Iowa City, IA  52242   319-335-2730 (voice)  
319-335-3668 (fax)


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



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


Re: does xfer require murder?

2006-04-19 Thread Patrick Radtke


On Apr 19, 2006, at 12:54 PM, Ken Murchison wrote:


Andrew Morgan wrote:

On Wed, 19 Apr 2006, Ken Murchison wrote:

Perry Brown wrote:


Here is what my imapd.conf looks like:

defaultpartition: imap1
configdirectory: /var/imap
partition-imap1: /var/spool/imap1
admins: cyrus support
srvtab: /var/imap/srvtab
quotawarn: 85
popminpoll: 0
autocreatequota: 3
sasl_pwcheck_method: saslauthd
lmtp_over_quota_perm_failure: 1
allowusermoves:yes
proxy_authname: cyrus
proxy_password: password
proxyservers: cyrus


Just tested XFER on 2.2.13 and it works fine.  Your problem is  
that you've specified the password for a machine named 'proxy'.   
Presumably, you want:


server1_password: password
server2_password: password

on the respective machines
I have a test murder environment running with v2.2.12.  I've been  
using proxy_authname and proxy_password on my frontend server just  
fine.  The man page says that those parameters set the defaults  
for connecting to a backend, but they an be overridden with  
hostname specific versions.


Hmm.  You're right.  Then I'd try using imtest to connect to the  
backends using the proxy_authname and proxy_password to see what  
its complains about.


Also try testing it with out the 'srvtab' line and with
force_sasl_client_mech: PLAIN

The machine might be trying to do some kerberos stuff and I'm  
thinking you just want to use PLAIN


-Patrick

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


Re: Skiplist vs Berkley db

2006-04-19 Thread John Hampton

barsalou wrote:
What I was wondering iscan someone help list the pro's and cons of 
skiplist and Bdb?


I found the following link to be very helpful

http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/WhatDatabaseBackend

-John

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


Re: SAN based storage

2006-04-19 Thread John Wade
We run cyrus on RedHat on a CX600.  For our administrative users, we put
the whole thing on a nine disk fibre channel RAIDgroup, split into 6
luns, 5 for mail spool partitions and 1 for all the other metadata.
Total mail spool size is 300GB.   We average about 300 concurrent
users.   The CX600 is heavily used by other applications.   I/O
performance has never been an issue as far as I can tell.   The large
write caches in the CX600 solve the write problem and the host memory
caching seems to solve the read problem.Your mileage may vary. We
couldn't do a direct cyrus  SAN performance comparision because when we
moved to this box, we migrated to the SAN and new server hardware at the
same time,  but tests on other systems where we just moved storage on to
the array saw a huge performance boost vs. locally attached SCSI RAID 5
storage with no write cache enabled.

Hope this helps,
John Wade
Oakton Community College

Andrzej Kwiatkowski wrote:

> Hi
>
> I'm going to build email-system based on cyrus with SAN storage.
> As an array i will use CX700.
>
> For every instance i'g going to build raid group from 9 146GB disks.
>
> I've noticed that in last version of imapd is possibility to separate
> mail files and meta files.
>
> Does it make sense to seperate mailboxes and metafiles, and/or sieve
> files, mboxlist partiotion
> when using SAN storage with big performance ?
>
> I know that with normal disk this is very important,
> bot it this situation i this this make no sense.
>
> Thanks for help
> AK
> 
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


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


Re: SAN based storage

2006-04-19 Thread Michael Loftis



--On April 19, 2006 6:40:27 PM +0200 Andrzej Kwiatkowski 
<[EMAIL PROTECTED]> wrote:



Hi

I'm going to build email-system based on cyrus with SAN storage.
As an array i will use CX700.

For every instance i'g going to build raid group from 9 146GB disks.

I've noticed that in last version of imapd is possibility to separate
mail files and meta files.

Does it make sense to seperate mailboxes and metafiles, and/or sieve
files, mboxlist partiotion
when using SAN storage with big performance ?

I know that with normal disk this is very important,
bot it this situation i this this make no sense.


If you mean separate filesystems, I'd tend to say yes still, depending on 
your base OS.  Linux for example keeps queues and caches in different ways 
than Solaris.  Irregardless of what OS you use you'll want some volume 
management, and a filesystem that can atleast grow online such as ReiserFS. 
I've heard that ext3 can be resized online, but I've never seen it myself 
so can't say one way or the other there.


I've got one installation backed by a CX200 and the only issue we run into 
is I/O loading when we had the mail queues and the backend storage all on 
the same spindles.  Once I seperated those out things got a lot better. 
We're talking quite a bit of I/O though, and the main mail store spindles 
also back part of the NFS server cluster as well.


We use a Linux 2.4 kernel, ReiserFS, on top of LVM, on top of MD in 
multipath mode -- the reason for the MD multipath is at the time there 
wasn't a working qlogic driver with builtin failover support.






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


Avoiding deliver.db corruption

2006-04-19 Thread Karl Boyken
If I hacked our init script to delete deliver.db before starting Cyrus 
IMAPD, what adverse consequences would there be, if any?  We recently 
were bitten by deliver.db corruption when our mail server went down 
ungracefully.


Thanks in advance.

Karl Boyken

--
Karl Boyken, system administrator 
[EMAIL PROTECTED]
303A MLH, Dept. of Comp. Sci. 
http://www.cs.uiowa.edu/~boyken/
The U. of Iowa, Iowa City, IA  52242   319-335-2730 (voice) 
319-335-3668 (fax)


smime.p7s
Description: S/MIME Cryptographic Signature

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

Re: does xfer require murder?

2006-04-19 Thread Ken Murchison

Andrew Morgan wrote:

On Wed, 19 Apr 2006, Ken Murchison wrote:


Perry Brown wrote:


Here is what my imapd.conf looks like:

defaultpartition: imap1
configdirectory: /var/imap
partition-imap1: /var/spool/imap1
admins: cyrus support
srvtab: /var/imap/srvtab
quotawarn: 85
popminpoll: 0
autocreatequota: 3
sasl_pwcheck_method: saslauthd
lmtp_over_quota_perm_failure: 1
allowusermoves:yes
proxy_authname: cyrus
proxy_password: password
proxyservers: cyrus


Just tested XFER on 2.2.13 and it works fine.  Your problem is that 
you've specified the password for a machine named 'proxy'.  
Presumably, you want:


server1_password: password
server2_password: password

on the respective machines


I have a test murder environment running with v2.2.12.  I've been using 
proxy_authname and proxy_password on my frontend server just fine.  The 
man page says that those parameters set the defaults for connecting to a 
backend, but they an be overridden with hostname specific versions.


Hmm.  You're right.  Then I'd try using imtest to connect to the 
backends using the proxy_authname and proxy_password to see what its 
complains about.



--
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University

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


Skiplist vs Berkley db

2006-04-19 Thread barsalou
I'm considering moving to skiplist from berkley db when deploying a new 
cyrus server. (So no account transfers are going to be needed)


What I was wondering iscan someone help list the pro's and cons of 
skiplist and Bdb?


I was talking about this move to a friend of mine, whose opinion I 
respect, and he felt that bdb was the way to go.


I have read through the maillists and some of the comments made about 
skiplist, made me want to move to that.


Hopefully this isn't "religous" in nature...not trying to start a war here. :)

Thanks for any advice.

Mike B.



This message was sent using IMP, the Internet Messaging Program.


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


SAN based storage

2006-04-19 Thread Andrzej Kwiatkowski
Hi

I'm going to build email-system based on cyrus with SAN storage.
As an array i will use CX700.

For every instance i'g going to build raid group from 9 146GB disks.

I've noticed that in last version of imapd is possibility to separate
mail files and meta files.

Does it make sense to seperate mailboxes and metafiles, and/or sieve
files, mboxlist partiotion
when using SAN storage with big performance ?

I know that with normal disk this is very important,
bot it this situation i this this make no sense.

Thanks for help
AK

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


Re: Restoring Mailboxes

2006-04-19 Thread Andrew Morgan

On Wed, 19 Apr 2006, Dr. Harry Knitter wrote:


Am Mittwoch, 19. April 2006 15:27 schrieb [EMAIL PROTECTED]:

Hello,

we have a problem to restore Cyrus mailboxes from an installation of SuSE
9.2
which we want to transfer do a SuSE 10.0 installation.
We have backuped the directories /var/lib/imap and /var/spool/imap and
copied
them to the new installation.
after restarting Cyrus syslog was flooded with messages





Seems you have a mismatch in version numbers between your old Berkeley DB4
installation and your new installation. The problem is that your old .db
files (in db4.xx) is not compatible with your new Berkeley installation.

Albeit "cumbersome" you can fix it if you still have the old server
available where you need to run cvt_cyrusdb on each file being stored in
Berkeley database format. The easiest way to find those files is probably
just to run a

  find /var/lib/imap |xargs file|grep -i berkeley

And then manually convert those files to flat format doing:

  cvt_cyrusdb /your/berkeley_db4.db berkeley /your/berkeley_flatfile flat

Then copy the files to your new installation and covert them back to
Berkeley with your new berkeley db4 format (cumbersome but needed step)


Good luck,
  Best regards,
 Jesper K. Pedersen


Doesn´t sound very good.
The old server does not exist anymore.
On the other side I have a server that was upgraded and seems to use the old
file format. How can I find out what version of Berkeley DB this cyrus is
using?
Or are there any tools to do this without cyrus?


You could also try deleting the files in the configdirectory/db/ directory 
(make a copy to be safe).  Those are the transaction logs, etc, for 
BerkeleyDB and skiplist.  They should be safe to delete because the actual 
information is in the mailboxes.db file.


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

Re: does xfer require murder?

2006-04-19 Thread Andrew Morgan

On Wed, 19 Apr 2006, Ken Murchison wrote:


Perry Brown wrote:


Here is what my imapd.conf looks like:

defaultpartition: imap1
configdirectory: /var/imap
partition-imap1: /var/spool/imap1
admins: cyrus support
srvtab: /var/imap/srvtab
quotawarn: 85
popminpoll: 0
autocreatequota: 3
sasl_pwcheck_method: saslauthd
lmtp_over_quota_perm_failure: 1
allowusermoves:yes
proxy_authname: cyrus
proxy_password: password
proxyservers: cyrus


Just tested XFER on 2.2.13 and it works fine.  Your problem is that you've 
specified the password for a machine named 'proxy'.  Presumably, you want:


server1_password: password
server2_password: password

on the respective machines


I have a test murder environment running with v2.2.12.  I've been using 
proxy_authname and proxy_password on my frontend server just fine.  The 
man page says that those parameters set the defaults for connecting to a 
backend, but they an be overridden with hostname specific versions.


Andy

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


Re: SYSLOG problem. Can't seperate sendmail from cyrus.

2006-04-19 Thread Aaron Bennett

Mark London wrote:
I have cyrus installed via redhat 4 rpms.  I thought I could separate 
all cyrus messages from sendmail, by doing the following in syslog.conf:


*.info;mail.none;news.none;authpriv.none;cron.none;local6.* 
/var/log/messages


mail.*;local6.none  
-/var/log/maillog


As pointed out below, cyrus on redhat 4 rpms is compiled to use facility 
mail.  I deal with that by running syslog-ng on my central syslog 
server; it's _much_ more flexible then syslog and can split by 
application name as well as facility and level.  In case anyone's 
interested, here's the relevant syslog-ng section:


destination postfix { file ("/var/log/$HOST/mail.log"); };

destination cyrus { file ("/var/log/$HOST/cyrus.log"); };

filter f_calliope-postfix {

   (

   host("calliope.clarku.edu")

   ) and (

   facility(mail) and

   program(postfix)

   );

};

filter f_calliope-cyrus {

   (

   host("calliope.clarku.edu")

   ) and (

   facility(mail) and

   not program(postfix)

   );

};

log { source(net); filter(f_calliope-postfix); destination(postfix); 
flags(final); };

log { source(net); filter(f_calliope-cyrus); destination(cyrus); flags(final); 
};


Best,

Aaron Bennett
UNIX Administrator
Clark University

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


Re: Restoring Mailboxes

2006-04-19 Thread Dr. Harry Knitter
Am Mittwoch, 19. April 2006 15:27 schrieb [EMAIL PROTECTED]:
> > Hello,
> >
> > we have a problem to restore Cyrus mailboxes from an installation of SuSE
> > 9.2
> > which we want to transfer do a SuSE 10.0 installation.
> > We have backuped the directories /var/lib/imap and /var/spool/imap and
> > copied
> > them to the new installation.
> > after restarting Cyrus syslog was flooded with messages
> >
> > 
> >
> 
> Seems you have a mismatch in version numbers between your old Berkeley DB4
> installation and your new installation. The problem is that your old .db
> files (in db4.xx) is not compatible with your new Berkeley installation.
> 
> Albeit "cumbersome" you can fix it if you still have the old server
> available where you need to run cvt_cyrusdb on each file being stored in
> Berkeley database format. The easiest way to find those files is probably
> just to run a
> 
>   find /var/lib/imap |xargs file|grep -i berkeley
> 
> And then manually convert those files to flat format doing:
> 
>   cvt_cyrusdb /your/berkeley_db4.db berkeley /your/berkeley_flatfile flat
> 
> Then copy the files to your new installation and covert them back to
> Berkeley with your new berkeley db4 format (cumbersome but needed step)
> 
> 
> Good luck,
>   Best regards,
>  Jesper K. Pedersen

Doesn´t sound very good. 
The old server does not exist anymore.
On the other side I have a server that was upgraded and seems to use the old 
file format. How can I find out what version of Berkeley DB this cyrus is 
using?
Or are there any tools to do this without cyrus?

Harry

Harry

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


Re: does xfer require murder?

2006-04-19 Thread Ken Murchison

Perry Brown wrote:


Here is what my imapd.conf looks like:

defaultpartition: imap1
configdirectory: /var/imap
partition-imap1: /var/spool/imap1
admins: cyrus support
srvtab: /var/imap/srvtab
quotawarn: 85
popminpoll: 0
autocreatequota: 3
sasl_pwcheck_method: saslauthd
lmtp_over_quota_perm_failure: 1
allowusermoves:yes
proxy_authname: cyrus
proxy_password: password
proxyservers: cyrus


Just tested XFER on 2.2.13 and it works fine.  Your problem is that 
you've specified the password for a machine named 'proxy'.  Presumably, 
you want:


server1_password: password
server2_password: password

on the respective machines

--
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University

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


Re: Move from one server with 2.1.9 to another server with 2.2.3

2006-04-19 Thread throwaway-it
I did not see a reply to Martijn's inquiry.  I am particularly interested in 
question #2and #4 below, but in my case it's on a Solaris 5.8 (Cyrus 2.1.11) 
platform migrating to Linux AS 3.0 (Cyrus 2.2.12).
2.1.11 does not have the "xfer" command, 2.2.12 does.  Which release of 2.1.XX 
was the 'xfer' command introduced?  I did find it beginning in 2.2.3 
(non-beta/alpha), I believe.  
Do I have to upgrade from 2.1.11 to 2.2.3 to be able to use the 'xfer' 
function?  The Solaris box is being replaced by the Linux box and prefer not to 
upgrade if possible.  Thanks.

  Bob

> Date  Mon, 03 Jan 2005 18:56:11 +0100
> Toinfo-cyrus@lists.andrew.cmu.edu
> From  Martijn <[EMAIL PROTECTED]>
> Reply-To: Martijn <[EMAIL PROTECTED]>

>Hello all,

>I have a old server with Suse 8.2 and Cyrus 2.1.9 and have >setup new server 
>with Suse 9.1 and cyrus 2.2.3.Using >imapcopy (disabled the seen-flag) I 
>transfered the >mailboxes. On the new server folders without 
>>messages/contents are not listed with listmailbox nor can I >set ACL 
>permissions, cyradm will return the message >"Mailbox does not exist". 
>Squirrelmail will not list the >empty folders. Thunderbird shows the folders 
>in light gray >with italic fonts, it is not possible to subscribe to these 
>>folders.
>
>My questions:
>1. Is it possible to "recover" these folders/rights?
>
>when not:
>2. Can I use the xfer/xfermailbox cyradm command to move >the mailboxes from 
>2.1.9 to 2.2.3?
>
>when this is also not possible:
>3. How to upgrade using the exist mailbox?
> I had a look at the /doc/install-upgrade.html doc but the >section upgrading 
> from 2.1.x all wasn't to clear to me. I >think it is use full to upgrade the 
> db since skiplist is >faster. There are files in the /var/spool/imap/ folder 
> and >mailbox.db in /var/lib/imap/ is do I only need to upgrade >the 
> mailboxes.db?
>
>at last:
>4. It would possible to do the tranfser again with the >imapsynch script. But 
>will it work with cyrus version >2.2.3?
>
>Thank you in advance for any pointers they are appreciated >since this is 
>fairly new to me.
>Martijn


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


Re: expected release date for cyrus-imapd-2.3.4?

2006-04-19 Thread Ken Murchison

Andrzej Kwiatkowski wrote:

2006/4/19, Ken Murchison <[EMAIL PROTECTED]>:

Khalid Mehmood wrote:

What is the expected release date of
cyrus-imapd-2.3.4?

Hadn't even thought about it?

Is there a particular fix that you are looking for?




Hi. I'm not sure if this what i need is in 2.3.3.

But what with murder support for sieved ?


There has been Murder support for Sieve from day one.  timsieved sends 
referrals to clients, and sieveshell then connects to the referred backend.




I've read recently, that there is no proxy service for this
and client should connect directly to backend.

I want to use squirrelmail with avelsieve, but this
has no right to work with multiple backends...

Am i right ?


Any Sieve client that uses the MANAGESIEVE protocol with a Cyrus Murder 
should be written to handle referrals.


--
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University

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


Re: setting up tls

2006-04-19 Thread Chris Hilts
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

nikhil BS wrote:
> how do i setup cyrus to use the starttls command?i tried creating some
> certificates using openssl set the tls_cert_* fields in the imapd.conf
> file and have gotten nowhere. help please

What have you tried?  Post the relevant portions of your config.  We
need details to be able to help.

- --
Chris Hilts
[EMAIL PROTECTED]
Say it with flowers -- Send them a triffid!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFERj2R98ixrK2vMtARAjs2AJ4y2Dkc1QY91pwafF0Aw6IfpS5rVwCbBEG+
7Nsll2Ua4hJP9arvRG+s9AM=
=WY7L
-END PGP SIGNATURE-

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


Re: deleting mailboxes

2006-04-19 Thread Craig White
On Wed, 2006-04-19 at 15:41 +0530, nikhil BS wrote:
> hi
> how do we delete mailboxes in cyrus. i keep getting 'permission
> denied' message even after setting the deleteright option in the
> imapd.conf. what am i supposed to do?
> 

by default, cyrus admins don't have privileges to delete a mailbox so
you have to set it explicitly before you can delete...

For example...
sam user.craig cyrus lrswipcda
dm user.craig

Craig


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


Re: unixhierarchysep: 1 ... web interfaces ...

2006-04-19 Thread Matt Selsky

On Apr 18, 2006, at 4:55 PM, Marc G. Fournier wrote:


does anyone know of any that actually allow to switch from . -> /?

As an example, to check quotas, Horde webmail / IMP has a '  
"userhierarchy' => 'user.'" setting ... but its "hardcoded", so I  
can't easily have a "one interface for multiple domains" ...


so, I'm curious ... although the spec allows for it, does anyone  
actually every switch it to 1?  I'm starting to think I'm just  
going to go back to 'no first.last mailboxes', since there doesn't  
appear to be any easy/safe way to switch between the two from a PHP/ 
application level :(



f you have PHP > 4.3.0 then you don't actually need to set 'login',  
'password', or 'userhierarchy' for the Cyrus quota driver.  I just  
updated IMP HEAD to make that more obvious.



--
Matt


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


Restoring Mailboxes

2006-04-19 Thread Dr. Harry Knitter
Hello,

we have a problem to restore Cyrus mailboxes from an installation of SuSE 9.2 
which we want to transfer do a SuSE 10.0 installation.
We have backuped the directories /var/lib/imap and /var/spool/imap and copied 
them to the new installation.
after restarting Cyrus syslog was flooded with messages 



Apr 19 01:00:15 tux saslauthd[15007]: detach_tty  : master pid is: 15007
Apr 19 01:00:15 tux saslauthd[15007]: ipc_init: listening on 
socket: /var/run/sasl2//mux
Apr 19 01:00:22 tux master[15022]: setrlimit: Unable to set file descriptors 
limit to -1: Operation not permitted
Apr 19 01:00:22 tux master[15022]: retrying with 1024 (current max)
Apr 19 01:00:22 tux master[15022]: process started
Apr 19 01:00:22 tux master[15023]: about to 
exec /usr/lib/cyrus/bin/ctl_cyrusdb
Apr 19 01:00:22 tux ctl_cyrusdb[15023]: DBERROR � : db4
Apr 19 01:00:22 tux ctl_cyrusdb[15023]: DBERROR � : db4
Apr 19 01:00:22 tux ctl_cyrusdb[15023]: recovering cyrus databases
Apr 19 01:00:22 tux ctl_cyrusdb[15023]: skiplist: 
recovered /var/lib/imap/mailboxes.db (112 records, 13252 bytes) in 0 seconds
Apr 19 01:00:22 tux ctl_cyrusdb[15023]: skiplist: 
recovered /var/lib/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Apr 19 01:00:22 tux ctl_cyrusdb[15023]: DBERROR � : db4
Apr 19 01:00:22 tux ctl_cyrusdb[15023]: DBERROR � : db4
Apr 19 01:00:22 tux ctl_cyrusdb[15023]: DBERROR: critical database situation
Apr 19 01:00:22 tux master[15022]: process 15023 exited, status 75
Apr 19 01:00:22 tux master[15024]: about to exec /usr/lib/cyrus/bin/idled
Apr 19 01:00:22 tux idled[15024]: DBERROR � : db4
Apr 19 01:00:22 tux idled[15024]: DBERROR: critical database situation
Apr 19 01:00:22 tux master[15022]: process 15024 exited, status 75
Apr 19 01:00:22 tux master[15022]: SLPRegister [service:imap://tux.:143]
Apr 19 01:00:22 tux master[15022]: Error registering service with slp -20
Apr 19 01:00:22 tux master[15022]: SLPRegister [service:pop3://tux.:110]
Apr 19 01:00:22 tux master[15022]: Error registering service with slp -20
Apr 19 01:00:22 tux master[15022]: SLPRegister [service:sieve://tux.:2000]
Apr 19 01:00:22 tux master[15022]: Error registering service with slp -20
Apr 19 01:00:22 tux master[15022]: ready for work
Apr 19 01:00:22 tux master[15025]: about to 
exec /usr/lib/cyrus/bin/ctl_cyrusdb
Apr 19 01:00:22 tux ctl_cyrusdb[15025]: DBERROR � : db4
Apr 19 01:00:22 tux ctl_cyrusdb[15025]: DBERROR: critical database situation
Apr 19 01:00:22 tux master[15026]: about to exec /usr/lib/cyrus/bin/lmtpd
Apr 19 01:00:22 tux master[15022]: process 15025 exited, status 75
Apr 19 01:00:22 tux lmtpunix[15026]: DBERROR � : db4
Apr 19 01:00:22 tux lmtpunix[15026]: DBERROR: critical database situation
Apr 19 01:00:22 tux master[15022]: process 15026 exited, status 75
Apr 19 01:00:22 tux master[15022]: service lmtpunix pid 15026 in READY state: 
terminated abnormally
Apr 19 01:00:22 tux master[15027]: about to exec /usr/lib/cyrus/bin/lmtpd
Apr 19 01:00:22 tux lmtpunix[15027]: DBERROR � : db4
Apr 19 01:00:22 tux lmtpunix[15027]: DBERROR: critical database situation
Apr 19 01:00:24 tux master[15022]: process 15027 exited, status 75
Apr 19 01:00:24 tux master[15022]: service lmtpunix pid 15027 in READY state: 
terminated abnormally
Apr 19 01:00:24 tux master[15028]: about to exec /usr/lib/cyrus/bin/lmtpd
Apr 19 01:00:24 tux lmtpunix[15028]: DBERROR � : db4
Apr 19 01:00:24 tux lmtpunix[15028]: DBERROR: critical database situation
Apr 19 01:00:34 tux master[15022]: process 15028 exited, status 75
Apr 19 01:00:34 tux master[15022]: service lmtpunix pid 15028 in READY state: 
terminated abnormally
Apr 19 01:00:34 tux master[15029]: about to exec /usr/lib/cyrus/bin/lmtpd
Apr 19 01:00:34 tux lmtpunix[15029]: DBERROR � : db4
Apr 19 01:00:34 tux lmtpunix[15029]: DBERROR: critical database situation
Apr 19 01:00:44 tux master[15022]: process 15029 exited, status 75
Apr 19 01:00:44 tux master[15022]: service lmtpunix pid 15029 in READY state: 
terminated abnormally
Apr 19 01:00:44 tux master[15031]: about to exec /usr/lib/cyrus/bin/lmtpd
Apr 19 01:00:44 tux lmtpunix[15031]: DBERROR � : db4
Apr 19 01:00:44 tux lmtpunix[15031]: DBERROR: critical database situation
Apr 19 01:00:44 tux master[15022]: process 15031 exited, status 75
Apr 19 01:00:44 tux master[15022]: service lmtpunix pid 15031 in READY state: 
terminated abnormally
Apr 19 01:00:44 tux master[15032]: about to exec /usr/lib/cyrus/bin/lmtpd
Apr 19 01:00:44 tux lmtpunix[15032]: DBERROR � : db4
Apr 19 01:00:44 tux lmtpunix[15032]: DBERROR: critical database situation
Apr 19 01:00:54 tux master[15022]: process 15032 exited, status 75
Apr 19 01:00:54 tux master[15022]: service lmtpunix pid 15032 in READY state: 
terminated abnormally
Apr 19 01:00:54 tux master[15033]: about to exec /usr/lib/cyrus/bin/lmtpd
Apr 19 01:00:54 tux lmtpunix[15033]: DBERROR � : db4
Apr 19 01:00:54 tux lmtpunix[15033]: DBERROR: critical database situation
Apr 19 01:01:04 tux master[15022]: process 15033 exited, s

setting up tls

2006-04-19 Thread nikhil BS
hi
how do i setup cyrus to use the starttls command?i tried creating some
certificates using openssl set the tls_cert_* fields in the imapd.conf
file and have gotten nowhere. help please

regards 
nikhil

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

Re: expected release date for cyrus-imapd-2.3.4?

2006-04-19 Thread Andrzej Kwiatkowski
2006/4/19, Ken Murchison <[EMAIL PROTECTED]>:
> Khalid Mehmood wrote:
> > What is the expected release date of
> > cyrus-imapd-2.3.4?
>
> Hadn't even thought about it?
>
> Is there a particular fix that you are looking for?
>
>

Hi. I'm not sure if this what i need is in 2.3.3.

But what with murder support for sieved ?
I've read recently, that there is no proxy service for this
and client should connect directly to backend.

I want to use squirrelmail with avelsieve, but this
has no right to work with multiple backends...

Am i right ?

Thanks
AK

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


deleting mailboxes

2006-04-19 Thread nikhil BS
hi
how do we delete mailboxes in cyrus. i keep getting 'permission denied'
message even after setting the deleteright option in the imapd.conf.
what am i supposed to do?

regards 


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