Re: integer overflow at 2^32 in quota calculations
On Sun, Jul 17, 2005 at 07:44:04PM -0400, Ken Murchison wrote: Ondrej Sury wrote: Ken, would you be so kind to generate patchset (and maybe attach it to mentioned bug report)? Attached to bug #2690 The last comment in that ticket mentions that the patch is corrupt: https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2690 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: lmtpunix[32741]: DBERROR db4: 474 lockers
On Thu, Jul 20, 2006 at 08:29:01PM -0400, Ciprian Vizitiu wrote: Hi everybody, Early this morning a Cyrus 2.2.12 running on a RHEL 4 started refusing delivery under the reason(s): lmtpunix[30668]: DBERROR db4: Logging region out of memory; you may need to increase its size lmtpunix[30668]: DBERROR: opening /var/lib/imap/deliver.db: Cannot allocate memory lmtpunix[30668]: DBERROR: opening /var/lib/imap/deliver.db: cyrusdb error lmtpunix[30668]: FATAL: lmtpd: unable to init duplicate delivery database Being hard pressed I've simply restarted the server and... uh, it works. Later on (some 1 h) the log started showing increasing numbers of lmtpunix[32741]: DBERROR db4: XYZ lockers with XYZ steady increasing. How do I increase the Logging region? And what's the meaning of the DB4 lockers in this context? Any hints on decreasing them? =:-o Do you have a DB_CONFIG file in there somewhere? 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: the autocreate feature (Cyrus IMAPd 2.3.7 Released)
On Tue, Jul 18, 2006 at 02:31:15PM -0400, Greg A. Woods wrote: I.e. while CMU and many other existing sites might not need autocreate, I think it's a feature that would endear Cyrus to a far wider audience than it currently enjoys. Yes, I think that the reason the patches don't support murder[*] is because not many sites use murder. Or that sites that do use murder have already to deal with many complexities that adding a mailbox creation is the least of their problems. least for our current uses). I'd say let's get it in there now and just document what it doesn't work well with yet. Then those who use it will It may be that it will never work well with that then. I can understand the reasoning the patches are not included. (BTW, the autocreate patch I use now with 2.2.x does seem to work well with unixhierarchysep, as do I believe the relevant patches did with all older releases as well. I've never tried it with altnamespace as that feature seems to bugger up clients like pine too much to ever use anyway.) I think it should work with altnamespace too. From what I remember, the murder architecture is the only thing that is incompatible with the patches, and maybe replication now. * Which I assume is the only incompatibility between the patches and the current cyrus code. 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: Mailstore filesystem
On Tue, Jul 04, 2006 at 09:58:50PM +0200, Marten Lehmann wrote: I think this is because reiserfs is better handling a lot of small files, while ext3 performes better with a few big files. Is it possible that you are working with a fairly old linux distribution? Today's ext3 shouldn't have these issues any longer, otherwise Redhat wouldn't ship it as the only supported filesystem with its Enterprise distributions. A modern 2.6er ext3 has indexes and b-trees on top of the common ext3-layer, so even big directories shouldn't be a problem any more. Really? Nice. But you would have to re-create the ext3 filesystem with this newer 2.6 kernel, right? Or would tune2fs do the job given the right options? 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: Sieve doesn´t filter emails with words with accents
On Mon, Jun 19, 2006 at 09:24:36AM +0200, Sebas PRE wrote: Yes, the strings of my sieve script are in UTF-8, this is my script: require fileinto; # Leido if header :comparator i;ascii-casemap :contains Subject LeÃdo { fileinto TESTBOX; } but it doesn´t work. It's a bit worse than that: you don't even need to have accented characters in the sieve rule. https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2455 was opened a couple of years ago. 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: Looking for a *good* X based GUI IMAP client for Cyrus IMAP ...
On Mon, Jun 12, 2006 at 11:39:23AM -0700, Nikola Milutinovic wrote: --- Warren Turkal [EMAIL PROTECTED] wrote: On Saturday 10 June 2006 15:49, Daniel O'Connor wrote: The least sucky email client I have tried so far is KMail. I have to concur. I use Kmail via Kontact almost exclusively. Any comment on Mozilla Thuderbird? One thing that cought me a bit was it's connection pool, for which I can see no justification, in case of a single account. Otherwise than that I like it. I would like to see an imap client who doesn't fetch all the headers from all messages available in a mailbox. It should fetch just the ones it can show at once plus a few dozens, and whatever messages are needed for threading purposes. 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 ACL and groups ...
On Fri, Jun 02, 2006 at 10:31:46AM +0200, Brasseur Valéry wrote: I have seen in the code that when you want to use groups in ACL for cyrus, the group is a UNIX one ... (calling setgrent, getpwnam ... ) Is there a a way to use LDAP groups instead ... If you use nss_ldap, then cyrus will be using ldap groups without even knowing about it. But you may have performance problems if cyrus uses group enumeration, that's expensive in ldap. 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 ACL and groups ...
On Fri, Jun 02, 2006 at 03:42:14PM +0200, Simon Matter wrote: On Fri, Jun 02, 2006 at 10:31:46AM +0200, Brasseur Valéry wrote: I have seen in the code that when you want to use groups in ACL for cyrus, the group is a UNIX one ... (calling setgrent, getpwnam ... ) Is there a a way to use LDAP groups instead ... If you use nss_ldap, then cyrus will be using ldap groups without even knowing about it. But you may have performance problems if cyrus uses group enumeration, that's expensive in ldap. Usually you could use nscd to cache but nss_ldap group lookups don't work, and they really are slow with large groups. Therefore, I have implemented (I mean hacked) a groupcache feature for cyrus-imapd which is included in my rpms. Let me know if you are interested and don't want to exctract them from the source rpm. A better approach would be to get rid of group enumeration function calls and use a better way to discover to which group an user belongs. There are functions in glibc that do this nicely, and nss_ldap translates them into quick ldap queries. 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: base64 decoding error again in 2.2?
On Fri, May 26, 2006 at 03:04:39PM +0200, Miros?aw Jaworski wrote: Hi I am using cyrus-imapd-2.2.13_1 build from FreeBSD ports. Seems like *test tools are affected again(*) Did you just happen to have updated cyrus-sasl to 2.1.22? Checkout this thread and the patch at the end: Hmm, cyrus-sasl mailing list archives down it seems. Well, you can get the cyrus-imapd (yes, imapd) patch here: http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/SPECS/cyrus-imapd/cyrus-imapd-2.2.12-saslcompatfix.patch imtest was relying on a bug that got fixed in sasl-2.1.22. 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 Patches used at FastMail.FM
On Fri, May 26, 2006 at 08:14:51PM +0200, Tarjei Huse wrote: Hij - cyrus-fromheader-2.3.3.diff Outlook sucks. I hate to have to commit yet another M$ workaround. How widespread are these non-RFC2822-compliant messages? I do not think it is just outlook. I've also seen problems with notes doing stuff like this. I get errors like this one in my logs: host /var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] said: 554 5.6.0 Message contains invalid header (in reply to end of DATA command) Does anyone know if there is a way to configure postfix or amavis to clean up emails with with errors like these? Maybe a postfix header regexp? There was a time I used sed, because I was already calling a shell script of mine to do other stuff. 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 Patches used at FastMail.FM
On Fri, May 26, 2006 at 05:02:25PM -0300, Carlos Horowicz wrote: Hi I get only a daily few of Message contains invalid header but a couple of thousand per day of Message contains NUL characters from lmtpd ... What version of cyrus? There was a bug that caused the NUL error with long lines. This has already been fixed in later versions. 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 Patches used at FastMail.FM
On Fri, May 26, 2006 at 05:35:30PM -0300, Carlos Horowicz wrote: Andreas Hasenack wrote: On Fri, May 26, 2006 at 05:02:25PM -0300, Carlos Horowicz wrote: Hi I get only a daily few of Message contains invalid header but a couple of thousand per day of Message contains NUL characters from lmtpd ... What version of cyrus? There was a bug that caused the NUL error with long lines. This has already been fixed in later versions. all of my servers complain : there are several 2.3.3 and several 2.2.12 ... Then it's probably for real: there are NUL characters in the messages. There is a postfix patch floating around that can get rid of these, and I think it's integrated in postfix's snapshot. Here is a version for 2.2.x: http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/SPECS/postfix/patch_reject_strip-postfix-2.2.4.diff 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
autocreate patch wrongly created?
The autocreate patch available at http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.3/ seems to be wrong, it's 380Kbytes in size and adds some .orig files. 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: Archives unaccesible by http
On Tue, May 23, 2006 at 12:30:42PM +, Mordur wrote: Is int only me, or are this mailing list's archives at http://asg.web.cmu.edu/bb/archive.info-cyrus inaccessible to one and all? It's working from here. 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: Outlook does not delete but displays deleted messages asstrike-trough
On Mon, May 22, 2006 at 10:13:56AM -0600, Warren Turkal wrote: On Monday 22 May 2006 09:43, Simon Matter wrote: Isn't the default policy to move to trash in Outlook? I think that way you can handle it without having the people to purge messages by hand. No. The default in Outlook with an IMAP account is that it just strikes out the message in your message list. It's the most rediculous thing I have seen considering how every other email client out there works. Then outlook is up to standards with its users (the ones that forget to purge the email). A perfect match. 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 seen in the last few day relating to Cyrus
On Wed, May 03, 2006 at 07:36:23PM +1200, Clint Dilks wrote: And restarted the services I had stopped. I repeated the db4.2_stat commands and unfortunately the output is the same. What am I missing? As it appears the DB_CONFIG file is being ignored. Once I had this issue I also tried placing DB_CONFIG in /var/imap/db and repeating the process this had no effect on the effected files either. The correct location for DB_CONFIG is inside the db directory, where the so called database environment resides. After you moved it there (as stated above), did you run the db_recover command pointing to /var/imap/db or just /var/imap as you did in the previous attempts? It should be /var/imap/db. 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 admin user that can read messge on all accounts?
On Fri, Apr 28, 2006 at 12:08:22PM -0700, Kevin Baker wrote: Is there an admin user that has permissions to access all other accounts? I am running IMAPSync between two servers, a couple times a day for backups. The newest version of IMAPSync allows for a seperate admin auth user to be specified so that you do not need to know the password for all users you are syncing. If IMAPSync is SASL aware, you could authenticate as the cyrus admin user and authorize as the target user, kind of like su - otheruser. 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
autocreate: why do I need autocreatequota?
Regarding the autocreate patches, did I missread the documentation or do I need to set a default quota for an user? Why can't I just give these autocreated mailboxes unlimited quota? My scenario is that I would like to have the INBOX mailbox created automatically upon first successfull authentication (not on post). I'm using cyrus-imapd 2.2.12. 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: autocreate: why do I need autocreatequota?
On Tue, Apr 25, 2006 at 12:39:02PM -0400, Chris Hilts wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Hasenack wrote: Regarding the autocreate patches, did I missread the documentation or do I need to set a default quota for an user? Why can't I just give these autocreated mailboxes unlimited quota? I'd say you misread the documentation. If you want unlimited quota and autocreate enabled, try a negative number. - From man imapd.conf: autocreatequota: 0 If nonzero, normal users may create their own IMAP accounts by creating the mailbox INBOX. The user's quota is set to the valueif it is positive, otherwise the user has unlimited quota. Great, many thanks for clearing this up :) 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: Sieve script for a shared mailbox
On Thu, Apr 20, 2006 at 06:06:21PM +0200, Etienne ETOURNAY wrote: Create a sieve script for a user mailbox is simple. But I want to create a sieve script for a shared mailbox (seen by a users group). A user foo has a mailbox /var/spool/cyrus/f/user/foo/ and sieve /var/spool/sieve/f/foo/ . But a shared mailbox [EMAIL PROTECTED] has a /var/spool/cyrus/i/info but no sieve. How to create a sieve script for a shared mailbox ? The link http://www.cyrusoft.com/sieve/ is dead. Version: Cyrus 2.1.18 Debian 3.1 Sarge with Postfix. If I remember correctly, this was just implemented in 2.2.13, released a few days ago. 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: Bitten by Berkeley
On Mon, Mar 27, 2006 at 07:56:57PM +0200, Sebastian Hagedorn wrote: -- Andrew Morgan [EMAIL PROTECTED] is rumored to have mumbled on 27. März 2006 09:48:37 -0800 regarding Re: Bitten by Berkeley: just an anecdote: Today we had to relocate our Cyrus 2.2.12 server to the other node in the failover domain for maintenance purposes. It was shut down cleanly and then restarted on the other node. The startup began with lots of messages like this one: snip Were you using Berkeley DB 4.3 or newer? Cyrus v2.2.12 and older will not work with Berkeley DB 4.3+ without a patch. I know. We were using Red Hat's stock db4 RPM: db4-4.1.25-8.1. As I mentioned it's been working OK for more than a year, but having read all the other reports of people experiencing problems like the one I described I guess it's just a matter of time until something breaks ... Considering the many other projects using berkeley db successfully (we have an internal svn repository with over 60Gb of data in a berkeley 4.2.52 database), this may be a problem with: - the way cyrus uses the database - bad DB_CONFIG Of course, it could be also a bug in berkeley triggered by the way cyrus uses it or any other combination of these factors. Regarding BDB versions, 4.2.52 seems to be the best DB4 version available, with perhaps 4.4.x being as good as (only time will tell). 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: what happens to mail after sieve error?
On Tue, Mar 21, 2006 at 11:51:04PM +1030, Daniel O'Connor wrote: On Tuesday 21 March 2006 23:00, Lars Schimmer wrote: I use exim4 4.5 and cyrus 2.1.18-1 on a debian stable system with sieve scripts. But now 1 sievescript hit an error for a mail received by exim: Mar 19 20:56:55 europa cyrus/lmtpd[23422]: sieve runtime error for UseraBC id [EMAIL PROTECTED]: Fileinto: Mailbox does not exist What happens with THIS mail? Exim4 is happy and done, because it delivered the mail to cyrus, no error in logfile. And there is NO mailbox in which sieve could drop the mail. Is the mail being deleted to nirvana? It should go straight into the user inbox. (Does for me anyway) And if there isn't an INBOX, the email will bounce. 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: Three times password sieveshell..
Em Sáb 18 Mar 2006 04:53, Johan Barelds escreveu: Hi Andreas, Thanks for that tip! Any idea where i can remove the other mechanisms not wanted? Is this on the cyrus side or the pam etc. side? The mechanisms are installed usually under /usr/lib/sasl2. Another option would be to use mech_list to limit what mechanisms would be available to the clients. Check the sasl documentation. 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: Three times password sieveshell..
Em Sex 17 Mar 2006 20:15, Johan Barelds escreveu: Hi All, When i login with sieveshell i have to give my password three times..?! After then i am succesfully logged in. Anyone any clues? Thanks! alcatraz:/tmp # sieveshell -u jbarelds -a jbarelds localhost connecting to localhost Please enter your password: Please enter your password: Please enter your password: sieveshell is trying many SASL mechanisms. Try removing from your system the ones you don't have configured. Or make the server only offer the one you have configured. 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: invalid mailbox format with upgrade to 2.3.3
On Thu, Mar 02, 2006 at 09:16:48AM +0100, Nicolas KOWALSKI wrote: I remember seeing a similar problem someone had with an upgrade to 2.3.x in this list but I can't find it in the archives (or I'm mistaken). I had this problem. I also had to reconstruct to make 2.3.x happy. It was probably because some mailboxes had some garbage in them; for example, the cyrus.index size of a mailbox triggering this error changed (shrank) after the reconstruct. I don't know if I had garbage in those files. But if I had, it was in all mailboxes, not just a few. I once upgraded such a system from 2.2.12 to 2.3.1 and I didn't have this problem then. Actually, the whole story is a bit more bizarre. This system had the following upgrade path: 2.2.12 - 2.3.1 - 2.2.12 (yes, back to 2.2.12) - 2.3.3 I only had this problem in the last step (2.2.12 - 2.3.3). 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
invalid mailbox format with upgrade to 2.3.3
I just upgraded a home system from 2.2.12 to 2.3.3 and started getting the invalid mailbox format error. I then ran reconstruct and it worked after that. Before the reconstruct, if I downgraded back to 2.2.12, things would get back to normal. I remember seeing a similar problem someone had with an upgrade to 2.3.x in this list but I can't find it in the archives (or I'm mistaken). 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: Start with cyrus 2.3.1? [auf Viren ü berprüft]
On Fri, Feb 24, 2006 at 01:42:14PM +0100, Hans Moser wrote: Hi! We're starting a new test with cyrus imapd, which will end up in a production setup in the next few month. Shall we test with the stable 2.2.12 or 2.3.1? In general I would prefer stable, but if 2.3.x will become stable in the next time (before we'll get in production), it will be better to test with 2.3.1 to minimize later update dependancies, won't it? There are some fixes in CVS for 2.3.1, perhaps if you could wait for 2.3.2? 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: Do I need idled on or not?
On Fri, Feb 10, 2006 at 12:05:22PM -0600, Richard Wohlstadter wrote: Andreas Hasenack wrote: Note that idled has nothing to do with IDLE support or not: IDLE is always there. The only difference is in the method: without the daemon, the check is done at some poll interval (default 60s IIRC). Is the IDLE daemon more reliable than the polling? I've noticed in It's faster. Thunderbird that IDLE is not very reliable. Many times I've had folders set to IDLE show 'x' new messages and when I click the folder there is actually more new messages than shown in the count. I did some sniffer tests to see the polling in action and sometimes I'll see cyrus indicate to thunderbird that a new message is there and thunderbird completely ignores the message. Maybe newer versions of thunderbird behave better (I tested 2 releases ago) but if anyone else has seen this behavior I was wondering if you tried IDLED daemon and it handled things better. I tried it once with fetchmail, where it worked very well. I didn't have to tell fetchmail to poll the mailbox, it just waited for cyrus' trigger. With idled, that trigger was instantaneous, while with cyrus' poll method (no idled daemon) it could obviously take as long as the poll interval. Now I access the imap server directly and idle isn't that important to me anymore because I have tons of mailboxes which can receive new mail. 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: Do I need idled on or not?
On Fri, Feb 10, 2006 at 08:22:01AM -0500, Scott Russell wrote: Simon Matter wrote: Hi All, I noticed the line in cyrus.conf below which was commented previously and now included in SuSE 10.0: # this is only necessary if using idled for IMAP IDLE idled cmd=idled The IMAP IDLE feature sounds like a good idea - do any mail clients support it yet. If so I will probably leave it on. Does this mean I can tell my e-mail clients using IMAP not to check for new mail? At least current Mozillas (Thunderbird, Seamonkey...) use IDLE by default. And it won't hurt even if clients don't use it. I don't know about M$ products... My 0.02 is that IDLE makes a large perceptual difference for me on Thunderbird 1.5. The client responds faster to mailbox changes and from a user UI perspective it's what I expect to happen when some other process changes a folder. Note that idled has nothing to do with IDLE support or not: IDLE is always there. The only difference is in the method: without the daemon, the check is done at some poll interval (default 60s IIRC). 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: efficient and simple ham and spam learn with cyrus
On Mon, Jan 23, 2006 at 10:07:18AM +0100, lartc wrote: hi all, i have a cyrus/postfix/amavis setup and would like to ask if anyone has developed a simple methodology to handle learning of ham and spam in an imap mailbox. in general do you have your user forward messages to piped user, or have sa-learn run on an imap mailbox? In my case, the last option: I have global spam and nospam mailboxes where users can move/copy messages into. Periodically there is a fetchmail script which downloads all messages in these boxes and feeds them to sa-learn. 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: ETA on auto-* patches?
Em Quarta 18 Janeiro 2006 22:52, Christos Soulios escreveu: Hello, just for your information, I have finished with porting the autocreate inbox patch and I plan to release it until the end of the week. I am just doing some final tests at the moment. Good, I'd prefer to use the official patches :) 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
ETA on auto-* patches?
Any ETA on the auto-* patches for cyrus-imapd-2.3.x? Days? Weeks? Months? Don't know? I could start hacking on them, I guess, just didn't want to duplicate work. 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: (start_)tls and openssl-0.9.8a
On Tue, Nov 22, 2005 at 07:34:07AM +0100, Nikola Milutinovic wrote: What didn't work (./Configure); zlib no-idea no-mdc2 no-rc5 no-ec no-ecdh no-ecdsa shared What worked: no-idea no-rc5 shared Hmm, first of all, why no-idea, no-rc5? You have better Patents If you have nerves for another run, try to build OpenSSL just without zlib and test again. That would be my bet. You were right. If I change: no-idea no-rc5 shared to: zlib no-idea no-rc5 shared and rebuild, cyrus-imapd gives me that bad record mac error with the resulting openssl. Removing zlib makes it go away. 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
(start_)tls and openssl-0.9.8a
Has anybody else got problems with tls and openssl-0.9.8a with cyrus-imapd-2.2.12? I just rebuilt it with that version of openssl and (start) tls stopped working: $ imtest mymachine -t -v (...) SSL3 alert read:fatal:bad record mac SSL_connect:failed in SSLv3 read finished A SSL_connect error 0 SSL session removed failure: TLS negotiation failed! The certificate is self-signed, but the error above is something else. Same error with imaps (imtest -p 993 -s mymachine). 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: (start_)tls and openssl-0.9.8a
On Mon, Nov 21, 2005 at 02:04:08PM +0100, Nikola Milutinovic wrote: (sigh) we all hate when that happens... Have you ran OpenSSL tests after building it? gmake check or gmake test. make test in openssl just works, no errors. 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: (start_)tls and openssl-0.9.8a
On Mon, Nov 21, 2005 at 03:15:03PM +0100, Nikola Milutinovic wrote: Andreas Hasenack wrote: On Mon, Nov 21, 2005 at 02:04:08PM +0100, Nikola Milutinovic wrote: (sigh) we all hate when that happens... Have you ran OpenSSL tests after building it? gmake check or gmake test. make test in openssl just works, no errors. Then there is a change in semantics of the OpenSSL API and somebody will have to dig through the docs. Just changed a build option for openssl. What didn't work (./Configure); zlib no-idea no-mdc2 no-rc5 no-ec no-ecdh no-ecdsa shared What worked: no-idea no-rc5 shared I don't know which specific option did the trick, but it was one of those that I removed. 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: unixhierarchy from false to true
Em Seg 29 Ago 2005 17:37, Scott Russell escreveu: You don't need to do a reconstruct. You will probably have to have your users restart their clients. Won't this affect sieve scripts too? I thought it would require INBOX.folder to be written as INBOX/folder. Yes, it will affect sieve scripts. There is a script in /usr/lib/cyrus which attempts to convert the scripts, but it doesn't work very well for all cases. 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: cyradm script
Em Terça 23 Agosto 2005 05:05, Patrice escreveu: hello, I try to make a script to automate creation of users with cyradm but I haven't found the way to pass the password to cyradm automatically does somebody already did it ? I use gssapi (kerberos) authentication and cyradm is in my ~/.muttrc to automatically list my mailboxes. So, it's sort of a script yes ;) 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: imapd -s does not seem to be responding
Em Domingo 31 Julho 2005 09:31, Ralph Blach escreveu: Any ideas on why 147 would work and 993 would not work. By the way, both show up in the netstat -a list as listening *If there is nothing else in the logs*, then perhaps your entropy pool is depleted? Check if you have /dev/random and /dev/urandom. One of them (I always forget which one!) is a better quality source for random data and can be depleted quite fast. --- 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: Beta release of Cyrus SASL 2.1.22
Em Segunda 23 Maio 2005 15:51, Derrick J Brashear escreveu: I'd like to announce the beta release of Cyrus SASL 2.1.22 on ftp.andrew.cmu.edu. This version includes bug fixes for the build system and a fix for gcc 4.0. Any ETA on 2.1.22 final? --- 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: Tunning for large number of files in INBOX
On Mon, Jul 04, 2005 at 03:54:16PM +0200, Marco Colombo wrote: Is there a real IMAP client which is free software? I have seen this downloading *all* headers behaviour with every free imap client I have tried. Not that I'm suggesting it, but pine doesn't show the all headers behavior, and it's free. :-) Too bad they forgot that an imap folder can hold both messages and subfolders, and they had to add a late hack to allow the correct browsing of a Cyrus server. No client is perfect. Being an old-time user of Pine, it's always a pain to use Thunderbird or Evolution, clients so feature-full but w/o decent imap behavior: sometimes I have to switch back to Pine to be able to handle 50k+ new messages per folder in a decent time (Pine takes negligible time to open them). Interesting to know, thanks. I'll consult with my local Pine users :) --- 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: Tunning for large number of files in INBOX
On Wed, Jun 29, 2005 at 02:56:58PM -0600, Michael Loftis wrote: clients retrofitted to squak IMAP. Get a real IMAP client like Mulberry that takes advantage of server side sorting, threading, and searching to allow for (nearly) limitless mailboxes but not download each and every header. Is there a real IMAP client which is free software? I have seen this downloading *all* headers behaviour with every free imap client I have tried. --- 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: backup without stopping the imap server?
On Mon, Jun 13, 2005 at 12:35:25PM -0400, Jared Watkins wrote: AFAIK the only really important data that can't be easily replaced is the mailbox list database. So I do regular dumps of that file and keep What exactly is this? Really just the names of all the folders and user.USER mailboxes? Can't this be reconstructed by just inspecting the /var/spool/imap directory hierarchy where all mailboxes reside? What is the black magic here that prevents this from being reconstructed? --- 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: backup without stopping the imap server?
On Mon, Jun 13, 2005 at 12:22:30PM -0500, Richard Wohlstadter wrote: mailboxes.db - critical database containing list of all mailboxes in system. Cannot be reconstructed without reliable backup copy (or text based copy you can import in) I also do not understand this one. deliver.db - duplicate delivery database ( if gets corrupted, can we delete and restart to reconstruct an empty one?? ) Yes, can be removed. db directory - not sure what the heck is going into this directory. For us it is berkeley database. Can someone explain what data is in this directory?? Is is used in conjuction with other database files? If files are deleted/corrupted in here can it be reconstructed? Transaction logs and db environment. Think of it as being used by all berkeley databases you have. The .seen and .sub databases - Looks like these per-user databases contain listings of what mail is read and what folders are subscribed to. I assume these can be removed/reconstructed fairly easily if needed. But does the reconstruct procedure preserve the data? I would hate to have all my messages being marked as NEW, for example, in the event of a crash. --- 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: Saslauthd with ldaps
On Fri, Jun 03, 2005 at 02:35:52PM +0200, Paul van der Vlis wrote: ldap_servers: ldaps://firewall.domain.nl/ ldap_auth_method: fastbind ldap_tls_cacert_file: /path/to/rootcert.pem ldap_filter: cn=%u,o=wlg The rootcert.pem is the root-certificate of the Novell server. A problem is: there are 2 Novell servers what are together the e-directory, can we use 2 root-certificates? you can, but the point of a root server is most of the time to have only one CA which then signs the certificates for the servers. Unless the certificates of your novell servers are self-signed. --- 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: another imapd service in cyrus.conf
On Fri, May 27, 2005 at 12:02:33PM +0200, Christoph Moench-Tegeder wrote: If the only difference between the two configurations is the certificate Correct and you are using cyrus-imapd 2.2, you could put everything in one Also correct config file. With these # regular ones imap cmd=imapd listen=imap prefork=0 imaps cmd=imapd -s listen=imaps prefork=0 # my new one myimapscmd=imapd -C /etc/otherimapd.conf -s listen=1143 prefork=1 in your cyrus.conf, put those into your imapd.conf: imaps_tls_key_file: ... imaps_tls_cert_file: ... imaps_tls_ca_path: ... myimaps_tls_key_file: ... myimaps_tls_cert_file: ... myimaps_tls_ca_path: ... This way, we are running 140 SSL-enabled domains (POP and IMAP) from one cyrus.conf and one imapd.conf. Great, thanks! --- 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
another imapd service in cyrus.conf
I would like to add another imapd service in cyrus.conf listening on another port and using a different imapd.conf file. The reason is that I need to provide a different TLS certificate for connections comming it via a DNAT packet filter so that the hostname matches what the client is connecting to. Does anybody see any issues with that? Something like: # regular ones imap cmd=imapd listen=imap prefork=0 imaps cmd=imapd -s listen=imaps prefork=0 # my new one myimapscmd=imapd -C /etc/otherimapd.conf -s listen=1143 prefork=1 Would it conflict with the regular imap/imaps services somehow? All these imapd daemons have to access the same spool of emails. --- 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: Shared Mailboxes and Postfix
Em Sáb 21 Mai 2005 14:14, Josh Whitver escreveu: I saw it, but wasn't sure it was applicable. I was told earlier that the postuser (Conference in my case) didn't need to be an actual user on the mail system. I'm trying to clear up that confusion now, but am not getting a clear answer. It's not an user, just a shared mailbox. Does the postuser need to be a true, actual user on the system for shared mailboxes and bulletin boards to function? Is it possible to have shared No. mailboxes/bulletin boards exist outside of the user mailbox heirarchy, or Yes. --- 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: Shared Mailboxes and Postfix
Well, conference isn't a user on the mail system. As I understood it, when dealing with shared mailboxes, the postuser as specified in imapd.conf didn't actually need to exist, and this would allow the Shared mailboxes to exist outside of the user mailbox heirarchy. Do I need to have a Conference user and put all the shared mailboxes under that user's mailbox structure? I suppose I could do that if necessary, but I'd like to avoid it if possible. Was my previous email about this lost somehow? I explained what your problem was and how to fix it. Or didn't it help perhaps? --- 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: mbox or uw-imap vs. cyrus-imapd
On Wed, May 04, 2005 at 08:30:12PM -0700, Craig White wrote: Is there similar to http://www.courier-mta.org/mbox-vs-maildir/ for cyrus? Cyrus also uses a one-file-per-message format. It's not maildir, but the benefits are the same. --- 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: Message contains NUL characters ...
On Thu, Apr 28, 2005 at 03:14:22PM -0300, Henrique de Moraes Holschuh wrote: Which doesn't mean I would be against a good patch for Cyrus, but I would rather the MTAs started either fixing or rejecting all such crap worldwide. If exim, sendmail and postfix rejected broken messages, that would be enough to make it impossible to tolerate for the users of NUL-generating crap. I guess they are following that axiom be liberal in what you accept and strict in what you send. --- 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: Auto-deleting messages
On Wed, Apr 27, 2005 at 10:56:50AM -0400, Ken Murchison wrote: man ipurge It doesn't work as well as I'd like it to, but it's a start. Actually, if you just want to delete based on age, cyr_expire using the /vendor/cmu/cyrus-imapd/expire annotation gives you better control. Which (for completeness of this thread) can be set using cyradm: imap.server mboxconfig Trash expire 5 imap.server info Trash {Trash}: expire: 5 lastupdate: 27-Apr-2005 04:00:40 -0300 partition: default size: 0 squat: false imap.server --- 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
question about sieve discard
A friend of mine had these rules (cyrus-imapd-2.2.12): --8--- if elsif elsif header :contains From [EMAIL PROTECTED] { discard; } if ... (script continues) --8--- Note how the if/elsif structure is broken and a new if statement begins later on. That was a copypaste error (the second if should have been elsif to continue the case-like structure). The interesting thing is that a message from [EMAIL PROTECTED] survived the discard. Is that because there should be a stop; after the discard action? It matched some other rule down the road in the second if structure. --- 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: question about sieve discard
On Wed, Apr 27, 2005 at 09:37:55PM +0200, Goetz Babin-Ebell wrote: 4.5. Action discard Syntax: discard Discard is used to silently throw away the message. It does so by ^ simply canceling the implicit keep. If discard is used with other ^^^ ^ actions, the other actions still happen. Discard is compatible with all other actions. (For instance fileinto+discard is equivalent to fileinto.) What confused me a bit, and that's why I asked the list, was the It does so by canceling the implicit keep. So if no other rule matched, then the message would be discarded, right? --- 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: Sieve
On Mon, Apr 25, 2005 at 11:02:27PM -0400, Scott Balmos wrote: Personally, and I'm sure a number of other list members could say the same, I can't say enough good for the AvelSieve plugin to Squirrelmail. Especially the newest build, which has auto-create-filter links when viewing a message, based on the message subject, to, from, etc. Does it still encode its rules inside the sieve script like a big block of base64 text? --- 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: everyone user
On Tue, Apr 26, 2005 at 11:32:51AM +0300, Igor Belikov wrote: Hello info-cyrus, Is something like everyone user exists in Cyrus? Only for ACL purposes. It's called anyone. I want to write one letter so it will delivered to all mailboxes. Is it possible? Yes, but you will have to fetch the username list from somewhere. There isn't a magic mail address for that. --- 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: auth ldap, creating folders automatically for new users
On Mon, Apr 25, 2005 at 01:34:05PM +0200, Sueveges Gyoergy wrote: Hi all, I use LDAP for authentication to cyrus (actually for saslauthd). I noticed when there is a new user on my ldap, altough I can login to cyrus, there are no folders created. I think it is the default behaviour of cyrus. How can I change it so that also folders (inbox, sent,..) are created? You need to apply the autocreate patch from http://email.uoa.gr/projects/cyrus/autocreate/index.php --- 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: DB Errors
On Sun, Apr 24, 2005 at 06:55:29PM -0700, Daniel Hazelbaker wrote: Hmm. One problem. I can't find any core files. :) As best I can tell they aren't disabled anywhere, (/proc/sys/kernel has valid core_pattern and core_uses_pid values (core and 1 respectively). ulimit shows core size of 0 (I'm assuming this is unlimited). My That's not unlimited, that's zero indeed ;) --- 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: Sieve
On Mon, Apr 25, 2005 at 06:10:22AM +0100, NM Public wrote: On 2005-04-24 in http://mid.gmane.org/[EMAIL PROTECTED], Forrest Aldrich wrote: Either way, it would be really nice to have this at some point - a mailing list would be a good ajunct. Here's another vote for a Sieve user mailing list, preferably linked to a Gmane newsgroup. I think sieve issues can be discussed here. If the traffic grows too much, then a new mailing list could be created imo. I also respectfully disagree. I've been using procmail for more than 10 years and I've written extensively about it in my Procmail Quick Start (see my sig below). I'm learning Sieve now and having a hard time figuring out the details. I've got basic SBE filters and greenlist filters, but I know they aren't as efficient as they could be. It's really hard to track down information about optimizing Sieve. What are the issues you are having with sieve and/or your scripts? --- 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: Sieve
On Mon, Apr 25, 2005 at 02:38:14PM -0400, Robert Baruch wrote: OK, I'm also new to sieve - and afters much work, I've been able to get it running on my box using websieve. Here's the problem - it doesn't call my filters!!! Have you activated the sieve script? I don't know how websieve works, but at some point the uploaded sieve script has to be activated. --- 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: Sieve
On Mon, Apr 25, 2005 at 03:31:52PM -0400, Robert Baruch wrote: Have you activated the sieve script? I don't know how websieve works, but at some point the uploaded sieve script has to be activated. I see that the script is on the server in the /usr/sieve/r/robert directory and the webseive says that it's active. I see email coming in from postfix via /var/log/mail.log: An active script will have a symlink called defaultbc pointing to it. Apr 25 14:29:01 localhost postfix/smtpd[3216]: connect from foo.com[xx.xx.xx.xx] Apr 25 14:29:01 localhost postfix/smtpd[3216]: 98F073C6B3: client=foo.com[xx.xx.xx.xx] Apr 25 14:29:01 localhost postfix/cleanup[3218]: 98F073C6B3: message-id=[EMAIL PROTECTED] Apr 25 14:29:01 localhost postfix/qmgr[3166]: 98F073C6B3: from=[EMAIL PROTECTED], size=969, nrcpt=1 (queue active) Apr 25 14:29:01 localhost postfix/smtpd[3216]: disconnect from foo.com[xx.xx.xx.xx] Apr 25 14:29:01 localhost postfix/pipe[3221]: 98F073C6B3: to=[EMAIL PROTECTED], relay=cyrus, delay=0, status=sent (miniserve.foo.com) Apr 25 14:33:14 localhost postfix/postfix-script: refreshing the Postfix mail system Apr 25 14:52:51 localhost postfix/smtpd[3541]: connect from localhost[127.0.0.1] Apr 25 14:52:52 localhost postfix/smtpd[3541]: disconnect from localhost[127.0.0.1] But, what I don't see is any sieve processing after it's been received... Take a look at cyrus' logs. Add something like the following to /etc/syslog.conf and restart it (syslog): local6.*/var/log/cyrus-imapd.log --- 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: Sieve
On Mon, Apr 25, 2005 at 04:53:26PM -0400, Robert Baruch wrote: My active scripts are symbolically linked to default Did you have a chance to look at cyrus' logs? --- 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: Sieve
Quoting Robert Baruch [EMAIL PROTECTED]: 1. I can proces .forward scripts 2. I can process vacation scripts 3. I cannot process Fileinto scripts: I get the following error in syslog: Apr 25 18:11:03 localhost lmtpunix[3944]: sieve runtime error for robert id [EMAIL PROTECTED]: Fileinto: Mailbox does not exist But, the mailbox does exist. Not sure where to go from here... Are you sure it exists? Can you show the relevant fileinto part and the output of the lm command in cyradm showing that both names are the same? Also, are you using unix hierarchy? If yes, then the mailbox separator is / and not .. --- 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: Sieve
Quoting Robert Baruch [EMAIL PROTECTED]: okay - I manually wrote, compiled, and installed a script - works like a champ... websieve appears to be broken... what are the alternatives for web-based sieve processing? Ingo from the Horde project (www.horde.org) is another one. Works quite well in my tests, but is somewhat more complicated than your usual web app to setup because it needs Horde and a database. It's usually only worth it if you already have Imp as your webmail app. It just doesn't interpret an already existing sieve script, however: it can only push scripts to the server, not read them back. --- 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: Sieve
Quoting Robert Baruch [EMAIL PROTECTED]: More info... I did an od -c of the compiled script file defaultbc and I think there is also always a plain text version of the script in the same directory. see that websieve is referencing the folder that I selected called goof as INBOX.goof. I suspect that is not correct? cyradm listmailbox shows it just as goof... So websieve is not respecting the altername namespace, or this was changed in cyrus *after* you created the filter. Can you create the filter again? Do you know if this namespace is a recent change to your cyrus server? Perhaps websieve-063a is not implemented properly... Are there alternatives to test out? Not many (GUIs) I'm afraid. --- 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: Sieve
Quoting Robert Baruch [EMAIL PROTECTED]: localhost lm Deleted Messages (\HasNoChildren) goof (\HasNoChildren) INBOX (\Noinferiors) save (\HasNoChildren) Sent Messages (\HasNoChildren) I've selected the mailbox goof to move into. Unfortunately, the syslog entry doesn't reference any mailbox... Apr 25 18:25:04 miniserve lmtpunix[4146]: sieve runtime error for robert id [EMAIL PROTECTED]: Fileinto: Mailbox does not exist my /etc/imapd.conf file has: unixhierarchysep: yes Not only that, you also have alternate name space. Your sieve script is most likely referencing that mailbox as INBOX.goof instead of just goof. Check websieve for references to altername namespace and/or unix hierarchy. --- 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: Sieve
Quoting Forrest Aldrich [EMAIL PROTECTED]: By and large there are far more examples and documentation of procmail out there than there are for Sieve. Procmail exists in books, online manuals and texts, etc. This is the point I was getting at (substance). One has to note, however, that procmail is many many times more complex than sieve from a user point of view. There's a lot of promise with Sieve, but I wonder with the apparent lack of documentation, etc., if it will remain only utilized by those who are able to discern the code to get it working, etc. My technical users understand the sieve language right away, specially after some examples I give them (which is tipically my sieve script, which has dozens of mailing list filters). The other users (not technically inclined) do fine with a web interface for sieve (Ingo, from the Horde project, integrates nicely into the Imp webmail). I agree that some simple examples in the webpage would help beginners a lot, specially after they realize sieve scripts are quite simple to write. --- 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: DB Errors
On Fri, Apr 22, 2005 at 09:36:35AM -0700, Daniel Hazelbaker wrote: On Apr 22, 2005, at 6:29 AM, Andreas Hasenack wrote: Could you verify that this db4 package has the two official sleepycat patches applied? I'll try to download the srpm and check. Which two official sleepycat patches are these - is there some name they would likely be under? They are here at sleepycat's site: http://www.sleepycat.com/update/4.1.25/patch.4.1.25.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: DB Errors
On Fri, Apr 22, 2005 at 10:29:31AM -0300, Andreas Hasenack wrote: Do you have a DB_CONFIG file in /var/lib/imap/db/? It's needed for some installations. I have one with the following, it may get you started: Forgot to tell: after changing these parameters in DB_CONFIG, you have to run a db_recover on the database directory to apply them. --- 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 stops accepting connections?
On Fri, Apr 22, 2005 at 03:05:09AM +0100, Scott Bye wrote: An update - just done an strace, and it seems to be stalling sometimes when trying to read from /dev/random. I'm guessing that because /dev/random is fed from user input, when there is no user input - being a server - entropy runs low and the kernel blocks access. Sure enough, catting /dev/random reveals only the most pathetic amount of data. I've removed /dev/random and symlinked /dev/urandom instead. Is this likely to cause me any problems? I think so. I had the exact same problem on a server which just handles ssl/tls connections. SASL was changed to read from /dev/random by default. --- 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: crypto mailbox
On Thu, Apr 21, 2005 at 11:11:48PM +0200, Natalino Picone wrote: Hi all, i was wondering if there is a way to crypt the user mail spool in order to avoid that other users (root included) can read the user mailbox content. Something like gpg encryption on the mail file. Any idea ? This means the cyrus-imap server would need access to the necessary key to decrypt the mailbox's contents before sending them to the client. And root would have access to that key as well. This would only work to avoid accidental email readings done by root. The best way is to make the user encrypt his/her own emails whenever needed. --- 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: DB Errors
On Thu, Apr 21, 2005 at 03:05:31PM -0700, Daniel Hazelbaker wrote: YDL 4.0 (This started a month or two after upgrading to YDL 4.0, can't say if it is related) cyrus-imapd 2.2.10 (release 3.yd4) cyrus-sasl 2.1.18 (release 2.2) db4 4.2.52 (release 3.1.ydl.1) Could you verify that this db4 package has the two official sleepycat patches applied? compat-db 4.1.25 (release 2.1) Does anything use this one? ldd the cyrus-imapd binaries to make sure you are not using a mix of different DB4 versions. If there is any other information I can give, please let me know. The situation is getting bad, we are having to service cyrus-imapd restart almost every morning (doing so fixes the problem until the next morningish time). Do you have a DB_CONFIG file in /var/lib/imap/db/? It's needed for some installations. I have one with the following, it may get you started: # Sample BDB configuration file. # Please adjust as necessary! # See http://www.openldap.org/faq/data/cache/893.html for hints and tips # even if you are not using openldap. # cache # use db4.2_stat -m to measure cache performance # see http://www.sleepycat.com/docs/api_c/env_set_cachesize.html # syntax: gigabytes_of_cache additional_bytes_of_cache number_of_caches set_cachesize 0 524288 1 # buffer size for transaction log # The default of 32Kbytes is too small # see http://www.sleepycat.com/docs/api_c/env_set_lg_bsize.html set_lg_bsize 524288 # other options you may be interested in # set_lg_dir: configure a separate directory for the transaction logs # For optimum performance, these should reside on a different disk # see http://www.sleepycat.com/docs/api_c/env_set_lg_dir.html # set_lg_max: configure the maximum size of the transaction log file, in bytes # See http://www.sleepycat.com/docs/api_c/env_set_lg_max.html # Note that lg_max must at least be 4x the size of lg_bsize. The default is 10Mb. --- 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
ACLs for black hole folder?
I'm trying to set up two spam related folders: one called spam and the other called nospam. Both are shared folders and the intention is that users put there mail that was incorrectly marked as spam or ham. The nospam folder in particular whould have to be a black hole: users can put messages there but not read them back or list them, because these are potentially private messages and are not spam. For now I used these ACLs: lip. Seems to work: users can post and insert new messages there, but not see them. The problem is that some mail clients (kmail and evolution so far) popup a big fat warning about not being able to read that folder, and this happens every time the user checks for new mail. It's annoying. Is there another ACLs that could be used that would prevent this from happening? Something to make the folder look like it's empty, for example? --- 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
sieve with SSL/TLS instead of start tls?
Is it possible to configure timsieved to listen on a ssl/tls socket instead of requiring the client to issue start tls? Or should I just use stunnel? --- 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
ETA on sieveshell using start tls?
Is there any eta (weeks, months, oo) on making sieveshell be able to use START TLS? Does somebody know of another text-mode tool to manage sieve scripts which does have start tls 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
Re: fulltext indexing cyrus imap mail?
On Thu, Apr 07, 2005 at 11:30:55AM +0200, Roy Sigurd Karlsbakk wrote: hi all is it possible to somehow fulltext index cyrus' mail? Some users have several gigabytes of email in their accounts so searching through it takes ages... I have a weekly cron job that runs squatter on all cyrus' mailboxes (about 50GB all together). Works wonders for searches. what is squatter? I can't find any info about it... man squatter It's part of the cyrus-imapd software. --- 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
sieve + TLS = DBERROR
Whenever I use sieve with TLS I get this error in the logs upon logout: Apr 3 14:18:02 fox sieve[301]: starttls: TLSv1 with cipher AES256-SHA (256/256 bits new) no authentication Apr 3 14:18:02 fox sieve[301]: login: pandora.conectiva[10.0.2.177] andreas GSSAPI+TLS User logged in Apr 3 14:18:06 fox sieve[301]: DBERROR db4: Database handles open during environment close -- logout here Apr 3 14:18:06 fox sieve[301]: DBERROR: error exiting application: Invalid argument This happened with sivtest -t -m gssapi fox, for example. Other daemons behave ok (pop3, imap, lmtp). Besides the error message, no other problems are visible yet. Any clues? --- 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: Making saslauthd fall back on SASLdb?
On Tue, Mar 29, 2005 at 03:31:13PM -0500, Scott Balmos wrote: Hi all, I had this problem solved months ago, but that was on a different system. I'm running imapd using saslauthd as the authentication mechanism. saslauthd, in turn, is running through PAM, which runs to my LDAP server, to do all authentication. I was wondering if there was a way to get saslauthd, or imapd (whichever is the case), to fall back onto checking the local sasldb2 database (auxprop?). There are a few system accounts, like cyrus and some system-accessible-only manager accounts, that I want to keep out of LDAP. Try this in /etc/imapd.conf: sasl_pwcheck_method: saslauthd auxprop --- 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: Can someone reproduce this possible bug?
On Thu, Mar 24, 2005 at 10:09:04AM -0500, Eddy Beliveau wrote: Hi! When using an accentuated character on a subject line header, your client will modify the Subject line as in: Subject: =?iso-8859-1?Q?=5BMy=5Ffilter=5D_Ol=E0!?= Maybe the filter mechanism see a difference between =5BMy=5Ffilter=5D and [My filter] Can you try to change your rule as: if header :contains Subject =5BMy=5Ffilter=5D { fileinto INBOX.myfilter; } It turns out I can't reproduce it anymore myself, so I closed that ticket. --- 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
Can someone reproduce this possible bug?
https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2455 Summary: if header :contains Subject [My_filter] { fileinto INBOX.myfilter; } An email with subject [My_filter] Hello! will match, but not [My_filter] Olá!. --- 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: old issue, again: cyradm: cannot authenticate to server with DIGEST-MD5
On Mon, Dec 20, 2004 at 09:30:55AM +0100, Sebastian Hagedorn wrote: sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5 sasl_auto_transition: no sasl_minimum_layer: 256 I think this line is your problem. I don't know any application that actually uses a layer for DIGEST-MD5. All the ones I've tried use it only for authentication. Try setting sasl_minimum_layer to 0. My guess is it'll work after that ... mutt uses digest-md5 with ssf=128. AFAIK, digest-md5 can provide only up to 128, so 256 above will probably not work. --- 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: lmtp over SSL - lmtps ?
On Wed, Mar 02, 2005 at 10:03:04AM -0800, Andrew Morgan wrote: On Wed, 2 Mar 2005, Olaf Fraczyk wrote: Hi, Is there any way to make communication in a secure way using lmtp? I would like to have postfix and cyrus on separate machines. We run postfix and cyrus on separate machines. On the cyrus machine, we use tcp-wrappers to permit lmtp connections from only our postfix machines (so malicious users cannot inject messages directly). I don't see a reason to encrypt the lmtp connection, but maybe that's a requirement in your case. The DIGEST-MD5 SASL mechanism has support for data encryption if requested by the client, perhaps lmtp could use it. --- 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
segfaults with 2.1.11
After upgrading to 2.1.11 this morning I started to get random segfaults when switching mailboxes (closing one and opening the other): #0 index_fetchreply (mailbox=0x8130f80, msgno=28, rock=0xbfffc410) at index.c:2371 #1 0x080600ad in index_forsequence (mailbox=0x8130f80, sequence=0x81450d5 , usinguid=0, proc=0x80632e0 index_fetchreply, rock=0xbfffc410, fetchedsomething=0xbfffc390) at index.c:1524 #2 0x080514a0 in cmd_fetch (tag=0x8144fa0 a0008, sequence=0x2ad0fcb0 Address 0x2ad0fcb0 out of bounds, usinguid=0) at imapd.c:3092 #3 0x0805cf06 in cmdloop () at imapd.c:1081 #4 0x0805f69b in service_main (argc=1, argv=0x813b008, envp=0xbfffec0c) at imapd.c:689 #5 0x0804c8f7 in main (argc=1, argv=0x5c93f, envp=0xbfffec0c) at service.c:530 I'm using GSSAPI over TLS and mutt as a client. --- 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: segfaults with 2.1.11
On Mon, Feb 14, 2005 at 11:06:39AM -0200, Andreas Hasenack wrote: After upgrading to 2.1.11 this morning I started to get random segfaults when switching mailboxes (closing one and opening the other): #0 index_fetchreply (mailbox=0x8130f80, msgno=28, rock=0xbfffc410) at index.c:2371 #1 0x080600ad in index_forsequence (mailbox=0x8130f80, sequence=0x81450d5 , usinguid=0, proc=0x80632e0 index_fetchreply, rock=0xbfffc410, fetchedsomething=0xbfffc390) at index.c:1524 #2 0x080514a0 in cmd_fetch (tag=0x8144fa0 a0008, sequence=0x2ad0fcb0 Address 0x2ad0fcb0 out of bounds, usinguid=0) at imapd.c:3092 #3 0x0805cf06 in cmdloop () at imapd.c:1081 #4 0x0805f69b in service_main (argc=1, argv=0x813b008, envp=0xbfffec0c) at imapd.c:689 #5 0x0804c8f7 in main (argc=1, argv=0x5c93f, envp=0xbfffec0c) at service.c:530 I'm using GSSAPI over TLS and mutt as a client. FYI, reverting the change from 2.2.10 - 2.2.11 in index.c stopped the segfaults here (for now at least, I didn't check all the implications yet): --- cyrus-imapd-2.2.11/imap/index.c~2005-01-24 01:06:51.0 -0200 +++ cyrus-imapd-2.2.11/imap/index.c 2005-02-14 11:19:53.515226784 -0200 @@ -207,7 +207,8 @@ seendb = 0; } if (index_len) { - /* Let caller call mailbox_close() to unmap */ + map_free(index_base, index_len); + map_free(cache_base, cache_len); index_len = cache_end = 0; } } --- 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: segfaults with 2.2.11
On Mon, Feb 14, 2005 at 11:06:39AM -0200, Andreas Hasenack wrote: After upgrading to 2.1.11 this morning I started to get random segfaults when That's 2.2.11, of course, not 2.1.11. Ah, monday mornings :) --- 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: Managing IMAP book
On Thu, Feb 10, 2005 at 10:53:05PM -0700, Craig White wrote: Personally I'd think that with projects like www.opengroupware.org and www.open-xchange.com that interest in Cyrus would be on the rise. and with RHEL 4 dropping uw-imap it would seem that it would spur some interest in cyrus as well. Do you know if they are dropping the c-client library as well? That's part of uw-imap and used by, for example, php-imap. --- 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: duplicate delivery suppression is unreliable
On Wed, Jan 26, 2005 at 07:53:10PM -, Kyle Silfer wrote: Andreas Hasenack [EMAIL PROTECTED] said: On Wed, Jan 26, 2005 at 06:29:58PM -, Kyle Silfer wrote: I suspected a problem with deliver.db, so I shut cyrus down and renamed it. The problem remains with the freshly-created deliver.db. This is with Cyrus 2.1.15 on SuSE Linux 9.0. Postfix is the MTA. What should I be doing to fix or investigate this problem? Exactly what DB4 version? I'm using 4.2.52 + two patches and never had this issue. This is 4.1.25 from the SuSE 9.0 install CDs. Are you saying this version may be buggy and I should have the latest? You should check to see if your package has the two official patches from sleepycat: http://www.sleepycat.com/webforms/patchdl.php?src=patch.4.1.25.1 http://www.sleepycat.com/webforms/patchdl.php?src=patch.4.1.25.2 Other than that, you may need to tune your DB_CONFIG file to get rid of those locking problems, but check the patches first. Here are some tips on how to tune DB_CONFIG: http://www.openldap.org/faq/data/cache/893.html They were originally written for OpenLDAP, but apply to everything that uses BDB. --- 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: duplicate delivery suppression is unreliable
On Thu, Jan 27, 2005 at 01:03:19AM -, Kyle Silfer wrote: Kyle Silfer [EMAIL PROTECTED] said: Andreas Hasenack [EMAIL PROTECTED] said: Exactly what DB4 version? I'm using 4.2.52 + two patches and never had this issue. This is 4.1.25 from the SuSE 9.0 install CDs. Are you saying this version may be buggy and I should have the latest? Since no one has responded, let me expand my query: Are there any issues just compiling and installing the latest Berkeley DB sources to match the SuSE RPM file layout? Will my existing Cyrus 4.1.25 databases work with the 4.3.x Berkeley DB? See the recent how to update BDB thread on this mailing list, started a few days ago. --- 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: duplicate delivery suppression is unreliable
On Wed, Jan 26, 2005 at 06:29:58PM -, Kyle Silfer wrote: I suspected a problem with deliver.db, so I shut cyrus down and renamed it. The problem remains with the freshly-created deliver.db. This is with Cyrus 2.1.15 on SuSE Linux 9.0. Postfix is the MTA. What should I be doing to fix or investigate this problem? Exactly what DB4 version? I'm using 4.2.52 + two patches and never had this issue. --- 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: how to update BDB
On Sat, Jan 22, 2005 at 11:33:14AM +0100, Jukka Salmi wrote: Yes, this works, even without dumping and loading. I wonder if I really need to run db_checkpoint and db_recover before removing the log file; for me it seems that's the same like just removing /var/imap/db/__db.* and /var/imap/db/log.* - isn't it? db_recover would also check your database to see if everything is right. It doesn't hurt I guess :) Regarding checkpoint, db_checkpoint would make sure that there are no pendind transactions stored in the log files. --- 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: howto to delete login/passwd in sasldb2
On Fri, Jan 21, 2005 at 09:01:27AM +0100, Andreas Haase wrote: Hi, I just would like to know how I delete the couple login/passwd in the sasldb2 data base ? saslpasswd2 -d login However, take a look at this, it may catch some people by surprise: (/etc/sasldb2 doesn't exist at this point) [EMAIL PROTECTED] ~]# echo secret | saslpasswd2 -c -p testuser [EMAIL PROTECTED] ~]# sasldblistusers2 [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED] ~]# strings /etc/sasldb2 secret testuser pandora.conectiva userPassword [EMAIL PROTECTED] ~]# saslpasswd2 -d testuser [EMAIL PROTECTED] ~]# sasldblistusers2 [EMAIL PROTECTED] ~]# strings /etc/sasldb2 secret testuser pandora.conectiva userPassword [EMAIL PROTECTED] ~]# --- 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: how to update BDB
On Fri, Jan 21, 2005 at 04:18:09PM +0100, Jukka Salmi wrote: Hi, I is probably a FAQ, but I couldn't find an answer to it... On a NetBSD 2.0 system running Cyrus IMAPd 2.2.10 and Berkeley DB 4.2.52 (both installed from pkgsrc) I updated BDB to 4.3.27. After starting master the following was logged: Jan 21 15:47:18 bart master[16978]: process started Jan 21 15:47:18 bart master[10723]: about to exec /usr/pkg/cyrus/bin/ctl_cyrusdb Jan 21 15:47:18 bart ctl_cyrusdb[10723]: DBERROR p*^F^H: db4 Jan 21 15:47:18 bart ctl_cyrusdb[10723]: DBERROR p*^F^H: db4 Jan 21 15:47:18 bart ctl_cyrusdb[10723]: recovering cyrus databases Jan 21 15:47:18 bart ctl_cyrusdb[10723]: skiplist: recovered /var/imap/mailboxes.db (22 records, 3596 bytes) in 0 seconds Jan 21 15:47:18 bart ctl_cyrusdb[10723]: skiplist: recovered /var/imap/annotations.db (13 records, 1392 bytes) in 0 seconds Jan 21 15:47:18 bart ctl_cyrusdb[10723]: DBERROR p*^F^H: db4 Jan 21 15:47:18 bart ctl_cyrusdb[10723]: DBERROR p*^F^H: db4 Jan 21 15:47:18 bart ctl_cyrusdb[10723]: DBERROR: critical database situation Jan 21 15:47:18 bart master[16978]: process 10723 exited, status 75 Jan 21 15:47:18 bart master[16978]: ready for work Jan 21 15:47:18 bart master[29388]: about to exec /usr/pkg/cyrus/bin/ctl_cyrusdb Jan 21 15:47:18 bart ctl_cyrusdb[29388]: DBERROR p*^F^H: db4 Jan 21 15:47:18 bart ctl_cyrusdb[29388]: DBERROR: critical database situation Jan 21 15:47:18 bart master[16978]: process 29388 exited, status 75 The only BDBs I use are duplicate_db and tlscache_db, so I could simply delete $configdirectory/{deliver.db,tls_sessions.db,db/*} and start Cyrus again. But how is it possible to upgrade without deleting the DBs? You would have to get rid of the transaction log files. Probably by checkpointing. According to the BDB docs, the log file format has changed. --- 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: how to update BDB
On Fri, Jan 21, 2005 at 10:49:46PM +0100, Jukka Salmi wrote: Hello, first of all thanks for the replies. Igor Brezac wrote: Reset the bdb environment with the old db_recover binary prior to upgrade. I do not think that the database format changed between the two BDB versions. No, it did not. But the log file format changed. I tried this without success: $ db4_recover.old -v -h /var/imap/db db_recover: Finding last valid log LSN: file: 1 offset 1462435 db_recover: Recovery starting from [1][1462347] db_recover: Recovery complete at Fri Jan 21 22:29:58 2005 db_recover: Maximum transaction ID 8090 Recovery checkpoint [1][1462435] ...but ctl_cyrusdb still complained: master[5394]: about to exec /usr/pkg/cyrus/bin/ctl_cyrusdb ctl_cyrusdb[5394]: DBERROR p*^F^H: db4 ctl_cyrusdb[5394]: DBERROR: critical database situation db_recover does not upgrade the log files, but it does clean the environment and that's a good thing during such an upgrade. Andreas Hasenack wrote: You would have to get rid of the transaction log files. Probably by checkpointing. According to the BDB docs, the log file format has changed. $ db4_checkpoint.old -1 -v -h /var/imap/db db_checkpoint: checkpoint: Fri Jan 21 22:37:42 2005 I guess you will have to get rid of that lone log file. Perhaps this: - recover - checkpoint - dump database with BDB tool - remove log file - reload database with new db_load tool ...same results as above. Sebastian Hagedorn wrote: db_dump and db_restore, perhaps also db_upgrade. $ db4_dump.old deliver.db deliver.db.txt $ db4_dump.old tls_sessions.db tls_sessions.db.txt $ db4_load.new tls_sessions.db tls_sessions.db.txt $ db4_load.new deliver.db deliver.db.txt ...same results again. (Of course I restored /var/imap before every try...) What am I missing? My experience during the time when I had to upgrade from db 4.1.25 to 4.2.52 was that the log file was always in the way and I had to come up with a way to get rid of it. --- 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: Has Berkeley DB bitten us at last?
On Tue, Jan 18, 2005 at 07:23:53PM +0100, Sebastian Hagedorn wrote: Up to now we haven't had any problems attributable to Berkeley DB, contrary to the experience of several other people. But today the following appeared in our logs: Jan 18 13:16:25 lvr13 ctl_cyrusdb[24512]: checkpointing cyrus databases Jan 18 13:16:25 lvr13 ctl_cyrusdb[24512]: archiving database file: /var/lib/imap/annotations.db Jan 18 13:16:25 lvr13 ctl_cyrusdb[24512]: DBERROR db4: /var/lib/imap/db/log.001081: log file open failed: Permission denied For some reason the file /var/lib/imap/db/log.001081 belonged to root! I am pretty sure that nobody changed the ownership manually. Is this a Seems someone ran recover (either db_recover or cyrus' recover utility) as root. Happened to me a lot during my early days with cyrus. --- 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: New cyrus-imapd rpms with some important changes
On Sun, Jan 16, 2005 at 03:08:12PM +0100, Nikola Milutinovic wrote: Did anything specific prompted you do enable idled? What's the big deal/fuss/problem with idled? I'm having problems with my installation of Cyrus IMAP on Tru64 with IdleD enabled. Igor Brezac sugested it could be due to idled. Why is it so suspected of nasty things? Seamed like a good ide to me at the time... Probably because it's not enabled by default (./configure). --- 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: New cyrus-imapd rpms with some important changes
On Sat, Jan 15, 2005 at 06:11:03PM +0100, Simon Matter wrote: I have created new cyrus-imapd rpms release 2.2.10-9 with some important changes: - includes the updated autocreate patches from University of Athens, check the mail from Christos Soulios this week for more info - the package should work correctly on x86_64 now (there was a mess with /usr/lib and /usr/lib64) - IDLED is enabled per default now Did anything specific prompted you do enable idled? --- 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: ReiserFS and general cyrus filesystem usage information - was Re: best filesystem for imap server
On Thu, Dec 02, 2004 at 09:20:20PM -0200, Henrique de Moraes Holschuh wrote: As a first example (and just like you said), if you don't get the DB_CONFIG stuff exactly right, you can get anything from lock ups to environment corruption. This is quite easy to hit with OpenLDAP. From what you wrote, Indeed, openldap's defaults are wrong. In fact, it uses BDB's defaults which are just wrong for openldap. The openldap developers prefer to have the admin change it. I guess subversion will also get hit by this one if DB_CONFIG is not optimal for your dataset. Not necessarily, it may set some parameters itself. Our DB_CONFIG file, though, was shipped with subversion at least. Second, it is prone to behave badly in non-trivial workloads on non-trivial apps on non-trivial (i.e. not UP) boxes. Which is exactly the kind of thing you have on any big Cyrus or OpenLDAP deployment. I have some hopes that Also in our subversion deployment, but it behaves quite nicely. Commit and checkout times are good. the very latest 4.2 fixes this. I *do* know the others didn't, since I've experienced the crashes myself. BDB 4.x is a complex piece of software, and it shows. It is complex indeed. I like to say it has many buttons to turn or press. It's heavily used by openldap and subversion. We, for example, have a And at least with openldap, it causes a lot of trouble. Without a properly tuned DB_CONFIG file, I agree. And the issue of why openldap needs one (and doesn't set some basic values, like a bigger than miserable 32kbytes log buffer) escapes me. --- 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: DB_CONFIG
On Fri, Dec 03, 2004 at 12:53:13AM -0500, Igor Brezac wrote: You need to run the command from cyrus configdirectory/db or db_stat -m -h configdirectory/db. And it has to have a DB environment (aka, those __db* files). --- 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: ReiserFS and general cyrus filesystem usage information - was Re: best filesystem for imap server
On Thu, Dec 02, 2004 at 09:20:20PM -0200, Henrique de Moraes Holschuh wrote: subversion repository with about 50Gb of data on a single berkeley database file (version 4.2.52 + 2patches): Heavy concurrent load on non-UP machines seem to be a much more common cause of trouble with BDB than database size. Index size does couse trouble (when What I meant when I showed the database size was that we trust it enough to deal with it and our precious data (5 full versions of the distribution and all its updates). --- 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: ReiserFS and general cyrus filesystem usage information - was Re: best filesystem for imap server
On Thu, Dec 02, 2004 at 06:48:02PM -0200, Henrique de Moraes Holschuh wrote: wouldn't be appropriate. We could have used bdb, but generally have had lots of problems with bdb so don't entirely trust it... I don't know of anyone sane that trusts any BDB on the 4.x series. With cyrus-imapd, that may be so. But don't generalize, BDB is quite robust. It's heavily used by openldap and subversion. We, for example, have a subversion repository with about 50Gb of data on a single berkeley database file (version 4.2.52 + 2patches): (...) -rw---1 www www 100M 2004-11-30 19:30 log.008597 -rw---1 www www 100M 2004-12-01 14:58 log.008598 -rw---1 www www 100M 2004-12-02 14:38 log.008599 -rw---1 www www 85M 2004-12-02 19:33 log.008600 -rw-r--r--1 www www 57M 2004-12-02 19:33 nodes -rw-r--r--1 www www 62M 2004-12-02 19:33 representations -rw-r--r--1 www www 1,6M 2004-12-02 19:33 revisions -rw-r--r--1 www www 50G 2004-12-02 19:33 strings -rw-r--r--1 www www 24M 2004-12-02 19:33 transactions -rw-r--r--1 www www 8,0K 2004-12-02 19:33 uuids This for about 2 years now (we started with subversion 0.14.3) and no data loss, even after machine crashes due to faulty power supply, low RAM, etc. This obviously needs a correctly tuned DB_CONFIG file, and/or correct tuning from within the application (subversion in this case). Otherwise, if left with BDB's default values for important settings, data corruption *will* happen. --- 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