Re: Performance in 64-bit?

2006-12-14 Thread Greg A. Woods
At Thu, 14 Dec 2006 15:09:37 -0800,
Andrew Laurence wrote:
> 
> I've seen occasional conversation here regarding running Cyrus in 
> 64-bit mode,

The use of the phrase "64-bit mode" implies restricting the
converstation to those architectures which have the ability to support
different modes of execution, e.g. the UltraSPARC and AMD64 CPUs.  :-)


> but is there an advantage aside from very large quotas? 

Unless your C compiler is in the dark ages there shouldn't be any need
to run on a 64-bit CPU just to be able to use 64-bit integers such as
those used for large quotas.


> Is Cyrus known to run faster in 64-bit, for instance?

Well that depends on what your definitino of "faster" is.

In one environment I support it would be impossible to manage the same
user load on a machine without more than 4GB of RAM and so without
running it on a true 64-bit platform with more than 32-bit direct
addressing (we use an AlphaServer ES40 with 16GB of RAM and four
processors) the speed would be "infinitely" slow, i.e. it wouldn't run
at all.  I.e. there's usually a lot more to a _system_ than just a
single instance of a program running on a given processor.

FYI the Alpha CPU, with the right associated machine architecture, runs
applications quite well -- i.e. with comparable and sometimes better
performance than, say, 32-bit Intel CPUs of the same generation, and to
the best of my knowledge the Alpha only supports 64-bit execution.
Often applications running on an Alpha will require more RAM, but
usually the memory and cache architecture are designed in such a way
that this doesn't adversely affect their performance.  I'd venture to
guess that the same can be said of an AMD64 (in 64-bit mode), as well as
the newer 64-bit SPARC machines (again, in 64-bit mode).

-- 
Greg A. Woods

H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <[EMAIL PROTECTED]>
Planix, Inc. <[EMAIL PROTECTED]>   Secrets of the Weird <[EMAIL PROTECTED]>

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


Re: Global Sieve Script

2006-12-14 Thread Sebastian Hagedorn
-- Federico Sevilla III <[EMAIL PROTECTED]> is rumored to have mumbled on 15. 
Dezember 2006 01:44:54 +0800 regarding Global Sieve Script:



I would like to create a "global" sieve script that will be active for
all users, regardless of the presence of a per-user sieve script or not.


Can't be done.


I have already created and activated a script placed in the global
namespace, but this doesn't seem to be run for all users (actually, it
doesn't seem to be run for any users).

Is my understanding of what a "global script" is correct?


No.


Or do global
scripts still need to be included


Yes.
--
Sebastian Hagedorn - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587

pgpfQsMfLSaDE.pgp
Description: PGP signature

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

Performance in 64-bit?

2006-12-14 Thread Andrew Laurence

Hi all,

I've seen occasional conversation here regarding running Cyrus in 
64-bit mode, but is there an advantage aside from very large quotas? 
Is Cyrus known to run faster in 64-bit, for instance?


Thanks,
Andrew

--
Andrew Laurence   [EMAIL PROTECTED]
Central Computing Serviceshttp://www.nacs.uci.edu/~atlauren/
Network & Academic Computing Svcs.
University of California, Irvine

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


Re: cyrus replication question

2006-12-14 Thread Wesley Craig

On 14 Dec 2006, at 13:43, stas khromoy wrote:

i looked at the size of my imap/user folder on replica (1.9gb)
and size of the same folder on master (2.4gb)


First, I'd try to fix the "bailing out" problem you're having.  Or,  
if you want to just get things closer to correct, invoke:


sync_client -v -l -u username

once for every user.  That way, when it encounters one bad user, it  
won't stop.  Of course, you may have many "bad" users, as well.  If  
you still have problems once all the "bad" users are corrected, then  
we can debug the size differences.


:wes

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


Re: cyrus replication question

2006-12-14 Thread stas khromoy
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

thanks for all your help, wesley

i'll try this as soon as i can

