Re: errors with irst attempt at usig db4 for imap backend ...

2006-03-28 Thread Sebastian Hagedorn
--On 28. März 2006 02:27:47 -0400 Marc G. Fournier [EMAIL PROTECTED] 
wrote:



master[62957]: process started
ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
file or directory
master[62957]: process 62959 exited, status 75
ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
file or directory
ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
file or directory
master[62957]: ready for work
ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
file or directory
ctl_cyrusdb[62959]: DBERROR: dbenv-open '/var/spool/imap/db' failed: No
such file or directory
ctl_cyrusdb[62959]: DBERROR: init() on berkeley
ctl_cyrusdb[62959]: DBERROR: writing /var/spool/imap/db/skipstamp: No
such file or directory
ctl_cyrusdb[62959]: DBERROR: init() on skiplist
ctl_cyrusdb[62959]: recovering cyrus databases
ctl_cyrusdb[62959]: IOERROR: creating directory /var/spool/imap:
Permission denied
ctl_cyrusdb[62959]: DBERROR: opening /var/spool/imap: cyrusdb error


Looks like your permissions are wrong.


Everything appears to be working fine, and after doing a 'restart' of the
master daemon, I'm not seeing any errors in the log file, so I'm just
wondering if its save to assume that the above 'errors' are actually, in
fact, benign?


If I were you I'd use skiplist for all the databases that are db4 by 
default ...

--
.:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
.:.Universität zu Köln / Cologne University - Tel. +49-221-478-5587.:.
  .:.:.:.Skype: shagedorn.:.:.:.

pgpe63xbtuTJM.pgp
Description: 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

Problems upgrading from 2.1.18 to 2.2.x

2006-03-28 Thread Matt Singerman
Hello,

I am trying to upgrade my version of Cyrus on a FreeBSD 6.0 machine. 
I was able to use the ports system to successfully upgrade, then
followed the instructions on Cyrus' webpage to update the database
structure and mailboxes.  I believe that that worked; however, when I
try to log into the mail server, I am prompted for my password, which
it cannot take.  Upon closer inspection of the logfile, it is saying
that the user is not found.  Is this because it is taking the full
[EMAIL PROTECTED] as the username and I have not declared a default domain? 
How may I change this?

Below is the relevant log file:

Mar 28 07:29:49 list master[19738]: process started
Mar 28 07:29:49 list ctl_cyrusdb[19739]: recovering cyrus databases
Mar 28 07:29:49 list ctl_cyrusdb[19739]: skiplist: recovered /var/imap/mailboxes
.db (225 records, 17660 bytes) in 0 seconds
Mar 28 07:29:49 list ctl_cyrusdb[19739]: done recovering cyrus databases
Mar 28 07:29:50 list master[19738]: ready for work
Mar 28 07:29:50 list ctl_cyrusdb[19740]: checkpointing cyrus databases
Mar 28 07:29:50 list ctl_cyrusdb[19740]: done checkpointing cyrus databases
Mar 28 07:29:53 list imap[19741]: no user in db
Mar 28 07:29:53 list imap[19741]: no user in db
Mar 28 07:29:53 list imap[19741]: badlogin: pool-72-75-20-22.washdc.east.verizon
.net [72.75.20.22] plaintext [EMAIL PROTECTED] SASL(-13): user not found:
checkpass failed
Mar 28 07:30:01 list imap[19741]: no user in db
Mar 28 07:30:01 list last message repeated 3 times
Mar 28 07:30:01 list imap[19741]: badlogin: pool-72-75-20-22.washdc.east.verizon
.net [72.75.20.22] plaintext [EMAIL PROTECTED] SASL(-13): user not found:
checkpass failed

Thanks for all help.

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


sync_client stop working suddenly

2006-03-28 Thread Patrice

Hi,

my sync_client stopped working since yesterday evening.
I have searched around , but no way to make it work again.
I tried to stop/start cyrus-imap but it does not help

my cyrus-imap version is: 2.3.1

