Re: sync_client doesn't sync sieve scripts

2007-03-27 Thread David Carter

On Mon, 26 Mar 2007, Dmitriy Kirhlarov wrote:


I have properly configured sync between two cyrus-imapd 2.3.8 servers.
Mailboxes rolling synchronization work good.


This also updates sieve scripts.


Now I want to synchronized sieve scripts too.

sync_client -v -s
sync_client -v -s $username


-s is new in 2.3, but it looks like it was only there for testing.
The manual page says:

  Principally used for debugging purposes: not exposed to sync_client

-u should replicate an entire user including the Sieve files.

--
David Carter Email: [EMAIL PROTECTED]
University Computing Service,Phone: (01223) 334502
New Museums Site, Pembroke Street,   Fax:   (01223) 334679
Cambridge UK. CB2 3QH.

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: sync_client doesn't sync sieve scripts

2007-03-27 Thread Dmitriy Kirhlarov
On Tue, Mar 27, 2007 at 09:44:56AM +0100, David Carter wrote:
 On Mon, 26 Mar 2007, Dmitriy Kirhlarov wrote:
 
 I have properly configured sync between two cyrus-imapd 2.3.8 servers.
 Mailboxes rolling synchronization work good.
 
 This also updates sieve scripts.
 
 Now I want to synchronized sieve scripts too.
 
 sync_client -v -s
 sync_client -v -s $username
 
 -s is new in 2.3, but it looks like it was only there for testing.
 The manual page says:
 
   Principally used for debugging purposes: not exposed to sync_client
 
 -u should replicate an entire user including the Sieve files.

Doesn't work. Replicate only folders.

WBR
-- 
Dmitriy Kirhlarov
OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia
P:+7 495 105 7245 ext.208 F:+7 495 105 7246 E:[EMAIL PROTECTED]
Building Successful Supply Chains - One Solution At A Time.
www.oilspace.com

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: POP3 to CyrusIMAP migration howto ?

2007-03-27 Thread Dmitriy Kirhlarov
On Tue, Mar 27, 2007 at 10:15:26AM +0530, BipinDas wrote:

 I would like to migrate my existing POP3 inboxs to newly created Cyrus IMAP 
 mailbox. 
 Is anybody gone across  this requirement.
 Please give me a right solution.

http://mailsync.sourceforge.net/

WBR
-- 
Dmitriy Kirhlarov
OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia
P:+7 495 105 7245 ext.208 F:+7 495 105 7246 E:[EMAIL PROTECTED]
Building Successful Supply Chains - One Solution At A Time.
www.oilspace.com

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: sync_client doesn't sync sieve scripts

2007-03-27 Thread Bron Gondwana
On Tue, Mar 27, 2007 at 02:48:00PM +0400, Dmitriy Kirhlarov wrote:
 On Tue, Mar 27, 2007 at 09:44:56AM +0100, David Carter wrote:
  On Mon, 26 Mar 2007, Dmitriy Kirhlarov wrote:
  
  I have properly configured sync between two cyrus-imapd 2.3.8 servers.
  Mailboxes rolling synchronization work good.
  
  This also updates sieve scripts.
  
  Now I want to synchronized sieve scripts too.
  
  sync_client -v -s
  sync_client -v -s $username
  
  -s is new in 2.3, but it looks like it was only there for testing.
  The manual page says:
  
Principally used for debugging purposes: not exposed to sync_client
  
  -u should replicate an entire user including the Sieve files.
 
 Doesn't work. Replicate only folders.

Are you perhaps creating the sieve files directly rather than uploading
them via timsieved?

Are you perhaps creating a file called default as a file?

I only ask because we had the same problem, and it turns out that the
correct directory layout for sieve files is actually something like our
final layout of:

[EMAIL PROTECTED] brong]$ ls -la
total 13
drwx--2 cyrus mail  144 Sep 26 10:38 .
drwx--  189 cyrus mail 5408 Mar 25 07:38 ..
lrwxrwxrwx1 cyrus mail   11 Nov  7 23:40 defaultbc - websieve.bc
-rw---1 cyrus mail 3776 Sep 26 10:33 websieve.bc
-rw---1 cyrus mail 3020 Sep 26 10:33 websieve.script

Where websieve.script is uploaded via timsieved from our web servers.