there is one question that is till puzzling me thou

when it replicates, it ignores inactive folders
for some reason

i looked at the size of my imap/user folder on replica (1.9gb)
and size of the same folder on master (2.4gb)

i am sure other mailboxes have the same issue
since the size of imap/user on replica is smaller then on master

any ideas ? or is it normal
i checked all the logs i dont see anything that could hint on the
problem if there is one


by inactive folders i mean folders that u use to store emails
and don't touch often

thanks again



Wesley Craig wrote:
> On 14 Dec 2006, at 09:41, stas khromoy wrote:
>> i've noticed that for only one
>> of the users
>> i get the following error
>>
>> Error from do_user(-l): bailing out!
>>
>> in the list archives i found some one with a similar issue
>> (at least is sounded like it)
> 
> That's the error that you'd get from sync_client.  Probably a more
> detailed error is in syslog, and even more detail is likely to be
> available from sync_server on the replica.
> 
>> the advice was to to reconstruct the mailbox
>> but on which machine - master or replica ?
> 
> reconstruct on the master.  Probably I'd run sync_reset on the user in
> question on the replica as well.  Then sync_client -u again.
> 
> :wes
> 
>> also i don't see that error in the logs
>> it comes as output of sync_client -l -v -u (user list)
> 
> The error in the logs is probably more detailed, something like "server
> responded with NO" etc.
> 
> :wes
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRYGbatbpM15f9s9nAQIAVwP+N2cdqdlhnhFsJdKvhqez2SvZ1KDI/HcT
2AzIdLtRiLztLr+k0aOwtO6lUXFogA/iWULDlkDyqhaHfa0v0mXzDK9fb8tJexXS
e96AtNRjwb+sVrXKvRzcMsgtMMCdEij5MIC1rLm60lTNzi1T75WC0cWQ2BkKRDbs
HVkQ4zEPXiA=
=BG0M
-END PGP SIGNATURE-

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


Global Sieve Script

2006-12-14 Thread Federico Sevilla III
Hi,

I would like to create a "global" sieve script that will be active for
all users, regardless of the presence of a per-user sieve script or not.
This is so that all spam marked by amavis with the X-Spam-Status header
can be segregated into spam folders.

I have already created and activated a script placed in the global
namespace, but this doesn't seem to be run for all users (actually, it
doesn't seem to be run for any users).

Is my understanding of what a "global script" is correct? Or do global
scripts still need to be included or otherwise referenced in per-user
scripts?

If anyone has a recipe for scripts that are activated for all users
without requiring individual scripts in the users' sieve folders, please
do share this.

Thanks!

(PS- would appreciate if I can be cc'd replies)

-- 
Federico Sevilla III
F S 3 Consulting Inc.
http://www.fs3.ph

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


Outlook Express and IMAP connections - thousands of them?

2006-12-14 Thread Anthony Tibbs

Hi everyone,

I've been using Outlook Express with Cyrus now for several years (since 
2002), have set it up on many different computers, and have never run into 
this before.  I have one user who is also using OE, and their OE is doing 
something very strange - it's disconnecting and reconnecting for every 
folder it checks, leading to (litreally) thousands of lines a day indicating 
a new login:


Dec 14 12:02:25 polaris imap[26772]: login: clientHost [69.xxx.xxx.xxx] 
@tibbs.ca plaintext User logged in
Dec 14 12:02:25 polaris imap[26170]: login: clientHost [69.xxx.xxx.xxx] 
@tibbs.ca plaintext User logged in
Dec 14 12:02:26 polaris imap[26170]: login: clientHost [69.xxx.xxx.xxx] 
@tibbs.ca plaintext User logged in
Dec 14 12:02:26 polaris imap[26772]: login: clientHost [69.xxx.xxx.xxx] 
@tibbs.ca plaintext User logged in
Dec 14 12:02:27 polaris imap[26772]: login: clientHost [69.xxx.xxx.xxx] 
@tibbs.ca plaintext User logged in