when I do a 'ps' I don't see the 2 'sync_client' I used to have.
even when I launch it by hand it does not work:
'sync_client -C /etc/imapd-master.conf -r'

and even with verbose I don't see anything.
ssl certificates are still there and accessible.

on my replica I see this:
Mar 28 18:06:16 replica cyrus/master[6804]: process 6862 exited, 
signaled to death by 7


what could have happened ?
Does someone have an idea ?


Thank you for you help

Patrice



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


cleaning up mailbox.

2006-03-28 Thread Andrzej Kwiatkowski
Hello.

I've got next question.

My boss want to add next feature to clients.
He wants to take possibility to push some kind of
button which in action remove all mails from mailbox which are older f.e
7 days.

I've read about popexpiretime, but my boss want to do this via
configuration panel.

So maybe someone could write example IMAP session for this ?
Or any other solutions ?

Thanks in advance
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: pop3 connection timeout lock problem

2006-03-28 Thread Chad A. Prey
You may also be running out of randomness...

thymine # cat /proc/sys/kernel/random/entropy_avail
4096

If this number is zero or very low...that could be your
problem. /dev/random blocks if there's not enough
randomness.../dev/urandom does not.

a shot in the dark...

Chad P.

-- 


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: sync_client stop working suddenly

2006-03-28 Thread Ken Murchison

Patrice wrote:

Hi,

my sync_client stopped working since yesterday evening.
I have searched around , but no way to make it work again.
I tried to stop/start cyrus-imap but it does not help

my cyrus-imap version is: 2.3.1

when I do a 'ps' I don't see the 2 'sync_client' I used to have.
even when I launch it by hand it does not work:
'sync_client -C /etc/imapd-master.conf -r'

and even with verbose I don't see anything.
ssl certificates are still there and accessible.

on my replica I see this:
Mar 28 18:06:16 replica cyrus/master[6804]: process 6862 exited, 
signaled to death by 7


what could have happened ?
Does someone have an idea ?


Is sync_server running on the replica?  sync_client won't start if it 
can't connect to sync_server (something that I need to fix).


--
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: cleaning up mailbox.

2006-03-28 Thread Ken Murchison

Andrzej Kwiatkowski wrote:

Hello.

I've got next question.

My boss want to add next feature to clients.
He wants to take possibility to push some kind of
button which in action remove all mails from mailbox which are older f.e
7 days.

I've read about popexpiretime, but my boss want to do this via
configuration panel.

So maybe someone could write example IMAP session for this ?
Or any other solutions ?


You'll probably want to do something like this in your client:

SEARCH BEFORE date
STORE sequence from SEARCH response +flags \deleted
EXPUNGE

You'll have to look at RFC 3501 for details.

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


big problem: signaled to death by 7

2006-03-28 Thread Patrice

Hello,

I have big troubles with my lmtp and imapd process which ends with this 
error :

signaled to death by 7

pop3 is ok

can someone help me on this big problem ?

best regards

Patrice


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: sync_client stop working suddenly

2006-03-28 Thread Patrice

yes, it is working on replica
I have this thing into my imapd.log:

Mar 28 18:06:16 replica cyrus/master[6804]: process 6862 exited, 
signaled to death by 7


(just after the TLS connexion)
and a telnet on the csync port works well.

and I just had one other big  problem because this happened  on my 
principal cyrus-imap server ,
for imapd and lmtpd I had thousand of  process exiting with this kind of 
error:

exited, signaled to death by 7

just pop was working.

then I have taken the backup from saturday and the mailboxes from today. 
and now it is working again.


what is exactly the 7 signal ?
and would be the thing to do to not have this trouble happening again ?
ps: the configuration of cyrus-imap haven't been changed for a month.

thank you for you help Ken

Best Regards
Patrice



Ken Murchison wrote:


Patrice wrote:


Hi,

my sync_client stopped working since yesterday evening.
I have searched around , but no way to make it work again.
I tried to stop/start cyrus-imap but it does not help

