Re: Using xfer to migrate mailboxes to a new server
On 15 feb 2010, at 15.59, Elver Loho wrote: On 15 February 2010 16:21, Kevin Kobb kk...@skylinecorp.com wrote: The last time we moved to new hardware, I used imapsync to migrate all the mailboxes to the new hardware. We moved from a different IMAP server to Cyrus, and this worked great. I don't know if this work as well now moving from Cyrus to Cyrus, as I don't think it would pick up quotas and believe xfer will. imapsync sounds like it could be the right tool for the job. Thanks! I'll check it out :) Best, Elver Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html Hi I did 1. create new mailboxes on target server and added quotas 2. The below XXX.YYY.COM:/home # more /tmp/migrate-imap.sh ./imapsync --host1 192.168.3.5 --user1 per --passfile1 /root/passfile-per --authmech1 plain --host2 XXX.YYY.COM --user 2 per --passfile2 /root/passfile-per --authmech2 plain --delete2 --expunge2 --syncinternaldates --subscribe --syncacls --ex clude 'Other Users.*' --exclude 'Shared Folders.*' ./imapsync --host1 192.168.3.5 --user1 john --passfile1 /root/passfile-john --authmech1 plain --host2 XXX.YYY.COM --user2 john --passfile2 /root/passfile-john --authmech2 plain --delete2 --expunge2 --syncinternaldates --subscribe --syncacls --exclude 'Other Users.*' --exclude 'Shared Folders.*' ---cut the rest It's resonalbe fast The bad thing is that you need all passwords. So this is not an ideal solution, but for sure it works great when you don't have all the time you would like to dig for a better solution. I did this for only 20-30 persons and could therefor live with the password issue. A few of them had mailboxes of 3-6 GB each. Hope it could be of any help /Per-Olov -- GPG keyID: 5231C0C4 GPG fingerprint: B232 3E1A F5AB 5E10 7561 6739 766E D29D 5231 C0C4 GPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x766ED29D5231C0C4 Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: 430 Authentication required
On Wed, February 1, 2006 16:32, Antoine Jacoutot wrote: Hi... From time to time, I get the following in my logs : sm-mta[29466]: k1183niY029466: to=username, delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=3, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=4.0.0, stat=Deferred: 430 Authentication required The message then get stuck and it is delivered when the queue is flushed. The strange thing is that I do _not_ use any smtp authentication system (nor any other actually) and that this problem only happens randomly (no error in my cyrus-imapd log either). On usenet one told me to try : $ (echo 'subject: test'; echo)| sendmail -Am -v [EMAIL PROTECTED] [EMAIL PROTECTED] Connecting to local... [EMAIL PROTECTED] Sent It works fine. It's kind of a pain to debug since it only happens from time to time and I cannot find a way to reproduce this. Do you have any idea where this could come from ? Let me know if you need anymore information. Regards, -- Antoine 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 Hi Antoine Any solution to this yet? Asking as I have had the same thing for a while now. And as you say, a queue run from sendmail and the mail is delivered... And it also happens randomly as you say. The problem came with the OpenBSD 37-3.8 upgrade (the OS or a newer sendmail). If it's not the OS or the newer sendmail it must be a change i the cyrus 2.2.12 port that I now use from 3.8 stable tree instead of the earlier inofficial 2.2.12 port. The cyrus and sendmail conf is exactly the same. Thanks Per-Olov Sjöholm 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: SpamAssassin help not learning
On Thursday 02 February 2006 22.39, Benjamin Adams wrote: I'm running spamassassin on Mac OS X tiger I created a mail account for for everyone to send their spam to be submitted. Then I created a script that would run: su cyrusimap -c 'sa-learn -spam nameusername/*.' This seamed to work but now I don't think its working I want to lower my hits required to 3.5 I tried changing /var/mail/spamassassin/local.cf required_hits 3 But the mail coming in still says required 5, is this the wrong file? Do I have to restart something? anyone have a other ideas to stop spam I'm getting slammed with it. Thanks for any help Ben 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 Run with -D for debug. Then you will see all the config files etc it reads so you can detect if /var/mail/spamassassin/local.cf is read at all. /Per-Olov 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: Sendmail aliases and Cyrus
On Monday 21 November 2005 06.38, Anthony Tibbs wrote: Hi everyone, I was trying to check the list archives for some hints, but it seems that that server is having some 'difficulties' at the moment, and isn't responding. I am currently in the process of setting up another Cyrus/IMAP server, as I've been (personally) running Cyrus/Sendmail for a few years now with good results. I had the usual sendmail+virtdomains+cyrus hoops to jump through, but now have THAT working all right (by way of a mailertable entries, i.e. mydomain.cacyrusv2d:/var/lib/imap/socket/lmtp The problem is that for this to WORK, mydomain.ca must not be considered a local domain (i.e. it must not be in local-host-names), since this results in a rewrite that strips the 'host' portion of the address off, and then Cyrus rejects the message with an 'unknown mailbox' error. And all of this ultimately means that I can't use sendmail aliases (for non-local addresses), which I need in order to redirect such things as postmaster, root, etc. to a particular user. Have I missed something simple here? I've tried following the instructions at http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html but that is where I am getting stuck... 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 Is it a problem to use virtuserdomainfile and virtusertable? This stuff can be enabled by using: --snip-- VIRTUSER_DOMAIN_FILE(`/etc/mail/virtuserdomainfile')dnl FEATURE(`virtusertable',`hash /etc/mail/virtusertable.db')dnl --snip-- In the sendmail.mc file. Regards /Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE 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: Importing MBOX-formatted mailboxes into Cyrus?
On Wednesday 16 November 2005 17.01, Matt Singerman wrote: Hello, We are currently moving away from a POP3-based system (QuickMail Pro server and client) to IMAP, with Cyrus as the IMAP server and primarily Thunderbird as the client. Have already succesfully transitioned our users to using IMAP via Thunderbird. The problem we have run into is with older emails. QuickMail uses its own format for storing messages. I was able to convert these into standard MBOX format using a tool called qmptombox, which we were able to import into Thunderbird's Local Folders. Ideally, however, we would like to have these messages reside on the IMAP server itself. Are there any tools available that will take MBOX mailboxes and insert them into Cyrus? If not, if anyone has found a suitable workaround, I would love to hear it. Thanks, Matt Have you tried imapcp by Jean-Philippe Langlois ([EMAIL PROTECTED]). It's a cmd tool where you simply specify user, password and host for both source and target system and is used over the net... /Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE 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: Misc question about LDAP and admin stuff
On Wednesday 27 July 2005 14.20, Kevin Menard wrote: Hi Igor, On Jul 27, 2005, at 6:59 AM, Igor Brezac wrote: Hmmm. I do know understand your LDAP performance comment Why should you write often to LDAP in a scenario like this??? You configure the attributes rarely and then read them often. I can only see writes during user password change or any other admin changes of user attributes. *One* of the golden rules to use LDAP is to have *many* more reads for each write (example 1000:1). I work with LDAP in my daily work. But I maybe missunderstood you... You said you wanted quotas stored in ldap, this will require frequent writes to ldap I'm going to chime in here if you don't mind, since several years ago I began work on LDAP quota look-ups. Unfortunately, I never completed the work, although the design discussions between Larry and me should still be in the archives. Back then we felt, and I still feel now, that you would only want to store the actual quota threshold in LDAP. There is no reason to store how much of the mailbox is actually being used in LDAP, since this is in information that is practically useless outside of Cyrus. This would result in read-only operations from the LDAP backend, unless a user's quota is to be changed (which should be an infrequent operation). Yes... I agree with you Kevin. I do not see the frequent writes in LDAP for quotas ...Especially not if it has a good design (which we of course must have). Not using your approach and updating LDAP very often about mailbox usage can of course give a performance penalty (which maybe is the approach Igor was thinking of). I do not see huge problems to store other Cyrus related data in LDAP either if the Cyrus developers want to make it possible. It will mostly be reads unless something changes which is infrequent. But let's drop this discussion now as it seems to have turned into a performance discussion which it was not in the original post. But others can continue the thread if they are interested and want to discuss performance... Many posts will give good stuff to dig in when we search for info ;-) Tnx for all good input from Igor and others. /Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgpoFbDvI3cjb.pgp Description: PGP signature
Re: Misc question about LDAP and admin stuff
On Saturday 23 July 2005 17.37, Igor Brezac wrote: On Fri, 22 Jul 2005, Per-Olov [iso-8859-1] Sjöholm wrote: On Thursday 21 July 2005 16.17, Igor Brezac wrote: On Thu, 21 Jul 2005, Per-Olov [iso-8859-1] Sjöholm wrote: Hi list Does anybody know if there are any work going on to implement the stuff that the third party cyrusmaster requires to work and extend the LDAP support in cyrus imapd? If not... Is there any work at all going on to add good LDAP or MySQL support? I really love cyrus imapd but think it lacks some stuff when it comes to LDAP or MySQL support. Can you be more specific? Your'e right... I am not just talking about LDAP auth using any PAM stuff. Cyrus imapd in not directly LDAP friendly. From the authentication/authorizaion stand point it is very friendly. Perhaps it is not easily configured. Take a look at ptloader/ldap and cyrus sasl documentation (there are several different ways to configure ldap based authentication). I am *not* talking about LDAP auth. I know that this is easily configured... I have already used it *a lot*. Me and my colleague have actually extended Cyrus sasl with extra Oracle auth through SQL*Net for a large Telecom/ISP customer. So yes... I know Cyrus SASL... Let's say you want to put quota info in LDAP. And in huge installations you maybe want to put as much info as possible into a central repository using LDAP protocol. And not just quota, It is fairly trivial to develop an ldap based cyrus db backend. But in a 'huge' installation I do not believe you can achieve desired performance and reliability. ldap just does not do well when you have to write to it often. Yes it is fairly trivial for a person with the correct programming skills (not me)... But it is not in the product today. And that is why I ask... Hmmm. I do know understand your LDAP performance comment Why should you write often to LDAP in a scenario like this??? You configure the attributes rarely and then read them often. I can only see writes during user password change or any other admin changes of user attributes. *One* of the golden rules to use LDAP is to have *many* more reads for each write (example 1000:1). I work with LDAP in my daily work. But I maybe missunderstood you... maybe alternate e-mail adresses and more. You can do this now. Did not know thatSorry. Thanks for telling me. But what I meant by more above could for example be quota, acl , virtual domain stuff etc. Between the lines I can read a try to defend cyrus as it is good as it is in the LDAP area. But there is definitely no need to do that, because I already think Cyrus imapd is the best OpenSource product in this area. And also better than many commercial ones. I have it in some customer installations, and it works really well. The cyrusmaster project looks nice. It looks like the most powerful admin software for cyrus and great for big installations. If we start to use it, we have to wait for LDAP extension patches from the cyrusmaster project after each cyrus update. Simple LDAP extension patches for basic (well.. almost) ldap features that could already have been in the product. And believe me... I would have helped the Cyrus project extending the LDAP support if I was a real programmer. But I am maybe the only person ansking for some more centralized LDAPified config stuff for Cyrus. If so. Let's skip the LDAP discussion. As said earlier, it's not important to me today. Just asked because of curiosity to see what is in the Cyrus developers pipe My question is just because I am interested to know if there is any work going on to make is more LDAP friendly. And the main reason for asking is because the cyrusmaster project has extended cyrus to contain some of this stuff. And the last... Excuse me if I totally missed something important here. Regards Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgpQlyaIhlIWx.pgp Description: PGP signature
Re: virus scan on cyrus mailboxes
Yes. it works really well. If you use it through milter you can use the build in clamav-milter or the third party smtp-vilter milter connector by Marc Balmer. I prefer the smtp-vilter as it seems more stable and also have more features. For example to also connect to spamassassin spamd and Symantec antivirus through ICAP and more. If you use smtp-vilter you do not have to rip up the mail twice with spam checking and then virus scanning. It's all done when the mail is open. Enjoy clamav. I love it. Regards /Per-Olov On Monday 25 July 2005 20.01, Philip Edelbrock wrote: I found clamav to work quite well. http://www.clamav.net/ It works through a sendmail-milter. It connects periodicly to the 'net to get virus sig updates. It blocks more than virii, too, including (configurable) encrypted archives, broken executables, phishing emails, etc. Phil Mikael wrote: Hello, I'm looking for a solution to clean cyrus' mailboxes from viruses (I already have mailscanner working on incoming mails). I'm running cyrus imapd 2.1 on debian sarge and I've found very little information about that matter. The most usable solution I've found comes from this link : http://www.irbs.net/internet/info-cyrus/0404/0261.html Maybe I've not looked at the good places but I'm surprised of having found so few informations on that problem so I ask my question here. How do you deal with the viruses that have slipped through your smtp antivirus solution ? Thanks in advance, --- 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 -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgp8gVk4eQGlT.pgp Description: PGP signature
Re: Misc question about LDAP and admin stuff
On Thursday 21 July 2005 16.17, Igor Brezac wrote: On Thu, 21 Jul 2005, Per-Olov [iso-8859-1] Sjöholm wrote: Hi list Does anybody know if there are any work going on to implement the stuff that the third party cyrusmaster requires to work and extend the LDAP support in cyrus imapd? If not... Is there any work at all going on to add good LDAP or MySQL support? I really love cyrus imapd but think it lacks some stuff when it comes to LDAP or MySQL support. Can you be more specific? Your'e right... I am not just talking about LDAP auth using any PAM stuff. Cyrus imapd in not directly LDAP friendly. Let's say you want to put quota info in LDAP. And in huge installations you maybe want to put as much info as possible into a central repository using LDAP protocol. And not just quota, maybe alternate e-mail adresses and more. My question is just because I am interested to know if there is any work going on to make is more LDAP friendly. And the main reason for asking is because the cyrusmaster project has extended cyrus to contain some of this stuff. /Per-Olov I have not yet tested cyrusmaster. But it looks really nice. http://email.uoa.gr/projects/cyrusmaster/screenshots.php This is what they say about the standard cyrus: http://email.uoa.gr/projects/cyrusmaster/important_note.php This is not mega important to me. I am just asking as if you don't ask, you will never know... Thanks in advance Per-Olov Sjöholm -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgp1SJAy88kxO.pgp Description: PGP signature
Misc question about LDAP and admin stuff
Hi list Does anybody know if there are any work going on to implement the stuff that the third party cyrusmaster requires to work and extend the LDAP support in cyrus imapd? If not... Is there any work at all going on to add good LDAP or MySQL support? I really love cyrus imapd but think it lacks some stuff when it comes to LDAP or MySQL support. I have not yet tested cyrusmaster. But it looks really nice. http://email.uoa.gr/projects/cyrusmaster/screenshots.php This is what they say about the standard cyrus: http://email.uoa.gr/projects/cyrusmaster/important_note.php This is not mega important to me. I am just asking as if you don't ask, you will never know... Thanks in advance Per-Olov Sjöholm -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgpdMsu1IePry.pgp Description: PGP signature
Re: DBERROR
Simon Matter said: Adding the following to the original post as well. Directly after boot, the log looks like this. And then it will continue to look good with checkpointings until I restart the cyrus process... Jul 13 22:50:02 xanadu master[1766]: process started Jul 13 22:50:03 xanadu ctl_cyrusdb[10342]: recovering cyrus databases Jul 13 22:50:03 xanadu ctl_cyrusdb[10342]: skiplist: recovered /var/imap/mailboxes.db (198 records, 33552 bytes) in 0 seconds All skiplist databases are always recovered on startup, nothing wrong here. Jul 13 22:50:03 xanadu ctl_cyrusdb[10342]: skiplist: recovered /var/imap/annotations.db (0 records, 144 bytes) in 0 seconds Jul 13 22:50:06 xanadu ctl_cyrusdb[10342]: done recovering cyrus databases Jul 13 22:50:06 xanadu master[1766]: ready for work Jul 13 22:50:06 xanadu ctl_cyrusdb[2060]: checkpointing cyrus databases Jul 13 22:50:07 xanadu ctl_cyrusdb[2060]: done checkpointing cyrus databases /Per-Olov On Wednesday 13 July 2005 22.24, Per-Olov Sjöholm wrote: Hi Does anybody know why this show up in the logs every half hour Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: checkpointing cyrus databases Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: error listing log files: Permission denied Check your permissions on and in the /var[/lib]/imap directory, something seems really wrong here. User _cyrus has all access to read and write to the files. And it works as said if I reboot. Simon Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: archive /var/imap/db: cyrusdb error Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: error listing log files: Permission denied Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: archive /var/imap/db: cyrusdb error Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: done checkpointing cyrus databases The above stuff can be seen after a restart of /usr/local/libexec/cyrus-imapd/master. The rights are ok on the files. But I can't get rid of this error. But the mailserver works... The only way to get rid of this message is to reboot the whole server. Then it will show the following every half hour: Jul 12 17:16:12 xanadu ctl_cyrusdb[29647]: checkpointing cyrus databases Jul 12 17:16:13 xanadu ctl_cyrusdb[29647]: done checkpointing cyrus databases Jul 12 19:46:12 xanadu ctl_cyrusdb[6336]: checkpointing cyrus databases Jul 12 19:46:13 xanadu ctl_cyrusdb[6336]: done checkpointing cyrus databases Jul 12 20:16:12 xanadu ctl_cyrusdb[27763]: checkpointing cyrus databases Jul 12 20:16:13 xanadu ctl_cyrusdb[27763]: done checkpointing cyrus databases Which is good. But after a cyrus restart the same problem occur again. I use 2.2.12. What is the problem here? Thanks in advance Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE --- 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: DBERROR
Thank you VERY much Gary. You were right. It worked if I first did a change directory to /. Hope the bug will be fixed for next release. Thanks /Per-Olov Jul 13 22:50:06 xanadu ctl_cyrusdb[2060]: checkpointing cyrus databases Jul 13 22:50:07 xanadu ctl_cyrusdb[2060]: done checkpointing cyrus databases On Wednesday 13 July 2005 22.24, Per-Olov Sjöholm wrote: Does anybody know why this show up in the logs every half hour Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: checkpointing cyrus databases Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: error listing log files: Permission denied Check your permissions on and in the /var[/lib]/imap directory, something seems really wrong here. User _cyrus has all access to read and write to the files. And it works as said if I reboot. This error is the result of a long-standing bug in `master'. It fails to chdir() to a safe directory before changing to the cyrus UID and spawning children. A workaround is to `cd' to / or the IMAP directory before restarting master. -- -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: Cyrus bug? - Strange over quota behaviour in cyrus imapd 2.2.12
Paul Raines said: Found this out myself last week and answered the same issue for someone else yesterday. The max quota you can set is 4GB (using 400) and anything over will result in a seemingly random quota limit as it takes a 32-bit bit mask of what you have given over 4GB -- --- Paul Rainesemail: raines at nmr.mgh.harvard.edu MGH/MIT/HMS Athinoula A. Martinos Center for Biomedical Imaging 149 (2301) 13th Street Charlestown, MA 02129 USA It seems to work as expected with 400 ! Do you know if anybody is working on it? Regards Per-Olov Sjöholm --- 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 bug? - Strange over quota behaviour in cyrus imapd 2.2.12
Good info! Now I know the status. I can live with 4Gb for now ;-) Thank you very much /Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE On Wednesday 13 July 2005 15.11, Paul Raines wrote: Yes, the archive of this list shows a message that it is increased to a 64-bit max in the next major release. Some is considering backporting a patch. At the very least, IMHO, the next minor release should prevent admins from assigning quotas over 4GB. On Wed, 13 Jul 2005, Per-Olov Sjöholm wrote: Paul Raines said: Found this out myself last week and answered the same issue for someone else yesterday. The max quota you can set is 4GB (using 400) and anything over will result in a seemingly random quota limit as it takes a 32-bit bit mask of what you have given over 4GB pgpSZbhrs6peD.pgp Description: PGP signature
DBERROR
Hi Does anybody know why this show up in the logs every half hour Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: checkpointing cyrus databases Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: error listing log files: Permission denied Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: archive /var/imap/db: cyrusdb error Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: error listing log files: Permission denied Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: archive /var/imap/db: cyrusdb error Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: done checkpointing cyrus databases The above stuff can be seen after a restart of /usr/local/libexec/cyrus-imapd/master. The rights are ok on the files. But I can't get rid of this error. But the mailserver works... The only way to get rid of this message is to reboot the whole server. Then it will show the following every half hour: Jul 12 17:16:12 xanadu ctl_cyrusdb[29647]: checkpointing cyrus databases Jul 12 17:16:13 xanadu ctl_cyrusdb[29647]: done checkpointing cyrus databases Jul 12 19:46:12 xanadu ctl_cyrusdb[6336]: checkpointing cyrus databases Jul 12 19:46:13 xanadu ctl_cyrusdb[6336]: done checkpointing cyrus databases Jul 12 20:16:12 xanadu ctl_cyrusdb[27763]: checkpointing cyrus databases Jul 12 20:16:13 xanadu ctl_cyrusdb[27763]: done checkpointing cyrus databases Which is good. But after a cyrus restart the same problem occur again. I use 2.2.12. What is the problem here? Thanks in advance Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgpwhVmzh5b4W.pgp Description: PGP signature
Re: No CYRUSV2_MAILER_MAX macro?
On Wednesday 13 July 2005 21.16, Fred Bacon wrote: I'm attempting to set a limit on the maximum size of messages handled by our email system. I'm using cyrus imapd 2.2.12 and sendmail 8.13.4 on a Fedora Core 3 system. I want to set the M= equate for the cyrusv2 mailer in my sendmail.mc file with something like define(`CYRUSV2_MAILER_MAX',`2000') but it appears that this is not defined in the cyrusv2.m4 file. I don't want to enable quotas for the system. I can hand edit the sendmail.cf file, but that's not a very robust solution to the problem. Is there a more appropriate way to implement this constraint? Perhaps it would be better for me to add _OPTINS(`CYRUSV2_MAILER_MAX', `C=', `, ') in the appropriate location in the cyrusv2.m4 file and maintain that patch. That would certainly be simpler than hand editing the cf file every time I make a minor change. Fred You say: --snip-- I'm attempting to set a limit on the maximum size of messages handled by our email system. --snip-- Why don't you do that by adding the following to sendmail.mc define(`confMAX_MESSAGE_SIZE', `1000')dnl Otherwise I think you are just trying to set a limit on the cyrus sub system only. Or did I miss some point here? Regards /Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgpQqUJLsVO9n.pgp Description: PGP signature
Re: DBERROR
Adding the following to the original post as well. Directly after boot, the log looks like this. And then it will continue to look good with checkpointings until I restart the cyrus process... Jul 13 22:50:02 xanadu master[1766]: process started Jul 13 22:50:03 xanadu ctl_cyrusdb[10342]: recovering cyrus databases Jul 13 22:50:03 xanadu ctl_cyrusdb[10342]: skiplist: recovered /var/imap/mailboxes.db (198 records, 33552 bytes) in 0 seconds Jul 13 22:50:03 xanadu ctl_cyrusdb[10342]: skiplist: recovered /var/imap/annotations.db (0 records, 144 bytes) in 0 seconds Jul 13 22:50:06 xanadu ctl_cyrusdb[10342]: done recovering cyrus databases Jul 13 22:50:06 xanadu master[1766]: ready for work Jul 13 22:50:06 xanadu ctl_cyrusdb[2060]: checkpointing cyrus databases Jul 13 22:50:07 xanadu ctl_cyrusdb[2060]: done checkpointing cyrus databases /Per-Olov On Wednesday 13 July 2005 22.24, Per-Olov Sjöholm wrote: Hi Does anybody know why this show up in the logs every half hour Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: checkpointing cyrus databases Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: error listing log files: Permission denied Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: archive /var/imap/db: cyrusdb error Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: error listing log files: Permission denied Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: DBERROR: archive /var/imap/db: cyrusdb error Jul 13 21:53:24 xanadu ctl_cyrusdb[4270]: done checkpointing cyrus databases The above stuff can be seen after a restart of /usr/local/libexec/cyrus-imapd/master. The rights are ok on the files. But I can't get rid of this error. But the mailserver works... The only way to get rid of this message is to reboot the whole server. Then it will show the following every half hour: Jul 12 17:16:12 xanadu ctl_cyrusdb[29647]: checkpointing cyrus databases Jul 12 17:16:13 xanadu ctl_cyrusdb[29647]: done checkpointing cyrus databases Jul 12 19:46:12 xanadu ctl_cyrusdb[6336]: checkpointing cyrus databases Jul 12 19:46:13 xanadu ctl_cyrusdb[6336]: done checkpointing cyrus databases Jul 12 20:16:12 xanadu ctl_cyrusdb[27763]: checkpointing cyrus databases Jul 12 20:16:13 xanadu ctl_cyrusdb[27763]: done checkpointing cyrus databases Which is good. But after a cyrus restart the same problem occur again. I use 2.2.12. What is the problem here? Thanks in advance Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgpDSnA8jiq3q.pgp Description: PGP signature
Cyrus bug? - Strange over quota behaviour in cyrus imapd 2.2.12
Hi list My mailclient just started to show info about I am reaching 90% of my mail quota... which is false. I am using kmail in my daily work, but have tested this with evolution as well. In cyradm I have since a long time had the value of quota set to 500 (5gig). On disk a du -h /var/spool/imap/user/imapuserid/ shows 924M. When this happens cyradmin shows 14% usage of the mailbox (seems ok according to diskusage) I have tried a su -m _cyrus -c '/usr/local/libexec/cyrus-imapd/quota -f -C /etc/imapd.conf as well which also shows 14% usage. When I instead in cyradmin set the quota to 50 (5000gig) the mailclient reports a mailbox that is over quota??? When I disable the quota by not setting it for the mailbox the quota warnings go away. Is this some kind of overflow bug in cyrus ? Is this a known problem? And is there a better workaround? (my filesystem is consistent with OS quota unlimited) Thanks in advance Per-Olov Sjöholm -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgpXZnu737RUN.pgp Description: PGP signature
Re: Restore mail from backup
On Monday 11 April 2005 17.13, Hamish wrote: On Monday 11 April 2005 15:29, [EMAIL PROTECTED] wrote: Hamish wrote: On Monday 11 April 2005 14:07, Dave McMurtrie wrote: Hamish wrote: Hello everyone I am having trouble restoring files from a backup, I have made the backup just with rsync, so i have the contents of the spool/domain/mydomain.com/user/myuser in the backup. It seems that the user's mailbox has been deleted, so what I aim to do is create a new user with the same name, copy the files from the backup, then run reconstruct (please tell me if this is wrong) I copy the files across, but in cyradm when `running reconstruct user/[EMAIL PROTECTED] gives Operating System Error. Could someone point me in the right direction? Thanks, H The restored files are owned by root instead of your cyrus user? Thanks for the suggestion, but no they are owned by the cyrus user (I am using a kolab server, so the user is kolab-r). I have found that I cannot reconstruct even a new mailbox, is this normal? AFAIK (running 2.1.18) you need to run reconstruct (as the cyrus user) as 'reconstruct -r user.myuser' The dot (.) is the hierarchy separator. The -r is for recursively. I managed to get it right by using cyrreconstruct, instead of cyradm, not sure why this worked like this though! Thanks for the suggestions, H Make sure to do something like this in cron: -- su -m cyrususer -c '/usr/local/libexec/ctl_mboxlist -d /var/imap/mailboxes.db-dump' -- Tell me if I am wrong... but I think this mailboxes.db file is the only file that cannot be restored with any reconstruct commands. In other words... It's important to backup. This dump give it to you in text form. I think the running mailboxes.db file is in binary. And are you sure your rights etc are correct on your folder now? This as this database describes the rights on the files etc.. Regards /Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE --- 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 Authentication Fails
On Thursday 03 February 2005 23.24, Dan Perez wrote: Hi All, I see that this question has been posted before, but I don't see a clear answer, so forgive me. Any leads would be appreciated. I'm running cyrus 2.2.10, on RHEL 3.0. It works great. Now I want to start using sieve... but I can't get sieveshell to connect to the server and I don't understand why. [EMAIL PROTECTED] log]# sieveshell -u cyrus localhost connecting to localhost Please enter your password: unable to connect to server at /usr/bin/sieveshell line 169, STDIN line 1. my imapd conf: configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt saslauthd is running w/ -a pam Authentication works fine for the IMAP server, cyradm. Sieve is listening... [EMAIL PROTECTED] log]# telnet localhost sieve Trying 127.0.0.1... Connected to localhost (127.0.0.1). Escape character is '^]'. IMPLEMENTATION Cyrus timsieved v2.2.10-Invoca-RPM-2.2.10-8 SASL PLAIN SIEVE fileinto reject envelope vacation imapflags notify subaddress relational comparator-i;ascii-numeric regex STARTTLS OK Heck, I even get sieve headers in my emails... X-Sieve: CMU Sieve 2.2 Any ideas? Thanks, Dan --- 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 Hi See my attached /etc/imad.conf file Take an extra look at the row allowplaintext. There are maybe other ways around the problem. But I have not found any (yet)... So allowplaintext: yes is needed for sieve logins to work. If TLS is required the sieve login will fail. That was the case with earlier realeases... Now I use 2.2.10 and have not checked if sieve works with TLS. --snip-- configdirectory: /var/imap partition-default: /var/spool/imap admins: root cyradm admin1 admin2 sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN LOGIN allowanonymouslogin: no allowplaintext: yes -- NEED THIS FOR SIEVE LOGIN THAT FAILS OTHERWISE sendmail: /usr/sbin/sendmail quotawarn: 90 servername:MY_FQDN_IMAP_HOST sievedir: /var/sieve sieve_maxscripts: 20 timeout: 240 sievenotifier: mailto mailnotifier: mailto altnamespace: 1 berkeley_cachesize: 8192 postmaster: [EMAIL PROTECTED] sharedprefix: Shared Folders userprefix: Other Users imapidlepoll: 60 tls_cert_file: /var/imap/server.pem tls_key_file: /var/imap/server.pem tls_ca_file: /var/imap/server.pem --snip-- Hope this could be of any help. Regards /Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE pgpPRveYQYWcu.pgp Description: PGP signature
Re: Cyrus 2.2.8: imapd dies + corrupt inbox
On Thursday 27 January 2005 12.11, Bernd Nies wrote: Dear Cyrus community, We are running Cyrus 2.2.8 on Solaris 8 using saslauthd and LDAP authentication. Since we upgraded to Cyrus 2.2.8 it happens frequently that users inboxes get corrupted and clients cannot connect. Is this a known bug and has it been fixed with Cyrus 2.2.10? The entry in the logfile is: Jan 13 08:23:59 ducati master[29375]: [ID 970914 local6.error] process 16678 exited, signaled to death by 11 Jan 13 08:23:59 ducati master[29375]: [ID 621917 local6.debug] service imap pid 16678 in BUSY state: terminated abnormally A pstack on the imapd core file gives: core 'core' of 16678: imapd 0003b060 mailbox_expunge (1381b0, 0, 0, 16227, 112d70, 0) + 4c0 00022800 cmd_expunge (119b38, 0, 119778, 107c00, 1, 11acf0) + 58 0001b71c cmdloop (0, 131db8, 0, 0, 1c68c, 0) + d94 0001a6a4 service_main (0, 1134c8, ffbefa3c, 2, 0, 18dc0) + 320 00018f14 main (417ca8bf, f4598, ffbefa3c, 1130a8, 69800, 3c) + 87c 00018260 _start (0, 0, 0, 0, 0, 0) + 5c Cyrus IMAP 2.2.10 did not fix the problem with crashing imapd processes. I have opened a bugzilla for this https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2617 and hope somone might have a look at this. I can provide core files but I don't want to post them as bugzilla attachment since they may contain sensitive information. Thanks in advance for help. Regards, Bernd --- 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 How is it going with the problem? Could this be a Solaris only problem. Asking as I am using OpenBSD. And I have use all releases from 2.2.6 to 2.2.10 on OpenBSD 3.5 and 3.6 and never ever had a Cyrus crash or a corrupt mailbox. I am working for a Sun microsystems partner and have a customer that eventually want to use Cyrus on a couple of 240 servers. So I also have an interest in this case. Do you have much load ? (My load is not that high) /Per-Olov -- GPG keyID: 4DB283CE GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE --- 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