... and so on.  Looking at the telemetry logs, there doesn't seem to be 
anything "unusual," or any errors or anything (see below).


Is there a setting somewhre that I don't know aobut that would affect this?


-- @tibbs.ca Thu Dec 14 12:07:03 2006

1166116023>he0o OK User logged in

<1166116023
1166116023>+ idling

<1166116023
1166116023>dmip OK Completed

<1166116023
1166116023>* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)

* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1164770668]
* OK [UIDNEXT 1]
ld73 OK [READ-WRITE] Completed
<1166116023
1166116023>+ idling

<1166116023
1166116023>mqu8 OK Completed

<1166116024
1166116024>kd8l OK Completed

<1166116024
1166116024>+ idling


-- @tibbs.ca Thu Dec 14 12:07:04 2006

1166116024>136z OK User logged in

<1166116024
1166116024>+ idling

<1166116024
1166116024>nh4o OK Completed

<1166116024
1166116024>* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)

* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
* 10 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1164770606]
* OK [UIDNEXT 16]
lwev OK [READ-WRITE] Completed
<1166116024
1166116024>+ idling


-- @tibbs.ca Thu Dec 14 12:07:05 2006

1166116025>gvti OK User logged in

<1166116025<8fw3 IDLE

1166116025>+ idling

.. and so on.



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


Re: cyrus replication question

2006-12-14 Thread Wesley Craig

On 14 Dec 2006, at 09:41, stas khromoy wrote:

i've noticed that for only one
of the users
i get the following error

Error from do_user(-l): bailing out!

in the list archives i found some one with a similar issue
(at least is sounded like it)


That's the error that you'd get from sync_client.  Probably a more  
detailed error is in syslog, and even more detail is likely to be  
available from sync_server on the replica.



the advice was to to reconstruct the mailbox
but on which machine - master or replica ?


reconstruct on the master.  Probably I'd run sync_reset on the user  
in question on the replica as well.  Then sync_client -u again.


:wes


also i don't see that error in the logs
it comes as output of sync_client -l -v -u (user list)


The error in the logs is probably more detailed, something like  
"server responded with NO" etc.


:wes

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


Re: cyrus replication question

2006-12-14 Thread stas khromoy



still battling with replication :)

i've noticed that for only one
of the users
i get the following error

Error from do_user(-l): bailing out!

in the list archives i found some one with a similar issue
(at least is sounded like it)

the advice was to to reconstruct the mailbox
but on which machine - master or replica ?

also i don't see that error in the logs
it comes as output of sync_client -l -v -u (user list)


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


Re: cyrus replication question

2006-12-14 Thread stas khromoy
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

still battling with replication :)

i've noticed that for only one
of the users
i get the following error

Error from do_user(-l): bailing out!

in the list archives i found some one with a similar issue
(at least is sounded like it)

the advice was to to reconstruct the mailbox
but on which machine - master or replica ?

also i don't see that error in the logs
it comes as output of sync_client -l -v -u (user list)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRYFisdbpM15f9s9nAQLLKQP+LZKXIPDkTr+GPKWjNxZxQMU/jco9xNxU
aALb+Xsh04Fhu6IovI4rXLOHBc7m46kTI/2SHqhlTtdFcVxJYfp/sPFxSJncnPjd
ECDDfeYte1Yj+jUO12yzUze8YWIPEZnUEnAE+ia4TK97C9oP//r/XRRzCt9E1XqA
CNyoZxDQNzE=
=8hR2
-END PGP SIGNATURE-

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


Re: Newbie maillog errors

2006-12-14 Thread Leon Kolchinsky
> 
> On Wed, 2006-12-13 at 13:54 -0500, Tom Plancon wrote:
> 
> > I've sort of inherited managing a cyrus 2.2.12 email server with postfix
> > on a FC4 linux box. Generally things run smoothly, but I'm still getting
> > up to speed and I see some errors regularly appearing in the maillog.
> > The two most frequent are:
> >
> > Dec 13 13:16:41 pelican imap[6609]: SQUAT failed to open index file
> > Dec 13 13:16:41 pelican imap[6609]: SQUAT failed
> >