my cyrus-imap version is: 2.3.1

when I do a 'ps' I don't see the 2 'sync_client' I used to have.
even when I launch it by hand it does not work:
'sync_client -C /etc/imapd-master.conf -r'

and even with verbose I don't see anything.
ssl certificates are still there and accessible.

on my replica I see this:
Mar 28 18:06:16 replica cyrus/master[6804]: process 6862 exited, 
signaled to death by 7


what could have happened ?
Does someone have an idea ?



Is sync_server running on the replica?  sync_client won't start if it 
can't connect to sync_server (something that I need to fix).






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: Problems upgrading from 2.1.18 to 2.2.x

2006-03-28 Thread Matt Singerman
Okay, after playing around with it for a while, I found that it was in
fact a domain mismatch.  However, after correcting this, I still come
up with an error - it appears to log me in correctly, but the mail
client (Thunderbird) then gives an error that the message format is
invalid.  I ran the database conversion listed in the instructions on
the Cyrus webpage.  /var/log/messages contains the following:

Mar 28 21:45:39 list master[36492]: process started
Mar 28 21:45:39 list ctl_cyrusdb[36493]: recovering cyrus databases
Mar 28 21:45:40 list ctl_cyrusdb[36493]: skiplist: recovered /var/imap/mailboxes
.db (225 records, 17588 bytes) in 0 seconds
Mar 28 21:45:40 list ctl_cyrusdb[36493]: done recovering cyrus databases
Mar 28 21:45:40 list master[36492]: ready for work
Mar 28 21:45:40 list ctl_cyrusdb[36494]: checkpointing cyrus databases
Mar 28 21:45:40 list ctl_cyrusdb[36494]: done checkpointing cyrus databases
Mar 28 21:45:43 list imap[36495]: no user in db
Mar 28 21:45:43 list imap[36495]: login: pool-72-75-20-22.washdc.east.verizon.ne
t [72.75.20.22] msingerman plaintext User logged in

Any ideas what it could be?

On 3/28/06, Matt Singerman [EMAIL PROTECTED] wrote:
 Hello,

 I am trying to upgrade my version of Cyrus on a FreeBSD 6.0 machine.
 I was able to use the ports system to successfully upgrade, then
 followed the instructions on Cyrus' webpage to update the database
 structure and mailboxes.  I believe that that worked; however, when I
 try to log into the mail server, I am prompted for my password, which
 it cannot take.  Upon closer inspection of the logfile, it is saying
 that the user is not found.  Is this because it is taking the full
 [EMAIL PROTECTED] as the username and I have not declared a default domain?
 How may I change this?

 Below is the relevant log file:

 Mar 28 07:29:49 list master[19738]: process started
 Mar 28 07:29:49 list ctl_cyrusdb[19739]: recovering cyrus databases
 Mar 28 07:29:49 list ctl_cyrusdb[19739]: skiplist: recovered 
 /var/imap/mailboxes
 .db (225 records, 17660 bytes) in 0 seconds
 Mar 28 07:29:49 list ctl_cyrusdb[19739]: done recovering cyrus databases
 Mar 28 07:29:50 list master[19738]: ready for work
 Mar 28 07:29:50 list ctl_cyrusdb[19740]: checkpointing cyrus databases
 Mar 28 07:29:50 list ctl_cyrusdb[19740]: done checkpointing cyrus databases
 Mar 28 07:29:53 list imap[19741]: no user in db
 Mar 28 07:29:53 list imap[19741]: no user in db
 Mar 28 07:29:53 list imap[19741]: badlogin: 
 pool-72-75-20-22.washdc.east.verizon
 .net [72.75.20.22] plaintext [EMAIL PROTECTED] SASL(-13): user not found:
 checkpass failed
 Mar 28 07:30:01 list imap[19741]: no user in db
 Mar 28 07:30:01 list last message repeated 3 times
 Mar 28 07:30:01 list imap[19741]: badlogin: 
 pool-72-75-20-22.washdc.east.verizon
 .net [72.75.20.22] plaintext [EMAIL PROTECTED] SASL(-13): user not found:
 checkpass failed

 Thanks for all help.


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: Problems upgrading from 2.1.18 to 2.2.x