This synchronises correctly, and I'm pretty sure we aren't applying any
patches related to sieve support (but feel free to check out our collection
at http://cyrus.brong.fastmail.fm/)

Regards,

Bron.

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: Q: Disabling IMAP REFERRAL?

2007-03-27 Thread Frank Richter
  I'm setting up a standard Murder: 2 backends, 2 frontends
  (Linux, cyrus-imapd 2.3.8, Simon's RPM).
 
  Our backend servers should not support the whole authentication mechs.
  So is it possible to disable the IMAP REFERRAL feature (like for Sieve
  sieve_allowreferrals: 0)?
 
 We do this on cyrus 2.2.x with a patch given to us. 
[...]
 You can download the patch from:
 
   http://oregonstate.edu/~morgan/cyrus/patches/

Thanks, I adapted it for 2.3.8:
http://www-user.tu-chemnitz.de/~fri/cyrus-imapd-patches/

IMAP REFERRALS can be disabled by /etc/imapd.conf:
proxyd_disable_mailbox_referrals: 1

Seems to work for me (tried with pine).

Regards,
Frank

-- 
Email: [EMAIL PROTECTED]  http://www.tu-chemnitz.de/~fri/
Work:  Computing Services,  Chemnitz University of Technology,  Germany

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: sync_client doesn't sync sieve scripts

2007-03-27 Thread Dmitriy Kirhlarov
On Tue, Mar 27, 2007 at 09:49:22PM +1000, Bron Gondwana wrote:

   -u should replicate an entire user including the Sieve files.
  
  Doesn't work. Replicate only folders.
 
 Are you perhaps creating the sieve files directly rather than uploading
 them via timsieved?

Uploaded over sieveshell+timsieved.

 Are you perhaps creating a file called default as a file?

You mean activate action in sieveshell? Yes. I did this.

 I only ask because we had the same problem, and it turns out that the
 correct directory layout for sieve files is actually something like our
 final layout of:
 
 [EMAIL PROTECTED] brong]$ ls -la
^^^
It's interesting...

jailhost2# ls -lR /var/imap/sieve/
total 2
drwx--  2 cyrus  cyrus  512 Mar 27 12:01 global

/var/imap/sieve/global:
total 4
lrwx--  1 cyrus  cyrus7 Mar 27 12:01 defaultbc - mdrm.bc
-rw---  1 cyrus  cyrus  124 Mar 27 12:01 mdrm.bc
-rw---  1 cyrus  cyrus   83 Mar 27 12:01 mdrm.script

I have only global subdirectory. Global? Is it correct?

I find a problem!
It's resolved now!

If sieve script uploaded from admin user, it's a global script and
doesn't replicate!
When I remove my ID from admins list, I get my own sieve directory
with my scripts.

Thnx!

WBR
-- 
Dmitriy Kirhlarov
OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia
P:+7 495 105 7245 ext.208 F:+7 495 105 7246 E:[EMAIL PROTECTED]
Building Successful Supply Chains - One Solution At A Time.
www.oilspace.com

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


Fatal error: failed to mmap cache file

2007-03-27 Thread Ian P. Christian

I have a mailbox on my server wither just under 6600 emails in it.

The cyrus.cache file is 1/2 a gig in size:

# ls -lah cyrus.*
-rw--- 1 cyrus mail 536M Mar 27 13:46 cyrus.cache
-rw--- 1 cyrus mail  171 Mar 27 13:12 cyrus.header
-rw--- 1 cyrus mail 386K Mar 27 13:46 cyrus.index


When a user attempts to access their mailbox, I see this in the logs:

imaplo[29053]: login: localhost [127.0.0.1] [EMAIL PROTECTED] 
plaintext User logged in
imaplo[29053]: IOERROR: mapping cache file for 
domain.com!user.postmaster: Cannot allocate memory

imaplo[29053]: Fatal error: failed to mmap cache file
master[29953]: process 29053 exited, status 75
master[29953]: service imaplo pid 29053 in BUSY state: terminated abnormally


Can anyone suggest what might be causing this?

Kind Regards,

--
Ian P. Christian ~ http://pookey.co.uk

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: POP3 to CyrusIMAP migration howto ?

2007-03-27 Thread Florian Gleixner
This may sound stupid, but if you only have a couple of mailboxes the
easiest way may be this one:
Configure both the pop3 and the new imap account in thunderbird, select
all mails with CTRL-a and dragdrop the mails in a imap folder.
Thunderbird moves all mails (takes some time) and retains the status
(mail has been read or not).
Copied  1 mails without a problem.


BipinDas schrieb:
 Hi All,
 I would like to migrate my existing POP3 inboxs to newly created Cyrus
 IMAP mailbox. Is anybody gone across  this requirement.
 Please give me a right solution.
 Thanks in advance.
 -- 
 

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: Sieve issue with Cyrus on RHEL4

2007-03-27 Thread David Chait

Michael Menge wrote:

Hi David,

there are many reasons why a script may not work. The Answers to the 
followin questions may help.


1. How does the script fail?
2. Are you able to install the script with timsive?
3. Can you send the script, and the imapd.conf
   the value of sieve_extensions is important.
4. Does the logfile shows errors or other hints?

regards

Michael Menge


Michael,
   The script fails in that no email response is sent to the original 
sender, though I have not been able to locate a log file entry showing 
the error specifically. The vacation filter is being created and 
installed by avelsieve:


3 files are created by avelsieve in the user's sieve dir:

phpscript.script:

# This script has been automatically generated by avelsieve
# (Sieve Mail Filters Plugin for Squirrelmail)
#AVELSIEVE_VERSIONYTo0OntzOjU6Im1ham9yIjtpOjE7czo1OiJtaW5vciI7aTowO3M6NzoicmVsZWFzZSI7aToxO3M6Njoic3RyaW5nIjtzOjU6IjEuMC4xIjt9
#AVELSIEVE_CREATED1174933731
#AVELSIEVE_MODIFIED1174933731
require 
[fileinto,reject,vacation,imapflags,relational,comparator-i;ascii-numeric,regex,notify];

if
#START_SIEVE_RULEYTo1OntzOjQ6InR5cGUiO3M6MToiNCI7czo2OiJhY3Rpb24iO3M6MToiNiI7czoxMzoidmFjX2FkZHJlc3NlcyI7czoyNToiZHRheWVAYm9uYWlyLnN
0YW5mb3JkLmVkdSI7czo4OiJ2YWNfZGF5cyI7czoxOiIxIjtzOjExOiJ2YWNfbWVzc2FnZSI7czoxMzA6IlRoaXMgaXMgYW4gYXV0b21hdGVkIHJlcGx5OyBJIGFtIGF3YXk
gYW5kIHdpbGwgbm90IGJlIGFibGUgdG8gcmVwbHkgdG8geW91IGltbWVkaWF0ZWx5Lkkgd2lsbCBnZXQgYmFjayB0byB5b3UgYXMgc29vbiBhcyBJIHJldHVybi4iO30%3DE
ND_SIEVE_RULE
true {
vacation :days 1 :addresses [[EMAIL PROTECTED]] text:
This is an automated reply; I am away and will not be able to reply to 
you immediately.I will get back to you as soon as I return.

.
;
}

phpscript.bc:

CyrSBytecode will get back to you as soon as I return.


defaultbc:

This is a sym link to phpscript.bc


Cheers,
David




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: Sieve issue with Cyrus on RHEL4

2007-03-27 Thread Michael Menge

Hi,

Quoting David Chait [EMAIL PROTECTED]:


   The script fails in that no email response is sent to the original
sender, though I have not been able to locate a log file entry showing
the error specifically.


Cyrus logs to the local6 facility, so you can configure the  
destiantion and the loglevel in your syslog configuration.



The vacation filter is being created and
installed by avelsieve:

3 files are created by avelsieve in the user's sieve dir:

phpscript.script:

# This script has been automatically generated by avelsieve
# (Sieve Mail Filters Plugin for Squirrelmail)
#AVELSIEVE_VERSIONYTo0OntzOjU6Im1ham9yIjtpOjE7czo1OiJtaW5vciI7aTowO3M6NzoicmVsZWFzZSI7aToxO3M6Njoic3RyaW5nIjtzOjU6IjEuMC4xIjt9
#AVELSIEVE_CREATED1174933731
#AVELSIEVE_MODIFIED1174933731
require
[fileinto,reject,vacation,imapflags,relational,comparator-i;ascii-numeric,regex,notify];
if
#START_SIEVE_RULEYTo1OntzOjQ6InR5cGUiO3M6MToiNCI7czo2OiJhY3Rpb24iO3M6MToiNiI7czoxMzoidmFjX2FkZHJlc3NlcyI7czoyNToiZHRheWVAYm9uYWlyLnN
0YW5mb3JkLmVkdSI7czo4OiJ2YWNfZGF5cyI7czoxOiIxIjtzOjExOiJ2YWNfbWVzc2FnZSI7czoxMzA6IlRoaXMgaXMgYW4gYXV0b21hdGVkIHJlcGx5OyBJIGFtIGF3YXk
gYW5kIHdpbGwgbm90IGJlIGFibGUgdG8gcmVwbHkgdG8geW91IGltbWVkaWF0ZWx5Lkkgd2lsbCBnZXQgYmFjayB0byB5b3UgYXMgc29vbiBhcyBJIHJldHVybi4iO30%3DE
ND_SIEVE_RULE
true {
vacation :days 1 :addresses [[EMAIL PROTECTED]] text:
This is an automated reply; I am away and will not be able to reply to
you immediately.I will get back to you as soon as I return.
.
;
}




phpscript.bc:

CyrSBytecode will get back to you as soon as I return.


defaultbc:

This is a sym link to phpscript.bc


The script seems to be correct, and the bc and the link should be  
created by the timsieved and should therfore be correct.





Cheers,
David




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





M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung  mail:  
[EMAIL PROTECTED]

Waechterstrasse 76
72074 Tuebingen


smime.p7s
Description: S/MIME krytographische Unterschrift

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: Sieve issue with Cyrus on RHEL4

2007-03-27 Thread David Chait

Thanks Michael,
   I found the issue and resolved it, it turned out to be SMTP related 
rather than Cyrus related.


Cheers,
David


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: Fatal error: failed to mmap cache file

2007-03-27 Thread Andrew Morgan

On Tue, 27 Mar 2007, Ian P. Christian wrote:


I have a mailbox on my server wither just under 6600 emails in it.

The cyrus.cache file is 1/2 a gig in size:

# ls -lah cyrus.*
-rw--- 1 cyrus mail 536M Mar 27 13:46 cyrus.cache
-rw--- 1 cyrus mail  171 Mar 27 13:12 cyrus.header
-rw--- 1 cyrus mail 386K Mar 27 13:46 cyrus.index


When a user attempts to access their mailbox, I see this in the logs:

imaplo[29053]: login: localhost [127.0.0.1] [EMAIL PROTECTED] plaintext 
User logged in
imaplo[29053]: IOERROR: mapping cache file for domain.com!user.postmaster: 
Cannot allocate memory

imaplo[29053]: Fatal error: failed to mmap cache file
master[29953]: process 29053 exited, status 75
master[29953]: service imaplo pid 29053 in BUSY state: terminated abnormally


Can anyone suggest what might be causing this?


Well clearly there isn't enough memory available to mmap a file that 
large...  :)