This will create the SQUAT index:

Add something like the following to the EVENTS section of cyrus.conf:

squat   cmd="squatter -r user" at=0300

This will run the given command at 3am every day.

Or

run the following script as a cronjob every night:
#!/bin/bash
su - cyrus -c "/usr/lib/cyrus/bin/squatter -r user/*"

> > And
> >
> > Dec 13 13:18:14 pelican lmtpunix[6857]: IOERROR: fstating sieve script
> > /var/lib/imap/sieve/x/xuser/defaultbc: No such file or directory
> 

This is not an error AFAIK, it just saying you don't have default sieve
script at user directory.


> Result of debug level logging in your syslog.conf
> Decrease it to info.
> 
> MJ
> 



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


Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'

2006-12-14 Thread Oliver Falk

Am 2006-12-14 12:38, Oliver Falk schrieb:

Hi Chaskiel!

Am 2006-12-12 20:06, Chaskiel M Grundman schrieb:
--On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra 
<[EMAIL PROTECTED]> wrote:


cyrusdb_berkeley.c:176: error: structure has no member named 
`set_lk_max'


set_lk_max has been deprecated since DB 4.0. I guess it was finally 
removed.


The following patch may be used to work around this:

[ ... ]

Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not)


I'm trying to rebuild my Cyrus IMAP rpm packge for 'Fedora Development'. 
 Fedora just updated DB4 to 4.5.20. The above patch will - I expect, 
because the error with set_lk_max is the same - be needed for 4.5.20 as 
well. However; I just wanted to know if anyone has experience with DB 
4.5 already or not!? If not with 4.4 I don't think anyone tried 4.5!?


Just saw, that berkdb.m4 needs patching for db4.5:
--- cyrus-imapd-2.3.7/cmulocal/berkdb.m4.db4.5  2006-12-14 
12:59:53.0 +0100
+++ cyrus-imapd-2.3.7/cmulocal/berkdb.m42006-12-14 
12:59:59.0 +0100

@@ -213,7 +213,7 @@
fi

saved_LIBS=$LIBS
-for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 
db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 
db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
+for dbname in db-4.5 db4.5 db45 db-4.4 db4.4 db44 db-4.3 db4.3 
db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 
db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db

   do
LIBS="$saved_LIBS -l$dbname"
AC_TRY_LINK([#include ],

-of

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


Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'

2006-12-14 Thread Oliver Falk

Hi Chaskiel!

Am 2006-12-12 20:06, Chaskiel M Grundman schrieb:
--On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra 
<[EMAIL PROTECTED]> wrote:



cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max'


set_lk_max has been deprecated since DB 4.0. I guess it was finally 
removed.


The following patch may be used to work around this:

[ ... ]

Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not)


I'm trying to rebuild my Cyrus IMAP rpm packge for 'Fedora Development'. 
 Fedora just updated DB4 to 4.5.20. The above patch will - I expect, 
because the error with set_lk_max is the same - be needed for 4.5.20 as 
well. However; I just wanted to know if anyone has experience with DB 
4.5 already or not!? If not with 4.4 I don't think anyone tried 4.5!?


Best,
 Oliver

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


Mailbox is locked by POP server

2006-12-14 Thread Martin Schiøtz

Hi

I'm using cyrus-imapd-2.3.1-2.6. I sometimes get this pop3 error. The
user can login but not receive mails. I get the error for different
pop3 users. Can somebody help?

Dec  3 20:13:57 BlackPete pop3[15503]: login:
0x50a33597.unknown.tele.dk [80.163.53.151] 20ba plaintext User
logged in
Dec  3 20:13:57 BlackPete pop3[15503]: Unable to lock maildrop
user.20ba: Mailbox is locked by POP server

- Martin

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