2006-03-28 Thread Simon Matter
 Okay, after playing around with it for a while, I found that it was in
 fact a domain mismatch.  However, after correcting this, I still come
 up with an error - it appears to log me in correctly, but the mail
 client (Thunderbird) then gives an error that the message format is
 invalid.  I ran the database conversion listed in the instructions on
 the Cyrus webpage.  /var/log/messages contains the following:

 Mar 28 21:45:39 list master[36492]: process started
 Mar 28 21:45:39 list ctl_cyrusdb[36493]: recovering cyrus databases
 Mar 28 21:45:40 list ctl_cyrusdb[36493]: skiplist: recovered
 /var/imap/mailboxes
 .db (225 records, 17588 bytes) in 0 seconds
 Mar 28 21:45:40 list ctl_cyrusdb[36493]: done recovering cyrus databases
 Mar 28 21:45:40 list master[36492]: ready for work
 Mar 28 21:45:40 list ctl_cyrusdb[36494]: checkpointing cyrus databases
 Mar 28 21:45:40 list ctl_cyrusdb[36494]: done checkpointing cyrus
 databases
 Mar 28 21:45:43 list imap[36495]: no user in db
 Mar 28 21:45:43 list imap[36495]: login:
 pool-72-75-20-22.washdc.east.verizon.ne
 t [72.75.20.22] msingerman plaintext User logged in

 Any ideas what it could be?

I don't know but I think you should increase verbosity of debug messages
so you can find out easier. It's just a guess that somehow your message
store is not handled right now, maybe because of wrong dir hashing or
something else.

Simon


 On 3/28/06, Matt Singerman [EMAIL PROTECTED] wrote:
 Hello,

 I am trying to upgrade my version of Cyrus on a FreeBSD 6.0 machine.
 I was able to use the ports system to successfully upgrade, then
 followed the instructions on Cyrus' webpage to update the database
 structure and mailboxes.  I believe that that worked; however, when I
 try to log into the mail server, I am prompted for my password, which
 it cannot take.  Upon closer inspection of the logfile, it is saying
 that the user is not found.  Is this because it is taking the full
 [EMAIL PROTECTED] as the username and I have not declared a default domain?
 How may I change this?

 Below is the relevant log file:

 Mar 28 07:29:49 list master[19738]: process started
 Mar 28 07:29:49 list ctl_cyrusdb[19739]: recovering cyrus databases
 Mar 28 07:29:49 list ctl_cyrusdb[19739]: skiplist: recovered
 /var/imap/mailboxes
 .db (225 records, 17660 bytes) in 0 seconds
 Mar 28 07:29:49 list ctl_cyrusdb[19739]: done recovering cyrus databases
 Mar 28 07:29:50 list master[19738]: ready for work
 Mar 28 07:29:50 list ctl_cyrusdb[19740]: checkpointing cyrus databases
 Mar 28 07:29:50 list ctl_cyrusdb[19740]: done checkpointing cyrus
 databases
 Mar 28 07:29:53 list imap[19741]: no user in db
 Mar 28 07:29:53 list imap[19741]: no user in db
 Mar 28 07:29:53 list imap[19741]: badlogin:
 pool-72-75-20-22.washdc.east.verizon
 .net [72.75.20.22] plaintext [EMAIL PROTECTED] SASL(-13): user not
 found:
 checkpass failed
 Mar 28 07:30:01 list imap[19741]: no user in db
 Mar 28 07:30:01 list last message repeated 3 times
 Mar 28 07:30:01 list imap[19741]: badlogin:
 pool-72-75-20-22.washdc.east.verizon
 .net [72.75.20.22] plaintext [EMAIL PROTECTED] SASL(-13): user not
 found:
 checkpass failed

 Thanks for all help.

 
 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: errors with irst attempt at usig db4 for imap backend ...

