RE: SQUAT failed and loglevel issue
Hello Dudi, Thanks for your help. The following syntax is working for me: su - cyrus -c "/usr/lib/cyrus/bin/squatter -r -v user/*" Can you tell me please if this process (squatter -r)is time consuming, cause I've read on the net, that people decided not to use of this reason? Regards, Leon Kolchinsky From: Dudi Goldenberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 7:16 PMTo: לאון קולצ'ינסקיSubject: RE: SQUAT failed and loglevel issue Hi Leon, This is still an SQUAT issue. SQUAT aware applications expect the index file and complain if they can’t find it. I manage several large scale installations (500k+ msgs per mailbox, not too many mailboxes…). I can tell you the SQUAT does make the difference in these large mailboxes, apparently less effect on smaller mailboxes. It makes text search within the folder lightning fast, I even have a weekly cron job that runs it… I think the best solution for you is just to run squatter once so there is an index file present where it needs to be, and the error will disappear. Regards, Dudi From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 14:58To: Dudi GoldenbergCc: info-cyrus@lists.andrew.cmu.eduSubject: RE: SQUAT failed and loglevel issue Hi, I'm on SLES 9, Horde IMP is on another machine, managed by another person. I'm running web-cyradm + Cyrus-IMAP. When using regular Imap Clients like Kmail, OE etc. there is no 'SQUAT failed' error, so I think it's somthing connected to the IMP. Any Ideas welcomed. Regards, Leon Kolchinsky From: Dudi Goldenberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 4:42 PMTo: לאון קולצ'ינסקיSubject: RE: SQUAT failed and loglevel issue What distro? I’m on Debian so this is where I can (maybe) help… Dudi From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 14:46To: Dudi GoldenbergSubject: RE: SQUAT failed and loglevel issue Thanks Dudi, This happens only when I use Horde IMP and there is no big speed impact without running squatter, so I prefer just to switch loglevel to 'info' instead of 'debug' but I don't know how to do it (in what file)? Anyone help? Regards, Leon Kolchinsky From: Dudi Goldenberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 4:18 PMTo: маеп чемц'йрсчйSubject: RE: SQUAT failed and loglevel issue Hi, Run /usr/sbin/squatter -r as user cyrus on all your mailboxes, this will create the SQUAT index. Regards, Dudi From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Tuesday, September 20, 2005 11:33To: info-cyrus@lists.andrew.cmu.eduSubject: SQUAT failed and loglevel issue Hello All, I keep getting these kind of messages in my logs, when using horde IMP with Cyrus-IMAP server. Sep 20 12:06:24 mail imap[19540]: SQUAT failed to open index fileSep 20 12:06:24 mail imap[19540]: SQUAT failed Could anyone tell me how to deal with it? Please also tell me ho to swithch to loglevel 'info' instead of 'debug'? Best Regards, Leon Kolchinsky 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: Tutorial on how to backup/restore cyrus
I don't completely agree here, there are ways to do snapshots without any downtime for example in a SAN environment or using filesystem or LVM based snapshot methods. However, it does not mean your snapshots are really consistent from the aplications point of view. And that's the big question: How inconsistent can things be without shutting down cyrus? I think nobody can really tell you. There are several possible inconsistencies which depend on how you are doing snapshots or backups and what filesystem you are using. However, exactly the same inconsistencies will show up when your box crashes (kernel panic, power failure) and properly configured systems should survive this without loosing much. Of course, one has to make sure that the obvious is properly configured like for example disabling raid/disk write caches with no battery backup or making sure that the OS/filesystem really writes data out to the disk when the application thinks it has been written. It's not always an easy task and you will usually loose some performance by disabling those dangerous tuning things. 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: checking quota
I think I haven't explained it well :-) I want to check quota for incoming mails and reject emails if quota is over. I already use this script for sending 'quota exceeded' to my users anyway thank you for your link [EMAIL PROTECTED] wrote: Hi, I would suggest to use the solution from web-cyradm list: http://www.web-cyradm.org/pipermail/web-cyradm/2004-November/017965.html There is very nice and multipurpose script to deal with quotas. It's abaut integration of quota management for MTA (postfix) + Cyrus. Regards, Leon Kolchinsky -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrice Sent: Tuesday, September 20, 2005 2:30 PM To: info-cyrus@lists.andrew.cmu.edu Subject: checking quota Hi, I would like to implement the quota checking within my MTA which is exim and not use cyrus quota what would be the less consuming way to do it ? - check the quota.db and extract the current mailboxe size for a particular user ? - connect with tcp on imap and read the current quota value for the user ? if the effective quota is of a value defined into my ldap I deny the delivery to cyrus-imap Thank you for you advices 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 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 and webmin
Hello, is there an *up-to-date* module for webmin, to manage cyrus mailboxes, ACL's on folders, quotas and so on? I'v found this: http://www.nwe.de/develop/ but its old (last release 2003) and buggy. After korrekt installation, I'v got an error in webmin: Unknown Mailbox : Konfiguration in /etc/webmin/imapadmin/config is: admin_user=cyrus hierarchy_separator=. imap_port=143 imap_server=localhost admin_password=xxx Does anyone know, whats the problem or an alternative? greets, Daniel 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: Cyrus and webmin
Hallo, Timo Schoeler [EMAIL PROTECTED] schrieb: tho a bit bloated you might want to have a look at webcyradm: http://sourceforge.net/projects/webcyradm/ (i hope that this link is not outdated ;) I'v found a good and up-to-date webmin module für Cyrus Mailboxes here: http://www.tecchio.net/webmin/cyrus/index.php.en Thanks for all, Daniel 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
perl script for sieve filter
Hi, I need to write a perl script to activate automatically a sieve filter every time I create a new mailbox. The filter is a sieve script that I have already written and that works perfectly. I have not worked too much with the perl language and the Cyrus::SIEVE::managesieve module man does not help me either. Has someone a similar script or some perl code that can I use as guide? Thanks. - ANNA - 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: perl script for sieve filter
On 9/21/05, Ana Ribas/Upcnet [EMAIL PROTECTED] wrote: Hi, I need to write a perl script to activate automatically a sieve filter every time I create a new mailbox. The filter is a sieve script that I have already written and that works perfectly. I have not worked too much with the perl language and the Cyrus::SIEVE::managesieve module man does not help me either. Has someone a similar script or some perl code that can I use as guide? You don't really need a perl script. Assuming that you have a proxyservers set in your imapd configurations. Just create a file upload-sieve that looks something like this: put sieve-file activate sieve-file and then run sieveshell --user=new-user --authname=proxyserver -exec=upload-sieve host:port after the account creation. You might have to pipe the proxyserver password to it depending on your auth mechanism. Alternatively, you can just look at how sieveshell works and write your own perl script. -- Huaqing Zheng Beer and Code Wrangler at Larg 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: perl script for sieve filter
On Wed, 2005-09-21 at 18:11 +0200, Ana Ribas/Upcnet wrote: Hi, I need to write a perl script to activate automatically a sieve filter every time I create a new mailbox. The filter is a sieve script that I have already written and that works perfectly. I have not worked too much with the perl language and the Cyrus::SIEVE::managesieve module man does not help me either. Has someone a similar script or some perl code that can I use as guide? why not just use the autosieve patches already created ? http://email.uoa.gr/projects/cyrus/ easier than re-inventing the wheel Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. 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: perl script for sieve filter
I didn't know this patch although in any case it is not what I need. The sieve filter that I have to activate in the mailboxes is not for creating new folders. My filter moves certain messages to a folder in concrete. The folder always exists because is created when the mailbox is created and the user does not have privileges to erase it. I need this filter active for all the mailboxes. - ANNA - Craig White [EMAIL PROTECTED] le.comTo Ana Ribas/Upcnet 21/09/2005 18:35 [EMAIL PROTECTED] cc info-cyrus@lists.andrew.cmu.edu Subject Re: perl script for sieve filter On Wed, 2005-09-21 at 18:11 +0200, Ana Ribas/Upcnet wrote: Hi, I need to write a perl script to activate automatically a sieve filter every time I create a new mailbox. The filter is a sieve script that I have already written and that works perfectly. I have not worked too much with the perl language and the Cyrus::SIEVE::managesieve module man does not help me either. Has someone a similar script or some perl code that can I use as guide? why not just use the autosieve patches already created ? http://email.uoa.gr/projects/cyrus/ easier than re-inventing the wheel Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. 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
plus addressing
Hello all- I'm in the process of moving from a qmail/uw-imap installation to a postfix/Cyrus-2.2 and I've one last problem to solve before I can start moving people onto the new system. We make heavy use of qmail's extension addressing, which uses a dash as the default delimiter. In Postfix this is configurable, but I've not been able to find any place in the Cyrus config files where I can change this from + to -. Is this even possible? If it's not, has anybody come up a good workaround that they can suggest? Many thanks, Zack 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: perl script for sieve filter
On Wed, 2005-09-21 at 19:20 +0200, Ana Ribas/Upcnet wrote: I didn't know this patch although in any case it is not what I need. The sieve filter that I have to activate in the mailboxes is not for creating new folders. My filter moves certain messages to a folder in concrete. The folder always exists because is created when the mailbox is created and the user does not have privileges to erase it. I need this filter active for all the mailboxes. see D) Automatic creation of a predefined default sieve script. in http://email.uoa.gr/projects/cyrus/autocreate/README.autocreate- cyrus-2.2 Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. 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: frequent mupdate master mailboxes.db corruption, anyone else?
Henrique de Moraes Holschuh wrote: On Thu, 15 Sep 2005, Sergio Devojno Bruder wrote: I'm fighting with frequent corruptions of my mupdate master server (high volume, currently 3.9M mailboxes) with Cyrus 2.2.10. First things first: Triple check your system RAM. AHA: Sep 21 09:08:49 mupdate mupdate[17026]: IOERROR: mapping /var/lib/imap/mailboxes.db file: Cannot allocate memory Sep 21 09:08:49 mupdate mupdate[17026]: failed to mmap /var/lib/imap/mailboxes.db file Sep 21 09:08:49 mupdate master[5866]: process 17026 exited, status 75 Sep 21 09:08:49 mupdate master[5866]: service mupdate pid 17026 in READY state: terminated abnormally I remember Joao Assad had the same problem, no? -- Sergio Devojno Bruder 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
Random deadlocks with cyrus-imapd-2.1.14
We are running cyrus-imapd-2.1.14, using db-3.1.17 for the deliver.db and tls_sessions.db. Lately, we've been getting deadlocks that stall mail delivery. When they happen, all of the lmtpd processes are blocked waiting to acquire a lock. If I try to run the db_stat utility, it also blocks. These deadlocks happen quite randomly, sometimes months apart, but sometimes only days. The server is a 4-CPU Sun 480 running Solaris 9. I haven't seen reports of anyone else having this problem. I notice that there is a db_deadlock utility that is able to break deadlocks. Should I be running this, or does Cyrus already do deadlock detection? I haven't seen any mention of this utility in the Cyrus documents. -- -Gary Mills--Unix Support--U of M Academic Computing and Networking- 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: plus addressing
On 9/21/05, Zachariah Mully [EMAIL PROTECTED] wrote: Hello all- I'm in the process of moving from a qmail/uw-imap installation to a postfix/Cyrus-2.2 and I've one last problem to solve before I can start moving people onto the new system. We make heavy use of qmail's extension addressing, which uses a dash as the default delimiter. In Postfix this is configurable, but I've not been able to find any place in the Cyrus config files where I can change this from + to -. Is this even possible? If it's not, has anybody come up a good workaround that they can suggest? This is not really a Cyrus issue but a MTA issue. Most MTAs use + as the mailbox delimiter and simply send mail to the part before the + sign. The part after the plus sign is used by the mail delivery agent. One thing you can try is to use postfix regex rewrite maps to rewrite the - into a +. -- Huaqing Zheng Beer and Code Wrangler at Large 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