I'm more curious why that cyrus.cache file is so large.  6600 emails is 
not an unusually large amount to have in a mailbox.  For example, I have a 
mailbox with 1739 messages in it, and the cyrus.cache file is only 1.6 MB. 
Maybe the cyrus.cache file is corrupted or retaining old cache entries? 
It should be safe to delete that file and reconstruct the mailbox, because 
no additional information is stored in the cache file which is not already 
present in the message files.


Andy

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: Fatal error: failed to mmap cache file

2007-03-27 Thread Ian P. Christian

Andrew Morgan wrote:
Well clearly there isn't enough memory available to mmap a file that 
large...  :)


Thanks ;)

I'm more curious why that cyrus.cache file is so large.  6600 emails is 
not an unusually large amount to have in a mailbox.  For example, I have 
a mailbox with 1739 messages in it, and the cyrus.cache file is only 1.6 
MB. Maybe the cyrus.cache file is corrupted or retaining old cache 
entries? It should be safe to delete that file and reconstruct the 
mailbox, because no additional information is stored in the cache file 
which is not already present in the message files.


I too thought it was odd, nearly 50% of the size of the mailbox was the 
cache file itself.  I did try what you suggested, and unfortunately the 
problem remained (atleast... I *think* I tried it...)


However... I've now fixed the problem

Turned out 95% of the mail in there was caused by a mail loop, and was 
NDRs.  A quick grep and rm later, and I was down to a small mailbox, 
which when reconstructed then went back to working.


I think somewhere along the lines I might have found a bug... but I 
can't prove it :)


Thanks for your time Andrew

--
Ian P. Christian ~ http://pookey.co.uk

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