2006-03-28 Thread Simon Matter
 On Tue, 28 Mar 2006, Sebastian Hagedorn wrote:

 --On 28. März 2006 02:27:47 -0400 Marc G. Fournier [EMAIL PROTECTED]
 wrote:

 master[62957]: process started
 ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
 file or directory
 master[62957]: process 62959 exited, status 75
 ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
 file or directory
 ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
 file or directory
 master[62957]: ready for work
 ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
 file or directory
 ctl_cyrusdb[62959]: DBERROR: dbenv-open '/var/spool/imap/db' failed:
 No
 such file or directory
 ctl_cyrusdb[62959]: DBERROR: init() on berkeley
 ctl_cyrusdb[62959]: DBERROR: writing /var/spool/imap/db/skipstamp: No
 such file or directory
 ctl_cyrusdb[62959]: DBERROR: init() on skiplist
 ctl_cyrusdb[62959]: recovering cyrus databases
 ctl_cyrusdb[62959]: IOERROR: creating directory /var/spool/imap:
 Permission denied
 ctl_cyrusdb[62959]: DBERROR: opening /var/spool/imap: cyrusdb error

 Looks like your permissions are wrong.

I think there are no wrong permissions but you simply do verbose logging
and when starting with not existing dbs, those logs appear and the dbs are
created. However, are you sure you really are using /var/spool/imap for
the databases? And, are you sure your cyrus group is cyrus, not mail,
which is usually the case.


 Permissions look okay:

 # ls -ld /var/spool/imap /var/spool/imap/*
 drwxr-xr-x  10 cyrus  cyrus   512 Mar 29 01:16 /var/spool/imap
 -rw---   1 cyrus  cyrus   144 Mar 29 01:16
 /var/spool/imap/annotations.db
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 29 01:16 /var/spool/imap/db
 drwx--   2 cyrus  cyrus   512 Mar 29 01:16 /var/spool/imap/db.backup1
 drwx--   2 cyrus  cyrus   512 Mar 29 00:30 /var/spool/imap/db.backup2
 -rw---   1 cyrus  cyrus  8192 Mar 28 06:26 /var/spool/imap/deliver.db
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:12 /var/spool/imap/log
 -rw---   1 cyrus  cyrus   328 Mar 29 01:16
 /var/spool/imap/mailboxes.db
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:12 /var/spool/imap/msg
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 11:52 /var/spool/imap/proc
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:12 /var/spool/imap/ptclient
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:13 /var/spool/imap/socket

 If I were you I'd use skiplist for all the databases that are db4 by
 default
 ...

 What is skiplist, and what does it give over db4?  And, of course, what
 drawbacks are there to it?

It's a database backend usable in cyrus instead of BDB. What it gives you
is that it usually works, the drawbacks are that it may be slower than BDB
in certain situations. In my case stability is most important and I
couldn't find anything to be slower or some kind of increased load when I
was swithing to skiplist only. But, the most important thing it gives you
is compatibility, you never depend on the BDB version of libs installed on
your system and you don't have to care about ondisk format of BDB files.
It has been a blessing for me and many others, YMMV.

Simon

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: errors with irst attempt at usig db4 for imap backend ...

2006-03-28 Thread Marc G. Fournier

On Wed, 29 Mar 2006, Simon Matter wrote:


On Tue, 28 Mar 2006, Sebastian Hagedorn wrote:


--On 28. März 2006 02:27:47 -0400 Marc G. Fournier [EMAIL PROTECTED]
wrote:


master[62957]: process started
ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
file or directory
master[62957]: process 62959 exited, status 75
ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
file or directory
ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
file or directory
master[62957]: ready for work
ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
file or directory
ctl_cyrusdb[62959]: DBERROR: dbenv-open '/var/spool/imap/db' failed:
No
such file or directory
ctl_cyrusdb[62959]: DBERROR: init() on berkeley
ctl_cyrusdb[62959]: DBERROR: writing /var/spool/imap/db/skipstamp: No
such file or directory
ctl_cyrusdb[62959]: DBERROR: init() on skiplist
ctl_cyrusdb[62959]: recovering cyrus databases
ctl_cyrusdb[62959]: IOERROR: creating directory /var/spool/imap:
Permission denied
ctl_cyrusdb[62959]: DBERROR: opening /var/spool/imap: cyrusdb error


Looks like your permissions are wrong.


I think there are no wrong permissions but you simply do verbose logging
and when starting with not existing dbs, those logs appear and the dbs are
created. However, are you sure you really are using /var/spool/imap for
the databases?


Definitely sure, its how I have it defined in my imapd.conf file ...

And, are you sure your cyrus group is cyrus, not mail, which is 
usually the case.


Now, this one is how mkimap is setting it up, so I'm pretty sure this is 
right ... not something I've ever set ... has never caused a problem, and 
been using cyrus-imapd for, god, 8+ years now ...



# ls -ld /var/spool/imap /var/spool/imap/*
drwxr-xr-x  10 cyrus  cyrus   512 Mar 29 01:16 /var/spool/imap
-rw---   1 cyrus  cyrus   144 Mar 29 01:16
/var/spool/imap/annotations.db
drwxr-xr-x   2 cyrus  cyrus   512 Mar 29 01:16 /var/spool/imap/db
drwx--   2 cyrus  cyrus   512 Mar 29 01:16 /var/spool/imap/db.backup1
drwx--   2 cyrus  cyrus   512 Mar 29 00:30 /var/spool/imap/db.backup2
-rw---   1 cyrus  cyrus  8192 Mar 28 06:26 /var/spool/imap/deliver.db
drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:12 /var/spool/imap/log
-rw---   1 cyrus  cyrus   328 Mar 29 01:16
/var/spool/imap/mailboxes.db
drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:12 /var/spool/imap/msg
drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 11:52 /var/spool/imap/proc
drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:12 /var/spool/imap/ptclient
drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:13 /var/spool/imap/socket


If I were you I'd use skiplist for all the databases that are db4 by
default
...


What is skiplist, and what does it give over db4?  And, of course, what
drawbacks are there to it?


It's a database backend usable in cyrus instead of BDB. What it gives you
is that it usually works, the drawbacks are that it may be slower than BDB
in certain situations. In my case stability is most important and I
couldn't find anything to be slower or some kind of increased load when I
was swithing to skiplist only. But, the most important thing it gives you
is compatibility, you never depend on the BDB version of libs installed on
your system and you don't have to care about ondisk format of BDB files.
It has been a blessing for me and many others, YMMV.


'k, first question ..  under what situation would I find it slower?  And 
is it noticeable, or would I have to really be looking for it?


And ... were I to go this route ... what's involved in converting an 
existing installation?  Is it relatively easy to do?



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: errors with irst attempt at usig db4 for imap backend ...

2006-03-28 Thread Marc G. Fournier

On Wed, 29 Mar 2006, Simon Matter wrote:


And ... were I to go this route ... what's involved in converting an
existing installation?  Is it relatively easy to do?


Depends on which version of cyrus-imapd you are running. With current
versions, the database backends are runtime configurable. DB conversion is
done once by hand using cvt_cyrusdb, and you have to configure cyrus
accordingly.


'k, I'm currently running 2.2.x ...

Now, looking at the man page, I'm not sure how I'd do /var/spool/imap/db 
itself ... do I run it on each individual file in that directory, or ... ?



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: errors with irst attempt at usig db4 for imap backend ...

2006-03-28 Thread Simon Matter
 On Wed, 29 Mar 2006, Simon Matter wrote:

 On Tue, 28 Mar 2006, Sebastian Hagedorn wrote:

 --On 28. März 2006 02:27:47 -0400 Marc G. Fournier [EMAIL PROTECTED]
 wrote:

 master[62957]: process started
 ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
 file or directory
 master[62957]: process 62959 exited, status 75
 ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
 file or directory
 ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
 file or directory
 master[62957]: ready for work
 ctl_cyrusdb[62959]: DBERROR db4: /var/spool/imap/db/__db.001: No such
 file or directory
 ctl_cyrusdb[62959]: DBERROR: dbenv-open '/var/spool/imap/db' failed:
 No
 such file or directory
 ctl_cyrusdb[62959]: DBERROR: init() on berkeley
 ctl_cyrusdb[62959]: DBERROR: writing /var/spool/imap/db/skipstamp: No
 such file or directory
 ctl_cyrusdb[62959]: DBERROR: init() on skiplist
 ctl_cyrusdb[62959]: recovering cyrus databases
 ctl_cyrusdb[62959]: IOERROR: creating directory /var/spool/imap:
 Permission denied
 ctl_cyrusdb[62959]: DBERROR: opening /var/spool/imap: cyrusdb error

 Looks like your permissions are wrong.

 I think there are no wrong permissions but you simply do verbose logging
 and when starting with not existing dbs, those logs appear and the dbs
 are
 created. However, are you sure you really are using /var/spool/imap for
 the databases?

 Definitely sure, its how I have it defined in my imapd.conf file ...

 And, are you sure your cyrus group is cyrus, not mail, which is
 usually the case.

 Now, this one is how mkimap is setting it up, so I'm pretty sure this is
 right ... not something I've ever set ... has never caused a problem, and
 been using cyrus-imapd for, god, 8+ years now ...

 # ls -ld /var/spool/imap /var/spool/imap/*
 drwxr-xr-x  10 cyrus  cyrus   512 Mar 29 01:16 /var/spool/imap
 -rw---   1 cyrus  cyrus   144 Mar 29 01:16
 /var/spool/imap/annotations.db
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 29 01:16 /var/spool/imap/db
 drwx--   2 cyrus  cyrus   512 Mar 29 01:16
 /var/spool/imap/db.backup1
 drwx--   2 cyrus  cyrus   512 Mar 29 00:30
 /var/spool/imap/db.backup2
 -rw---   1 cyrus  cyrus  8192 Mar 28 06:26
 /var/spool/imap/deliver.db
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:12 /var/spool/imap/log
 -rw---   1 cyrus  cyrus   328 Mar 29 01:16
 /var/spool/imap/mailboxes.db
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:12 /var/spool/imap/msg
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 11:52 /var/spool/imap/proc
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:12 /var/spool/imap/ptclient
 drwxr-xr-x   2 cyrus  cyrus   512 Mar 28 06:13 /var/spool/imap/socket

 If I were you I'd use skiplist for all the databases that are db4 by
 default
 ...

 What is skiplist, and what does it give over db4?  And, of course, what
 drawbacks are there to it?

 It's a database backend usable in cyrus instead of BDB. What it gives
 you
 is that it usually works, the drawbacks are that it may be slower than
 BDB
 in certain situations. In my case stability is most important and I
 couldn't find anything to be slower or some kind of increased load when
 I
 was swithing to skiplist only. But, the most important thing it gives
 you
 is compatibility, you never depend on the BDB version of libs installed
 on
 your system and you don't have to care about ondisk format of BDB files.
 It has been a blessing for me and many others, YMMV.

 'k, first question ..  under what situation would I find it slower?  And
 is it noticeable, or would I have to really be looking for it?

In theory, I've been told, it should be slower for tls_sessions.db and
deliver.db. However, I have NEVER seen anything to be slower, even on
quite large servers.


 And ... were I to go this route ... what's involved in converting an
 existing installation?  Is it relatively easy to do?

Depends on which version of cyrus-imapd you are running. With current
versions, the database backends are runtime configurable. DB conversion is
done once by hand using cvt_cyrusdb, and you have to configure cyrus
accordingly.

Simon

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