From eugen.wintersberger at jku.at Wed Jul 2 03:04:29 2008 From: eugen.wintersberger at jku.at (Eugen Wintersberger) Date: Wed, 02 Jul 2008 09:04:29 +0200 Subject: changing namespace on a running server Message-ID: <1214982269.13105.3.camel@wheeler.hlphys.uni-linz.ac.at> Hi there I am new to this mailing list and hope you can help me. I use the cyrus IMAP server using the common namespace scheme. Now, since we need shared mail boxes, I have to switch to the alternate scheme. Can I do this with a running server? Meaning: when I change now the configuration and restart the server do I have to expect any kind of data loos? regards Eugen Wintersberger -- -------------------------------------------- | | | Dipl. Ing. Eugen Wintersberger | | Department of semicondutor physics | | University of Linz | | Altenbergerstrasse 69 | | A-4040 Linz | | Austria | | | | Mobile.: +43 664 3112861 | | Tel.: +43 732 2468 9605 | | E-Mail.: eugen.wintersberger at jku.at | | Skype: eugen20056221 | | ICQ: 214418739, nickname: thot | | | -------------------------------------------- From eugen.wintersberger at jku.at Wed Jul 2 03:47:05 2008 From: eugen.wintersberger at jku.at (Eugen Wintersberger) Date: Wed, 02 Jul 2008 09:47:05 +0200 Subject: changing namespace on a running server Message-ID: <1214984825.13340.0.camel@wheeler.hlphys.uni-linz.ac.at> Hi there I am new to this mailing list and hope you can help me. I use the cyrus IMAP server using the common namespace scheme. Now, since we need shared mail boxes, I have to switch to the alternate scheme. Can I do this with a running server? Meaning: when I change now the configuration and restart the server do I have to expect any kind of data loos? regards Eugen Wintersberger -- -------------------------------------------- | | | Dipl. Ing. Eugen Wintersberger | | Department of semicondutor physics | | University of Linz | | Altenbergerstrasse 69 | | A-4040 Linz | | Austria | | | | Mobile.: +43 664 3112861 | | Tel.: +43 732 2468 9605 | | E-Mail.: eugen.wintersberger at jku.at | | Skype: eugen20056221 | | ICQ: 214418739, nickname: thot | | | -------------------------------------------- From PerSteinar.Iversen at hio.no Wed Jul 2 08:07:02 2008 From: PerSteinar.Iversen at hio.no (Per Steinar Iversen) Date: Wed, 2 Jul 2008 14:07:02 +0200 (CEST) Subject: A problem with sieveshell Message-ID: I recently moved my Cyrus imapd from RHEL 4 Update 6 to RHEL 5.2 The only problem found so far after the move is with sieveshell, the "-a" option does not work any more. This used to work as expected: sieveshell -a cyrusadmin -u user localhost On the new server this seems to work fine too, but now the shell is always connected to the default sieve directory and not to the specified users sieve directory. Both the old and new server use the same rpm from Simon Matter, 2.3.12p2-1 Is this a known problem or have I managed to introduce some strange new configuration error? sieveshell -a user -u user localhost works as expected still. -psi From aspineux at gmail.com Thu Jul 3 21:48:04 2008 From: aspineux at gmail.com (Alain Spineux) Date: Fri, 4 Jul 2008 03:48:04 +0200 Subject: changing namespace on a running server In-Reply-To: <1214982269.13105.3.camel@wheeler.hlphys.uni-linz.ac.at> References: <1214982269.13105.3.camel@wheeler.hlphys.uni-linz.ac.at> Message-ID: <71fe4e760807031848j2bf59564p17d5ee200d25b573@mail.gmail.com> On Wed, Jul 2, 2008 at 9:04 AM, Eugen Wintersberger wrote: > Hi there > I am new to this mailing list and hope you can help me. I use the cyrus > IMAP server using the common namespace scheme. Now, since we need shared > mail boxes, I have to switch to the alternate scheme. > Can I do this with a running server? Meaning: when I change now the > configuration and restart the server do I have to expect any kind of > data loos? No data lost. Be careful to update your sieve script accordingly > > regards > Eugen Wintersberger > > -- > -------------------------------------------- > | | > | Dipl. Ing. Eugen Wintersberger | > | Department of semicondutor physics | > | University of Linz | > | Altenbergerstrasse 69 | > | A-4040 Linz | > | Austria | > | | > | Mobile.: +43 664 3112861 | > | Tel.: +43 732 2468 9605 | > | E-Mail.: eugen.wintersberger at jku.at | > | Skype: eugen20056221 | > | ICQ: 214418739, nickname: thot | > | | > -------------------------------------------- > > ---- > 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 > -- Alain Spineux aspineux gmail com May the sources be with you From bob3bob3 at suddenlink.net Fri Jul 4 12:30:47 2008 From: bob3bob3 at suddenlink.net (Bob Bob) Date: Fri, 04 Jul 2008 11:30:47 -0500 Subject: Simple Sieve question Message-ID: <486E5037.3060000@suddenlink.net> An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080704/e9af656a/attachment.html From damm at yazzy.org Fri Jul 4 17:38:23 2008 From: damm at yazzy.org (Scott Likens) Date: Fri, 4 Jul 2008 14:38:23 -0700 Subject: Simple Sieve question In-Reply-To: <486E5037.3060000@suddenlink.net> References: <486E5037.3060000@suddenlink.net> Message-ID: <37270A87-D848-45EC-990E-D382A73BD522@yazzy.org> Assuming that user has the 'p' right to user.fred.INBOX.Spam then yes. If they don't have the 'p' right, the mail will just be sent in limbo. On Jul 4, 2008, at 9:30 AM, Bob Bob wrote: > Hi all > > Cant seem to find an answer on this one.. I should experiment but > would like some advance info. > > Can sieve "fileinto" into a mailbox folder that is not at or below > the Inbox?. If so what would the syntax look like; > > ie > > fileinto "/user.fred.INBOX.Spam" instead of just "INBOX.Spam" as > user fred. > > Assumes of course that the user has ACL rights to the folder in > question. > > Am experimenting with Outlook Calenders, Free/Busy and an > autoresponder/resource booking system under Bynari's Insight > connector. > > Tnxs, Bob > > > !DSPAM:486e57c0223491646824759! > ---- > 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 > > !DSPAM:486e57c0223491646824759! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080704/958ede74/attachment.html From damm at yazzy.org Sat Jul 5 06:02:57 2008 From: damm at yazzy.org (Scott Likens) Date: Sat, 5 Jul 2008 03:02:57 -0700 Subject: Fwd: NDN: Re: Simple Sieve question References: Message-ID: If someone can please remove this user from the mailing lists? Thanks :) Begin forwarded message: > From: Mailer-Daemon at kieser-training.com > Date: July 4, 2008 3:54:47 PM PDT > To: "Scott Likens" > Subject: NDN: Re: Simple Sieve question > > Sorry. Your message could not be delivered to: > > 0aheebdd (The name was not found at the remote site. Check that the > name > has been entered correctly.) > > > > !DSPAM:486f4636130771546544105! > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080705/3ed96dd4/attachment.html From damm at yazzy.org Sat Jul 5 06:50:08 2008 From: damm at yazzy.org (Scott Likens) Date: Sat, 5 Jul 2008 03:50:08 -0700 Subject: Fwd: NDN: Re: Simple Sieve question References: Message-ID: <52FE5C5F-C519-4E05-8483-7F3173CB1735@yazzy.org> another ... Begin forwarded message: > From: postmaster at ipsen-hb.de > Date: July 5, 2008 3:32:02 AM PDT > To: damm at yazzy.org > Subject: Re: Fwd: NDN: Re: Simple Sieve question > > Dear Business Partner, > for months the mails of our user have been sent to you from our new > Domain. > This Domain has now been closed. If you have not changed the e-mail > adress of the respective person in our company to his new one, > please do it now! > The new Domain is ... at ipsenlogistics.com. intial firstname.lastename at ipsenlogistics.com > In case you have any question please adress them to info-de at ipsenlogistics.com > > > !DSPAM:486f50da134771804284693! > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080705/37b9ec3b/attachment.html From jan at horde.org Sun Jul 6 18:56:10 2008 From: jan at horde.org (Jan Schneider) Date: Mon, 07 Jul 2008 00:56:10 +0200 Subject: Simple Sieve question In-Reply-To: <37270A87-D848-45EC-990E-D382A73BD522@yazzy.org> References: <486E5037.3060000@suddenlink.net> <37270A87-D848-45EC-990E-D382A73BD522@yazzy.org> Message-ID: <20080707005610.15726jji4g5yk58g@neo.wg.de> Though it's usually: fileinto "user.fred.Spam" Zitat von Scott Likens : > Assuming that user has the 'p' right to user.fred.INBOX.Spam then yes. > If they don't have the 'p' right, the mail will just be sent in limbo. > On Jul 4, 2008, at 9:30 AM, Bob Bob wrote: > Hi all > > Cant seem to find an answer on this one.. I should experiment but would like some advance info. > > Can sieve "fileinto" into a mailbox folder that is not at or below the Inbox?. If so what would the syntax look like; > > ie > > fileinto "/user.fred.INBOX.Spam" instead of just "INBOX.Spam" as user fred. > > Assumes of course that the user has ACL rights to the folder in question. > > Am experimenting with Outlook Calenders, Free/Busy and an autoresponder/resource booking system under Bynari's Insight connector. > Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080707/6670bc89/attachment.html From mills at cc.umanitoba.ca Mon Jul 7 09:31:59 2008 From: mills at cc.umanitoba.ca (Gary Mills) Date: Mon, 7 Jul 2008 08:31:59 -0500 Subject: How to repair a broken seen state file Message-ID: <20080707133159.GB11577@cc.umanitoba.ca> I'm seeing errors like this regularly in our messages log: Jul 4 11:43:37 castor imap[16398]: [ID 514311 local6.error] DBERROR: skiplist recovery: 058C should be INORDER Jul 4 11:43:37 castor imap[16398]: [ID 729713 local6.error] DBERROR: opening /imap/conf/user/O/inqarts.seen: cyrusdb error It's always for this one file. All the others are fine. It's a skiplist database. The ownership is correct. A reconstruct on the mailbox has no effect on the file. Can I just remove the file, with no ill effects? Can I fix it somehow? We're running cyrus-imapd-2.3.8. -- -Gary Mills- -Unix Support- -U of M Academic Computing and Networking- From kmauz at htwg-konstanz.de Mon Jul 7 09:37:56 2008 From: kmauz at htwg-konstanz.de (Konrad Mauz) Date: Mon, 7 Jul 2008 15:37:56 +0200 Subject: How to repair a broken seen state file In-Reply-To: <20080707133159.GB11577@cc.umanitoba.ca> References: <20080707133159.GB11577@cc.umanitoba.ca> Message-ID: <20080707133756.GA22310@rz-ap-mauz.htwg-konstanz.de> On Mon, Jul 07, 2008 at 08:31:59AM -0500, Gary Mills wrote: > I'm seeing errors like this regularly in our messages log: > > Jul 4 11:43:37 castor imap[16398]: [ID 514311 local6.error] DBERROR: skiplist recovery: 058C should be INORDER > Jul 4 11:43:37 castor imap[16398]: [ID 729713 local6.error] DBERROR: opening /imap/conf/user/O/inqarts.seen: cyrusdb error > > It's always for this one file. All the others are fine. It's a > skiplist database. The ownership is correct. A reconstruct on the > mailbox has no effect on the file. Can I just remove the file, with > no ill effects? Can I fix it somehow? We're running cyrus-imapd-2.3.8. > > -- > -Gary Mills- -Unix Support- -U of M Academic Computing and Networking- > ---- > 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 Gary, perheps the skiplist.py tool from http://oss.netfarm.it/python-cyrus.php can help you to restore the corrupted seen file. Regards, Konrad -- Konrad Mauz Rechenzentrum Hochschule Technik, Wirtschaft und Gestaltung Braunegger-Strasse 55, D 78462 Konstanz e-mail: kmauz at htwg-konstanz.de Tel.: +49 7531 206-472 Fax.: +49 7531 206-153 From Hagedorn at uni-koeln.de Mon Jul 7 09:55:05 2008 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Mon, 07 Jul 2008 15:55:05 +0200 Subject: How to repair a broken seen state file In-Reply-To: <20080707133159.GB11577@cc.umanitoba.ca> References: <20080707133159.GB11577@cc.umanitoba.ca> Message-ID: --On 7. Juli 2008 08:31:59 -0500 Gary Mills wrote: > I'm seeing errors like this regularly in our messages log: > > Jul 4 11:43:37 castor imap[16398]: [ID 514311 local6.error] DBERROR: > skiplist recovery: 058C should be INORDER Jul 4 11:43:37 castor > imap[16398]: [ID 729713 local6.error] DBERROR: opening > /imap/conf/user/O/inqarts.seen: cyrusdb error > > It's always for this one file. All the others are fine. It's a > skiplist database. The ownership is correct. A reconstruct on the > mailbox has no effect on the file. That's to be expected. > Can I just remove the file, with > no ill effects? Yes, but of course all "seen" information is lost in that case. > Can I fix it somehow? Simon Matter has posted a script to the list: I've never used it. -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. Zentrum f?r angewandte Informatik - Universit?tsweiter Service RRZK .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. .:.:.:.Skype: shagedorn.:.:.:. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080707/b47da90e/attachment.bin From wes at umich.edu Mon Jul 7 10:26:33 2008 From: wes at umich.edu (Wesley Craig) Date: Mon, 7 Jul 2008 10:26:33 -0400 Subject: How to repair a broken seen state file In-Reply-To: <20080707133159.GB11577@cc.umanitoba.ca> References: <20080707133159.GB11577@cc.umanitoba.ca> Message-ID: <35B959FC-E937-4846-92EE-E13E74812823@umich.edu> On 07 Jul 2008, at 09:31, Gary Mills wrote: > I'm seeing errors like this regularly in our messages log: > > Jul 4 11:43:37 castor imap[16398]: [ID 514311 local6.error] > DBERROR: skiplist recovery: 058C should be INORDER > Jul 4 11:43:37 castor imap[16398]: [ID 729713 local6.error] > DBERROR: opening /imap/conf/user/O/inqarts.seen: cyrusdb error > > Can I just remove the file, with no ill effects? Removing it will cause all seen state to be lost, which is not a huge tragedy, but not exactly desirable. > Can I fix it somehow? 058C is an offset in hex. If you truncate the file at this point, you should be able to proceed. Obviously, everything after that will be gone, but in my experience, these error typically occur at the end of skiplist files, so you probably won't lose much if anything. Also, this user's mail probably looks quite odd, e.g., all new mail is always unseen. Anyway, something like: dd if=/imap/conf/user/O/inqarts.seen of=/imap/conf/user/O/ inqarts.seen.fixed bs=1420 count=1 and mv /imap/conf/user/O/inqarts.seen.fixed /imap/conf/user/O/inqarts.seen Make sure /imap/conf/user/O/inqarts.seen is still permitted correctly. > We're running cyrus-imapd-2.3.8. I understand that later version of Cyrus have fixed many errors in the skiplist code... :wes From mills at cc.umanitoba.ca Mon Jul 7 11:11:15 2008 From: mills at cc.umanitoba.ca (Gary Mills) Date: Mon, 7 Jul 2008 10:11:15 -0500 Subject: How to repair a broken seen state file In-Reply-To: <35B959FC-E937-4846-92EE-E13E74812823@umich.edu> References: <20080707133159.GB11577@cc.umanitoba.ca> <35B959FC-E937-4846-92EE-E13E74812823@umich.edu> Message-ID: <20080707151115.GA1573@cc.umanitoba.ca> On Mon, Jul 07, 2008 at 10:26:33AM -0400, Wesley Craig wrote: > > 058C is an offset in hex. If you truncate the file at this point, > you should be able to proceed. Obviously, everything after that will > be gone, but in my experience, these error typically occur at the end > of skiplist files, so you probably won't lose much if anything. > Also, this user's mail probably looks quite odd, e.g., all new mail > is always unseen. Anyway, something like: > > dd if=/imap/conf/user/O/inqarts.seen of=/imap/conf/user/O/ > inqarts.seen.fixed bs=1420 count=1 > and > mv /imap/conf/user/O/inqarts.seen.fixed > /imap/conf/user/O/inqarts.seen > > Make sure /imap/conf/user/O/inqarts.seen is still permitted correctly. I neglected to mention that I'd already tried that... # dd if=inqarts.seen of=inqarts.seen.new bs=1 count=1420 1420+0 records in 1420+0 records out # chmod 600 inqarts.seen.new # mv inqarts.seen inqarts.seen.old && mv inqarts.seen.new inqarts.seen # ll -t inqarts.* -rw------- 1 cyrus mail 1420 Mar 28 14:11 inqarts.seen -rw------- 1 cyrus mail 10052 Mar 28 11:37 inqarts.seen.old -rw------- 1 cyrus mail 320 Feb 21 10:53 inqarts.sub It still logged the same error afterwards. I guess I'll have to try something more drastic now. -- -Gary Mills- -Unix Support- -U of M Academic Computing and Networking- From mills at cc.umanitoba.ca Tue Jul 8 10:27:25 2008 From: mills at cc.umanitoba.ca (Gary Mills) Date: Tue, 8 Jul 2008 09:27:25 -0500 Subject: How to repair a broken seen state file In-Reply-To: <20080707133756.GA22310@rz-ap-mauz.htwg-konstanz.de> References: <20080707133159.GB11577@cc.umanitoba.ca> <20080707133756.GA22310@rz-ap-mauz.htwg-konstanz.de> Message-ID: <20080708142725.GA25313@cc.umanitoba.ca> On Mon, Jul 07, 2008 at 03:37:56PM +0200, Konrad Mauz wrote: > On Mon, Jul 07, 2008 at 08:31:59AM -0500, Gary Mills wrote: > > I'm seeing errors like this regularly in our messages log: > > > > Jul 4 11:43:37 castor imap[16398]: [ID 514311 local6.error] DBERROR: skiplist recovery: 058C should be INORDER > > Jul 4 11:43:37 castor imap[16398]: [ID 729713 local6.error] DBERROR: opening /imap/conf/user/O/inqarts.seen: cyrusdb error > > > > It's always for this one file. All the others are fine. It's a > > skiplist database. The ownership is correct. A reconstruct on the > > mailbox has no effect on the file. Can I just remove the file, with > > no ill effects? Can I fix it somehow? We're running cyrus-imapd-2.3.8. > > perheps the skiplist.py tool from > > http://oss.netfarm.it/python-cyrus.php > > can help you to restore the corrupted seen file. Yes, that worked! skiplist.py extracted the data to a text file. Then cvt_cyrusdb converted from flat to skiplist again. There are no more errors in the log. -- -Gary Mills- -Unix Support- -U of M Academic Computing and Networking- From satimis at yahoo.com Wed Jul 9 10:02:06 2008 From: satimis at yahoo.com (Stephen Liu) Date: Wed, 9 Jul 2008 22:02:06 +0800 (CST) Subject: cyradm - unable to authenticate server as cyrus Message-ID: <261713.19788.qm@web35204.mail.mud.yahoo.com> Hi folks, Ubuntu LAMP 6.06 amd64 Postfix Cyrus-imap-2.2 Just discovered unable to login cyradm as cyrus $ cyradm -user cyrus localhost Password: cyradm: cannot authenticate to server as cyrus The password is correct. Also ran; $ sudo passwd cyrus to create a new password but without result. $ tail /var/log/messages Jul 9 21:00:51 satimis kernel: [ 44.244209] IPv6 over IPv4 tunneling driver Jul 9 21:00:51 satimis kernel: [ 47.075285] ppdev: user-space parallel port d river Jul 9 21:01:28 satimis kernel: [ 84.209351] Installing knfsd (copyright (C) 1 996 okir at monad.swb.de). Jul 9 21:01:28 satimis kernel: [ 84.321528] NFSD: Using /var/lib/nfs/v4recove ry as the NFSv4 state recovery directory Jul 9 21:01:28 satimis kernel: [ 84.321545] NFSD: recovery directory /var/lib /nfs/v4recovery doesn't exist Jul 9 21:01:28 satimis kernel: [ 84.321548] NFSD: starting 90-second grace pe riod Jul 9 21:01:32 satimis squid[4266]: Squid Parent: child process 4268 started Jul 9 21:01:34 satimis kernel: [ 89.815137] ip_tables: (C) 2000-2002 Netfilte r core team Jul 9 21:01:34 satimis kernel: [ 90.008596] Netfilter messages via NETLINK v0 .30. Jul 9 21:01:34 satimis kernel: [ 90.021678] ip_conntrack version 2.4 (4095 bu ckets, 32760 max) - 312 bytes per conntrack * end * $ tail /var/log/syslog Jul 9 21:15:01 satimis /USR/SBIN/CRON[4518]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 9 21:15:10 satimis cyrus/imap[4478]: accepted connection Jul 9 21:15:41 satimis cyrus/imap[4478]: badlogin: localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database] Jul 9 21:16:01 satimis /USR/SBIN/CRON[4522]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 9 21:16:58 satimis cyrus/master[3829]: process 4478 exited, status 0 Jul 9 21:17:01 satimis /USR/SBIN/CRON[4525]: (root) CMD ( run-parts --report /etc/cron.hourly) Jul 9 21:17:01 satimis /USR/SBIN/CRON[4527]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 9 21:18:01 satimis /USR/SBIN/CRON[4530]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 9 21:19:01 satimis /USR/SBIN/CRON[4548]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 9 21:20:01 satimis /USR/SBIN/CRON[4551]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) * end * $ telnet localhost imap Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. * OK satimis.com Cyrus IMAP4 v2.2.12-Debian-2.2.12-4ubuntu1 server ready logout * BAD Invalid tag . * BAD Invalid tag .logout * BAD Invalid tag .quit quit It just hung there. I can't quit the command. Previously it worked without problem. What I have done on the server were setup iptables and installing SugarCRM on this box. Stop iptables and flush the rules but without result. $ cyradm --user cyrus localhost Password: cyradm: cannot authenticate to server as cyrus $ tail /var/log/messages Jul 9 21:00:51 satimis kernel: [ 47.075285] ppdev: user-space parallel port driver Jul 9 21:01:28 satimis kernel: [ 84.209351] Installing knfsd (copyright (C) 1996 okir at monad.swb.de). Jul 9 21:01:28 satimis kernel: [ 84.321528] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Jul 9 21:01:28 satimis kernel: [ 84.321545] NFSD: recovery directory /var/lib/nfs/v4recovery doesn't exist Jul 9 21:01:28 satimis kernel: [ 84.321548] NFSD: starting 90-second grace period Jul 9 21:01:32 satimis squid[4266]: Squid Parent: child process 4268 started Jul 9 21:01:34 satimis kernel: [ 89.815137] ip_tables: (C) 2000-2002 Netfilter core team Jul 9 21:01:34 satimis kernel: [ 90.008596] Netfilter messages via NETLINK v0.30. Jul 9 21:01:34 satimis kernel: [ 90.021678] ip_conntrack version 2.4 (4095 buckets, 32760 max) - 312 bytes per conntrack Jul 9 21:20:50 satimis -- MARK -- * end * $ tail /var/log/syslog Jul 9 21:31:24 satimis cyrus/master[3829]: process 4635 exited, status 0 Jul 9 21:32:01 satimis /USR/SBIN/CRON[4637]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 9 21:33:00 satimis cyrus/master[4662]: about to exec /usr/lib/cyrus/bin/imapd Jul 9 21:33:00 satimis cyrus/imap[4662]: executed Jul 9 21:33:00 satimis cyrus/imap[4662]: accepted connection Jul 9 21:33:01 satimis /USR/SBIN/CRON[4664]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 9 21:33:08 satimis cyrus/imap[4662]: badlogin: localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database] Jul 9 21:34:01 satimis /USR/SBIN/CRON[4667]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 9 21:34:11 satimis cyrus/master[3829]: process 4662 exited, status 0 Jul 9 21:35:01 satimis /USR/SBIN/CRON[4671]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) * end * Please help. TIA B.R. Stephen L Send instant messages to your online friends http://uk.messenger.yahoo.com From carlier.nicolas at gmail.com Wed Jul 9 10:41:48 2008 From: carlier.nicolas at gmail.com (Nicolas Carlier) Date: Wed, 9 Jul 2008 16:41:48 +0200 Subject: cyradm - unable to authenticate server as cyrus In-Reply-To: <261713.19788.qm@web35204.mail.mud.yahoo.com> References: <261713.19788.qm@web35204.mail.mud.yahoo.com> Message-ID: On Wed, Jul 9, 2008 at 4:02 PM, Stephen Liu wrote: > Hi folks, > > > Ubuntu LAMP 6.06 amd64 > Postfix > Cyrus-imap-2.2 > > > Just discovered unable to login cyradm as cyrus > > > $ cyradm -user cyrus localhost > Password: > cyradm: cannot authenticate to server as cyrus > > > The password is correct. Also ran; > > $ sudo passwd cyrus > to create a new password but without result. > > > $ tail /var/log/messages > Jul 9 21:00:51 satimis kernel: [ 44.244209] IPv6 over IPv4 tunneling > driver > Jul 9 21:00:51 satimis kernel: [ 47.075285] ppdev: user-space > parallel port d > river > Jul 9 21:01:28 satimis kernel: [ 84.209351] Installing knfsd > (copyright (C) 1 > 996 okir at monad.swb.de). > Jul 9 21:01:28 satimis kernel: [ 84.321528] NFSD: Using > /var/lib/nfs/v4recove > ry as the NFSv4 state recovery directory > Jul 9 21:01:28 satimis kernel: [ 84.321545] NFSD: recovery directory > /var/lib > /nfs/v4recovery doesn't exist > Jul 9 21:01:28 satimis kernel: [ 84.321548] NFSD: starting 90-second > grace pe > riod > Jul 9 21:01:32 satimis squid[4266]: Squid Parent: child process 4268 > started > Jul 9 21:01:34 satimis kernel: [ 89.815137] ip_tables: (C) 2000-2002 > Netfilte > r core team > Jul 9 21:01:34 satimis kernel: [ 90.008596] Netfilter messages via > NETLINK v0 > .30. > Jul 9 21:01:34 satimis kernel: [ 90.021678] ip_conntrack version 2.4 > (4095 bu > ckets, 32760 max) - 312 bytes per conntrack > * end * > > > $ tail /var/log/syslog > Jul 9 21:15:01 satimis /USR/SBIN/CRON[4518]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > Jul 9 21:15:10 satimis cyrus/imap[4478]: accepted connection > Jul 9 21:15:41 satimis cyrus/imap[4478]: badlogin: > localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not > found: no secret in database] > Jul 9 21:16:01 satimis /USR/SBIN/CRON[4522]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > Jul 9 21:16:58 satimis cyrus/master[3829]: process 4478 exited, status > 0 > Jul 9 21:17:01 satimis /USR/SBIN/CRON[4525]: (root) CMD ( run-parts > --report /etc/cron.hourly) > Jul 9 21:17:01 satimis /USR/SBIN/CRON[4527]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > Jul 9 21:18:01 satimis /USR/SBIN/CRON[4530]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > Jul 9 21:19:01 satimis /USR/SBIN/CRON[4548]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > Jul 9 21:20:01 satimis /USR/SBIN/CRON[4551]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > * end * > > > $ telnet localhost imap > Trying 127.0.0.1... > Connected to localhost.localdomain. > Escape character is '^]'. > * OK satimis.com Cyrus IMAP4 v2.2.12-Debian-2.2.12-4ubuntu1 server > ready > logout > * BAD Invalid tag > . > * BAD Invalid tag > .logout > * BAD Invalid tag > .quit > quit > > > It just hung there. I can't quit the command. > > > > Previously it worked without problem. What I have done on the server > were setup iptables and installing SugarCRM on this box. > > > Stop iptables and flush the rules but without result. > > > $ cyradm --user cyrus localhost > Password: > cyradm: cannot authenticate to server as cyrus > > > $ tail /var/log/messages > Jul 9 21:00:51 satimis kernel: [ 47.075285] ppdev: user-space > parallel port driver > Jul 9 21:01:28 satimis kernel: [ 84.209351] Installing knfsd > (copyright (C) 1996 okir at monad.swb.de). > Jul 9 21:01:28 satimis kernel: [ 84.321528] NFSD: Using > /var/lib/nfs/v4recovery as the NFSv4 state recovery directory > Jul 9 21:01:28 satimis kernel: [ 84.321545] NFSD: recovery directory > /var/lib/nfs/v4recovery doesn't exist > Jul 9 21:01:28 satimis kernel: [ 84.321548] NFSD: starting 90-second > grace period > Jul 9 21:01:32 satimis squid[4266]: Squid Parent: child process 4268 > started > Jul 9 21:01:34 satimis kernel: [ 89.815137] ip_tables: (C) 2000-2002 > Netfilter core team > Jul 9 21:01:34 satimis kernel: [ 90.008596] Netfilter messages via > NETLINK v0.30. > Jul 9 21:01:34 satimis kernel: [ 90.021678] ip_conntrack version 2.4 > (4095 buckets, 32760 max) - 312 bytes per conntrack > Jul 9 21:20:50 satimis -- MARK -- > * end * > > > $ tail /var/log/syslog > Jul 9 21:31:24 satimis cyrus/master[3829]: process 4635 exited, status > 0 > Jul 9 21:32:01 satimis /USR/SBIN/CRON[4637]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > Jul 9 21:33:00 satimis cyrus/master[4662]: about to exec > /usr/lib/cyrus/bin/imapd > Jul 9 21:33:00 satimis cyrus/imap[4662]: executed > Jul 9 21:33:00 satimis cyrus/imap[4662]: accepted connection > Jul 9 21:33:01 satimis /USR/SBIN/CRON[4664]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > Jul 9 21:33:08 satimis cyrus/imap[4662]: badlogin: > localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not > found: no secret in database] > Jul 9 21:34:01 satimis /USR/SBIN/CRON[4667]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > Jul 9 21:34:11 satimis cyrus/master[3829]: process 4662 exited, status > 0 > Jul 9 21:35:01 satimis /USR/SBIN/CRON[4671]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > * end * > > > Please help. TIA > > > B.R. > Stephen L > > Send instant messages to your online friends http://uk.messenger.yahoo.com > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > Hello, In /etc/imapd.conf file you must add this line (reads the comments to understand what you make): # Uncomment the following and add the space-separated users who # have admin rights for all services. admins: cyrus # Space-separated list of users that have imapd "admin" status, in # addition to those in the admins: entry above imap_admins: cyrus Have fun, -- IT french student who search jobs in US. carlier.nicolas (at) gmail.com From hijinks at gmail.com Wed Jul 9 11:48:22 2008 From: hijinks at gmail.com (Mike Zupan) Date: Wed, 9 Jul 2008 11:48:22 -0400 Subject: subscribe across domain Message-ID: <7227c6c70807090848s363e107cr81c2fd0adf91982a@mail.gmail.com> is there anyway to subscribe a user to a mailbox across a domain? subscribe user at domain.com to info at other.com ? thanks Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080709/439af7c4/attachment.html From satimis at yahoo.com Wed Jul 9 11:57:39 2008 From: satimis at yahoo.com (Stephen Liu) Date: Wed, 9 Jul 2008 23:57:39 +0800 (CST) Subject: cyradm - unable to authenticate server as cyrus In-Reply-To: Message-ID: <703141.87827.qm@web35205.mail.mud.yahoo.com> Hi Nicolas, Thanks for your advice. > In /etc/imapd.conf file you must add this line (reads the comments to > understand what you make): > > # Uncomment the following and add the space-separated users who > # have admin rights for all services. > admins: cyrus This line already uncommented previously. Otherwise "cyradm --user cyrus localhost" won't work before. > # Space-separated list of users that have imapd "admin" status, in > # addition to those in the admins: entry above > imap_admins: cyrus Uncomment above line. $ sudo /etc/init.d/cyrus2.2 restart Stopping Cyrus IMAPd: cyrmaster. Waiting for complete shutdown.... Starting Cyrus IMAPd: cyrmaster. $ cyradm -user cyrus localhost Password: cyradm: cannot authenticate to server as cyrus Still fail. $ tail /var/log/syslog Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: archiving log file: /var/lib/cyrus/db/log.0000000001 Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: archiving database file: /var/lib/cyrus/mailboxes.db Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: archiving log file: /var/lib/cyrus/db/log.0000000001 Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: done checkpointing cyrus databases Jul 9 23:45:03 satimis cyrus/master[4527]: process 4531 exited, status 0 Jul 9 23:45:30 satimis cyrus/master[4534]: about to exec /usr/lib/cyrus/bin/imapd Jul 9 23:45:30 satimis cyrus/imap[4534]: executed Jul 9 23:45:30 satimis cyrus/imap[4534]: accepted connection Jul 9 23:45:36 satimis cyrus/imap[4534]: badlogin: localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database] Jul 9 23:46:01 satimis /USR/SBIN/CRON[4536]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) * end * I think the problem may be here; Jul 9 23:45:36 satimis cyrus/imap[4534]: badlogin: localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database] $ tail /var/log/messages Jul 9 23:38:01 satimis kernel: [ 37.643909] IPv6 over IPv4 tunneling driver Jul 9 23:38:02 satimis kernel: [ 39.876339] ppdev: user-space parallel port driver Jul 9 23:38:39 satimis kernel: [ 77.087829] Installing knfsd (copyright (C) 1996 okir at monad.swb.de). Jul 9 23:38:39 satimis kernel: [ 77.206053] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Jul 9 23:38:39 satimis kernel: [ 77.206070] NFSD: recovery directory /var/lib/nfs/v4recovery doesn't exist Jul 9 23:38:39 satimis kernel: [ 77.206073] NFSD: starting 90-second grace period Jul 9 23:38:43 satimis squid[4313]: Squid Parent: child process 4315 started Jul 9 23:38:45 satimis kernel: [ 82.765973] ip_tables: (C) 2000-2002 Netfilter core team Jul 9 23:38:45 satimis kernel: [ 82.959424] Netfilter messages via NETLINK v0.30. Jul 9 23:38:45 satimis kernel: [ 82.972513] ip_conntrack version 2.4 (4095 buckets, 32760 max) - 312 bytes per conntrack * end * Nothing specific here. B.R. Stephen L Send instant messages to your online friends http://uk.messenger.yahoo.com From hijinks at gmail.com Wed Jul 9 12:06:42 2008 From: hijinks at gmail.com (Mike Zupan) Date: Wed, 9 Jul 2008 12:06:42 -0400 Subject: cyradm - unable to authenticate server as cyrus In-Reply-To: <703141.87827.qm@web35205.mail.mud.yahoo.com> References: <703141.87827.qm@web35205.mail.mud.yahoo.com> Message-ID: <7227c6c70807090906h68a98d6eq9aaf69026e5c8045@mail.gmail.com> is it possible you have any remote auth like ldap in place? On 7/9/08, Stephen Liu wrote: > > Hi Nicolas, > > > Thanks for your advice. > > > > > In /etc/imapd.conf file you must add this line (reads the comments to > > understand what you make): > > > > # Uncomment the following and add the space-separated users who > > # have admin rights for all services. > > admins: cyrus > > > > This line already uncommented previously. Otherwise "cyradm --user > cyrus localhost" won't work before. > > > > > # Space-separated list of users that have imapd "admin" status, in > > # addition to those in the admins: entry above > > imap_admins: cyrus > > > > Uncomment above line. > > > $ sudo /etc/init.d/cyrus2.2 restart > Stopping Cyrus IMAPd: cyrmaster. > Waiting for complete shutdown.... > Starting Cyrus IMAPd: cyrmaster. > > > > $ cyradm -user cyrus localhost > Password: > cyradm: cannot authenticate to server as cyrus > > > > Still fail. > > > $ tail /var/log/syslog > Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: archiving log file: > /var/lib/cyrus/db/log.0000000001 > Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: archiving database > file: /var/lib/cyrus/mailboxes.db > Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: archiving log file: > /var/lib/cyrus/db/log.0000000001 > Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: done checkpointing > cyrus databases > Jul 9 23:45:03 satimis cyrus/master[4527]: process 4531 exited, status > 0 > Jul 9 23:45:30 satimis cyrus/master[4534]: about to exec > > /usr/lib/cyrus/bin/imapd > > Jul 9 23:45:30 satimis cyrus/imap[4534]: executed > Jul 9 23:45:30 satimis cyrus/imap[4534]: accepted connection > Jul 9 23:45:36 satimis cyrus/imap[4534]: badlogin: > > localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not > found: no secret in database] > > Jul 9 23:46:01 satimis /USR/SBIN/CRON[4536]: (root) CMD (cd > > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > * end * > > > > I think the problem may be here; > Jul 9 23:45:36 satimis cyrus/imap[4534]: badlogin: > > localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not > found: no secret in database] > > > > $ tail /var/log/messages > Jul 9 23:38:01 satimis kernel: [ 37.643909] IPv6 over IPv4 tunneling > driver > Jul 9 23:38:02 satimis kernel: [ 39.876339] ppdev: user-space > parallel port driver > Jul 9 23:38:39 satimis kernel: [ 77.087829] Installing knfsd > > (copyright (C) 1996 okir at monad.swb.de). > > Jul 9 23:38:39 satimis kernel: [ 77.206053] NFSD: Using > > /var/lib/nfs/v4recovery as the NFSv4 state recovery directory > > Jul 9 23:38:39 satimis kernel: [ 77.206070] NFSD: recovery directory > > /var/lib/nfs/v4recovery doesn't exist > > Jul 9 23:38:39 satimis kernel: [ 77.206073] NFSD: starting 90-second > grace period > Jul 9 23:38:43 satimis squid[4313]: Squid Parent: child process 4315 > started > Jul 9 23:38:45 satimis kernel: [ 82.765973] ip_tables: (C) 2000-2002 > Netfilter core team > Jul 9 23:38:45 satimis kernel: [ 82.959424] Netfilter messages via > NETLINK v0.30. > Jul 9 23:38:45 satimis kernel: [ 82.972513] ip_conntrack version 2.4 > > (4095 buckets, 32760 max) - 312 bytes per conntrack > > * end * > > > Nothing specific here. > > > > B.R. > Stephen L > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080709/11356a6f/attachment.html From satimis at yahoo.com Wed Jul 9 12:30:20 2008 From: satimis at yahoo.com (Stephen Liu) Date: Thu, 10 Jul 2008 00:30:20 +0800 (CST) Subject: cyradm - unable to authenticate server as cyrus In-Reply-To: <7227c6c70807090906h68a98d6eq9aaf69026e5c8045@mail.gmail.com> Message-ID: <790557.13588.qm@web35205.mail.mud.yahoo.com> --- Mike Zupan wrote: > is it possible you have any remote auth like ldap in place? Hi Mike, I'm running ssh here. This is a headless server. I have to configure it remotely. However this operation has be performed sometimes without problem. B.R. Stephen > > On 7/9/08, Stephen Liu wrote: > > > > Hi Nicolas, > > > > > > Thanks for your advice. > > > > > > > > > In /etc/imapd.conf file you must add this line (reads the > comments to > > > understand what you make): > > > > > > # Uncomment the following and add the space-separated users who > > > # have admin rights for all services. > > > admins: cyrus > > > > > > > > This line already uncommented previously. Otherwise "cyradm --user > > cyrus localhost" won't work before. > > > > > > > > > # Space-separated list of users that have imapd "admin" status, > in > > > # addition to those in the admins: entry above > > > imap_admins: cyrus > > > > > > > > Uncomment above line. > > > > > > $ sudo /etc/init.d/cyrus2.2 restart > > Stopping Cyrus IMAPd: cyrmaster. > > Waiting for complete shutdown.... > > Starting Cyrus IMAPd: cyrmaster. > > > > > > > > $ cyradm -user cyrus localhost > > Password: > > cyradm: cannot authenticate to server as cyrus > > > > > > > > Still fail. > > > > > > $ tail /var/log/syslog > > Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: archiving log > file: > > /var/lib/cyrus/db/log.0000000001 > > Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: archiving database > > file: /var/lib/cyrus/mailboxes.db > > Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: archiving log > file: > > /var/lib/cyrus/db/log.0000000001 > > Jul 9 23:45:03 satimis cyrus/ctl_cyrusdb[4531]: done checkpointing > > cyrus databases > > Jul 9 23:45:03 satimis cyrus/master[4527]: process 4531 exited, > status > > 0 > > Jul 9 23:45:30 satimis cyrus/master[4534]: about to exec > > > > /usr/lib/cyrus/bin/imapd > > > > Jul 9 23:45:30 satimis cyrus/imap[4534]: executed > > Jul 9 23:45:30 satimis cyrus/imap[4534]: accepted connection > > Jul 9 23:45:36 satimis cyrus/imap[4534]: badlogin: > > > > localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not > > found: no secret in database] > > > > Jul 9 23:46:01 satimis /USR/SBIN/CRON[4536]: (root) CMD (cd > > > > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > > * end * > > > > > > > > I think the problem may be here; > > Jul 9 23:45:36 satimis cyrus/imap[4534]: badlogin: > > > > localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not > > found: no secret in database] > > > > > > > > $ tail /var/log/messages > > Jul 9 23:38:01 satimis kernel: [ 37.643909] IPv6 over IPv4 > tunneling > > driver > > Jul 9 23:38:02 satimis kernel: [ 39.876339] ppdev: user-space > > parallel port driver > > Jul 9 23:38:39 satimis kernel: [ 77.087829] Installing knfsd > > > > (copyright (C) 1996 okir at monad.swb.de). > > > > Jul 9 23:38:39 satimis kernel: [ 77.206053] NFSD: Using > > > > /var/lib/nfs/v4recovery as the NFSv4 state recovery directory > > > > Jul 9 23:38:39 satimis kernel: [ 77.206070] NFSD: recovery > directory > > > > /var/lib/nfs/v4recovery doesn't exist > > > > Jul 9 23:38:39 satimis kernel: [ 77.206073] NFSD: starting > 90-second > > grace period > > Jul 9 23:38:43 satimis squid[4313]: Squid Parent: child process > 4315 > > started > > Jul 9 23:38:45 satimis kernel: [ 82.765973] ip_tables: (C) > 2000-2002 > > Netfilter core team > > Jul 9 23:38:45 satimis kernel: [ 82.959424] Netfilter messages > via > > NETLINK v0.30. > > Jul 9 23:38:45 satimis kernel: [ 82.972513] ip_conntrack version > 2.4 > > > > (4095 buckets, 32760 max) - 312 bytes per conntrack > > > > * end * > > > > > > Nothing specific here. > > > > > > > > B.R. > > Stephen L > > > > > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > > ---- > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > > Send instant messages to your online friends http://uk.messenger.yahoo.com From peters at psinergybbs.com Wed Jul 9 13:50:10 2008 From: peters at psinergybbs.com (Peter Santiago) Date: Thu, 10 Jul 2008 01:50:10 +0800 Subject: cyradm - unable to authenticate server as cyrus In-Reply-To: <790557.13588.qm@web35205.mail.mud.yahoo.com> References: <790557.13588.qm@web35205.mail.mud.yahoo.com> Message-ID: <4874FA52.70909@psinergybbs.com> Stephen Liu wrote: > >>> Jul 9 23:45:30 satimis cyrus/master[4534]: about to exec >>> >>> /usr/lib/cyrus/bin/imapd >>> >>> Jul 9 23:45:30 satimis cyrus/imap[4534]: executed >>> Jul 9 23:45:30 satimis cyrus/imap[4534]: accepted connection >>> Jul 9 23:45:36 satimis cyrus/imap[4534]: badlogin: >>> >>> localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not >>> found: no secret in database] >>> >>> Jul 9 23:46:01 satimis /USR/SBIN/CRON[4536]: (root) CMD (cd >>> Have you added cyrus user to sasldb? more specifically saslpasswd2 -c cyrus.... -- Peter Santiago peters at psinergybbs.com My website: www.psinergybbs.com My spamtrap address: r34987y at psinergybbs.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3257 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080710/0da191f7/attachment.bin From carlier.nicolas at gmail.com Wed Jul 9 14:00:11 2008 From: carlier.nicolas at gmail.com (Nicolas Carlier) Date: Wed, 9 Jul 2008 20:00:11 +0200 Subject: cyradm - unable to authenticate server as cyrus In-Reply-To: <4874FA52.70909@psinergybbs.com> References: <790557.13588.qm@web35205.mail.mud.yahoo.com> <4874FA52.70909@psinergybbs.com> Message-ID: On Wed, Jul 9, 2008 at 7:50 PM, Peter Santiago wrote: > Stephen Liu wrote: >> >>>> Jul 9 23:45:30 satimis cyrus/master[4534]: about to exec >>>> >>>> /usr/lib/cyrus/bin/imapd >>>> >>>> Jul 9 23:45:30 satimis cyrus/imap[4534]: executed >>>> Jul 9 23:45:30 satimis cyrus/imap[4534]: accepted connection >>>> Jul 9 23:45:36 satimis cyrus/imap[4534]: badlogin: >>>> >>>> localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user not >>>> found: no secret in database] >>>> >>>> Jul 9 23:46:01 satimis /USR/SBIN/CRON[4536]: (root) CMD (cd >>>> > > Have you added cyrus user to sasldb? more specifically saslpasswd2 -c > cyrus.... > It's depend of the authentification system. If he uses saslauthd with pam as backend, he doesn't need to use saslpasswd2. -- IT french student who search jobs in US. carlier.nicolas (at) gmail.com From satimis at yahoo.com Wed Jul 9 20:04:10 2008 From: satimis at yahoo.com (Stephen Liu) Date: Thu, 10 Jul 2008 08:04:10 +0800 (CST) Subject: cyradm - unable to authenticate server as cyrus In-Reply-To: Message-ID: <730746.46913.qm@web35201.mail.mud.yahoo.com> --- Nicolas Carlier wrote: > On Wed, Jul 9, 2008 at 6:50 PM, Stephen Liu > wrote: > > > > --- Nicolas Carlier wrote: > > > > - snip - > >> > >> What kind of auth system are you using? > > > > > > $ apt-cache policy libsasl2 > > libsasl2: > > Installed: 2.1.19.dfsg1-0.1ubuntu2 > > Candidate: 2.1.19.dfsg1-0.1ubuntu2 > > Version table: > > *** 2.1.19.dfsg1-0.1ubuntu2 0 > > 500 http://hk.archive.ubuntu.com dapper/main Packages > > 100 /var/lib/dpkg/status > > > > This is not an answer of my question. Hi Nicolas, Whether you meant; sasl_pwcheck_method: on /etc/imapd.conf ??? It was sasl_pwcheck_method: saslauthd and worked previously without problem. Then I changed it to; sasl_pwcheck_method: auxprop Still failed unable to login cyradm as cyrus and then again changed it to; sasl_pwcheck_method: pwcheck $ sudo /etc/init.d/cyrus2.2 restart Stopping Cyrus IMAPd: cyrmaster. Waiting for complete shutdown.... Starting Cyrus IMAPd: cyrmaster. $ cyradm -user cyrus --auth plain localhost Password: IMAP Password: Login failed: no mechanism available at /usr/lib/perl5/Cyrus/IMAP/Admin.pm line 118 cyradm: cannot authenticate to server with plain as cyrus line 117 } line 118 my $rc = $self->{cyrus}->authenticate(@_); line 119 if($rc && $self->{support_referrals}) { changed it back to; sasl_pwcheck_method: saslauthd On running; $ sudo /etc/init.d/cyrus2.2 stop Stopping Cyrus IMAPd: . $ sudo /etc/init.d/cyrus2.2 start Starting Cyrus IMAPd: /etc/init.d/cyrus2.2: line 153: !check_status: command not found line 152 else line 153 if !check_status ; then line 154 echo "(failed)." line 155 exit 1 $ ps ax | grep cyrus 4566 pts/0 S+ 0:00 grep cyrus $ sudo netstat -tap | grep cyrus No printout $ tail /var/log/syslog Jul 10 07:35:01 satimis /USR/SBIN/CRON[4528]: (root) CMD (cd /var/www/SugarCE-Fu ll-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 10 07:36:01 satimis /USR/SBIN/CRON[4531]: (root) CMD (cd /var/www/SugarCE-Fu ll-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 10 07:37:01 satimis /USR/SBIN/CRON[4534]: (root) CMD (cd /var/www/SugarCE-Fu ll-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 10 07:38:01 satimis /USR/SBIN/CRON[4537]: (root) CMD (cd /var/www/SugarCE-Fu ll-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 10 07:39:01 satimis /USR/SBIN/CRON[4540]: (root) CMD ( [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xa rgs -r -0 rm) Jul 10 07:39:01 satimis /USR/SBIN/CRON[4542]: (root) CMD (cd /var/www/SugarCE-Fu ll-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 10 07:40:01 satimis /USR/SBIN/CRON[4555]: (root) CMD (cd /var/www/SugarCE-Fu ll-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 10 07:41:01 satimis /USR/SBIN/CRON[4558]: (root) CMD (cd /var/www/SugarCE-Fu ll-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 10 07:42:01 satimis /USR/SBIN/CRON[4561]: (root) CMD (cd /var/www/SugarCE-Fu ll-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 10 07:43:01 satimis /USR/SBIN/CRON[4570]: (root) CMD (cd /var/www/SugarCE-Fu ll-5.0.0e; php -f cron.php > /dev/null 2>&1) * end * $ tail /var/log/messages Jul 10 07:25:48 satimis kernel: [ 95.854465] IPv6 over IPv4 tunneling driver Jul 10 07:25:49 satimis kernel: [ 98.253304] ppdev: user-space parallel port driver Jul 10 07:26:25 satimis kernel: [ 134.448066] Installing knfsd (copyright (C) 1996 okir at monad.swb.de). Jul 10 07:26:25 satimis kernel: [ 134.557300] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Jul 10 07:26:25 satimis kernel: [ 134.557318] NFSD: recovery directory /var/lib/nfs/v4recovery doesn't exist Jul 10 07:26:25 satimis kernel: [ 134.557321] NFSD: starting 90-second grace period Jul 10 07:26:28 satimis squid[4299]: Squid Parent: child process 4301 started Jul 10 07:26:30 satimis kernel: [ 139.652747] ip_tables: (C) 2000-2002 Netfilter core team Jul 10 07:26:30 satimis kernel: [ 139.854519] Netfilter messages via NETLINK v0.30. Jul 10 07:26:30 satimis kernel: [ 139.879396] ip_conntrack version 2.4 (4095 buckets, 32760 max) - 312 bytes per conntrack * end * $ sudo ls -l /var/lib/cyrus/log/ total 0 $ sudo ls -l /var/lib/cyrus/msg total 0 Please advise how to revoke it to its previous state? TIA B.R. Stephen Send instant messages to your online friends http://uk.messenger.yahoo.com From aspineux at gmail.com Wed Jul 9 22:13:06 2008 From: aspineux at gmail.com (Alain Spineux) Date: Thu, 10 Jul 2008 04:13:06 +0200 Subject: subscribe across domain In-Reply-To: <7227c6c70807090848s363e107cr81c2fd0adf91982a@mail.gmail.com> References: <7227c6c70807090848s363e107cr81c2fd0adf91982a@mail.gmail.com> Message-ID: <71fe4e760807091913x58e7064cvf04b6093c6901739@mail.gmail.com> On Wed, Jul 9, 2008 at 5:48 PM, Mike Zupan wrote: > is there anyway to subscribe a user to a mailbox across a domain? subscribe > user at domain.com to info at other.com ? No, you cannot access mailbox from another domain. This is a limitation of cyrus, probably because nobody added this feature when cyrus moved to multi domain. > > thanks > Mike > > ---- > 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 > -- Alain Spineux aspineux gmail com May the sources be with you From satimis at yahoo.com Wed Jul 9 22:53:09 2008 From: satimis at yahoo.com (Stephen Liu) Date: Thu, 10 Jul 2008 10:53:09 +0800 (CST) Subject: cyradm - unable to authenticate server as cyrus (SOLVED) In-Reply-To: Message-ID: <807997.50429.qm@web35205.mail.mud.yahoo.com> --- Nicolas Carlier wrote: > On Wed, Jul 9, 2008 at 7:50 PM, Peter Santiago > wrote: > > Stephen Liu wrote: > >> > >>>> Jul 9 23:45:30 satimis cyrus/master[4534]: about to exec > >>>> > >>>> /usr/lib/cyrus/bin/imapd > >>>> > >>>> Jul 9 23:45:30 satimis cyrus/imap[4534]: executed > >>>> Jul 9 23:45:30 satimis cyrus/imap[4534]: accepted connection > >>>> Jul 9 23:45:36 satimis cyrus/imap[4534]: badlogin: > >>>> > >>>> localhost.localdomain [127.0.0.1] DIGEST-MD5 [SASL(-13): user > not > >>>> found: no secret in database] > >>>> > >>>> Jul 9 23:46:01 satimis /USR/SBIN/CRON[4536]: (root) CMD (cd > >>>> > > > > Have you added cyrus user to sasldb? more specifically saslpasswd2 > -c > > cyrus.... > > > > It's depend of the authentification system. If he uses saslauthd with > pam as > backend, he doesn't need to use saslpasswd2. Hi Nicolas and folks, Problem solved as follow; $ sudo nano /etc/imapd.conf comment out #sasl_minimum_layer and allowapop below, too. uncomment sasl_mech_list: PLAIN sasl_pwcheck_method: saslauthd $ sudo /etc/init.d/cyrus2.2 restart Stopping Cyrus IMAPd: . Waiting for complete shutdown... Starting Cyrus IMAPd: cyrmaster. $ cyradm -user cyrus localhost IMAP Password: localhost.localdomain> cm user.aaa localhost.localdomain> lm user.aaa* user.aaa (\HasNoChildren) only top level mailbox created. However on the arrival of the first email the other default mailboxes such Trash, Sent, etc. are created automatically. Thanks again for your assistance B.R. Stephen Send instant messages to your online friends http://uk.messenger.yahoo.com From mcnutt at buffalo.edu Thu Jul 10 13:34:13 2008 From: mcnutt at buffalo.edu (James M McNutt) Date: Thu, 10 Jul 2008 13:34:13 -0400 (EDT) Subject: krb5.h: No such file or directory In-Reply-To: <47617B4D.90004@ucdavis.edu> Message-ID: we get "krb5.h: No such file or directory" when trying to build cyrus-imapd-2.3.12p2, is there a way to ignore krb5 I have --with-auth=unix? Thanks, -jim this is the same that we built cyrus-imapd-2.2.12 with ======================================================= ./configure \ --with-auth=unix \ --disable-murder \ --with-dbdir=/usr/local/BerkeleyDB.4.2 \ --with-bdb-incdir=/usr/local/BerkeleyDB.4.2/include \ --with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib \ --with-openssl=/usr/local/ssl \ --with-perl=/usr/local/bin/perl \ --with-sasl=/usr/local \ --disable-sieve \ --with-libwrap=no \ --with-ucdsnmp=no make depend make ### Making all in /home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/man make[1]: Entering directory `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/man' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/man' ### Making all in /home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/com_err/et make[1]: Entering directory `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/com_err/et' gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 error_message.c gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 et_name.c gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 init_et.c gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 com_err.c rm -f libcom_err.a ar cr libcom_err.a error_message.o et_name.o init_et.o com_err.o ranlib libcom_err.a make[1]: Leaving directory `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/com_err/et' ### Making all in /home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/lib make[1]: Entering directory `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/lib' gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ libconfig.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ imapopts.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ hash.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ mpool.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ xmalloc.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ strhash.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ xstrlcat.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ xstrlcpy.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ assert.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ util.c rm -f libcyrus_min.a ar cr libcyrus_min.a libconfig.o imapopts.o hash.o mpool.o xmalloc.o strhash.o xstrlcat.o xstrlcpy.o assert.o util.o ranlib libcyrus_min.a gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ acl.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ bsearch.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ charset.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ glob.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ retry.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ libcyr_cfg.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ mkgmtime.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ prot.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ parseaddr.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ imclient.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ imparse.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ lsort.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ stristr.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ rfc822date.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ cyrusdb.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ mkchartable.c gcc -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib -o mkchartable mkchartable.o xstrlcpy.o xstrlcat.o xmalloc.o assert.o ### Building chartables... rm -f chartable.c ./mkchartable \ -m ./charset/unifix.txt \ -m ./charset/unidata2.txt \ ./charset/*.t \ > chartable.c \ || (rm -f chartable.c && exit 1) mkchartable: expanding unicode mappings... mkchartable: expanding unicode mappings... mkchartable: expanding unicode mappings... mkchartable: building expansion table... mkchartable: mapping unicode... mkchartable: mapping UTF-8... mkchartable: mapping UTF-7... mkchartable: mapping ./charset/big5.t... mkchartable: mapping ./charset/gb2312.t... mkchartable: mapping ./charset/iso-2022-jp.t... mkchartable: mapping ./charset/iso-2022-kr.t... mkchartable: mapping ./charset/iso-8859-1.t... mkchartable: mapping ./charset/iso-8859-15.t... mkchartable: mapping ./charset/iso-8859-2.t... mkchartable: mapping ./charset/iso-8859-3.t... mkchartable: mapping ./charset/iso-8859-4.t... mkchartable: mapping ./charset/iso-8859-5.t... mkchartable: mapping ./charset/iso-8859-6.t... mkchartable: mapping ./charset/iso-8859-7.t... mkchartable: mapping ./charset/iso-8859-8.t... mkchartable: mapping ./charset/iso-8859-9.t... mkchartable: mapping ./charset/koi8-r.t... mkchartable: mapping ./charset/us-ascii.t... mkchartable: mapping ./charset/windows-1250.t... mkchartable: mapping ./charset/windows-1251.t... mkchartable: mapping ./charset/windows-1252.t... mkchartable: mapping ./charset/windows-1255.t... mkchartable: mapping ./charset/windows-1256.t... ### Done building chartables. gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ chartable.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ imapurl.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ nonblock_fcntl.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ lock_fcntl.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ gmtoff_gmtime.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ map_shared.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ acl_afs.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ auth.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ auth_krb.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ auth_unix.c gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ auth_krb5.c auth_krb5.c:60:18: krb5.h: No such file or directory auth_krb5.c: In function `mycanonifyid': auth_krb5.c:104: error: `krb5_context' undeclared (first use in this function) auth_krb5.c:104: error: (Each undeclared identifier is reported only once auth_krb5.c:104: error: for each function it appears in.) auth_krb5.c:104: error: parse error before "context" auth_krb5.c:105: error: `krb5_principal' undeclared (first use in this function) auth_krb5.c:121: error: `context' undeclared (first use in this function) auth_krb5.c:124: error: `princ' undeclared (first use in this function) auth_krb5.c:139: error: `princ_dummy' undeclared (first use in this function) make[1]: *** [auth_krb5.o] Error 1 make[1]: Leaving directory `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/lib' make: *** [all] Error 1 From mcnutt at buffalo.edu Thu Jul 10 13:38:31 2008 From: mcnutt at buffalo.edu (James M McNutt) Date: Thu, 10 Jul 2008 13:38:31 -0400 (EDT) Subject: krb5.h: No such file or directory In-Reply-To: Message-ID: sorry forgot to include this is on Solaris 9 On Thu, 10 Jul 2008, James M McNutt wrote: > we get "krb5.h: No such file or directory" when trying to build > cyrus-imapd-2.3.12p2, is there a way to ignore krb5 I have > --with-auth=unix? > > Thanks, > -jim > > this is the same that we built cyrus-imapd-2.2.12 with > ======================================================= > ./configure \ > --with-auth=unix \ > --disable-murder \ > --with-dbdir=/usr/local/BerkeleyDB.4.2 \ > --with-bdb-incdir=/usr/local/BerkeleyDB.4.2/include \ > --with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib \ > --with-openssl=/usr/local/ssl \ > --with-perl=/usr/local/bin/perl \ > --with-sasl=/usr/local \ > --disable-sieve \ > --with-libwrap=no \ > --with-ucdsnmp=no > > make depend > make > > ### Making all in /home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/man > make[1]: Entering directory > `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/man' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory > `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/man' > ### Making all in /home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/com_err/et > make[1]: Entering directory > `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/com_err/et' > gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 error_message.c > gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 et_name.c > gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 init_et.c > gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 com_err.c > rm -f libcom_err.a > ar cr libcom_err.a error_message.o et_name.o init_et.o com_err.o > ranlib libcom_err.a > make[1]: Leaving directory > `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/com_err/et' > ### Making all in /home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/lib > make[1]: Entering directory > `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/lib' > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > libconfig.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > imapopts.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > hash.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > mpool.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > xmalloc.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > strhash.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > xstrlcat.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > xstrlcpy.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > assert.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > util.c > rm -f libcyrus_min.a > ar cr libcyrus_min.a libconfig.o imapopts.o hash.o mpool.o xmalloc.o > strhash.o xstrlcat.o xstrlcpy.o assert.o util.o > ranlib libcyrus_min.a > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > acl.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > bsearch.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > charset.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > glob.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > retry.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > libcyr_cfg.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > mkgmtime.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > prot.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > parseaddr.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > imclient.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > imparse.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > lsort.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > stristr.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > rfc822date.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > cyrusdb.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > mkchartable.c > gcc -L/usr/local/ssl/lib -R/usr/local/ssl/lib > -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib -o > mkchartable mkchartable.o xstrlcpy.o xstrlcat.o xmalloc.o assert.o > ### Building chartables... > rm -f chartable.c > ./mkchartable \ > -m ./charset/unifix.txt \ > -m ./charset/unidata2.txt \ > ./charset/*.t \ > > chartable.c \ > || (rm -f chartable.c && exit 1) > mkchartable: expanding unicode mappings... > mkchartable: expanding unicode mappings... > mkchartable: expanding unicode mappings... > mkchartable: building expansion table... > mkchartable: mapping unicode... > mkchartable: mapping UTF-8... > mkchartable: mapping UTF-7... > mkchartable: mapping ./charset/big5.t... > mkchartable: mapping ./charset/gb2312.t... > mkchartable: mapping ./charset/iso-2022-jp.t... > mkchartable: mapping ./charset/iso-2022-kr.t... > mkchartable: mapping ./charset/iso-8859-1.t... > mkchartable: mapping ./charset/iso-8859-15.t... > mkchartable: mapping ./charset/iso-8859-2.t... > mkchartable: mapping ./charset/iso-8859-3.t... > mkchartable: mapping ./charset/iso-8859-4.t... > mkchartable: mapping ./charset/iso-8859-5.t... > mkchartable: mapping ./charset/iso-8859-6.t... > mkchartable: mapping ./charset/iso-8859-7.t... > mkchartable: mapping ./charset/iso-8859-8.t... > mkchartable: mapping ./charset/iso-8859-9.t... > mkchartable: mapping ./charset/koi8-r.t... > mkchartable: mapping ./charset/us-ascii.t... > mkchartable: mapping ./charset/windows-1250.t... > mkchartable: mapping ./charset/windows-1251.t... > mkchartable: mapping ./charset/windows-1252.t... > mkchartable: mapping ./charset/windows-1255.t... > mkchartable: mapping ./charset/windows-1256.t... > ### Done building chartables. > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > chartable.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > imapurl.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > nonblock_fcntl.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > lock_fcntl.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > gmtoff_gmtime.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > map_shared.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > acl_afs.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > auth.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > auth_krb.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > auth_unix.c > gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include > -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ > auth_krb5.c > auth_krb5.c:60:18: krb5.h: No such file or directory > auth_krb5.c: In function `mycanonifyid': > auth_krb5.c:104: error: `krb5_context' undeclared (first use in this > function) > auth_krb5.c:104: error: (Each undeclared identifier is reported only once > auth_krb5.c:104: error: for each function it appears in.) > auth_krb5.c:104: error: parse error before "context" > auth_krb5.c:105: error: `krb5_principal' undeclared (first use in this > function) > auth_krb5.c:121: error: `context' undeclared (first use in this function) > auth_krb5.c:124: error: `princ' undeclared (first use in this function) > auth_krb5.c:139: error: `princ_dummy' undeclared (first use in this > function) > make[1]: *** [auth_krb5.o] Error 1 > make[1]: Leaving directory > `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/lib' > make: *** [all] Error 1 > > > > > > > ---- > 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 > From daleg at elemental.org Thu Jul 10 13:50:44 2008 From: daleg at elemental.org (Dale Ghent) Date: Thu, 10 Jul 2008 13:50:44 -0400 Subject: krb5.h: No such file or directory In-Reply-To: References: Message-ID: <7320D179-1465-4F56-9682-A92D1D25E4A0@elemental.org> On Solaris 9 you'll need to install MIT kerberos. krb5.h wasn't included in Solaris until s10u3. /dale On Jul 10, 2008, at 1:38 PM, James M McNutt wrote: > sorry forgot to include this is on Solaris 9 > > > On Thu, 10 Jul 2008, James M McNutt wrote: > >> we get "krb5.h: No such file or directory" when trying to build >> cyrus-imapd-2.3.12p2, is there a way to ignore krb5 I have >> --with-auth=unix? >> >> Thanks, >> -jim >> >> this is the same that we built cyrus-imapd-2.2.12 with >> ======================================================= >> ./configure \ >> --with-auth=unix \ >> --disable-murder \ >> --with-dbdir=/usr/local/BerkeleyDB.4.2 \ >> --with-bdb-incdir=/usr/local/BerkeleyDB.4.2/include \ >> --with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib \ >> --with-openssl=/usr/local/ssl \ >> --with-perl=/usr/local/bin/perl \ >> --with-sasl=/usr/local \ >> --disable-sieve \ >> --with-libwrap=no \ >> --with-ucdsnmp=no >> >> make depend >> make >> >> ### Making all in /home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/man >> make[1]: Entering directory >> `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/man' >> make[1]: Nothing to be done for `all'. >> make[1]: Leaving directory >> `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/man' >> ### Making all in /home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/ >> com_err/et >> make[1]: Entering directory >> `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/com_err/et' >> gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include >> -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 error_message.c >> gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include >> -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 et_name.c >> gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include >> -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 init_et.c >> gcc -c -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include >> -DHAVE_CONFIG_H -I. -I./../../lib -I. -I../.. -g -O2 com_err.c >> rm -f libcom_err.a >> ar cr libcom_err.a error_message.o et_name.o init_et.o com_err.o >> ranlib libcom_err.a >> make[1]: Leaving directory >> `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/com_err/et' >> ### Making all in /home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/lib >> make[1]: Entering directory >> `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/lib' >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> libconfig.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> imapopts.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> hash.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> mpool.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> xmalloc.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> strhash.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> xstrlcat.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> xstrlcpy.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> assert.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> util.c >> rm -f libcyrus_min.a >> ar cr libcyrus_min.a libconfig.o imapopts.o hash.o mpool.o xmalloc.o >> strhash.o xstrlcat.o xstrlcpy.o assert.o util.o >> ranlib libcyrus_min.a >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> acl.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> bsearch.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> charset.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> glob.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> retry.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> libcyr_cfg.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> mkgmtime.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> prot.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> parseaddr.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> imclient.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> imparse.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> lsort.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> stristr.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> rfc822date.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> cyrusdb.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> mkchartable.c >> gcc -L/usr/local/ssl/lib -R/usr/local/ssl/lib >> -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib -o >> mkchartable mkchartable.o xstrlcpy.o xstrlcat.o xmalloc.o assert.o >> ### Building chartables... >> rm -f chartable.c >> ./mkchartable \ >> -m ./charset/unifix.txt \ >> -m ./charset/unidata2.txt \ >> ./charset/*.t \ >>> chartable.c \ >> || (rm -f chartable.c && exit 1) >> mkchartable: expanding unicode mappings... >> mkchartable: expanding unicode mappings... >> mkchartable: expanding unicode mappings... >> mkchartable: building expansion table... >> mkchartable: mapping unicode... >> mkchartable: mapping UTF-8... >> mkchartable: mapping UTF-7... >> mkchartable: mapping ./charset/big5.t... >> mkchartable: mapping ./charset/gb2312.t... >> mkchartable: mapping ./charset/iso-2022-jp.t... >> mkchartable: mapping ./charset/iso-2022-kr.t... >> mkchartable: mapping ./charset/iso-8859-1.t... >> mkchartable: mapping ./charset/iso-8859-15.t... >> mkchartable: mapping ./charset/iso-8859-2.t... >> mkchartable: mapping ./charset/iso-8859-3.t... >> mkchartable: mapping ./charset/iso-8859-4.t... >> mkchartable: mapping ./charset/iso-8859-5.t... >> mkchartable: mapping ./charset/iso-8859-6.t... >> mkchartable: mapping ./charset/iso-8859-7.t... >> mkchartable: mapping ./charset/iso-8859-8.t... >> mkchartable: mapping ./charset/iso-8859-9.t... >> mkchartable: mapping ./charset/koi8-r.t... >> mkchartable: mapping ./charset/us-ascii.t... >> mkchartable: mapping ./charset/windows-1250.t... >> mkchartable: mapping ./charset/windows-1251.t... >> mkchartable: mapping ./charset/windows-1252.t... >> mkchartable: mapping ./charset/windows-1255.t... >> mkchartable: mapping ./charset/windows-1256.t... >> ### Done building chartables. >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> chartable.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> imapurl.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> nonblock_fcntl.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> lock_fcntl.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> gmtoff_gmtime.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> map_shared.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> acl_afs.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> auth.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> auth_krb.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> auth_unix.c >> gcc -c -I.. -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/ >> include >> -I../com_err/et -I/usr/local/include -DHAVE_CONFIG_H -g -O2 \ >> auth_krb5.c >> auth_krb5.c:60:18: krb5.h: No such file or directory >> auth_krb5.c: In function `mycanonifyid': >> auth_krb5.c:104: error: `krb5_context' undeclared (first use in this >> function) >> auth_krb5.c:104: error: (Each undeclared identifier is reported >> only once >> auth_krb5.c:104: error: for each function it appears in.) >> auth_krb5.c:104: error: parse error before "context" >> auth_krb5.c:105: error: `krb5_principal' undeclared (first use in >> this >> function) >> auth_krb5.c:121: error: `context' undeclared (first use in this >> function) >> auth_krb5.c:124: error: `princ' undeclared (first use in this >> function) >> auth_krb5.c:139: error: `princ_dummy' undeclared (first use in this >> function) >> make[1]: *** [auth_krb5.o] Error 1 >> make[1]: Leaving directory >> `/home/staff/tks/mcnutt/cyrus-imapd-2.3.12p2/lib' >> make: *** [all] Error 1 >> >> >> >> >> >> >> ---- >> 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 >> > > ---- > 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 From croxton3 at yahoo.com Thu Jul 10 14:27:07 2008 From: croxton3 at yahoo.com (Derek Croxton) Date: Thu, 10 Jul 2008 14:27:07 -0400 Subject: Migrating and upgrading Message-ID: <4876547B.9070800@yahoo.com> I have a Cyrus + Postfix server (about 4 years old) that I want to migrate to a new machine (running Ubuntu Hardy server edition). I got the basic functionality up and running, and created an account. Now I need to get the old messages onto the new server. I tried using imapmigrate, which indeed copied all the messages to the new machine; however, the only ones that I can see using a client are the ones in the inbox. None of the other mailboxes are visible. I don't know if the different versions of cyrus might be creating the problem. The old server is running 2.1, the new one 2.2. I tried running the cvt_cyrusdb program on the new version, but it didn't help. Thanks for any assistance you can provide. -- Sincerely, Derek From croxton3 at yahoo.com Thu Jul 10 14:45:15 2008 From: croxton3 at yahoo.com (Derek Croxton) Date: Thu, 10 Jul 2008 14:45:15 -0400 Subject: Migrate/upgrade question Message-ID: <487658BB.6000009@yahoo.com> I have a Cyrus + Postfix server (about 4 years old) that I want to migrate to a new machine (running Ubuntu Hardy server edition). I got the basic functionality up and running, and created an account. Now I need to get the old messages onto the new server. I tried using imapmigrate, which indeed copied all the messages to the new machine; however, the only ones that I can see using a client are the ones in the inbox. None of the other mailboxes are visible. I don't know if the different versions of cyrus might be creating the problem. The old server is running 2.1, the new one 2.2. I tried running the cvt_cyrusdb program on the new version, but it didn't help. Thanks for any assistance you can provide. -- Sincerely, Derek From dudi at kolcore.com Thu Jul 10 14:57:58 2008 From: dudi at kolcore.com (Dudi Goldenberg) Date: Thu, 10 Jul 2008 21:57:58 +0300 Subject: Migrate/upgrade question In-Reply-To: <487658BB.6000009@yahoo.com> Message-ID: >I tried using imapmigrate, which indeed copied all the messages to the >new machine; however, the only ones that I can see using a client are >the ones in the inbox. None of the other mailboxes are visible. Did you subscribe the newly created folders?? Regards, D. From cyruslist at logi.ca Thu Jul 10 15:18:59 2008 From: cyruslist at logi.ca (brian) Date: Thu, 10 Jul 2008 15:18:59 -0400 Subject: imapsync permission denied, shared folder Message-ID: <487660A3.3030207@logi.ca> I'm moving some accounts to a new server using imapsync and have just encountered an error with one account. The script attempted to create a sub-folder and failed: -- snip -- From Folder [Shared Folders.membership] To Folder [Shared Folders.membership] To Folder Shared Folders.membership does not exist Creating folder [Shared Folders.membership] Couldn't create [Shared Folders.membership]580 NO Permission denied -- snip -- Now, the thing is, there is no directory with that name in this user's spool directory on the source server. Given the name, I'm guessing it resides elsewhere. Where/how is imapsync finding this "Shared Folders" directory? Can anyone think of a reason i'm seeing this? Obviously, I'm not a mail professional. imapsync \ --buffersize 8192000 --subscribe --syncinternaldates \ --ssl1 --ssl2 --noauthmd5 \ --authmech1 PLAIN --authmech2 CRAM-MD5 \ --host1 mail.SOURCE.org --port1 993 \ --user1 USER at DOMAIN.org --password1 xxxxxx \ --host2 mail.TARGET.org --port2 993 \ --user2 USER at DOMAIN.org --password2 xxxxxx --delete2 b From croxton3 at yahoo.com Thu Jul 10 16:09:35 2008 From: croxton3 at yahoo.com (Derek Croxton) Date: Thu, 10 Jul 2008 16:09:35 -0400 Subject: Migrate/upgrade question In-Reply-To: References: Message-ID: <48766C7F.9090604@yahoo.com> An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080710/63d60fb2/attachment.html From wilson at registro.br Thu Jul 10 18:20:04 2008 From: wilson at registro.br (Wilson Rogerio Lopes) Date: Thu, 10 Jul 2008 19:20:04 -0300 Subject: cyrus-imap - High consumption of memory Message-ID: <20080710222004.GB91855@registro.br> Hi all, I have a problem with a high memory consumption using cyrus-imap 2.2 on FreeBSD 7.0. Each processes of imapd consume 30mb of ram ! I believe that this is not normal. Is there a way to adjust this? Regards, -- Wilson Lopes wilson at registro.br From michael.menge at zdv.uni-tuebingen.de Thu Jul 10 18:23:43 2008 From: michael.menge at zdv.uni-tuebingen.de (Michael Menge) Date: Fri, 11 Jul 2008 00:23:43 +0200 Subject: imapsync permission denied, shared folder In-Reply-To: <487660A3.3030207@logi.ca> References: <487660A3.3030207@logi.ca> Message-ID: <20080711002343.cnu12tafwkkow4wc@webmail.uni-tuebingen.de> Hi, Cyrus allows sharing of folders. A user can allow other users to acces its mailbox with acls. Also the Admin can create folders that belong to no user but can be accesed by other users. If you have admin acces you can use cyradm (in most cases "cyradm -u cyrus localhost") to view the folder structure "lm" will list the mailboxes all folders below "user" belong to an user. user.aaa will be the INBOX of user aaa. All other mailboxes not under "user" are Shared Folders. Depending on you Namespace configuration the user will see mailboxes form other user in an folder "Other Users" and shared folders in an folder "Shared Folders". Users don't normaly have the permissions to write to shared folders. You must exclude "Shared Folders" and "Other users" from imapsync, or create the Folder "membership" as admin and allow the user to put mails in the Folder. You should remove the writepermission after migration Regards Michael Menge Quoting brian : > I'm moving some accounts to a new server using imapsync and have just > encountered an error with one account. The script attempted to create a > sub-folder and failed: > > -- snip -- > From Folder [Shared Folders.membership] > To Folder [Shared Folders.membership] > To Folder Shared Folders.membership does not exist > Creating folder [Shared Folders.membership] > Couldn't create [Shared Folders.membership]580 NO Permission denied > -- snip -- > > Now, the thing is, there is no directory with that name in this user's > spool directory on the source server. Given the name, I'm guessing it > resides elsewhere. Where/how is imapsync finding this "Shared Folders" > directory? Can anyone think of a reason i'm seeing this? > > Obviously, I'm not a mail professional. > > imapsync \ > --buffersize 8192000 --subscribe --syncinternaldates \ > --ssl1 --ssl2 --noauthmd5 \ > --authmech1 PLAIN --authmech2 CRAM-MD5 \ > --host1 mail.SOURCE.org --port1 993 \ > --user1 USER at DOMAIN.org --password1 xxxxxx \ > --host2 mail.TARGET.org --port2 993 \ > --user2 USER at DOMAIN.org --password2 xxxxxx --delete2 > > b > > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912 Zentrum fuer Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de Waechterstrasse 76 72074 Tuebingen From robm at fastmail.fm Fri Jul 11 03:55:05 2008 From: robm at fastmail.fm (Rob Mueller) Date: Fri, 11 Jul 2008 17:55:05 +1000 Subject: cyrus-imap - High consumption of memory References: <20080710222004.GB91855@registro.br> Message-ID: <075a01c8e32b$7140a520$0a01a8c0@robmhp> > I have a problem with a high memory consumption using cyrus-imap 2.2 on > FreeBSD 7.0. > Each processes of imapd consume 30mb of ram ! I believe that this is not > normal. > Is there a way to adjust this? This is probably fine. cyrus mmap's lots of files, which often make the process look bigger that it really is, because the OS will just page in data as required. Also a number of the mmaped files are shared between process (eg skiplist mailboxes.db), so if you have a 30M mailboxes.db, it'll make each process look like it's at least 30M in size, but in reality, that 30M is shared between all processes. Rob From zierke at informatik.uni-hamburg.de Fri Jul 11 05:37:52 2008 From: zierke at informatik.uni-hamburg.de (Reinhard Zierke) Date: Fri, 11 Jul 2008 11:37:52 +0200 Subject: Skiplist errors on Cyrus 2.3.12 Message-ID: <20080711093751.GA19670@rzdspc6.informatik.uni-hamburg.de> Hi, Since I upgraded my Solaris 10 Postfix/Cyrus mail server to Cyrus 2.3.12, I habe some problems when removing mailboxes. I try to delete several users' mailboxes within one call of cyradm or in a homemade Perl script that uses Cyrus::IMAP::Admin. The first delete in one command invocation always work fine, but from the second user on I get a terse error message "cyrus: c:" and the syslog shows something like: Jul 11 10:32:41 mailhost.informatik.uni-hamburg.de cyradm[13944]: [ID 637875 local6.error] Fatal error: Internal error: assertion failed: cyrusdb_skiplist.c: 622: db->lock_status == UNLOCKED Jul 11 10:32:41 mailhost.informatik.uni-hamburg.de cyradm[13944]: [ID 558109 local6.error] skiplist: closed while still locked Also, I see tons of skiplist 'already open' messages in my syslog like: Jul 11 09:59:33 mailhost.informatik.uni-hamburg.de imaps[9792]: [ID 412576 local6.notice] skiplist: /var/imap/user/z/zierke.seen is already open 1 time, returning object What's wrong? And can I safely go back to Cyrus 2.3.11 binaries without botching up my Cyrus databases? Regards, Reinhard -- Reinhard Zierke Universit?t Hamburg, MIN-Fakult?t, zierke at informatik.uni-hamburg.de Department Informatik postmaster at informatik.uni-hamburg.de Vogt-K?lln-Stra?e 30, D-22527 Hamburg Tel.: (040) 42883-2295/2276 Fax: -2241 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 193 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080711/30e9dc05/attachment-0001.bin From brong at fastmail.fm Fri Jul 11 08:24:53 2008 From: brong at fastmail.fm (Bron Gondwana) Date: Fri, 11 Jul 2008 22:24:53 +1000 Subject: Skiplist errors on Cyrus 2.3.12 In-Reply-To: <20080711093751.GA19670@rzdspc6.informatik.uni-hamburg.de> References: <20080711093751.GA19670@rzdspc6.informatik.uni-hamburg.de> Message-ID: <20080711122453.GB20066@brong.net> On Fri, Jul 11, 2008 at 11:37:52AM +0200, Reinhard Zierke wrote: > Hi, > > Since I upgraded my Solaris 10 Postfix/Cyrus mail server to Cyrus 2.3.12, > I habe some problems when removing mailboxes. I try to delete > several users' mailboxes within one call of cyradm or in a homemade Perl > script that uses Cyrus::IMAP::Admin. The first delete in one command > invocation always work fine, but from the second user on I get a terse > error message "cyrus: c:" and the syslog shows something like: > > Jul 11 10:32:41 mailhost.informatik.uni-hamburg.de cyradm[13944]: [ID 637875 local6.error] Fatal error: Internal error: assertion failed: cyrusdb_skiplist.c: 622: db->lock_status == UNLOCKED > Jul 11 10:32:41 mailhost.informatik.uni-hamburg.de cyradm[13944]: [ID 558109 local6.error] skiplist: closed while still locked > > Also, I see tons of skiplist 'already open' messages in my syslog like: > > Jul 11 09:59:33 mailhost.informatik.uni-hamburg.de imaps[9792]: [ID 412576 local6.notice] skiplist: /var/imap/user/z/zierke.seen is already open 1 time, returning object > > What's wrong? And can I safely go back to Cyrus 2.3.11 binaries without > botching up my Cyrus databases? That would be the skiplist sanity checks finding a latent bug in another part of Cyrus. Are you able to send me the exact sequence of commands your script runs? Is there anything else between the deletes? I'll go have a look at the source code. Bron. From brong at fastmail.fm Fri Jul 11 08:55:00 2008 From: brong at fastmail.fm (Bron Gondwana) Date: Fri, 11 Jul 2008 22:55:00 +1000 Subject: Skiplist errors on Cyrus 2.3.12 In-Reply-To: <20080711093751.GA19670@rzdspc6.informatik.uni-hamburg.de> References: <20080711093751.GA19670@rzdspc6.informatik.uni-hamburg.de> Message-ID: <20080711125500.GA21954@brong.net> On Fri, Jul 11, 2008 at 11:37:52AM +0200, Reinhard Zierke wrote: > Hi, > > Since I upgraded my Solaris 10 Postfix/Cyrus mail server to Cyrus 2.3.12, > I habe some problems when removing mailboxes. I try to delete > several users' mailboxes within one call of cyradm or in a homemade Perl > script that uses Cyrus::IMAP::Admin. The first delete in one command > invocation always work fine, but from the second user on I get a terse > error message "cyrus: c:" and the syslog shows something like: > > Jul 11 10:32:41 mailhost.informatik.uni-hamburg.de cyradm[13944]: [ID 637875 local6.error] Fatal error: Internal error: assertion failed: cyrusdb_skiplist.c: 622: db->lock_status == UNLOCKED > Jul 11 10:32:41 mailhost.informatik.uni-hamburg.de cyradm[13944]: [ID 558109 local6.error] skiplist: closed while still locked > > Also, I see tons of skiplist 'already open' messages in my syslog like: > > Jul 11 09:59:33 mailhost.informatik.uni-hamburg.de imaps[9792]: [ID 412576 local6.notice] skiplist: /var/imap/user/z/zierke.seen is already open 1 time, returning object > > What's wrong? And can I safely go back to Cyrus 2.3.11 binaries without > botching up my Cyrus databases? Oh yeah, a copy of your imapd.conf and whether you apply any patches would be nice to know too. Handy for reconstructing the problem! I apply two patches to skiplists on 2.3.12 (yeah, I know, after all the stuff I've had pushed upstream too): hmm... and I realise I haven't updated the website for a while. Doing that now... ok: http://cyrus.brong.fastmail.fm/patches/cyrus-skiplist-safeunlock-2.3.12.diff http://cyrus.brong.fastmail.fm/patches/cyrus-skiplist-readlocktracking-2.3.12.diff I'd be interested to know if the issue still exists with these. They tidy up the logic for locks even more. I needed it to make the fast_rename and folder_limit stuff work again. Bron. From zierke at informatik.uni-hamburg.de Fri Jul 11 09:10:10 2008 From: zierke at informatik.uni-hamburg.de (Reinhard Zierke) Date: Fri, 11 Jul 2008 15:10:10 +0200 Subject: Skiplist errors on Cyrus 2.3.12 In-Reply-To: <20080711122453.GB20066@brong.net> References: <20080711093751.GA19670@rzdspc6.informatik.uni-hamburg.de> <20080711122453.GB20066@brong.net> Message-ID: <20080711131010.GB24614@rzdspc6.informatik.uni-hamburg.de> Hi Bron, > Are you able to send me the exact sequence of commands your script runs? > Is there anything else between the deletes? I'll go have a look at the > source code. My script removemailboxes is attached. An example for its invocation is: ------------------------------------------------------------------- cyrus at mailhost% removemailboxes Password: L?sche Mailbox user.4jacobse (j/n/q) ? j ... gel?scht L?sche Mailbox user.4kail (j/n/q) ? j ... setacl error:cyrus: c: 1 von 2 Mailboxen gel?scht ------------------------------------------------------------------- Thank you, Reinhard -- Reinhard Zierke Universit?t Hamburg, MIN-Fakult?t, zierke at informatik.uni-hamburg.de Department Informatik postmaster at informatik.uni-hamburg.de Vogt-K?lln-Stra?e 30, D-22527 Hamburg Tel.: (040) 42883-2295/2276 Fax: -2241 -------------- next part -------------- #!/opt/bin/perl -w # # removes mailboxes for non-existent / deleted users # use strict; use Cyrus::IMAP::Admin; use Term::ReadKey; my $myself = (getpwuid($<))[0] || $ENV{LOGNAME}; my %admin; my $conffile = "/etc/imapd.conf"; open CONF, $conffile or die "Can't open $conffile\n"; while () { next unless /^admins:/; chomp; s/^admins:\s*//; foreach (split / /, $_) { $admin{$_} = $_; } } close CONF or die "Can't close $conffile\n"; unless ($admin{$myself}) { print "$myself ist kein IMAP-Administrator\n"; exit 1; } undef %admin; my (%user, %nouser, %group, @group); my %mailboxes; # existing Cyrus mailboxes my @user = qw(abuse archive drei-s postmaster); # pseudo-users with mailboxes foreach (@user) { $user{$_} = 1; $group{$_} = 'system'; } my @nouser = qw(news nobody nobody4 noaccess); # users without mailboxes foreach (@nouser) { $nouser{$_} = 1; } my $file = '/etc/postfix/local_mailboxes'; open (FILE, $file) or die "Can't open file $file\n"; while () { chomp; if (/^([\w-]+)[:\s]/) { $user{$1} = 1; $group{$1} = 'system'; } } close FILE or die "Can't close file $file\n"; open GROUP, "/usr/bin/ypcat group|" or die "Can't ypcat group\n"; while () { chomp; my ($group, $gid) = (split /:/)[0,2]; $group[$gid] = $group; } close GROUP or die "Can't close group\n"; open PASSWD, "/usr/bin/ypcat passwd|" or die "Can't ypcat passwd\n"; while () { chomp; my ($login, $uid, $gid) = (split /:/)[0,2,3]; next if ($nouser{$login}); unless (defined $group[$gid]) { print "no group for $login, gid = $gid\n"; next; } $user{$login} = $uid; $group{$login} = $group[$gid]; } close PASSWD or die "Can't close passwd\n"; my $client = Cyrus::IMAP::Admin->new('localhost', 943); $client->authenticate; if ($client->error) { print $client->error, "\n"; exit 1; } my ($anzahl, $gesamt) = (0, 0); foreach my $mailbox ($client->list('%', 'user.')) { my ($name, $attributes, $separator) = @{ $mailbox }; my $login = $name; $login =~ s/^user\.//; next if $user{$login}; $gesamt++; print "L?sche Mailbox $name (j/n/q) ? "; ReadMode 'cbreak'; my $key; while (($key = lc ReadKey(0)) !~ /^[jynq]/) {}; ReadMode 'normal'; print "$key\n"; next if ($key eq 'n'); last if ($key eq 'q'); print "... "; $client->setacl($name, $myself => 'c'); if ($client->error) { print "setacl error:", $client->error, "\n"; last; } $client->delete($name); if ($client->error) { print "delete error:", $client->error, "\n"; last; } else { $anzahl++; print "gel?scht\n"; } } print "\nKeine Mailboxen zu l?schen\n" unless $gesamt; print "\n$anzahl von $gesamt Mailboxen gel?scht\n" if $anzahl; exit 0; -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 193 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080711/0dd917fc/attachment.bin From zierke at informatik.uni-hamburg.de Fri Jul 11 09:19:43 2008 From: zierke at informatik.uni-hamburg.de (Reinhard Zierke) Date: Fri, 11 Jul 2008 15:19:43 +0200 Subject: Skiplist errors on Cyrus 2.3.12 In-Reply-To: <20080711125500.GA21954@brong.net> References: <20080711093751.GA19670@rzdspc6.informatik.uni-hamburg.de> <20080711125500.GA21954@brong.net> Message-ID: <20080711131943.GC24614@rzdspc6.informatik.uni-hamburg.de> Hi Bron, > Oh yeah, a copy of your imapd.conf and whether you apply any patches > would be nice to know too. Handy for reconstructing the problem! The imapd.conf file is ---------------------------------------------------------------------- configdirectory: /var/imap partition-default: /var/spool/imap admins: cyrus cyrusv allowapop: no allowplaintext: no username_tolower: yes lmtp_downcase_rcpt: yes auth_mech: unix sasl_mech_list: plain login sasl_pwcheck_method: saslauthd tls_cert_file: /etc/postfix/certs/mailhost.informatik.uni-hamburg.de-mail-crt.pem tls_key_file: /etc/postfix/certs/mailhost.informatik.uni-hamburg.de-key.pem tls_ca_file: /etc/postfix/certs/uhh-ca-chain.pem autocreatequota: 0 quotawarn: 90 timeout: 30 poptimeout: 10 sievedir: /var/imap/sieve annotation_db: skiplist duplicate_db: skiplist mboxkey_db: skiplist mboxlist_db: skiplist ptscache_db: skiplist quota_db: skiplist seenstate_db: skiplist statuscache_db: skiplist subscription_db: flat tlscache_db: skiplist ---------------------------------------------------------------------- > I apply two patches to skiplists on 2.3.12 (yeah, I know, after all > the stuff I've had pushed upstream too): > > hmm... and I realise I haven't updated the website for a while. > Doing that now... ok: > > http://cyrus.brong.fastmail.fm/patches/cyrus-skiplist-safeunlock-2.3.12.diff > http://cyrus.brong.fastmail.fm/patches/cyrus-skiplist-readlocktracking-2.3.12.diff > > I'd be interested to know if the issue still exists with these. > They tidy up the logic for locks even more. I needed it to make > the fast_rename and folder_limit stuff work again. I'll try this tonight or tomorrow morning. Cheers, Reinhard -- Reinhard Zierke Universit?t Hamburg, MIN-Fakult?t, zierke at informatik.uni-hamburg.de Department Informatik postmaster at informatik.uni-hamburg.de Vogt-K?lln-Stra?e 30, D-22527 Hamburg Tel.: (040) 42883-2295/2276 Fax: -2241 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 193 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080711/71b64b37/attachment.bin From croxton3 at yahoo.com Fri Jul 11 14:36:58 2008 From: croxton3 at yahoo.com (Derek Croxton) Date: Fri, 11 Jul 2008 11:36:58 -0700 (PDT) Subject: Postfix can't deliver to cyrus via lmtp In-Reply-To: <20080711131943.GC24614@rzdspc6.informatik.uni-hamburg.de> Message-ID: <145874.83443.qm@web50606.mail.re2.yahoo.com> I'm migrating a cyrus + postfix server to Ubuntu Hardy. Everything else works -- old mail is migrated, I can read it, and I can send mail -- but I can't receive mail. It gets stuck in postfix, with the error "warning: connect #[x] to subsystem private/lmtp: Connection refused". I discovered that the lmtp socket in Hardy is, by default, /var/run/cyrus/socket/lmtp, and I set master.cf accordingly. I saw one warning that the file needs to be accessible to both the cyrus and the postfix users. The /var/run/socket directory is owned by cyrus:mail, and has permissions of 740. The lmtp file itself is owned by root:root, but has permissions of 777. (Actually, the permissions line reads "srwxrwxrwx"; I can't remember what the leading "s" means.) Postfix appears to be running as the "postfix" user. Thanks far any help you can provide. Sincerely, Derek From list at joreybump.com Fri Jul 11 15:08:22 2008 From: list at joreybump.com (Jorey Bump) Date: Fri, 11 Jul 2008 15:08:22 -0400 Subject: Postfix can't deliver to cyrus via lmtp In-Reply-To: <145874.83443.qm@web50606.mail.re2.yahoo.com> References: <145874.83443.qm@web50606.mail.re2.yahoo.com> Message-ID: <4877AFA6.6000300@joreybump.com> Derek Croxton wrote, at 07/11/2008 02:36 PM: > I'm migrating a cyrus + postfix server to Ubuntu Hardy. Everything > else works -- old mail is migrated, I can read it, and I can send > mail -- but I can't receive mail. It gets stuck in postfix, with the > error "warning: connect #[x] to subsystem private/lmtp: Connection > refused". > > I discovered that the lmtp socket in Hardy is, by default, > /var/run/cyrus/socket/lmtp, and I set master.cf accordingly. I saw > one warning that the file needs to be accessible to both the cyrus > and the postfix users. The /var/run/socket directory is owned by > cyrus:mail, and has permissions of 740. The lmtp file itself is owned > by root:root, but has permissions of 777. (Actually, the permissions > line reads "srwxrwxrwx"; I can't remember what the leading "s" > means.) Postfix appears to be running as the "postfix" user. > > Thanks far any help you can provide. You should only need to add postfix to the mail group (at least, that's what I do on Slackware, where I have Postfix and Cyrus IMAPd compiled from source). You may still encounter a problem if Postfix is chrooted (the default in Debian-based systems, I believe). It is perfectly safe to not chroot Postfix, and I would recommend this as the easiest solution if it raises issues. From list at joreybump.com Fri Jul 11 15:54:39 2008 From: list at joreybump.com (Jorey Bump) Date: Fri, 11 Jul 2008 15:54:39 -0400 Subject: [Fwd: Delivery Status Notification (Failure)] Message-ID: <4877BA7F.7050907@joreybump.com> Did someone subscribe a spamtrap to this list? If so, could the list maintainer check and remove this address? -------- Original Message -------- Subject: Delivery Status Notification (Failure) Date: Fri, 11 Jul 2008 20:48:15 +0100 From: To: This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. spam at tourismbc.co.uk -------------- next part -------------- An embedded message was scrubbed... From: "Jorey Bump" Subject: Re: Postfix can't deliver to cyrus via lmtp Date: Fri, 11 Jul 2008 15:08:22 -0400 Size: 5581 Url: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080711/29952ccb/attachment.eml From cyruslist at logi.ca Sat Jul 12 00:32:18 2008 From: cyruslist at logi.ca (brian) Date: Sat, 12 Jul 2008 00:32:18 -0400 Subject: cyradm: dm permission denied AFTER setacl Message-ID: <487833D2.6030908@logi.ca> I cannot delete a mailbox with cyradm. Specifically, setacl seems not to be working: localhost.localdomain> sam user.admin at DOMAIN.org cyrus -c localhost.localdomain> dm user.admin at DOMAIN.org deletemailbox: Permission denied localhost.localdomain> lam user.admin at DOMAIN.org admin at DOMAIN.org lrswipkxtecda So, it seems the that sam is not working suddenly. I've never encountered this and cannot find anything online that suggests how to deal with this. Does anyone have some idea of where to look? b From aspineux at gmail.com Sat Jul 12 01:20:36 2008 From: aspineux at gmail.com (Alain Spineux) Date: Sat, 12 Jul 2008 07:20:36 +0200 Subject: cyradm: dm permission denied AFTER setacl In-Reply-To: <487833D2.6030908@logi.ca> References: <487833D2.6030908@logi.ca> Message-ID: <71fe4e760807112220r75a20c79yd1486d9e93439ffb@mail.gmail.com> On Sat, Jul 12, 2008 at 6:32 AM, brian wrote: > I cannot delete a mailbox with cyradm. Specifically, setacl seems not to > be working: > > localhost.localdomain> sam user.admin at DOMAIN.org cyrus -c try this instead sam user.admin at DOMAIN.org cyrus x use x instead of -c Regards > localhost.localdomain> dm user.admin at DOMAIN.org > deletemailbox: Permission denied > localhost.localdomain> lam user.admin at DOMAIN.org > admin at DOMAIN.org lrswipkxtecda > > > So, it seems the that sam is not working suddenly. I've never > encountered this and cannot find anything online that suggests how to > deal with this. Does anyone have some idea of where to look? > > b > ---- > 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 > -- Alain Spineux aspineux gmail com May the sources be with you From zierke at informatik.uni-hamburg.de Mon Jul 14 03:10:58 2008 From: zierke at informatik.uni-hamburg.de (Reinhard Zierke) Date: Mon, 14 Jul 2008 09:10:58 +0200 Subject: Skiplist errors on Cyrus 2.3.12 In-Reply-To: <20080711125500.GA21954@brong.net> References: <20080711093751.GA19670@rzdspc6.informatik.uni-hamburg.de> <20080711125500.GA21954@brong.net> Message-ID: <20080714071057.GA13835@rzdspc6.informatik.uni-hamburg.de> > hmm... and I realise I haven't updated the website for a while. > Doing that now... ok: > > http://cyrus.brong.fastmail.fm/patches/cyrus-skiplist-safeunlock-2.3.12.diff > http://cyrus.brong.fastmail.fm/patches/cyrus-skiplist-readlocktracking-2.3.12.diff > > I'd be interested to know if the issue still exists with these. > They tidy up the logic for locks even more. I needed it to make > the fast_rename and folder_limit stuff work again. These patches didn't help. I still get the same error message on my test machine: Jul 14 09:04:16 rzdspc11 cyradm[27124]: [ID 637875 local6.error] Fatal error: Internal error: assertion failed: cyrusdb_skiplist.c: 622: db->lock_status == UNLOCKED Jul 14 09:04:16 rzdspc11 cyradm[27124]: [ID 558109 local6.error] skiplist: closed while still locked Sorry, Reinhard -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 193 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080714/5e7c7bdf/attachment.bin From lehmann at cnm.de Mon Jul 14 07:54:01 2008 From: lehmann at cnm.de (Marten Lehmann) Date: Mon, 14 Jul 2008 13:54:01 +0200 Subject: Auto-deletion of messages in Junk-folder after a certain time Message-ID: <487B3E59.3040207@cnm.de> Hello, we have a virtual domain configuration and I want to remove all messages within the folder user/@/Junk/* I don't want to mark old messages as deleted and expunge them, because then maybe I'm expunging messages, that haven't been flagged as deleted by me but the owner of the mailbox and aren't ment to be expunged at this moment. I have heard of cyr_expire and ipurge, but that information is several years old. What is the currently recommended way to auto-delete messages after a certain time (e.g. 60 days)? Which date is typically used for the deletion? The date of the delivery to Cyrus? Is a verbose output available (e.g. with the log of sender-address and subject of the deleted messages)? Btw.: We are using an older version of cyrus, 2.2.12 (as it comes with RHEL4) and we have no chance to update it at the moment. Thanks for any help. Kind regards Marten From mikeegg1 at mac.com Mon Jul 14 08:17:35 2008 From: mikeegg1 at mac.com (Mike Eggleston) Date: Mon, 14 Jul 2008 07:17:35 -0500 Subject: Auto-deletion of messages in Junk-folder after a certain time In-Reply-To: <487B3E59.3040207@cnm.de> References: <487B3E59.3040207@cnm.de> Message-ID: <20080714121735.GD20498@mail.mac.com> On Mon, 14 Jul 2008, Marten Lehmann might have said: > Hello, > > we have a virtual domain configuration and I want to remove all messages > within the folder > > user/@/Junk/* > > I don't want to mark old messages as deleted and expunge them, because > then maybe I'm expunging messages, that haven't been flagged as deleted > by me but the owner of the mailbox and aren't ment to be expunged at > this moment. > > I have heard of cyr_expire and ipurge, but that information is several > years old. > > What is the currently recommended way to auto-delete messages after a > certain time (e.g. 60 days)? > Which date is typically used for the deletion? The date of the delivery > to Cyrus? > Is a verbose output available (e.g. with the log of sender-address and > subject of the deleted messages)? > > Btw.: We are using an older version of cyrus, 2.2.12 (as it comes with > RHEL4) and we have no chance to update it at the moment. I use a combination of cyr_expire and a perl script that expunges any message marked for deletion. Mike From wes at umich.edu Mon Jul 14 11:02:57 2008 From: wes at umich.edu (Wesley Craig) Date: Mon, 14 Jul 2008 11:02:57 -0400 Subject: Auto-deletion of messages in Junk-folder after a certain time In-Reply-To: <487B3E59.3040207@cnm.de> References: <487B3E59.3040207@cnm.de> Message-ID: On 14 Jul 2008, at 07:54, Marten Lehmann wrote: > I don't want to mark old messages as deleted and expunge them, because > then maybe I'm expunging messages, that haven't been flagged as > deleted > by me but the owner of the mailbox and aren't ment to be expunged at > this moment. ipurge is the recommended way to do this, it directly expunges the messages in question, i.e., it doesn't mark the messages as deleted and then call expunge on the mailbox. > Is a verbose output available (e.g. with the log of sender-address and > subject of the deleted messages)? No, tho adding it wouldn't be impossible. :wes From brong at fastmail.fm Tue Jul 15 05:50:10 2008 From: brong at fastmail.fm (Bron Gondwana) Date: Tue, 15 Jul 2008 19:50:10 +1000 Subject: Auto-deletion of messages in Junk-folder after a certain time In-Reply-To: <487B3E59.3040207@cnm.de> References: <487B3E59.3040207@cnm.de> Message-ID: <20080715095010.GA11428@brong.net> On Mon, Jul 14, 2008 at 01:54:01PM +0200, Marten Lehmann wrote: > Hello, > > we have a virtual domain configuration and I want to remove all messages > within the folder > > user/@/Junk/* Being the filty perl programmer that I am, I would just make an admin IMAP connection to the server, LIST all mailboxes, regex match the ones I wanted, select them and process them. > I don't want to mark old messages as deleted and expunge them, because > then maybe I'm expunging messages, that haven't been flagged as deleted > by me but the owner of the mailbox and aren't ment to be expunged at > this moment. We do this by setting our own special flag (in addition to the regular \Deleted flag) and then SEARCH for those messages only and UIDEXPUNGE them. But if you're deleting ALL messages, then it doesn't really matter does it? Unless you're doing some sort of age based thing, in which case like I said - UIDEXPUNGE. The flag just lets us persist the action across dropped connections. Bron. From ram at netcore.co.in Tue Jul 15 08:16:34 2008 From: ram at netcore.co.in (ram) Date: Tue, 15 Jul 2008 17:46:34 +0530 Subject: Auto-deletion of messages in Junk-folder after a certain time In-Reply-To: <20080715095010.GA11428@brong.net> References: <487B3E59.3040207@cnm.de> <20080715095010.GA11428@brong.net> Message-ID: <1216124194.11130.96.camel@localhost.localdomain> On Tue, 2008-07-15 at 19:50 +1000, Bron Gondwana wrote: > On Mon, Jul 14, 2008 at 01:54:01PM +0200, Marten Lehmann wrote: > > Hello, > > > > we have a virtual domain configuration and I want to remove all messages > > within the folder > > > > user/@/Junk/* > > Being the filty perl programmer that I am, I would just make an admin > IMAP connection to the server, LIST all mailboxes, regex match the ones > I wanted, select them and process them. I used to do the same , But I found a client connection script too slow & too heavy for my server with 40k mailboxes I use ipurge now , but ipurge seems to have some bug. If I dont use "-f" the mailbox under sub domains using realm is not matched (So just hacked into ipurge.c to do my job ) Thanks Ram From wes at umich.edu Tue Jul 15 10:25:19 2008 From: wes at umich.edu (Wesley Craig) Date: Tue, 15 Jul 2008 10:25:19 -0400 Subject: Auto-deletion of messages in Junk-folder after a certain time In-Reply-To: <1216124194.11130.96.camel@localhost.localdomain> References: <487B3E59.3040207@cnm.de> <20080715095010.GA11428@brong.net> <1216124194.11130.96.camel@localhost.localdomain> Message-ID: On 15 Jul 2008, at 08:16, ram wrote: > I use ipurge now , but ipurge seems to have some bug. If I dont use > "-f" > the mailbox under sub domains using realm is not matched ipurge just uses findall. The -f flag allows ipurge to examine user mailboxes. Bug fixes are (of course) welcome. :wes From lehmann at cnm.de Tue Jul 15 11:03:13 2008 From: lehmann at cnm.de (Marten Lehmann) Date: Tue, 15 Jul 2008 17:03:13 +0200 Subject: Auto-deletion of messages in Junk-folder after a certain time In-Reply-To: <1216124194.11130.96.camel@localhost.localdomain> References: <487B3E59.3040207@cnm.de> <20080715095010.GA11428@brong.net> <1216124194.11130.96.camel@localhost.localdomain> Message-ID: <487CBC31.3020209@cnm.de> Hi, >> Being the filty perl programmer that I am, I would just make an admin >> IMAP connection to the server, LIST all mailboxes, regex match the ones >> I wanted, select them and process them. > > I used to do the same , But I found a client connection script too slow > & too heavy for my server with 40k mailboxes we have more than 40.000 mailboxes, too. But I'm not very enthusiastic to use ipurge. I'm afraid ipurge does something wrong (due to bugs or misconfiguration) and some unexpected messages are deleted. I wouldn't have a good feeling to tell customers "ipurge is always right" without having logs. My preferred solution would be to log each mailbox I'm deleting messages from and the From, Date and Subject-header of each, so in case of accidents, the customers could restore the messages somehow. I wouldn't mind a slow perl script that does its job one by one as long as I get logs. @Bron: I don't want to delete all messages, but all messages older than 60 days. Instead of flagging messages, I thing UIDEXPUNGE might be an option. Kind regards Marten Lehmann From maurizio.lobosco at eng.it Tue Jul 15 11:38:05 2008 From: maurizio.lobosco at eng.it (Maurizio Lo Bosco) Date: Tue, 15 Jul 2008 17:38:05 +0200 Subject: standard murder configuration problem In-Reply-To: References: <487B3E59.3040207@cnm.de> <1216124194.11130.96.camel@localhost.localdomain> Message-ID: <200807151738.05758.maurizio.lobosco@eng.it> Hi All, I'm going crazy configuring a standard murder architecture with 3 different servers 1 frontend (mx1) 1 mupdate master (mupdate) 1 backend (ariel) the OS is debian etch. the imap/pop3 and lmtp connections are not working from the frontend to the backend ------- MX1 mail.log Jul 15 15:23:27 mx1 cyrus/lmtpunix[8197]: couldn't authenticate to backend server: no mechanism available Jul 15 15:26:05 mx1 cyrus/imap[8236]: couldn't authenticate to backend server: no mechanism available ------- I can connect directly to the backend with a client and I have succesfull result with imtest and lmtptest from the frontend to the backend. root at mx1:/etc# imtest -a helpdesk -u helpdesk ariel S: * OK ariel Cyrus IMAP4 v2.2.13-Debian-2.2.13-10 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE MUPDATE=mupdate://mupdate/ S: C01 OK Completed Please enter your password: C: L01 LOGIN helpdesk {8} S: + go ahead C: S: L01 OK User logged in Authenticated. Security strength factor: 0 C: Q01 LOGOUT Connection closed. root at mx1:/etc# lmtptest -a murder -u murder ariel S: 220 ariel LMTP Cyrus v2.2.13-Debian-2.2.13-10 ready C: LHLO example.com S: 250-ariel S: 250-8BITMIME S: 250-ENHANCEDSTATUSCODES S: 250-PIPELINING S: 250-SIZE S: 250-AUTH PLAIN S: 250 IGNOREQUOTA Please enter your password: C: AUTH PLAIN bXVyZGVyAG11cmRlcgBzM3JnMTA= S: 235 Authenticated! Authenticated. Security strength factor: 0 C: QUIT Connection closed. What's wrong with my config? mx1 cyrus.conf ----------- START { recover cmd="/usr/sbin/ctl_cyrusdb -r" delprune cmd="/usr/sbin/cyr_expire -E 3" tlsprune cmd="/usr/sbin/tls_prune" } SERVICES { sieve cmd="timsieved" listen="localhost:sieve" prefork=0 maxchild=100 notify cmd="notifyd" listen="/var/run/cyrus/socket/notify" proto="udp" prefork=1 mupdate cmd="mupdate" listen=3905 prefork=1 imap cmd="proxyd" listen="imap" prefork=0 maxchild=100 pop3 cmd="pop3proxyd" listen="pop3" prefork=0 maxchild=50 lmtpunix cmd="lmtpproxyd" listen="/var/run/cyrus/socket/lmtp" prefork=1 maxchild=20 } EVENTS { checkpoint cmd="/usr/sbin/ctl_cyrusdb -c" period=30 delprune cmd="/usr/sbin/cyr_expire -E 3" at=0401 tlsprune cmd="/usr/sbin/tls_prune" at=0401 } ------------- mx1 imapd.conf ------------- configdirectory: /var/lib/cyrus defaultpartition: default partition-default: /var/spool/cyrus/mail altnamespace: no unixhierarchysep: no lmtp_downcase_rcpt: yes admins: cyrus murder lmtp_admins: murder mupdate_server: mupdate mupdate_port: 3905 mupdate_authname: murder mupdate_username: murder mupdate_password: xxxx mupdate_retry_delay: 10 proxy_authname: murder ariel_password: xxxx allowanonymouslogin: no popminpoll: 1 autocreatequota: 0 umask: 077 sieveusehomedir: false sievedir: /var/spool/sieve hashimapspool: true allowplaintext: yes sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN sasl_minimum_layer: 0 sasl_auto_transition: no tls_ca_path: /etc/ssl/certs tls_session_timeout: 1440 tls_cipher_list: TLSv1+HIGH:!aNULL:@STRENGTH lmtpsocket: /var/run/cyrus/socket/lmtp idlemethod: poll idlesocket: /var/run/cyrus/socket/idle notifysocket: /var/run/cyrus/socket/notify syslog_prefix: cyrus ------------------ Hope you can point me in the right way. Regards Maurizio From maurizio.lobosco at eng.it Thu Jul 17 05:38:51 2008 From: maurizio.lobosco at eng.it (Maurizio Lo Bosco) Date: Thu, 17 Jul 2008 11:38:51 +0200 Subject: standard murder configuration problem [SOLVED] In-Reply-To: <200807151738.05758.maurizio.lobosco@eng.it> References: <487B3E59.3040207@cnm.de> <200807151738.05758.maurizio.lobosco@eng.it> Message-ID: <200807171138.51444.maurizio.lobosco@eng.it> the problem seams to be related to the plain authentication disabled without the TLS as reported in http://www.irbs.net/internet/info-cyrus/0401/0578.html activating the tls paramenters in imapd.conf on frontend and backend everything works fine. Kind regards Maurizio > I'm going crazy configuring a standard murder architecture with 3 different > servers > 1 frontend (mx1) > 1 mupdate master (mupdate) > 1 backend (ariel) > the OS is debian etch. > the imap/pop3 and lmtp connections are not working from the frontend to the > backend From urgrue at bulbous.org Thu Jul 17 06:21:07 2008 From: urgrue at bulbous.org (urgrue) Date: Thu, 17 Jul 2008 13:21:07 +0300 Subject: Auto-deletion of messages in Junk-folder after a certain time In-Reply-To: <20080714121735.GD20498@mail.mac.com> References: <487B3E59.3040207@cnm.de> <20080714121735.GD20498@mail.mac.com> Message-ID: <487F1D13.6030208@bulbous.org> I use for example ipurge -fd 30 user.*.SPAM to delete everything older than 30 days from all user's SPAM dir. and have never experienced any weird/unexpected behaviour or problems. Mike Eggleston wrote: > On Mon, 14 Jul 2008, Marten Lehmann might have said: > >> Hello, >> >> we have a virtual domain configuration and I want to remove all messages >> within the folder >> >> user/@/Junk/* >> >> I don't want to mark old messages as deleted and expunge them, because >> then maybe I'm expunging messages, that haven't been flagged as deleted >> by me but the owner of the mailbox and aren't ment to be expunged at >> this moment. >> >> I have heard of cyr_expire and ipurge, but that information is several >> years old. >> >> What is the currently recommended way to auto-delete messages after a >> certain time (e.g. 60 days)? >> Which date is typically used for the deletion? The date of the delivery >> to Cyrus? >> Is a verbose output available (e.g. with the log of sender-address and >> subject of the deleted messages)? >> >> Btw.: We are using an older version of cyrus, 2.2.12 (as it comes with >> RHEL4) and we have no chance to update it at the moment. > > I use a combination of cyr_expire and a perl script that expunges any > message marked for deletion. > > Mike > ---- > 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 From peo at intersonic.se Fri Jul 18 05:57:28 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Fri, 18 Jul 2008 11:57:28 +0200 Subject: patches since 2.3.12-p2? Message-ID: <48806908.5080608@intersonic.se> Hi all, Could some kind soul recommend what patches it makes sense to apply since the latest release? There are a number of them circulating on the list but I cannot figure out for sure which ones are generally safe and recommended. In particular, anything that addresses DBERROR db4: 176 lockers (We don't use Berkeley at all. Switched statuscache.db from berkeley-nosync to skiplist to see if that made it go away but it did not.) and skiplist: unlock while not locked Sorry if I'm asking the obvious... --per From simon.matter at invoca.ch Fri Jul 18 07:10:47 2008 From: simon.matter at invoca.ch (Simon Matter) Date: Fri, 18 Jul 2008 13:10:47 +0200 (CEST) Subject: patches since 2.3.12-p2? In-Reply-To: <48806908.5080608@intersonic.se> References: <48806908.5080608@intersonic.se> Message-ID: <9a89134263de85400d11df73329540a2.squirrel@webmail.bi.corp.invoca.ch> > Hi all, > > Could some kind soul recommend what patches it makes sense to apply > since the latest release? There are a number of them circulating on the > list but I cannot figure out for sure which ones are generally safe and > recommended. > > In particular, anything that addresses > DBERROR db4: 176 lockers > (We don't use Berkeley at all. Switched statuscache.db from I think there is something strange with your current config. If Cyrus-imapd doesn't use any BDB then I think there will never be any of those messages in your logs. Did you switch from BDB to skiplist and not removing some BDB stuff? To get rid of anything left you should be able to do the following: - Cleanly shutdown Cyrus - go to $configdir - mkdir db.old - mv db/* db.old/ - db.backup* db.old/ - Start Cyrus Simon > berkeley-nosync to skiplist to see if that made it go away but it did > not.) > > and > skiplist: unlock while not locked > > Sorry if I'm asking the obvious... > > --per > ---- > 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 > From peo at intersonic.se Fri Jul 18 12:10:00 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Fri, 18 Jul 2008 18:10:00 +0200 Subject: patches since 2.3.12-p2? In-Reply-To: <9a89134263de85400d11df73329540a2.squirrel@webmail.bi.corp.invoca.ch> References: <48806908.5080608@intersonic.se> <9a89134263de85400d11df73329540a2.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <4880C058.20803@intersonic.se> Simon Matter wrote: >> Hi all, >> >> Could some kind soul recommend what patches it makes sense to apply >> since the latest release? There are a number of them circulating on the >> list but I cannot figure out for sure which ones are generally safe and >> recommended. >> >> In particular, anything that addresses >> DBERROR db4: 176 lockers >> (We don't use Berkeley at all. Switched statuscache.db from > > I think there is something strange with your current config. If > Cyrus-imapd doesn't use any BDB then I think there will never be any of > those messages in your logs. Did you switch from BDB to skiplist and not > removing some BDB stuff? > > To get rid of anything left you should be able to do the following: > - Cleanly shutdown Cyrus > - go to $configdir > - mkdir db.old > - mv db/* db.old/ > - db.backup* db.old/ > - Start Cyrus > Thanks for the advice, cannot shut server down right now however. I changed statuscache.db from berkely-nosync to skiplist (to see if the error went away) but also deleted statuscache.db in between. All else has been skiplist or flat for a long long time. The error in question started to appear after upgrade from 2.3.11 to 2.3.12-p2 when I used berkely-nosync for the statuscache. Would not the db.backup* files already be in the same stae, they are recreated every 30 minutes...? imapd.conf configdirectory: /var/imap defaultdomain: example.com virtdomains: off altnamespace: on unixhierarchysep: 1 singleinstancestore: 0 reject8bit: no quotawarn: 95 quotawarnkb: 20000 lmtp_over_quota_perm_failure: 1 lmtp_strict_quota: 0 lmtp_downcase_rcpt: yes timeout: 60 # Delayed expunge, see also cyrus.conf # expunge_mode: delayed poptimeout: 15 popminpoll: 0 # We are using LDAP: username_tolower: on # username_tolower: off ### Sync section #### sync_authname: cyrus sync_host: # # sync_realm: sync_password: password sync_repeat_interval: 5 sync_log: 1 sync_machineid: 1 sync_shutdown_file: /var/imap/shutdown-sync sync_batch_size: 500 guid_mode: sha1 ### End sync directives ### partition-default: /var/spool/imap admins: cyrus admin autocreatequota: 500000 createonpost: on autocreateinboxfolders: Sent|Trash|Drafts|Templates autosubscribeinboxfolders: Sent|Trash sieveusehomedir: false sievedir: /var/imap/sieve sieve_maxscriptsize: 64 sieve_maxscripts: 8 sieve_tls_cert_file: disabled sieve_tls_key_file: disabled sendmail: /usr/sbin/sendmail postmaster: postmaster duplicatesuppression: 0 annotation_db: skiplist mboxlist_db: skiplist seenstate_db: skiplist subscription_db: flat tlscache_db: skiplist ptscache_db: skiplist duplicate_db: skiplist # statuscache_db: berkeley-nosync statatuscache_db: skiplist statuscache: 1 From thiagoh at digirati.com.br Fri Jul 18 12:33:28 2008 From: thiagoh at digirati.com.br (Thiago Henrique) Date: Fri, 18 Jul 2008 13:33:28 -0300 Subject: Help me please Message-ID: <1216398808.5896.4.camel@henrique> Hello We're implementing spamassassin in our mail system, and one of things we'd like to have is a global sieve script that will check the appropriate headers and move messages to some spam folder. This is working for existing scripts, as we can just add an "include" directive to include the global script. We are facing a problem with new accounts, though, since they have no script yet. It seems that to enable the auto-creation of a sieve script, one also has to enable the createonpost and autocreatequota directives in imapd.conf. However, we are using partitions in our cyrus configuration, and the auto-created folders are all being created in the default partition. Is there any way to have a default sieve script that doesn't depend on createonpost or that is compatible with a partitioned imap spool? Thanks, -- []'s Thiago Henrique Network Admin Digirati Telecom Hostnet Internet From thiagoh at digirati.com.br Fri Jul 18 14:08:19 2008 From: thiagoh at digirati.com.br (Thiago Henrique) Date: Fri, 18 Jul 2008 15:08:19 -0300 Subject: Default sieve scripts Message-ID: <1216404499.5896.6.camel@henrique> Hello We're implementing spamassassin in our mail system, and one of things we'd like to have is a global sieve script that will check the appropriate headers and move messages to some spam folder. This is working for existing scripts, as we can just add an "include" directive to include the global script. We are facing a problem with new accounts, though, since they have no script yet. It seems that to enable the auto-creation of a sieve script, one also has to enable the createonpost and autocreatequota directives in imapd.conf. However, we are using partitions in our cyrus configuration, and the auto-created folders are all being created in the default partition. Is there any way to have a default sieve script that doesn't depend on createonpost or that is compatible with a partitioned imap spool? Thanks, -- []'s Thiago Henrique Network Admin Digirati Telecom Hostnet Internet From satimis at yahoo.com Sat Jul 19 01:15:54 2008 From: satimis at yahoo.com (Stephen Liu) Date: Sat, 19 Jul 2008 13:15:54 +0800 (CST) Subject: Problem on receiving emails Message-ID: <369842.21732.qm@web35206.mail.mud.yahoo.com> Hi folks, Postfix Cyrus SugarCRM Previously I have been sufferring users can't send emails on mail client, Evolution, on local PC. They can receive mails. With the assistance of folk on "cyrus-sasl at lists.andrew.cmu.edu" the problem was fixed. Now I'm suffering on users can't receive emails on SugarCRM on local PC but can send emails on SugarCRM. The emails are download displayed on a popup window. But Sugar users can't find them on Sugar folder. $ tail /var/log/syslog Jul 19 12:42:11 satimis cyrus/pop3[4512]: login: satimis.com [192.168.0.52] rey plaintext User logged in Jul 19 12:42:11 satimis cyrus/pop3[4512]: accepted connection Jul 19 12:42:11 satimis cyrus/pop3[4512]: login: satimis.com [192.168.0.52] rey plaintext User logged in Jul 19 12:42:11 satimis last message repeated 2 times Jul 19 12:42:16 satimis cyrus/pop3[4512]: accepted connection Jul 19 12:42:16 satimis cyrus/pop3[4512]: login: satimis.com [192.168.0.52] rey plaintext User logged in Jul 19 12:42:16 satimis last message repeated 2 times Jul 19 12:43:01 satimis /USR/SBIN/CRON[4523]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) Jul 19 12:43:17 satimis cyrus/master[3876]: process 4512 exited, status 0 Jul 19 12:44:01 satimis /USR/SBIN/CRON[4527]: (root) CMD (cd /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) $ tail /var/log/mail.log Jul 19 12:42:11 satimis cyrus/pop3[4512]: accepted connection Jul 19 12:42:11 satimis cyrus/pop3[4512]: login: satimis.com [192.168.0.52] rey plaintext User logged in Jul 19 12:42:11 satimis last message repeated 2 times Jul 19 12:42:16 satimis cyrus/pop3[4512]: accepted connection Jul 19 12:42:16 satimis cyrus/pop3[4512]: login: satimis.com [192.168.0.52] rey plaintext User logged in Jul 19 12:42:16 satimis last message repeated 2 times Jul 19 12:43:17 satimis cyrus/master[3876]: process 4512 exited, status 0 Jul 19 12:45:14 satimis postfix/anvil[4502]: statistics: max connection rate 1/60s for (smtp:192.168.0.52) at Jul 19 12:41:53 Jul 19 12:45:14 satimis postfix/anvil[4502]: statistics: max connection count 1 for (smtp:192.168.0.52) at Jul 19 12:41:53 Jul 19 12:45:14 satimis postfix/anvil[4502]: statistics: max cache size 1 at Jul 19 12:41:53 Would there be any connection with Cyrus? If YES please advise how to fix the problem. TIA B.R. Stephen L Send instant messages to your online friends http://uk.messenger.yahoo.com From aspineux at gmail.com Sat Jul 19 04:28:55 2008 From: aspineux at gmail.com (Alain Spineux) Date: Sat, 19 Jul 2008 10:28:55 +0200 Subject: patches since 2.3.12-p2? In-Reply-To: <4880C058.20803@intersonic.se> References: <48806908.5080608@intersonic.se> <9a89134263de85400d11df73329540a2.squirrel@webmail.bi.corp.invoca.ch> <4880C058.20803@intersonic.se> Message-ID: <71fe4e760807190128n2b2e834bg85237d813c6cda6f@mail.gmail.com> On Fri, Jul 18, 2008 at 6:10 PM, Per olof Ljungmark wrote: > Simon Matter wrote: >>> Hi all, >>> >>> Could some kind soul recommend what patches it makes sense to apply >>> since the latest release? There are a number of them circulating on the >>> list but I cannot figure out for sure which ones are generally safe and >>> recommended. >>> >>> In particular, anything that addresses >>> DBERROR db4: 176 lockers >>> (We don't use Berkeley at all. Switched statuscache.db from >> >> I think there is something strange with your current config. If >> Cyrus-imapd doesn't use any BDB then I think there will never be any of >> those messages in your logs. Did you switch from BDB to skiplist and not >> removing some BDB stuff? >> >> To get rid of anything left you should be able to do the following: >> - Cleanly shutdown Cyrus >> - go to $configdir >> - mkdir db.old >> - mv db/* db.old/ >> - db.backup* db.old/ >> - Start Cyrus >> > > Thanks for the advice, cannot shut server down right now however. I > changed statuscache.db from berkely-nosync to skiplist (to see if the > error went away) but also deleted statuscache.db in between. All else > has been skiplist or flat for a long long time. > > The error in question started to appear after upgrade from 2.3.11 to > 2.3.12-p2 when I used berkely-nosync for the statuscache. > > Would not the db.backup* files already be in the same stae, they are > recreated every 30 minutes...? This is configured in your cyrus.conf . Do you have this error every 30min ? > > > imapd.conf > > configdirectory: /var/imap > defaultdomain: example.com > virtdomains: off > altnamespace: on > unixhierarchysep: 1 > singleinstancestore: 0 > reject8bit: no > quotawarn: 95 > quotawarnkb: 20000 > lmtp_over_quota_perm_failure: 1 > lmtp_strict_quota: 0 > lmtp_downcase_rcpt: yes > timeout: 60 > # Delayed expunge, see also cyrus.conf > # expunge_mode: delayed > poptimeout: 15 > popminpoll: 0 > # We are using LDAP: > username_tolower: on > # username_tolower: off > ### Sync section #### > sync_authname: cyrus > sync_host: > # # sync_realm: > sync_password: password > sync_repeat_interval: 5 > sync_log: 1 > sync_machineid: 1 > sync_shutdown_file: /var/imap/shutdown-sync > sync_batch_size: 500 > guid_mode: sha1 > ### End sync directives ### > > partition-default: /var/spool/imap > admins: cyrus admin > autocreatequota: 500000 > createonpost: on > autocreateinboxfolders: Sent|Trash|Drafts|Templates > autosubscribeinboxfolders: Sent|Trash > sieveusehomedir: false > sievedir: /var/imap/sieve > sieve_maxscriptsize: 64 > sieve_maxscripts: 8 > sieve_tls_cert_file: disabled > sieve_tls_key_file: disabled > sendmail: /usr/sbin/sendmail > postmaster: postmaster > duplicatesuppression: 0 > > annotation_db: skiplist > mboxlist_db: skiplist > seenstate_db: skiplist > subscription_db: flat > tlscache_db: skiplist > ptscache_db: skiplist > duplicate_db: skiplist > # statuscache_db: berkeley-nosync > statatuscache_db: skiplist > statuscache: 1 > ---- > 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 > -- Alain Spineux aspineux gmail com May the sources be with you From peo at intersonic.se Sat Jul 19 05:20:42 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Sat, 19 Jul 2008 11:20:42 +0200 Subject: patches since 2.3.12-p2? In-Reply-To: <71fe4e760807190128n2b2e834bg85237d813c6cda6f@mail.gmail.com> References: <48806908.5080608@intersonic.se> <9a89134263de85400d11df73329540a2.squirrel@webmail.bi.corp.invoca.ch> <4880C058.20803@intersonic.se> <71fe4e760807190128n2b2e834bg85237d813c6cda6f@mail.gmail.com> Message-ID: <4881B1EA.3080809@intersonic.se> Alain Spineux wrote: > On Fri, Jul 18, 2008 at 6:10 PM, Per olof Ljungmark wrote: >> Simon Matter wrote: >>>> Hi all, >>>> >>>> Could some kind soul recommend what patches it makes sense to apply >>>> since the latest release? There are a number of them circulating on the >>>> list but I cannot figure out for sure which ones are generally safe and >>>> recommended. >>>> >>>> In particular, anything that addresses >>>> DBERROR db4: 176 lockers >>>> (We don't use Berkeley at all. Switched statuscache.db from >>> I think there is something strange with your current config. If >>> Cyrus-imapd doesn't use any BDB then I think there will never be any of >>> those messages in your logs. Did you switch from BDB to skiplist and not >>> removing some BDB stuff? >>> >>> To get rid of anything left you should be able to do the following: >>> - Cleanly shutdown Cyrus >>> - go to $configdir >>> - mkdir db.old >>> - mv db/* db.old/ >>> - db.backup* db.old/ >>> - Start Cyrus >>> >> Thanks for the advice, cannot shut server down right now however. I >> changed statuscache.db from berkely-nosync to skiplist (to see if the >> error went away) but also deleted statuscache.db in between. All else >> has been skiplist or flat for a long long time. >> >> The error in question started to appear after upgrade from 2.3.11 to >> 2.3.12-p2 when I used berkely-nosync for the statuscache. >> >> Would not the db.backup* files already be in the same stae, they are >> recreated every 30 minutes...? > > This is configured in your cyrus.conf . Do you have this error every 30min ? No, randomly. They do not seem to harm much either. What puzzles me is that Cyrus was using BerkelyDB even though I had skiplist configured in imapd.conf and deleted statuscache.db in between. Is this information stored anywhere else except imapd.conf? Last night I * Recompiled Cyrus without BDB support * Changed line 1034 in ./lib/imapoptions to take skiplist as default and now finally statuscache.db is using skiplist. I wish I knew what went wrong in the first place, need to build a test setup to figure this one out, cannot fiddle more with the production unit. Now, for the original question, I applied Skiplist Readlocktracking Skiplist Safeunlock last night and I'm considering "Fast Rename" as well. Thank you Simon and Alan for your comments. --per From damm at yazzy.org Sat Jul 19 05:50:45 2008 From: damm at yazzy.org (Scott Likens) Date: Sat, 19 Jul 2008 02:50:45 -0700 Subject: Problem on receiving emails In-Reply-To: <369842.21732.qm@web35206.mail.mud.yahoo.com> References: <369842.21732.qm@web35206.mail.mud.yahoo.com> Message-ID: <4FF961E2-DC41-45D5-9CD7-40856347075B@yazzy.org> Dear Stephen, SugarCRM does not use Cyrus to send emails. This would fall under Postfix I believe is what you use for an MTA. I suggest you to verify that 'localhost' or the host SugarCRM is sitting on to be configured as a relay host, or configure SugarCRM to use SMTP Authentication. Otherwise Please seek assistance with the Postfix mailing list. Thanks, Scott On Jul 18, 2008, at 10:15 PM, Stephen Liu wrote: > Hi folks, > > > Postfix > Cyrus > SugarCRM > > > Previously I have been sufferring users can't send emails on mail > client, Evolution, on local PC. They can receive mails. With the > assistance of folk on "cyrus-sasl at lists.andrew.cmu.edu" the problem > was > fixed. > > > Now I'm suffering on users can't receive emails on SugarCRM on local > PC > but can send emails on SugarCRM. The emails are download displayed on > a popup window. But Sugar users can't find them on Sugar folder. > > > $ tail /var/log/syslog > Jul 19 12:42:11 satimis cyrus/pop3[4512]: login: satimis.com > [192.168.0.52] rey plaintext User logged in > Jul 19 12:42:11 satimis cyrus/pop3[4512]: accepted connection > Jul 19 12:42:11 satimis cyrus/pop3[4512]: login: satimis.com > [192.168.0.52] rey plaintext User logged in > Jul 19 12:42:11 satimis last message repeated 2 times > Jul 19 12:42:16 satimis cyrus/pop3[4512]: accepted connection > Jul 19 12:42:16 satimis cyrus/pop3[4512]: login: satimis.com > [192.168.0.52] rey plaintext User logged in > Jul 19 12:42:16 satimis last message repeated 2 times > Jul 19 12:43:01 satimis /USR/SBIN/CRON[4523]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > Jul 19 12:43:17 satimis cyrus/master[3876]: process 4512 exited, > status > 0 > Jul 19 12:44:01 satimis /USR/SBIN/CRON[4527]: (root) CMD (cd > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > > > $ tail /var/log/mail.log > Jul 19 12:42:11 satimis cyrus/pop3[4512]: accepted connection > Jul 19 12:42:11 satimis cyrus/pop3[4512]: login: satimis.com > [192.168.0.52] rey plaintext User logged in > Jul 19 12:42:11 satimis last message repeated 2 times > Jul 19 12:42:16 satimis cyrus/pop3[4512]: accepted connection > Jul 19 12:42:16 satimis cyrus/pop3[4512]: login: satimis.com > [192.168.0.52] rey plaintext User logged in > Jul 19 12:42:16 satimis last message repeated 2 times > Jul 19 12:43:17 satimis cyrus/master[3876]: process 4512 exited, > status > 0 > Jul 19 12:45:14 satimis postfix/anvil[4502]: statistics: max > connection > rate 1/60s for (smtp:192.168.0.52) at Jul 19 12:41:53 > Jul 19 12:45:14 satimis postfix/anvil[4502]: statistics: max > connection > count 1 for (smtp:192.168.0.52) at Jul 19 12:41:53 > Jul 19 12:45:14 satimis postfix/anvil[4502]: statistics: max cache > size > 1 at Jul 19 12:41:53 > > > > Would there be any connection with Cyrus? If YES please advise how to > fix the problem. TIA > > > B.R. > Stephen L > > Send instant messages to your online friends http://uk.messenger.yahoo.com > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > > !DSPAM:48817c5e119561804284693! > > From brong at fastmail.fm Sat Jul 19 08:13:57 2008 From: brong at fastmail.fm (Bron Gondwana) Date: Sat, 19 Jul 2008 22:13:57 +1000 Subject: patches since 2.3.12-p2? In-Reply-To: <48806908.5080608@intersonic.se> References: <48806908.5080608@intersonic.se> Message-ID: <20080719121357.GA31829@brong.net> On Fri, Jul 18, 2008 at 11:57:28AM +0200, Per olof Ljungmark wrote: > and > skiplist: unlock while not locked This is almost certainly a bug. I added this along with a bunch of other skiplist changes to find places where the database interface wasn't being used correctly, because it means bugs of some sort. There's another skiplist bug I've been trying to track down (multiple deletes on the same connection failing), but haven't been able to reproduce it yet. Unfortunately, the cyrus database interface sort of sucks from a consistency perspective, it's dangerous to call any function that needs database access if you have a database transaction open, because the code doesn't know about the transaction and blindy goes ahead and starts a new transaction, which doesn't work. The code now throws an error immediately rather than causing corruption. Much better :) Bron ( ok, so far I've only seen this happen in my own bogus patches, but it's still better to be safe! ) From satimis at yahoo.com Sat Jul 19 11:45:37 2008 From: satimis at yahoo.com (Stephen Liu) Date: Sat, 19 Jul 2008 23:45:37 +0800 (CST) Subject: Problem on receiving emails (SOLVED) In-Reply-To: <4FF961E2-DC41-45D5-9CD7-40856347075B@yazzy.org> Message-ID: <909651.72943.qm@web35202.mail.mud.yahoo.com> --- Scott Likens wrote: > Dear Stephen, > > SugarCRM does not use Cyrus to send emails. This would fall under > Postfix I believe is what you use for an MTA. > > I suggest you to verify that 'localhost' or the host SugarCRM is > sitting on to be configured as a relay host, or configure SugarCRM to > > use SMTP Authentication. Otherwise Please seek assistance with the > Postfix mailing list. Hi Scott, Thanks for your advice. I solve my problem. There is nothing wrong on config in respect of the mail server. SugarCRM runs IMAP as MTA on inbound mails. It tooks me 2 days to discover this trick. I was playing around on POP3. For outbound mails it runs SMTP. Now SugarCRM can send and receive mails without problem. B.R. Stephen > > On Jul 18, 2008, at 10:15 PM, Stephen Liu wrote: > > > Hi folks, > > > > > > Postfix > > Cyrus > > SugarCRM > > > > > > Previously I have been sufferring users can't send emails on mail > > client, Evolution, on local PC. They can receive mails. With the > > assistance of folk on "cyrus-sasl at lists.andrew.cmu.edu" the problem > > > was > > fixed. > > > > > > Now I'm suffering on users can't receive emails on SugarCRM on > local > > PC > > but can send emails on SugarCRM. The emails are download displayed > on > > a popup window. But Sugar users can't find them on Sugar folder. > > > > > > $ tail /var/log/syslog > > Jul 19 12:42:11 satimis cyrus/pop3[4512]: login: satimis.com > > [192.168.0.52] rey plaintext User logged in > > Jul 19 12:42:11 satimis cyrus/pop3[4512]: accepted connection > > Jul 19 12:42:11 satimis cyrus/pop3[4512]: login: satimis.com > > [192.168.0.52] rey plaintext User logged in > > Jul 19 12:42:11 satimis last message repeated 2 times > > Jul 19 12:42:16 satimis cyrus/pop3[4512]: accepted connection > > Jul 19 12:42:16 satimis cyrus/pop3[4512]: login: satimis.com > > [192.168.0.52] rey plaintext User logged in > > Jul 19 12:42:16 satimis last message repeated 2 times > > Jul 19 12:43:01 satimis /USR/SBIN/CRON[4523]: (root) CMD (cd > > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > > Jul 19 12:43:17 satimis cyrus/master[3876]: process 4512 exited, > > status > > 0 > > Jul 19 12:44:01 satimis /USR/SBIN/CRON[4527]: (root) CMD (cd > > /var/www/SugarCE-Full-5.0.0e; php -f cron.php > /dev/null 2>&1) > > > > > > $ tail /var/log/mail.log > > Jul 19 12:42:11 satimis cyrus/pop3[4512]: accepted connection > > Jul 19 12:42:11 satimis cyrus/pop3[4512]: login: satimis.com > > [192.168.0.52] rey plaintext User logged in > > Jul 19 12:42:11 satimis last message repeated 2 times > > Jul 19 12:42:16 satimis cyrus/pop3[4512]: accepted connection > > Jul 19 12:42:16 satimis cyrus/pop3[4512]: login: satimis.com > > [192.168.0.52] rey plaintext User logged in > > Jul 19 12:42:16 satimis last message repeated 2 times > > Jul 19 12:43:17 satimis cyrus/master[3876]: process 4512 exited, > > status > > 0 > > Jul 19 12:45:14 satimis postfix/anvil[4502]: statistics: max > > connection > > rate 1/60s for (smtp:192.168.0.52) at Jul 19 12:41:53 > > Jul 19 12:45:14 satimis postfix/anvil[4502]: statistics: max > > connection > > count 1 for (smtp:192.168.0.52) at Jul 19 12:41:53 > > Jul 19 12:45:14 satimis postfix/anvil[4502]: statistics: max cache > > > size > > 1 at Jul 19 12:41:53 > > > > > > > > Would there be any connection with Cyrus? If YES please advise how > to > > fix the problem. TIA > > > > > > B.R. > > Stephen L > > > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > > ---- > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > > > > > !DSPAM:48817c5e119561804284693! > > > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com From croxton3 at yahoo.com Sat Jul 19 13:16:58 2008 From: croxton3 at yahoo.com (Derek Croxton) Date: Sat, 19 Jul 2008 13:16:58 -0400 Subject: (no subject) Message-ID: <4882218A.8040707@yahoo.com> An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080719/e76384b3/attachment.html From ian.batten at uk.fujitsu.com Mon Jul 21 07:17:14 2008 From: ian.batten at uk.fujitsu.com (Ian G Batten) Date: Mon, 21 Jul 2008 12:17:14 +0100 Subject: patches since 2.3.12-p2? In-Reply-To: <20080719121357.GA31829@brong.net> References: <48806908.5080608@intersonic.se> <20080719121357.GA31829@brong.net> Message-ID: <9186B6FD-4F7F-4771-9AC7-12FBC5377469@uk.fujitsu.com> On 19 Jul 08, at 1313, Bron Gondwana wrote: > > Unfortunately, the cyrus database interface sort of sucks from > a consistency perspective, it's dangerous to call any function > that needs database access if you have a database transaction > open I understand some of the technical, philosophical and historical reasons why this isn't the case, but every now and again I find myself wishing that Cyrus had an SQL backend for the various databases (perhaps not delivery, because losing it isn't the end of the world, but certainly for mailboxes). In our case, we have really big Oracle and Postgres systems that could proably handle the load imposed by out mailsystem metadata as well as our mailsystem copes with it itself via skiplist, but we would could then manage those databases with the same tools we use for the production systems (hot backups, replication, etc). Losing the mailboxes database can spoil your whole day, and the lengths we go to to keep it safe (snapshots of the filesystem, hourly runs of ctl_mboxlist -d, etc, etc should really be necessary if it were in a production SQL database. In my copious spare time, I might take a pass at the cope and see how hard it looks. ian From dave64 at andrew.cmu.edu Mon Jul 21 07:44:01 2008 From: dave64 at andrew.cmu.edu (Dave McMurtrie) Date: Mon, 21 Jul 2008 07:44:01 -0400 Subject: patches since 2.3.12-p2? In-Reply-To: <9186B6FD-4F7F-4771-9AC7-12FBC5377469@uk.fujitsu.com> References: <48806908.5080608@intersonic.se> <20080719121357.GA31829@brong.net> <9186B6FD-4F7F-4771-9AC7-12FBC5377469@uk.fujitsu.com> Message-ID: <48847681.4080408@andrew.cmu.edu> Ian G Batten wrote: > I understand some of the technical, philosophical and historical > reasons why this isn't the case, but every now and again I find myself > wishing that Cyrus had an SQL backend for the various databases > (perhaps not delivery, because losing it isn't the end of the world, > but certainly for mailboxes). > > In our case, we have really big Oracle and Postgres systems that could > proably handle the load imposed by out mailsystem metadata as well as > our mailsystem copes with it itself via skiplist, but we would could > then manage those databases with the same tools we use for the > production systems (hot backups, replication, etc). > > Losing the mailboxes database can spoil your whole day, and the > lengths we go to to keep it safe (snapshots of the filesystem, hourly > runs of ctl_mboxlist -d, etc, etc should really be necessary if it > were in a production SQL database. > > In my copious spare time, I might take a pass at the cope and see how > hard it looks. So you don't duplicate his effort, I should mention that Ken Murchison already wrote a generic SQL backend for Cyrus. We've done a small amount of testing with sqlite, but there's still some work to be done before it's production-ready. Thanks, Dave From brong at fastmail.fm Mon Jul 21 07:44:39 2008 From: brong at fastmail.fm (Bron Gondwana) Date: Mon, 21 Jul 2008 21:44:39 +1000 Subject: patches since 2.3.12-p2? In-Reply-To: <9186B6FD-4F7F-4771-9AC7-12FBC5377469@uk.fujitsu.com> References: <48806908.5080608@intersonic.se> <20080719121357.GA31829@brong.net> <9186B6FD-4F7F-4771-9AC7-12FBC5377469@uk.fujitsu.com> Message-ID: <20080721114439.GA10664@brong.net> On Mon, Jul 21, 2008 at 12:17:14PM +0100, Ian G Batten wrote: > > On 19 Jul 08, at 1313, Bron Gondwana wrote: >> >> Unfortunately, the cyrus database interface sort of sucks from >> a consistency perspective, it's dangerous to call any function >> that needs database access if you have a database transaction >> open > > I understand some of the technical, philosophical and historical reasons > why this isn't the case, but every now and again I find myself wishing > that Cyrus had an SQL backend for the various databases (perhaps not > delivery, because losing it isn't the end of the world, but certainly for > mailboxes). > > In our case, we have really big Oracle and Postgres systems that could > proably handle the load imposed by out mailsystem metadata as well as > our mailsystem copes with it itself via skiplist, but we would could > then manage those databases with the same tools we use for the > production systems (hot backups, replication, etc). > > Losing the mailboxes database can spoil your whole day, and the lengths > we go to to keep it safe (snapshots of the filesystem, hourly runs of > ctl_mboxlist -d, etc, etc should really be necessary if it were in a > production SQL database. > > In my copious spare time, I might take a pass at the cope and see how > hard it looks. Muahahahahaha. Erhum. Actually, the interface itself isn't that bad. Managing transactions might give you headaches though. And connections would probably be per-imapd process, so be prepared to have 4k connections sitting mostly idle or lots of startup/shutdown of connections. Bron ( not having done any real C library SQL coding myself, I'd suggest probably some sort of generic DBI-style layer than a single database at a time if you go this route ) From mueller at bkr-ac.de Mon Jul 21 07:48:38 2008 From: mueller at bkr-ac.de (Jens) Date: Mon, 21 Jul 2008 13:48:38 +0200 Subject: Problems with subscriptions Message-ID: <48847796.5090401@bkr-ac.de> Hello, I am running Cyrus 2.2.13-13ubuntu3 on Ubuntu Hardy as an intranet-mailserver. Since this weekend I am not able to subscribe to any folders. In mail.err the following message occurs: > cyrus/imap[4185]: IOERROR: locking /var/lib/cyrus/user/j/jens.sub: Interrupted system call In /var/lib/cyrus/user/j/ is a new file, named jens.sub.new which I am not able to have a look at. Can anyone give me a hint how to solve this? Jens -- "The only proof that intelligent life exists in the universe is that it hasn't tried to contact us yet." - Calvin From dino.swanwick at custserv.com Mon Jul 21 08:31:04 2008 From: dino.swanwick at custserv.com (dino.swanwick at custserv.com) Date: Mon, 21 Jul 2008 08:31:04 -0400 Subject: ipurge question Message-ID: <854F7A96898F4F42B345DD41653A516B04BA5E@TMPMSGMB01.enterprise.corpad.timeinc.com> Hello, I'm am trying to use the ipurge command to delete messages and have a question. Here is the directory structure and files: /var/spool/imap/d/user/john Deleted Items 07/19/2008 9:21:37 PM rwx------ cyrus Drafts 07/19/2008 9:21:37 PM rwx------ cyrus MACS 07/19/2008 9:21:37 PM rwx------ cyrus Sent Items 07/19/2008 9:21:37 PM rwx------ cyrus 1. 13,646 07/09/2008 5:09:00 PM rw------- cyrus 2. 10,007 07/10/2008 10:18:01 AM rw------- cyrus cyrus.cache 1,796 07/18/2008 3:49:49 PM rw------- cyrus cyrus.header 170 07/18/2008 5:04:49 PM rw------- cyrus cyrus.index 136 07/18/2008 3:49:49 PM rw------- cyrus cyrus.squat 17,023 07/18/2008 3:49:49 PM rw------- cyrus How can I delete the items in "/var/spool/imap/d/user/john" (i.e. item "1." and "2.") without deleting the items in "/var/spool/imap/d/user/john/MACS"? I tried this command ==> su cyrus -c "/bin/ipurge -d1 user/dino" ===> But nothing is deleted. When I try this one ==> su cyrus -c "/opt/insight/bin/ipurge -d1 -f user/dino" ===> It deletes all messages in all directories in "/var/spool/imap/d/user/john" What am I doing wrong? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080721/e6eeb8eb/attachment.html From andrew at logaan.com Mon Jul 21 15:22:17 2008 From: andrew at logaan.com (Andrew Heagle) Date: Mon, 21 Jul 2008 15:22:17 -0400 (EDT) Subject: Sync and TLS Message-ID: <58356.207.219.45.62.1216668137.squirrel@www.heagle.ca> Hello, Not sure if I have something misconfigured or what, but I can't seem to force the sync_server or sync_client to use TLS at all. I ran tcpdump on the sync_server and I can see it is all in plain text. I can even use telnet to login to the sync server and it will authenticate me without and encryption at all. (feel free to point our any other problems you think I may have with my configs as well, thanks). Here are is the version I am running: # rpm -qa | grep cyrus-imap cyrus-imapd-perl-2.3.12p2-1 cyrus-imapd-2.3.12p2-1 cyrus-imapd-utils-2.3.12p2-1 cyrus.conf file on the master server: >>>>>>>>>>>>>>>>Start Cyrus.conf<<<<<<<<<<<<<<<<< START { recover cmd="ctl_cyrusdb -r" idled cmd="idled" syncclient cmd="/usr/lib/cyrus-imapd/sync_client -t 60 -d 10 -r -F /etc/cyrus/stop_sync_client" } SERVICES { imap cmd="imapd" listen="imap" prefork=5 imaps cmd="imapd -s" listen="imaps" prefork=1 pop3 cmd="pop3d" listen="pop3" prefork=3 pop3s cmd="pop3d -s" listen="pop3s" prefork=1 sieve cmd="timsieved" listen="sieve" prefork=0 nntp cmd="nntpd" listen="nntp" prefork=3 nntps cmd="nntpd -s" listen="nntps" prefork=1 lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=200 fud cmd="fud" listen="fud" proto="udp" prefork=1 } EVENTS { checkpoint cmd="ctl_cyrusdb -c" period=30 delprune cmd="cyr_expire -E 3" at=0400 tlsprune cmd="tls_prune" at=0400 } >>>>>>>>>>>>>>>>Stop Cyrus.conf<<<<<<<<<<<<<<<<< imapd.conf file on Master server >>>>>>>>>>>>>>>>Start imapd.conf<<<<<<<<<<<<<<<<< ###IMAP Settings configdirectory: /var/lib/imap partition-default: /var/spool/imap sendmail: /usr/sbin/sendmail hashimapspool: true servername: imap.dom autocreatequota: 1073741824 autocreateinboxfolders: Trash | Sent | Drafts autosubscribeinboxfolders: Trash | Sent | Drafts autosubscribe_all_sharedfolders: 1 ###Sieve Settings sievedir: /var/lib/imap/sieve postuser: cyrus sharedprefix: shared allowplaintext: 1 sieve_tls_cert_file: disabled ###Auth Settings sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN force_sasl_client_mech: PLAIN loginrealms: REALM ###TLS/SSL Settings tls_cert_file: /etc/pki/cyrus-imapd/server.crt tls_key_file: /etc/pki/cyrus-imapd/server.key tls_ca_file: /etc/pki/cyrus-imapd/cacert.pem tls_cipher_list: TLSv1 :SSLv3 : !DES : !LOW :@STRENGTH ###NNTP Settings newsprefix: news partition-news: /var/spool/news nntp_tls_cert_file: disabled ###General Options singleinstancestore: 1 admins: cyrus allowanonymouslogin: 0 allowusermoves: 1 altnamespace: 1 expunge_mode: delayed lmtp_downcase_rcpt: 1 lmtp_fuzzy_mailbox_match: 1 username_tolower: 1 normalizeuid: 1 ###Replication sync_host: replica-host sync_authname: csync-user sync_realm: REALM sync_password: XXXXXXXXXXXX sync_log: 1 sync_repeat_interval: 10 sync_shutdown_file: /etc/cyrus/stop_sync_client guid_mode: sha1 >>>>>>>>>>>>>>>>Stop imapd.conf<<<<<<<<<<<<<<<<< cyrus.conf file on the replica server: >>>>>>>>>>>>>>>>Start Cyrus.conf<<<<<<<<<<<<<<<<< [root at BMP-346-MS512 cyrus]# cat cyrus-replica.conf START { recover cmd="ctl_cyrusdb -r" idled cmd="idled" } SERVICES { lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1 syncserver cmd="/usr/lib/cyrus-imapd/sync_server -p 256" listen="csync" fud cmd="fud" listen="fud" proto="udp" prefork=1 } EVENTS { checkpoint cmd="ctl_cyrusdb -c" period=30 delprune cmd="cyr_expire -E 3" at=0400 tlsprune cmd="tls_prune" at=0400 } >>>>>>>>>>>>>>>>Stop Cyrus.conf<<<<<<<<<<<<<<<<< imapd.conf on replica server >>>>>>>>>>>>>>>>Start imapd.conf<<<<<<<<<<<<<<<<< ###IMAP Settings configdirectory: /var/lib/imap partition-default: /var/spool/imap sendmail: /usr/sbin/sendmail hashimapspool: true servername: imap.dom autocreatequota: 1073741824 autocreateinboxfolders: Trash | Sent | Drafts autosubscribeinboxfolders: Trash | Sent | Drafts autosubscribe_all_sharedfolders: 1 ###Sieve Settings sievedir: /var/lib/imap/sieve postuser: cyrus sharedprefix: shared ###Auth Settings sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN ###TLS/SSL Settings tls_cert_file: /etc/pki/cyrus-imapd/server.pem tls_key_file: /etc/pki/cyrus-imapd/server.key tls_ca_file: /etc/pki/cyrus-imapd/cacert.pem tls_cipher_list: TLSv1 :SSLv3 : !DES : !LOW :@STRENGTH ###NNTP Settings newsprefix: news partition-news: /var/spool/news ###General Options singleinstancestore: 1 admins: cyrus csync allowanonymouslogin: 0 allowusermoves: 1 altnamespace: 1 expunge_mode: delayed lmtp_downcase_rcpt: 1 lmtp_fuzzy_mailbox_match: 1 username_tolower: 1 normalizeuid: 1 ###Stop Replica Clients sync_shutdown_file: /etc/cyrus/stop_sync_client guid_mode: sha1 >>>>>>>>>>>>>>>>Stop imapd.conf<<<<<<<<<<<<<<<<< Tcpdump output: * SASL PLAIN * STARTTLS * OK imap.afilias.info Cyrus sync server v2.3.12p2-Invoca-RPM-2.3.12p2-1 AUTHENTICATE PLAIN AaAGNsazeW35675jAFN5b2bfmNFUjBGHSMyMQ== OK Success (no protection) Thanks, Andrew From swebb at pronto.com Mon Jul 21 16:35:16 2008 From: swebb at pronto.com (Steve Webb) Date: Mon, 21 Jul 2008 14:35:16 -0600 (MDT) Subject: Couple of questions Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello. A couple of questions. I just migrated our company over to Cyrus/postfix from UW/sendmail and I've noticed a few little quirks that I'm not able to find a solution to. 1.) If a pop user selects "keep messages on server" they start to see duplicate emails. I saw that other people on the listserv have also had the same issues, but there's not been any resolution to this issue. Q: How come Cyrus doesn't implement the correct bahaviour, and is there any work-around other than switching to IMAP over POP? I've got pop users that can't access IMAP (using phones for checking email when on travel with "leave messages on server" then suck down the emails when they arrive back at a desktop). It's not feasable for them to move to IMAP and they require this functionality. 2.) It seems that Cyrus is inserting headers that confuse sendmail and/or procmail. When I'm tailing my procmail log, I see that all emails are "From: cyrus at mail". I'm guessing that procmail is getting this from the "Return-Path:" header that doesn't get inserted into the email with sendmail. Q: Can I tell Cyrus to not insert this header or is there a work-around for procmail to detect the correct From: header and not get confused? - - Steve - -- Steve Webb - Lead System Administrator for Pronto.com Email: swebb at pronto.com (Please send any work requests to: rt at pronto.com) Cell: 303-564-4269, Office: 303-497-9367, YIM: scumola -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFIhPMEbhtJr2D5JAsRAjQvAJ9NuaYSQC9yr+AiPp29zkO9mON0IACdF0jH TibU1IKD/Ufjyqj2w96YKlU= =F3H/ -----END PGP SIGNATURE----- From adam at morrison-ind.com Mon Jul 21 16:56:40 2008 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Mon, 21 Jul 2008 16:56:40 -0400 Subject: Couple of questions In-Reply-To: References: Message-ID: <1216673800.4934.26.camel@linux-nnci.site> > A couple of questions. I just migrated our company over to Cyrus/postfix > from UW/sendmail and I've noticed a few little quirks that I'm not able to > find a solution to. > 1.) If a pop user selects "keep messages on server" they start to see > duplicate emails. I saw that other people on the listserv have also had > the same issues, but there's not been any resolution to this issue. Q: > How come Cyrus doesn't implement the correct bahaviour, and is there any > work-around other than switching to IMAP over POP? I've got pop users > that can't access IMAP (using phones for checking email when on travel > with "leave messages on server" then suck down the emails when they arrive > back at a desktop). It's not feasable for them to move to IMAP and they > require this functionality. Are you certain this is the fault of Cyrus and not a deficient client that happened to work with UW? Are they all using the same kind of phone (what phone)? > 2.) It seems that Cyrus is inserting headers that confuse sendmail and/or > procmail. When I'm tailing my procmail log, I see that all emails are > "From: cyrus at mail". I'm guessing that procmail is getting this from the > "Return-Path:" header that doesn't get inserted into the email with > sendmail. Q: Can I tell Cyrus to not insert this header or is there a > work-around for procmail to detect the correct From: header and not get > confused? I'm pretty certain such headers are coming from your MTA (postfix) and not Cyrus. But I've never used Cyrus with procmail as SIEVE is usually sufficient. From aspineux at gmail.com Mon Jul 21 17:07:31 2008 From: aspineux at gmail.com (Alain Spineux) Date: Mon, 21 Jul 2008 23:07:31 +0200 Subject: ipurge question In-Reply-To: <854F7A96898F4F42B345DD41653A516B04BA5E@TMPMSGMB01.enterprise.corpad.timeinc.com> References: <854F7A96898F4F42B345DD41653A516B04BA5E@TMPMSGMB01.enterprise.corpad.timeinc.com> Message-ID: <71fe4e760807211407p6703d05fked30191eb5dc6f54@mail.gmail.com> On Mon, Jul 21, 2008 at 2:31 PM, wrote: > Hello, > > I'm am trying to use the ipurge command to delete messages and have a > question. Here is the directory structure and files: > > /var/spool/imap/d/user/john > Deleted Items 07/19/2008 9:21:37 PM > rwx------ cyrus > Drafts 07/19/2008 9:21:37 PM > rwx------ cyrus > MACS 07/19/2008 9:21:37 PM > rwx------ cyrus > Sent Items 07/19/2008 9:21:37 PM > rwx------ cyrus > 1. 13,646 07/09/2008 5:09:00 PM > rw------- cyrus > 2. 10,007 07/10/2008 10:18:01 AM > rw------- cyrus > cyrus.cache 1,796 07/18/2008 3:49:49 PM > rw------- cyrus > cyrus.header 170 07/18/2008 5:04:49 PM > rw------- cyrus > cyrus.index 136 07/18/2008 3:49:49 PM > rw------- cyrus > cyrus.squat 17,023 07/18/2008 3:49:49 PM > rw------- cyrus > > How can I delete the items in "/var/spool/imap/d/user/john" (i.e. item "1." > and "2.") without deleting the items in "/var/spool/imap/d/user/john/MACS"? Dont know how with ipurge, bu you could try using the "expire" attribute (man cyradm) and then run cyr_expire > > I tried this command ==> su cyrus -c "/bin/ipurge -d1 user/dino" ===> But > nothing is deleted. You dont use -f here, then it delete only shared folder > > When I try this one ==> su cyrus -c "/opt/insight/bin/ipurge -d1 -f > user/dino" ===> It deletes all messages in all directories in > "/var/spool/imap/d/user/john" -d1 , one day old > > What am I doing wrong? > > Thanks! > > ---- > 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 > -- Alain Spineux aspineux gmail com May the sources be with you From swebb at pronto.com Mon Jul 21 17:15:47 2008 From: swebb at pronto.com (Steve Webb) Date: Mon, 21 Jul 2008 15:15:47 -0600 (MDT) Subject: Couple of questions In-Reply-To: <1216673800.4934.26.camel@linux-nnci.site> References: <1216673800.4934.26.camel@linux-nnci.site> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> 1.) If a pop user selects "keep messages on server" they start to see >> duplicate emails. I saw that other people on the listserv have also had >> the same issues, but there's not been any resolution to this issue. Q: >> How come Cyrus doesn't implement the correct bahaviour, and is there any >> work-around other than switching to IMAP over POP? I've got pop users >> that can't access IMAP (using phones for checking email when on travel >> with "leave messages on server" then suck down the emails when they arrive >> back at a desktop). It's not feasable for them to move to IMAP and they >> require this functionality. > > Are you certain this is the fault of Cyrus and not a deficient client > that happened to work with UW? Are they all using the same kind of > phone (what phone)? I confirmed that this happens with outlook, thunderbird and fetchmail. The phone is a Palm Treo. >> 2.) It seems that Cyrus is inserting headers that confuse sendmail and/or >> procmail. When I'm tailing my procmail log, I see that all emails are >> "From: cyrus at mail". I'm guessing that procmail is getting this from the >> "Return-Path:" header that doesn't get inserted into the email with >> sendmail. Q: Can I tell Cyrus to not insert this header or is there a >> work-around for procmail to detect the correct From: header and not get >> confused? > > I'm pretty certain such headers are coming from your MTA (postfix) and > not Cyrus. But I've never used Cyrus with procmail as SIEVE is usually > sufficient. Would postfix be inserting the "Return-Path: cyrus at mail" header? I thought that it got inserted by the 'deliver' binary which I thought was part of Cyrus. - - Steve - -- Steve Webb - Lead System Administrator for Pronto.com Email: swebb at pronto.com (Please send any work requests to: rt at pronto.com) Cell: 303-564-4269, Office: 303-497-9367, YIM: scumola -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFIhPyDbhtJr2D5JAsRAnK/AJ9MwnnDHzJhkwRfi/7Z+w445M3/eACdFIad nDRAb0GEVlPXP+37pDWFeN0= =aJej -----END PGP SIGNATURE----- From damm at yazzy.org Mon Jul 21 19:27:17 2008 From: damm at yazzy.org (Scott Likens) Date: Mon, 21 Jul 2008 16:27:17 -0700 Subject: Couple of questions In-Reply-To: References: <1216673800.4934.26.camel@linux-nnci.site> Message-ID: <28F726DE-594F-4C1A-A391-F94697BD0C72@yazzy.org> Hi, When you deal with pop3, and migration there is typically 1 pain that is epic. 'UIDL' Output has changed, it can make duplicate emails appear because Outlook, or whatever you are using will not see the same 'results' as it had before. Example, telnet localhost pop3 user foo pass foo +OK Mailbox locked and ready stat +OK 664 55805692 uidl +OK unique-id listing follows 1 1202699390.3863 2 1202699390.3864 and so forth. If you used Sendmail + UW it will be different then what you had before. So the user will download their whole mailbox over. Easiest solution I've always done is just create a folder in their inbox and move all their old mails to that folder, and then let them retrieve their email and they should be fine. IMAP Users won't suffer this because they never download the whole mailbox. Now let's say if you delete 1, and then quit, and log back in there is a new email 1... with a different uidl number shown. So you are not downloading a duplicate email, a brand new one. This is the proper behavior, if you are not experiencing this behavior; then clearly we need more detail about your setup. Now there is a header added with LMTP This is what I personally see in my headers, Received: from deliver ([unix socket]) by desolation (Cyrus v2.3.12p2-Gentoo) with LMTPA; Mon, 21 Jul 2008 14:20:31 -0700 X-Sieve: CMU Sieve 2.3 I use deliver (because of DSPAM, I can tell it to talk to LMTP but I don't) ... if you are using LMTP the header will show username at hostname instead. If this is screwing up your procmail recipes I suggest you make modifications to such recipes so they are no longer fooled. FWIW, Return-Path: That's my return path, note it has nothing to do with cyrus at mail, so I think we'll need to know more about your setup before we can accurately give any help. Scott On Jul 21, 2008, at 2:15 PM, Steve Webb wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > >>> 1.) If a pop user selects "keep messages on server" they start to >>> see >>> duplicate emails. I saw that other people on the listserv have >>> also had >>> the same issues, but there's not been any resolution to this >>> issue. Q: >>> How come Cyrus doesn't implement the correct bahaviour, and is >>> there any >>> work-around other than switching to IMAP over POP? I've got pop >>> users >>> that can't access IMAP (using phones for checking email when on >>> travel >>> with "leave messages on server" then suck down the emails when >>> they arrive >>> back at a desktop). It's not feasable for them to move to IMAP >>> and they >>> require this functionality. >> >> Are you certain this is the fault of Cyrus and not a deficient client >> that happened to work with UW? Are they all using the same kind of >> phone (what phone)? > > I confirmed that this happens with outlook, thunderbird and fetchmail. > > The phone is a Palm Treo. > >>> 2.) It seems that Cyrus is inserting headers that confuse >>> sendmail and/or >>> procmail. When I'm tailing my procmail log, I see that all emails >>> are >>> "From: cyrus at mail". I'm guessing that procmail is getting this >>> from the >>> "Return-Path:" header that doesn't get inserted into the email with >>> sendmail. Q: Can I tell Cyrus to not insert this header or is >>> there a >>> work-around for procmail to detect the correct From: header and >>> not get >>> confused? >> >> I'm pretty certain such headers are coming from your MTA (postfix) >> and >> not Cyrus. But I've never used Cyrus with procmail as SIEVE is >> usually >> sufficient. > > Would postfix be inserting the "Return-Path: cyrus at mail" header? I > thought that it got inserted by the 'deliver' binary which I thought > was > part of Cyrus. > > - - Steve > > - -- > Steve Webb - Lead System Administrator for Pronto.com > Email: swebb at pronto.com (Please send any work requests to: rt at pronto.com > ) > Cell: 303-564-4269, Office: 303-497-9367, YIM: scumola > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (GNU/Linux) > > iD8DBQFIhPyDbhtJr2D5JAsRAnK/AJ9MwnnDHzJhkwRfi/7Z+w445M3/eACdFIad > nDRAb0GEVlPXP+37pDWFeN0= > =aJej > -----END PGP SIGNATURE----- > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > > !DSPAM:4884fd9f121869173225906! > > From list at joreybump.com Mon Jul 21 19:42:09 2008 From: list at joreybump.com (Jorey Bump) Date: Mon, 21 Jul 2008 19:42:09 -0400 Subject: Couple of questions In-Reply-To: References: Message-ID: <48851ED1.60104@joreybump.com> Steve Webb wrote, at 07/21/2008 04:35 PM: > 1.) If a pop user selects "keep messages on server" they start to see > duplicate emails. I saw that other people on the listserv have also had > the same issues, but there's not been any resolution to this issue. Q: > How come Cyrus doesn't implement the correct bahaviour, and is there any > work-around other than switching to IMAP over POP? I've got pop users > that can't access IMAP (using phones for checking email when on travel > with "leave messages on server" then suck down the emails when they arrive > back at a desktop). It's not feasable for them to move to IMAP and they > require this functionality. This has nothing to do with the POP server. Various POP clients use various methods to keep track of the messages left on the server, so they can avoid downloading them again, where they will appear as duplicates. When pointed to another POP server, this information is no longer valid. The old messages look like new ones, and the POP client downloads them. This will happen even if you migrate to a new server running the exact same version of the POP server you've been using. Fortunately, it will only happen once, and you'll get the same behaviour you had before. From michael.menge at zdv.uni-tuebingen.de Tue Jul 22 03:31:56 2008 From: michael.menge at zdv.uni-tuebingen.de (Michael Menge) Date: Tue, 22 Jul 2008 09:31:56 +0200 Subject: Couple of questions In-Reply-To: <48851ED1.60104@joreybump.com> References: <48851ED1.60104@joreybump.com> Message-ID: <20080722093156.qzoyiq0lxcgocc88@webmail.uni-tuebingen.de> Quoting Jorey Bump : > Steve Webb wrote, at 07/21/2008 04:35 PM: > >> 1.) If a pop user selects "keep messages on server" they start to see >> duplicate emails. I saw that other people on the listserv have also had >> the same issues, but there's not been any resolution to this issue. Q: >> How come Cyrus doesn't implement the correct bahaviour, and is there any >> work-around other than switching to IMAP over POP? I've got pop users >> that can't access IMAP (using phones for checking email when on travel >> with "leave messages on server" then suck down the emails when they arrive >> back at a desktop). It's not feasable for them to move to IMAP and they >> require this functionality. > > This has nothing to do with the POP server. Various POP clients use > various methods to keep track of the messages left on the server, so > they can avoid downloading them again, where they will appear as > duplicates. When pointed to another POP server, this information is no > longer valid. The old messages look like new ones, and the POP client > downloads them. This will happen even if you migrate to a new server > running the exact same version of the POP server you've been using. > Fortunately, it will only happen once, and you'll get the same behaviour > you had before. > Beware there is a Bug in Outlook 2003 (don't know which SPs) which will get confused if the length of the UID string of a Mail change resulting in downloading the same Message over and over again. Cyrus will not change the legth, but Cyrus may use an other legth as UW has used. The workaround is to add a new POP-Account in Outlook or to switch to IMAP -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912 Zentrum fuer Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de Waechterstrasse 76 72074 Tuebingen From dimma at higis.ru Tue Jul 22 03:52:44 2008 From: dimma at higis.ru (Dmitriy Kirhlarov) Date: Tue, 22 Jul 2008 11:52:44 +0400 Subject: cyrus imapd 2.3.13 with openldap 2.4.x problems Message-ID: <488591CC.9040303@higis.ru> Hi, list. I have worked configuration with openldap 2.3.x User database stored in ldap, authentication over saslauthd. Working fine with cyrus imapd 2.3.x Now I want migrate to openldap 2.4.x, but have a problem. Users can't authorize. I find a cause. It's ptloader Is somebody using %subj combination? WBR Dmitriy From brennan at columbia.edu Tue Jul 22 08:56:37 2008 From: brennan at columbia.edu (Joseph Brennan) Date: Tue, 22 Jul 2008 08:56:37 -0400 Subject: Couple of questions In-Reply-To: <20080722093156.qzoyiq0lxcgocc88@webmail.uni-tuebingen.de> References: <48851ED1.60104@joreybump.com> <20080722093156.qzoyiq0lxcgocc88@webmail.uni-tuebingen.de> Message-ID: Michael Menge wrote: > Beware there is a Bug in Outlook 2003 (don't know which SPs) which > will get confused if the length of the UID string of a Mail change > resulting in downloading the same Message over and over again. Right. It's an amazing bug, because the examples in the RFC actually show variable length UIDs! Users here reported this problem when we first went to Cyrus a few years ago. It was solved by applying updates to Outlook, which the users should have done anyway for security and other reasons. Or, you have some other problem that we don't have. Joseph Brennan Lead Email Systems Engineer Columbia University Information Technology From ian.batten at uk.fujitsu.com Tue Jul 22 12:56:02 2008 From: ian.batten at uk.fujitsu.com (Ian G Batten) Date: Tue, 22 Jul 2008 17:56:02 +0100 Subject: Couple of questions In-Reply-To: References: Message-ID: <73184E4C-44CB-4D83-B1EC-5AE6E398D90F@uk.fujitsu.com> On 21 Jul 08, at 2135, Steve Webb wrote: > I've got pop users > that can't access IMAP (using phones for checking email when on travel > with "leave messages on server" then suck down the emails when they > arrive > back at a desktop). Have you confirmed that they can't use IMAP, or is that just what they say? I've been a heavy user of mail from mobile phones for long enough that I've done it over raw GSM data calls into modem banks (none of this newfangled GPRS stuff). I've not seen a mobile phone in at least five years, probably more, that doesn't support IMAP. For example, the Ericsson T68 supported IMAP, and that's a _long_ time ago in mobile phone terms. Prior to that I used Palm Pilots with IrDA into various Motorola phones, but let's not go too far in archaeology. But if you are stuck with POP3, it probably means the phone's software is old. Sadly, POP3 has an unhelpful numbering scheme. POP was introduced by RFC918 in October 1984. It was revised to POP2 by RFC937 in Feb 1985. Yes, for younger readers, a protocol really did go through two versions in five months, while only eighteen other RFCs were published... POP3 was defined by RFC1081, and then modified by 1225 (helpfully contains no list of changes, but introduces RPOP), 1460 (again no list of changes, drops RPOP, introduces APOP), 1725 (draft only, removes LAST, adds UIDL, lots of tightening up of language) and 1939 (standard, more tightening up), spanning from November 1988 to May 1996. Throughout this it stayed called `POP3', and there is no equivalent to the IMAP CAPABILITY to find out what it supports. UIDL had been floating around as a proposal and, I think, running code prior to 1994 (RFC1725) and certainly prior to 1996 (RFC1939). Given that POP3 has a chequered history when you push the semantics, I wouldn't trust UIDL any further than I could throw it. It doesn't define an equivalent to UIDVALIDITY (Cyrus fakes it by embedding the mailbox creation time into each UID, so if that changes the messages appear new), the code in a given client is more likely to be server specific than RFC-compliant, and POP3 clients are inherently abandonware anyway. I'd say that your users can almost certainly use IMAP, if but they look at the menus. But if they can't, they are relying on Neolithic client implementations of a Palaeolithic protocol... ian From peo at intersonic.se Tue Jul 22 16:52:20 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Tue, 22 Jul 2008 22:52:20 +0200 Subject: patches since 2.3.12-p2? In-Reply-To: <20080719121357.GA31829@brong.net> References: <48806908.5080608@intersonic.se> <20080719121357.GA31829@brong.net> Message-ID: <48864884.2090802@intersonic.se> Bron Gondwana wrote: > On Fri, Jul 18, 2008 at 11:57:28AM +0200, Per olof Ljungmark wrote: >> and >> skiplist: unlock while not locked > > This is almost certainly a bug. I added this along with a bunch > of other skiplist changes to find places where the database > interface wasn't being used correctly, because it means bugs of > some sort. > > There's another skiplist bug I've been trying to track down > (multiple deletes on the same connection failing), but haven't > been able to reproduce it yet. > > Unfortunately, the cyrus database interface sort of sucks from > a consistency perspective, it's dangerous to call any function > that needs database access if you have a database transaction > open, because the code doesn't know about the transaction and > blindy goes ahead and starts a new transaction, which doesn't > work. > > The code now throws an error immediately rather than causing > corruption. Much better :) Sucks or not, it's been working very reliable for us for 5 years now! I recompiled Cyrus without BDB support, changed line 1034 in ./lib/imapoptions to take skiplist as default and now finally statuscache.db is using skiplist. Also, I applied "Skiplist Readlocktracking" and "Skiplist Safeunlock" and now there are no errors of any kind in the logs. Thanks! From broglia at fastwebnet.it Wed Jul 23 05:20:50 2008 From: broglia at fastwebnet.it (Marco Broglia) Date: Wed, 23 Jul 2008 11:20:50 +0200 Subject: "DBERROR: error listing log files" if only skiplist Message-ID: <4886F7F2.6000801@fastwebnet.it> I have cyrus-imapd v2.3.12p2, and no db with `berkeley' in imapd.conf. Then, every checkpoint period (now I have 30m), the following errors appears in log (3 times): [...] ctl_cyrusdb[42037]: DBERROR: error listing log files: DB_NOTFOUND: No matching key/data pair found [...]ctl_cyrusdb[42037]: DBERROR: archive /cyrus/imap/db: cyrusdb error I try to set duplicatesuppression with berkeley and they disappeared. I check the source and see that without any berkeley log files in `/cyrus/imap/db' the errors is sure. I think that it could be easily solved, or do I miss something ? Follows the db part of `imapd.conf': - annotation_db: skiplist - duplicate_db: skiplist (duplicatesuppression: no) - mboxlist_db: skiplist - #ptscache_db: berkeley (I don't use it) - seenstate_db: skiplist - #statuscache_db: berkeley-nosync (I think I don't use it) - subscription_db: flat - #tlscache_db: berkeley-nosync (I don't use it) Bye. Marco. -- % Marco Broglia % via per Vimodrone 9, I-20093 Cologno Monzese (MI) % email: broglia at fastwebnet.it From Hagedorn at uni-koeln.de Wed Jul 23 12:58:02 2008 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Wed, 23 Jul 2008 18:58:02 +0200 Subject: Reconstructing mailboxes when using delayed expunge Message-ID: <3E9EECEE131669C52A312371@tyrion.rrz.uni-koeln.de> Hi, we're running Cyrus 2.3.11 with "delete_mode: delayed". Today, for the first time since using that feature, we had to undelete an entire hierarchy of mailboxes a user had inadvertently deleted. We found that it was more tricky than we had anticipated. This is an anecdotal report of how we managed to do it eventually. I hope this might help other admins in the future, because I don't think this is really documented anywhere. The first issue was finding the deleted mailboxes. It seems they can be anywhere, more or less. We have three partitions. We managed to find them by doing this: ctl_mboxlist -d | grep DELETED | grep username Then we had to look for them with mbpath, replacing the '.' with '/', because we use unixhierarchysep. The next surprise was that the actual mails were in subdirectories with funny names, e.g.: DELETED/user/xxx/blabla/bla/48873884 (That's when the original mailbox was called user/xxx/blabla/bla) I found out that a timestamp is added by reading the source. I suppose that's so that multiple deletions of a mailbox of the same name don't clobber prior versions. We then copied the contents of the timestamped folders to a newly created folder in the user's mailbox. Our internal documentation said not to copy the metadata (i.e. the cyrus.xxx files), but I don't remember why. Is that the right thing to do? It caused us some headaches later on. Then we tried our usual reconstruct approach, i.e. 'reconstruct -rf user/xxx'. However, the restored mailboxes weren't added. The reason is that -f only works when a cyrus.header file exists. Then we tried touching cyrus.header in the folders. But that's no good in itself, either. There was an error message that the mailbox had an invalid format. A look at the manpage suggested that -x should help. That sort of worked, but two mailboxes still weren't added because there was no cyrus.header file. So without the trial & error, the correct approach seems to be: - find the mailbox(es) - copy their contents (with or without metadata) - touch cyrus.header in *all* mailboxes if you did not copy the metadata - run 'reconstruct -rfx' on the user Has anybody else found a better way? Does everybody agree that there should be an 'unexpunge' for mailboxes as well?? I guess an unexpunge for mailboxes would have to let you specify a target folder, because simply writing everything to the original position might not be correct ... Cheers, Sebastian Hagedorn -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. Zentrum f?r angewandte Informatik - Universit?tsweiter Service RRZK .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. .:.:.:.Skype: shagedorn.:.:.:. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080723/ddf88686/attachment.bin From pengle at rice.edu Wed Jul 23 13:44:13 2008 From: pengle at rice.edu (Paul Engle) Date: Wed, 23 Jul 2008 12:44:13 -0500 Subject: Reconstructing mailboxes when using delayed expunge In-Reply-To: <3E9EECEE131669C52A312371@tyrion.rrz.uni-koeln.de> References: <3E9EECEE131669C52A312371@tyrion.rrz.uni-koeln.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Wednesday, July 23, 2008 6:58 PM +0200 Sebastian Hagedorn wrote: > The first issue was finding the deleted mailboxes. It seems they can be anywhere, more or less. We have three partitions. We managed to find them by doing this: You can specify the prefix for deleted mailboxes with the 'deletedprefix' option in imapd.conf. It defaults to DELETED, so anything deleted will go into a tree starting with that, preserving the same structure as on the live partition. You do have to do the ctl_mboxlist -d to get the specific timecode, though. Or visually inspect the filesystem. > We then copied the contents of the timestamped folders to a newly created folder in the user's mailbox. Our internal documentation said not to copy the metadata (i.e. the cyrus.xxx files), but I don't remember why. Is that the right thing to do? It caused us some headaches later on. It's been our understanding that the delayed delete process is really just a rename under the hood. It just renames the mailboxes to somewhere outside the 'normal' area so that users no longer see them. As such, we've generally had success by just doing another rename to get the mailbox back. If the user hadn't gone and created a new mailbox with the same name, then it would just be: cyradm> rename DELETED/user/foo/bar/baz/TIMECODE user/foo/bar/baz [partition] If the mailbox was indeed recreated in the interim, then we usually just add a suffix to the mailbox and tell the user where it is: cyradm> rename DELETED/user/foo/bar/baz/TIMECODE user/foo/bar/baz_RESTORE [partition] So far, it's not caused a problem. -paul - -- Paul D. Engle | Rice University Sr. Systems Adminstrator, RHCE | Information Technology - MS119 713-348-4702 | PO Box 1892 pengle at rice.edu | Houston, TX 77251-1892 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFIh23zCpkISWtyHNsRAnNjAKDShe8cqHz2CVAa58vglbt2oQO8kACfcw3u EkhBcG4h6VUGAQePkYMMNDU= =mgll -----END PGP SIGNATURE----- From simon.matter at invoca.ch Wed Jul 23 16:47:57 2008 From: simon.matter at invoca.ch (Simon Matter) Date: Wed, 23 Jul 2008 22:47:57 +0200 (CEST) Subject: Reconstructing mailboxes when using delayed expunge In-Reply-To: References: <3E9EECEE131669C52A312371@tyrion.rrz.uni-koeln.de> Message-ID: <9d7da20bd11ecf578aa8435686075d16.squirrel@webmail.bi.corp.invoca.ch> >> We then copied the contents of the timestamped folders to a newly >> created folder in the user's mailbox. Our internal documentation said >> not to copy the metadata (i.e. the cyrus.xxx files), but I don't >> remember why. Is that the right thing to do? It caused us some headaches >> later on. > > It's been our understanding that the delayed delete process is really just > a rename under the hood. It just renames the mailboxes to somewhere > outside the 'normal' area so that users no longer see them. > > As such, we've generally had success by just doing another rename to get > the mailbox back. If the user hadn't gone and created a new mailbox with > the same name, then it would just be: > > cyradm> rename DELETED/user/foo/bar/baz/TIMECODE user/foo/bar/baz > [partition] > > If the mailbox was indeed recreated in the interim, then we usually just > add a suffix to the mailbox and tell the user where it is: > > cyradm> rename DELETED/user/foo/bar/baz/TIMECODE user/foo/bar/baz_RESTORE > [partition] > > So far, it's not caused a problem. I did the same when I tested the new feature while packaging RPMS. IIRC also ACL's were in place after the rename. The only thing I'm not using is unixhierarchy. Simon From wes at umich.edu Wed Jul 23 20:41:52 2008 From: wes at umich.edu (Wesley Craig) Date: Wed, 23 Jul 2008 20:41:52 -0400 Subject: Reconstructing mailboxes when using delayed expunge In-Reply-To: References: <3E9EECEE131669C52A312371@tyrion.rrz.uni-koeln.de> Message-ID: <11C9E323-9166-46DB-BA02-FB5E453BBAE8@umich.edu> On 23 Jul 2008, at 13:44, Paul Engle wrote: > You do have to do the ctl_mboxlist -d to get the specific timecode, > though. You can also use, e.g.: cyradm> lm DELETED.user.wc2263.* DELETED.user.wc2263.EG.487BF83F (\HasNoChildren) DELETED.user.wc2263.XXX.487BF841 (\HasNoChildren) DELETED.user.wc2263.XXX.4887CA8E (\HasNoChildren) cyradm> A little convoluted, but you can get the human readable time by subtracting the time code above (which is in hex) from "now". E.g.: : ; date +"%s" 1216859626 : ; dc 1216859626 16i 487BF841 -p 1216084033 775593 : ; date --date="-775593 seconds" Mon Jul 14 21:11:28 EDT 2008 : ; OK, maybe more than a little convoluted... I guess it would be nice if the time code were more human readable, e.g., YYYYMMDDhhmmss. 6 more characters, infinitely more readable :) :wes From Hagedorn at uni-koeln.de Thu Jul 24 04:00:46 2008 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Thu, 24 Jul 2008 10:00:46 +0200 Subject: Reconstructing mailboxes when using delayed expunge In-Reply-To: <9d7da20bd11ecf578aa8435686075d16.squirrel@webmail.bi.corp.invoca.ch> <11C9E323-9166-46DB-BA02-FB5E453BBAE8@umich.edu> References: <3E9EECEE131669C52A312371@tyrion.rrz.uni-koeln.de> Message-ID: <4AD40AFE40AB5A82693EE8E2@tyrion.rrz.uni-koeln.de> Hi, --On 23. Juli 2008 12:44:13 -0500 Paul Engle wrote: > You can specify the prefix for deleted mailboxes with the 'deletedprefix' > option in imapd.conf. It defaults to DELETED, so anything deleted will go > into a tree starting with that, preserving the same structure as on the > live partition. I was aware of that, but with three partitions you won't know on which it is and which hash letter was used (we are using fulldirhash as well). > It's been our understanding that the delayed delete process is really > just a rename under the hood. It just renames the mailboxes to somewhere > outside the 'normal' area so that users no longer see them. > > As such, we've generally had success by just doing another rename to get > the mailbox back. If the user hadn't gone and created a new mailbox with > the same name, then it would just be: > > cyradm> rename DELETED/user/foo/bar/baz/TIMECODE user/foo/bar/baz > [partition] > > If the mailbox was indeed recreated in the interim, then we usually just > add a suffix to the mailbox and tell the user where it is: > > cyradm> rename DELETED/user/foo/bar/baz/TIMECODE user/foo/bar/baz_RESTORE > [partition] That's great! I wish I had known that before :-) --On 23. Juli 2008 20:41:52 -0400 Wesley Craig wrote: > On 23 Jul 2008, at 13:44, Paul Engle wrote: >> You do have to do the ctl_mboxlist -d to get the specific timecode, >> though. > > You can also use, e.g.: > > cyradm> lm DELETED.user.wc2263.* > DELETED.user.wc2263.EG.487BF83F (\HasNoChildren) > DELETED.user.wc2263.XXX.487BF841 (\HasNoChildren) > DELETED.user.wc2263.XXX.4887CA8E (\HasNoChildren) > cyradm> That's another great tip! > A little convoluted, but you can get the human readable time by > subtracting the time code above (which is in hex) from "now". E.g.: > > : ; date +"%s" > 1216859626 > : ; dc > 1216859626 > 16i > 487BF841 -p > 1216084033 > 775593 > : ; date --date="-775593 seconds" > Mon Jul 14 21:11:28 EDT 2008 > : ; > > OK, maybe more than a little convoluted... I'm note really a dc fiend, so I'm not 100% sure what you are doing there, but doesn't this work just as well? % perl -e 'print scalar localtime(hex "487BF841")."\n"' Tue Jul 15 03:07:13 2008 The difference in time is only because of our different timezones ... Thanks for all the help, Sebastian -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. Zentrum f?r angewandte Informatik - Universit?tsweiter Service RRZK .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. .:.:.:.Skype: shagedorn.:.:.:. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080724/12d7dc4e/attachment.bin From wes at umich.edu Thu Jul 24 09:49:11 2008 From: wes at umich.edu (Wesley Craig) Date: Thu, 24 Jul 2008 09:49:11 -0400 Subject: Reconstructing mailboxes when using delayed expunge In-Reply-To: <4AD40AFE40AB5A82693EE8E2@tyrion.rrz.uni-koeln.de> References: <3E9EECEE131669C52A312371@tyrion.rrz.uni-koeln.de> <4AD40AFE40AB5A82693EE8E2@tyrion.rrz.uni-koeln.de> Message-ID: On 24 Jul 2008, at 04:00, Sebastian Hagedorn wrote: > I'm note really a dc fiend, so I'm not 100% sure what you are doing > there, but doesn't this work just as well? > > % perl -e 'print scalar localtime(hex "487BF841")."\n"' > Tue Jul 15 03:07:13 2008 Absolutely it does. My only concern is that in many environments, the person doing these un-deletes is unlikely to be friendly with dc or perl. Hence my suggested change to the time stamp naming convention. :wes From kbajwa at tibonline.net Sat Jul 26 17:29:41 2008 From: kbajwa at tibonline.net (kbajwa) Date: Sat, 26 Jul 2008 15:29:41 -0600 Subject: Installation Message-ID: <756AD765ACB345D8B8623ACD1CA446B2@Sunshine> CentOS 5.2 Postfix 2.3.3 After three weeks to install Dovecot & Dovecot-Sieve, I am going to try to install: Cyrus-Imapd, Cyrus-SASL & Cyrus-Sieve I have already installed Cyrus package which comes with CentOS. I am looking simple "How to" to configure these application. Please dire me to a URL. Thank you. Kirti From peo at intersonic.se Sun Jul 27 05:18:43 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Sun, 27 Jul 2008 11:18:43 +0200 Subject: help with cyr_expire please Message-ID: <488C3D73.1020401@intersonic.se> It seems I do not fully understand how cyr_expire works. Some background: I've set up a testing server with 2.3.12-p2 with delayed expunge and delayed delete. In cyrus.conf: delpruneandexpunge cmd="cyr_expire -D 7 -E 3 -X 7" at=0400 and it all worked as expected. Now I'm ready to implement this on our production (2.3.12-p2) machine, added the proper statements to imapd.conf expunge_mode: delayed delete_mode: delayed deletedprefix: DELETED Then i tested the following command: su cyrus -c "/usr/local/cyrus/bin/cyr_expire -D 5 -E 5 -X 5 -p user.spamdump -v" and to my horror it did not only delete expunged messages but a fair share of messages without any flags set: expunged 677607 out of 682456 messages from 30 mailboxes Unfortunately I have no idea why this occured, can someone shed light here? Obviously I cannot implement this now... or I'm off very quickly to South America... and, what is the difference between "delpruneandexpunge" and "delprune"? The delpruneandexpunge prefix is not documented anywhere AFAICS. Thanks! From brong at fastmail.fm Sun Jul 27 10:05:42 2008 From: brong at fastmail.fm (Bron Gondwana) Date: Mon, 28 Jul 2008 00:05:42 +1000 Subject: help with cyr_expire please In-Reply-To: <488C3D73.1020401@intersonic.se> References: <488C3D73.1020401@intersonic.se> Message-ID: <20080727140542.GA29123@brong.net> On Sun, Jul 27, 2008 at 11:18:43AM +0200, Per olof Ljungmark wrote: > It seems I do not fully understand how cyr_expire works. Some background: > > I've set up a testing server with 2.3.12-p2 with delayed expunge and > delayed delete. In cyrus.conf: > delpruneandexpunge cmd="cyr_expire -D 7 -E 3 -X 7" at=0400 > > and it all worked as expected. > > Now I'm ready to implement this on our production (2.3.12-p2) machine, > added the proper statements to imapd.conf > expunge_mode: delayed > delete_mode: delayed > deletedprefix: DELETED > > Then i tested the following command: > su cyrus -c "/usr/local/cyrus/bin/cyr_expire -D 5 -E 5 -X 5 -p > user.spamdump -v" > > and to my horror it did not only delete expunged messages but a fair > share of messages without any flags set: > expunged 677607 out of 682456 messages from 30 mailboxes Did you check if any "live" messages were actually deleted, or was it just expunged messages cleaned up? I can imagine that being the case for a spamdump user that you clean up frequently. Bron. From peo at intersonic.se Sun Jul 27 10:19:30 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Sun, 27 Jul 2008 16:19:30 +0200 Subject: help with cyr_expire please In-Reply-To: <20080727140542.GA29123@brong.net> References: <488C3D73.1020401@intersonic.se> <20080727140542.GA29123@brong.net> Message-ID: <488C83F2.1050903@intersonic.se> Bron Gondwana wrote: > On Sun, Jul 27, 2008 at 11:18:43AM +0200, Per olof Ljungmark wrote: >> It seems I do not fully understand how cyr_expire works. Some background: >> >> I've set up a testing server with 2.3.12-p2 with delayed expunge and >> delayed delete. In cyrus.conf: >> delpruneandexpunge cmd="cyr_expire -D 7 -E 3 -X 7" at=0400 >> >> and it all worked as expected. >> >> Now I'm ready to implement this on our production (2.3.12-p2) machine, >> added the proper statements to imapd.conf >> expunge_mode: delayed >> delete_mode: delayed >> deletedprefix: DELETED >> >> Then i tested the following command: >> su cyrus -c "/usr/local/cyrus/bin/cyr_expire -D 5 -E 5 -X 5 -p >> user.spamdump -v" >> >> and to my horror it did not only delete expunged messages but a fair >> share of messages without any flags set: >> expunged 677607 out of 682456 messages from 30 mailboxes > > Did you check if any "live" messages were actually deleted, or was it > just expunged messages cleaned up? I can imagine that being the case > for a spamdump user that you clean up frequently. Yes, almost all of them were "live", no delete or even seen flag set. Of course we have backups both tape and offline disks but it got kinda tedious with that number of messages :-) cyradm info: {user/spamdump}: condstore: false duplicatedeliver: false lastpop: lastupdate: 27-Jul-2008 09:58:55 +0200 partition: default sharedseen: false size: 0 (there are no msg's at root level, only folders) I ran the same command on another mailbox and it behaved as I had expected, i.e. deleted messages that had sufficient days since expunge. {user/postmaster}: condstore: false duplicatedeliver: false lastpop: lastupdate: 27-Jul-2008 10:42:08 +0200 partition: default sharedseen: false size: 2022710 Tried again just now with yet another account and it behaved again fine. To sum it up, three accounts had emails removed physically that I think should not have, the first (spamdump) as it seemed randomly, the second and third up till -E days. Two other accounts faired just fine. confusion. --per (heading back to restore camp just now) From peo at intersonic.se Sun Jul 27 13:14:12 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Sun, 27 Jul 2008 19:14:12 +0200 Subject: help with cyr_expire please In-Reply-To: <20080727140542.GA29123@brong.net> References: <488C3D73.1020401@intersonic.se> <20080727140542.GA29123@brong.net> Message-ID: <488CACE4.9080408@intersonic.se> Bron Gondwana wrote: > On Sun, Jul 27, 2008 at 11:18:43AM +0200, Per olof Ljungmark wrote: >> It seems I do not fully understand how cyr_expire works. Some background: >> >> I've set up a testing server with 2.3.12-p2 with delayed expunge and >> delayed delete. In cyrus.conf: >> delpruneandexpunge cmd="cyr_expire -D 7 -E 3 -X 7" at=0400 >> >> and it all worked as expected. >> >> Now I'm ready to implement this on our production (2.3.12-p2) machine, >> added the proper statements to imapd.conf >> expunge_mode: delayed >> delete_mode: delayed >> deletedprefix: DELETED >> >> Then i tested the following command: >> su cyrus -c "/usr/local/cyrus/bin/cyr_expire -D 5 -E 5 -X 5 -p >> user.spamdump -v" >> >> and to my horror it did not only delete expunged messages but a fair >> share of messages without any flags set: >> expunged 677607 out of 682456 messages from 30 mailboxes > > Did you check if any "live" messages were actually deleted, or was it > just expunged messages cleaned up? I can imagine that being the case > for a spamdump user that you clean up frequently. If I redo the command above with same messages /restored from backup/mailbox reconstructed/ nothing is removed so something has changed. I did a reconstruct before the first run as well FYI. Apparently there is a parameter that tells cyr_expire to delete the message and at the moment it seems it is randomly set between mailboxes. I guess I need to dig deeper... The deletion happens from the -E flag, this much I know now. From the cyr_expire man page: "Cyr_expire is used to expire messages and duplicate delivery database entries." But when does it expire messages and when does it only remove duplicates? No further explanation is given furter down: "?E expire-days Prune the duplicate database of entries older than expire-days." Any guesses as to what this could be if the msg itself is not marked for deletion? From wes at umich.edu Sun Jul 27 16:09:03 2008 From: wes at umich.edu (Wesley Craig) Date: Sun, 27 Jul 2008 16:09:03 -0400 Subject: help with cyr_expire please In-Reply-To: <488CACE4.9080408@intersonic.se> References: <488C3D73.1020401@intersonic.se> <20080727140542.GA29123@brong.net> <488CACE4.9080408@intersonic.se> Message-ID: If you're getting a message like this: expiring messages in ... older than ... days that's the result of the /vendor/cmu/cyrus-imapd/expire annotation being set. It's controlled with the -E flag. A spam dump is a pretty typical place to find an annotation like that. :wes On 27 Jul 2008, at 13:14, Per olof Ljungmark wrote: > Apparently there is a parameter that tells cyr_expire to delete the > message and at the moment it seems it is randomly set between > mailboxes. > I guess I need to dig deeper... > > The deletion happens from the -E flag, this much I know now. > > From the cyr_expire man page: > "Cyr_expire is used to expire messages and duplicate delivery database > entries." > > But when does it expire messages and when does it only remove > duplicates? No further explanation is given furter down: > "?E expire-days > Prune the duplicate database of entries older than expire-days." > > Any guesses as to what this could be if the msg itself is not > marked for > deletion? From peo at intersonic.se Sun Jul 27 16:17:55 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Sun, 27 Jul 2008 22:17:55 +0200 Subject: help with cyr_expire please In-Reply-To: References: <488C3D73.1020401@intersonic.se> <20080727140542.GA29123@brong.net> <488CACE4.9080408@intersonic.se> Message-ID: <488CD7F3.2060609@intersonic.se> Wesley Craig wrote: > If you're getting a message like this: > > expiring messages in ... older than ... days > > that's the result of the /vendor/cmu/cyrus-imapd/expire annotation being > set. It's controlled with the -E flag. A spam dump is a pretty typical > place to find an annotation like that. none of the mailboxes had such an annotation but I'm not ready to completely rule this out yet. but if there is not such an annotation in place, exactly where does cyr_expire fetch the info on to expire or not? --per From wes at umich.edu Sun Jul 27 17:25:32 2008 From: wes at umich.edu (Wesley Craig) Date: Sun, 27 Jul 2008 17:25:32 -0400 Subject: help with cyr_expire please In-Reply-To: <488CD7F3.2060609@intersonic.se> References: <488C3D73.1020401@intersonic.se> <20080727140542.GA29123@brong.net> <488CACE4.9080408@intersonic.se> <488CD7F3.2060609@intersonic.se> Message-ID: <4ED89C11-0506-48EF-9566-1A1AF4B0486A@umich.edu> On 27 Jul 2008, at 16:17, Per olof Ljungmark wrote: > Wesley Craig wrote: >> If you're getting a message like this: >> expiring messages in ... older than ... days >> that's the result of the /vendor/cmu/cyrus-imapd/expire annotation >> being set. It's controlled with the -E flag. A spam dump is a >> pretty typical place to find an annotation like that. > > none of the mailboxes had such an annotation but I'm not ready to > completely rule this out yet. > > but if there is not such an annotation in place, exactly where does > cyr_expire fetch the info on to expire or not? The message: expiring messages in ... older than ... days is inside the check for whether the annotation is set. So if you got that message, the annotation *is* set. Somewhere. According to my reading of cyr_expire.c, if you don't want annotations checked, you should give the -a flag. If you don't give -a, it will check each mailbox and every parent of every mailbox, recursively up to "server" or "domain" for the "/vendor/cmu/cyrus-imapd/expire" annotation. If it finds the "/vendor/cmu/cyrus-imapd/expire" annotation (which will be stored in the global annotations.db), then instead of cleaning up already expunged messages, it will delete messages that are older than the age stored as the value of the attribute. For a particular mailbox, if the annotation doesn't apply (to the mailbox or anywhere above it), and expunge_mode is delayed, then a "cleanup" is done, i.e., expunged messages are deleted. It appears to me that if you set the annotation to "0", you might still get odd behavior. A value of "0" (string) is still a value, so the "cleanup" flag won't get set. On the other hand, the expire_mark will get set to 0 (int) and the "force" aka "expire" flag will be set. *Probably* nothing really awful will happen in this case, because it will be hard for the sentdate of messages to be less-than 0 (at least for a few years...). None the less, I sort of feel like the annotation value should be converted from a string to an int sooner rather than later -- it's used as a comparison all through the cyr_expire code. Another funny thing: the report: expunged ... out of ... messages from ... mailboxes applies to "expired" or "cleaned up" messages. Not very clear book keeping, I'd say. It would be vastly superior if we reported on a per mailbox basis, and were clear which behavior was performed, i.e., deleting otherwise active messages or expiring messages that have been previously expunged. :wes From peo at intersonic.se Sun Jul 27 17:36:21 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Sun, 27 Jul 2008 23:36:21 +0200 Subject: help with cyr_expire please In-Reply-To: References: <488C3D73.1020401@intersonic.se> <20080727140542.GA29123@brong.net> <488CACE4.9080408@intersonic.se> Message-ID: <488CEA55.3010908@intersonic.se> Wesley Craig wrote: > If you're getting a message like this: > > expiring messages in ... older than ... days > > that's the result of the /vendor/cmu/cyrus-imapd/expire annotation being > set. It's controlled with the -E flag. A spam dump is a pretty typical > place to find an annotation like that. Here's the entire log output from one of the events. * "spamdump" is actually an archive kept for a client so it is not supposed to expire anytime soon. I am the only person with direct access to it. * Notable is that in each folder, not all of the messages were deleted, just the majority of them. cyr_expire[6935]: Expunged 64610 messages from user.spamdump.archive.2005.07-12 cyr_expire[6935]: Expunged 36311 messages from user.spamdump.archive.2006.01-02 cyr_expire[6935]: Expunged 27641 messages from user.spamdump.archive.2006.03 cyr_expire[6935]: Expunged 26391 messages from user.spamdump.archive.2006.04 cyr_expire[6935]: Expunged 29141 messages from user.spamdump.archive.2006.05 cyr_expire[6935]: Expunged 31915 messages from user.spamdump.archive.2006.06 cyr_expire[6935]: Expunged 35437 messages from user.spamdump.archive.2006.07 cyr_expire[6935]: Expunged 84262 messages from user.spamdump.archive.2006.08 cyr_expire[6935]: Expunged 93719 messages from user.spamdump.archive.2006.09 cyr_expire[6935]: Expunged 72904 messages from user.spamdump.archive.2006.10 cyr_expire[6935]: Expunged 60404 messages from user.spamdump.archive.2006.11 cyr_expire[6935]: Expunged 58841 messages from user.spamdump.archive.2006.12 cyr_expire[6935]: Expunged 9178 messages from user.spamdump.archive.2007.12 cyr_expire[6935]: Expunged 2711 messages from user.spamdump.archive.Virus.2004 cyr_expire[6935]: expunged 677607 out of 682456 messages from 30 mailboxes cyr_expire[6935]: Removed 0 deleted mailboxes cyr_expire[6935]: duplicate_prune: pruning back 5 days cyr_expire[6935]: duplicate_prune: purged 0 out of 1324 entries From wes at umich.edu Sun Jul 27 18:04:10 2008 From: wes at umich.edu (Wesley Craig) Date: Sun, 27 Jul 2008 18:04:10 -0400 Subject: help with cyr_expire please In-Reply-To: <488CEA55.3010908@intersonic.se> References: <488C3D73.1020401@intersonic.se> <20080727140542.GA29123@brong.net> <488CACE4.9080408@intersonic.se> <488CEA55.3010908@intersonic.se> Message-ID: <9CE88843-BAEA-40F2-B88D-D9067E57519A@umich.edu> On 27 Jul 2008, at 17:36, Per olof Ljungmark wrote: > Here's the entire log output from one of the events. The message: expiring messages in ... older than ... days is only given on stderr and when verbose is given. > cyr_expire[6935]: Expunged 64610 messages from > user.spamdump.archive.2005.07-12 > cyr_expire[6935]: Expunged 36311 messages from > user.spamdump.archive.2006.01-02 > cyr_expire[6935]: Expunged 27641 messages from > user.spamdump.archive.2006.03 > cyr_expire[6935]: Expunged 26391 messages from > user.spamdump.archive.2006.04 > cyr_expire[6935]: Expunged 29141 messages from > user.spamdump.archive.2006.05 > cyr_expire[6935]: Expunged 31915 messages from > user.spamdump.archive.2006.06 > cyr_expire[6935]: Expunged 35437 messages from > user.spamdump.archive.2006.07 > cyr_expire[6935]: Expunged 84262 messages from > user.spamdump.archive.2006.08 > cyr_expire[6935]: Expunged 93719 messages from > user.spamdump.archive.2006.09 > cyr_expire[6935]: Expunged 72904 messages from > user.spamdump.archive.2006.10 > cyr_expire[6935]: Expunged 60404 messages from > user.spamdump.archive.2006.11 > cyr_expire[6935]: Expunged 58841 messages from > user.spamdump.archive.2006.12 > cyr_expire[6935]: Expunged 9178 messages from user.spamdump.archive. > 2007.12 > cyr_expire[6935]: Expunged 2711 messages from > user.spamdump.archive.Virus.2004 > cyr_expire[6935]: expunged 677607 out of 682456 messages from 30 > mailboxes What's cyadm info on user/spamdump/archive ? Or say, user/spamdump/ archive/2005 ? :wes From peo at intersonic.se Sun Jul 27 18:49:06 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Mon, 28 Jul 2008 00:49:06 +0200 Subject: help with cyr_expire please In-Reply-To: <9CE88843-BAEA-40F2-B88D-D9067E57519A@umich.edu> References: <488C3D73.1020401@intersonic.se> <20080727140542.GA29123@brong.net> <488CACE4.9080408@intersonic.se> <488CEA55.3010908@intersonic.se> <9CE88843-BAEA-40F2-B88D-D9067E57519A@umich.edu> Message-ID: <488CFB62.2030106@intersonic.se> Wesley Craig wrote: > On 27 Jul 2008, at 17:36, Per olof Ljungmark wrote: >> Here's the entire log output from one of the events. > > The message: > > expiring messages in ... older than ... days > > is only given on stderr and when verbose is given. > >> cyr_expire[6935]: Expunged 64610 messages from >> user.spamdump.archive.2005.07-12 >> cyr_expire[6935]: Expunged 36311 messages from >> user.spamdump.archive.2006.01-02 >> cyr_expire[6935]: Expunged 27641 messages from >> user.spamdump.archive.2006.03 >> cyr_expire[6935]: Expunged 26391 messages from >> user.spamdump.archive.2006.04 >> cyr_expire[6935]: Expunged 29141 messages from >> user.spamdump.archive.2006.05 >> cyr_expire[6935]: Expunged 31915 messages from >> user.spamdump.archive.2006.06 >> cyr_expire[6935]: Expunged 35437 messages from >> user.spamdump.archive.2006.07 >> cyr_expire[6935]: Expunged 84262 messages from >> user.spamdump.archive.2006.08 >> cyr_expire[6935]: Expunged 93719 messages from >> user.spamdump.archive.2006.09 >> cyr_expire[6935]: Expunged 72904 messages from >> user.spamdump.archive.2006.10 >> cyr_expire[6935]: Expunged 60404 messages from >> user.spamdump.archive.2006.11 >> cyr_expire[6935]: Expunged 58841 messages from >> user.spamdump.archive.2006.12 >> cyr_expire[6935]: Expunged 9178 messages from >> user.spamdump.archive.2007.12 >> cyr_expire[6935]: Expunged 2711 messages from >> user.spamdump.archive.Virus.2004 >> cyr_expire[6935]: expunged 677607 out of 682456 messages from 30 >> mailboxes > > What's cyadm info on user/spamdump/archive ? Or say, > user/spamdump/archive/2005 ? > using user/spamdump/archive/2006/11 as example localhost.inter-sonic.com> info user/spamdump {user/spamdump}: condstore: false duplicatedeliver: false lastpop: lastupdate: 27-Jul-2008 09:58:55 +0200 partition: default sharedseen: false size: 0 localhost.inter-sonic.com> info user/spamdump/archive {user/spamdump/archive}: condstore: false duplicatedeliver: false lastpop: lastupdate: 27-Jul-2008 09:58:56 +0200 partition: default sharedseen: false size: 0 localhost.inter-sonic.com> info user/spamdump/archive/2006/11 {user/spamdump/archive/2006/11}: condstore: false duplicatedeliver: false lastpop: lastupdate: 27-Jul-2008 10:00:16 +0200 partition: default sharedseen: false size: 388206 localhost.inter-sonic.com> info user localhost.inter-sonic.com> Here's mbexamine user/spamdump/archive/2006/11 Examining user/spamdump/archive/2006/11... Mailbox Header Info: Path to mailbox: /var/spool/imap/user/spamdump/archive/2006/11 Mailbox ACL: spamdump lrswipkxtecda Unique ID: 374a1c3b45897786 User Flags: Junk NonJunk Index Header Info: Generation Number: 8 Format: NORMAL Minor Version: 10 Header Size: 96 bytes Record Size: 88 bytes Number of Messages: 31 Mailbox Size: 388206 bytes Last Append Date: (1170623928) Sun Feb 4 22:18:48 2007 UIDValidity: 1166636934 Last UID: 108906 Deleted: 0 Answered: 0 Flagged: 0 Mailbox Options: POP3_NEW_UIDL Last POP3 Login: (0) Thu Jan 1 01:00:00 1970 Highest Mod Sequence: 1 and same folder from the offline replica that has not been replicated since messages were ex|punged|pired. 31 messages out of 60435 were NOT deleted for some reason and this behaviour is the same across all concerned folders, a tiny part of all msg's were not deleted. Mailbox Header Info: Path to mailbox: /var/spool/imap/user/spamdump/archive/2006/11 Mailbox ACL: spamdump lrswipkxtecda Unique ID: 374a1c3b45897786 User Flags: Junk NonJunk Index Header Info: Generation Number: 1 Format: NORMAL Minor Version: 10 Header Size: 96 bytes Record Size: 88 bytes Number of Messages: 60435 Mailbox Size: 497983853 bytes Last Append Date: (1170623928) Sun Feb 4 22:18:48 2007 UIDValidity: 1166636934 Last UID: 108906 Deleted: 0 Answered: 0 Flagged: 0 Mailbox Options: POP3_NEW_UIDL Last POP3 Login: (0) Thu Jan 1 01:00:00 1970 Highest Mod Sequence: 1 From sebelk at gmail.com Sun Jul 27 23:31:12 2008 From: sebelk at gmail.com (Sergio Belkin) Date: Mon, 28 Jul 2008 00:31:12 -0300 Subject: Cyrus + Ldap + sasl question Message-ID: <8c6f7f450807272031l688a2e32p793eb0ed95a701c2@mail.gmail.com> Hi, I have a server running with Centos 5.1 and: Cyrus: Lan POP and IMAP server both with SSL and plain and login mechanisms LDAP with SSL + SASL User passwords in LDAP are encrypted. Everything works fine. But I'd want to reduce overhead due SSL and change to Cyrus with md5 mechanism (or another nonplain mechanism) Can I do that? Please bear in mind, that I don't want to use non-encrypyted passwords on LDAP. Thanks in advance! -- -- Open Kairos http://www.openkairos.com Watch More TV http://sebelk.blogspot.com Sergio Belkin - From damm at yazzy.org Mon Jul 28 01:22:28 2008 From: damm at yazzy.org (Scott Likens) Date: Sun, 27 Jul 2008 22:22:28 -0700 Subject: Cyrus + Ldap + sasl question In-Reply-To: <8c6f7f450807272031l688a2e32p793eb0ed95a701c2@mail.gmail.com> References: <8c6f7f450807272031l688a2e32p793eb0ed95a701c2@mail.gmail.com> Message-ID: <71BA4F00-C6AE-4EDA-8F06-A86F32D3499D@yazzy.org> Hi Sergio, Unfortunately it's not possible to use CRAM-MD5 and DIGEST-MD5 without the plaintext password available to compare it with. ... Unless there is some patch or something I was not aware of, i've seen attempts in the past to bridge this gap. so I doubt there is anything currently updated, however I suggest you to use ldapdb if you are not already. Scott On Jul 27, 2008, at 8:31 PM, Sergio Belkin wrote: > Hi, > > I have a server running with Centos 5.1 and: > > Cyrus: Lan POP and IMAP server both with SSL and plain and login > mechanisms > > LDAP with SSL + SASL > > User passwords in LDAP are encrypted. > > Everything works fine. But I'd want to reduce overhead due SSL and > change to Cyrus with md5 mechanism (or another nonplain mechanism) Can > I do that? Please bear in mind, that I don't want to use > non-encrypyted passwords on LDAP. > > Thanks in advance! > > -- > -- > Open Kairos http://www.openkairos.com > Watch More TV http://sebelk.blogspot.com > Sergio Belkin - > ---- > 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 > > > !DSPAM:488d4517244599194996942! > > From dimma at higis.ru Mon Jul 28 01:58:30 2008 From: dimma at higis.ru (Dmitriy Kirhlarov) Date: Mon, 28 Jul 2008 09:58:30 +0400 Subject: Cyrus + Ldap + sasl question In-Reply-To: <8c6f7f450807272031l688a2e32p793eb0ed95a701c2@mail.gmail.com> References: <8c6f7f450807272031l688a2e32p793eb0ed95a701c2@mail.gmail.com> Message-ID: <488D6006.9060005@higis.ru> Sergio Belkin wrote: > I have a server running with Centos 5.1 and: > > Cyrus: Lan POP and IMAP server both with SSL and plain and login mechanisms > > LDAP with SSL + SASL > > User passwords in LDAP are encrypted. > > Everything works fine. But I'd want to reduce overhead due SSL and > change to Cyrus with md5 mechanism (or another nonplain mechanism) Can > I do that? Please bear in mind, that I don't want to use > non-encrypyted passwords on LDAP. cram-md5 and digest-md5 need unencrypted password on client and server side. kerberos mechanism can help you, but I don't know MUA with kerberos support. WBR Dmitriy From peo at intersonic.se Mon Jul 28 05:21:12 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Mon, 28 Jul 2008 11:21:12 +0200 Subject: help with cyr_expire please In-Reply-To: <488CFB62.2030106@intersonic.se> References: <488C3D73.1020401@intersonic.se> <20080727140542.GA29123@brong.net> <488CACE4.9080408@intersonic.se> <488CEA55.3010908@intersonic.se> <9CE88843-BAEA-40F2-B88D-D9067E57519A@umich.edu> <488CFB62.2030106@intersonic.se> Message-ID: <488D8F88.6030504@intersonic.se> Per olof Ljungmark wrote: > Wesley Craig wrote: >> On 27 Jul 2008, at 17:36, Per olof Ljungmark wrote: >>> Here's the entire log output from one of the events. >> The message: >> >> expiring messages in ... older than ... days >> >> is only given on stderr and when verbose is given. I've decided to take the opposite approach and given up trying to figure out what caused it. Instead, I ran a reconstruct across the whole spool including rebuilding the cyrus.expunge files. Then, after "-E" days I can test cyr_expire on a few mailboxes, if that works out ok I should be able to implement nightly pruning, with the -a switch as a security measure in case I missed annotations somewhere. I guess this could leave a few orphaned files in the spool? but some clever scripting should dig them out too. Thanks all for your help. --per From carles at unlimitedmail.org Mon Jul 28 08:14:06 2008 From: carles at unlimitedmail.org (UnlimitedMail.net - Carles Xavier Munyoz =?utf-8?q?Bald=C3=B3?=) Date: Mon, 28 Jul 2008 14:14:06 +0200 Subject: Cyrus Murder or IMAP proxy. Message-ID: <200807281414.06714.carles@unlimitedmail.org> Hello, I'm thinking about to use the Cyrus Murder in order to setup an e-mail IMAP cluster system. The problem is that I have seen this note on the install-murder text file: [...] Note that Cyrus Murder is still relatively young in the grand scheme of things, and if you choose to deploy you are doing so at your own risk. Many of the failure modes can be difficult to track without a detailed understanding of the mupdate protocol and IMAP in general, and thus even considering a deployment is not for the faint at heart. Sites which think they need the Murder functionality but do not need a uniform namespace (no shared mailboxes) should consider other IMAP proxy solutions. At the same time, we are using it successfully in production at Carnegie Mellon. [...] Then, for a production system, should I use an IMAP proxy solution instead of Cyrus Murder? Is there anyone using Cyrus Murder in a hevay loaded production e-mail system? May you recomend me an IMAP proxy? What I'm losing if I use an IMAP proxy instead of Cyrus Murder? Thank you very much for your help and time. --- UnlimitedMail.net - Carles Xavier Munyoz Bald? cmunyoz at unlimitedmail.net http://www.unlimitedmail.net/ --- --- La informaci?n contenida en este e-mail es confidencial, siendo para uso exclusivo del destinatario arriba mencionado. Le informamos que est? totalmente prohibida cualquier utilizaci?n, divulgaci?n, distribuci?n y/o reproducci?n de esta comunicaci?n sin autorizaci?n expresa en virtud de la legislaci?n vigente. Si ha recibido este mensaje por error, le rogamos nos lo notifique inmediatamente por la misma v?a y proceda a su eliminaci?n. --- From stpierre at NebrWesleyan.edu Mon Jul 28 09:14:21 2008 From: stpierre at NebrWesleyan.edu (Chris St. Pierre) Date: Mon, 28 Jul 2008 08:14:21 -0500 (CDT) Subject: Cyrus Murder or IMAP proxy. In-Reply-To: <200807281414.06714.carles@unlimitedmail.org> References: <200807281414.06714.carles@unlimitedmail.org> Message-ID: On Mon, 28 Jul 2008, UnlimitedMail.net - Carles Xavier Munyoz Bald? wrote: > Then, for a production system, should I use an IMAP proxy solution instead of > Cyrus Murder? > Is there anyone using Cyrus Murder in a hevay loaded production e-mail system? > > May you recomend me an IMAP proxy? > What I'm losing if I use an IMAP proxy instead of Cyrus Murder? Cyrus Murder gives you the ability to share folders across backends. In other words, if Alice has a mailbox on imap-1.example.com and Bob has a mailbox on imap-2.example.com, they _can_ share folders if you run Cyrus Murder, but they _can't_ if you use multiple backends with a proxy. Unless you have a serious need for mailbox sharing, Murder isn't worth it, IMHO. It takes a LOT of hardware to be really fault-tolerant, and has all of the other caveats you posted. Perdition is the IMAP proxy usually used for this application. Another possibility is running multiple IMAP servers connected to common storage -- i.e., a SAN. Then users can share mailboxes, since every user is on every server, but you don't introduce the complexity of Murder. Chris St. Pierre Unix Systems Administrator Nebraska Wesleyan University From mdorman at ironicdesign.com Mon Jul 28 10:24:15 2008 From: mdorman at ironicdesign.com (Michael Alan Dorman) Date: Mon, 28 Jul 2008 10:24:15 -0400 Subject: Cyrus Murder or IMAP proxy. In-Reply-To: References: <200807281414.06714.carles@unlimitedmail.org> Message-ID: <20080728102415.405cee5f@vimes.local> On Mon, 28 Jul 2008 08:14:21 -0500 (CDT) "Chris St. Pierre" wrote: > On Mon, 28 Jul 2008, UnlimitedMail.net - Carles Xavier Munyoz Bald__ wrote: > > What I'm losing if I use an IMAP proxy instead of Cyrus Murder? You are losing a bunch of technologies intended to make creating a distributed and/or fault-tolerant mail system simpler and easier to set up. The biggies, from my perspective, are replication and host transparency. Replication is pretty obvious, at least with respect to fault-tolerance using shared-nothing hardware. By host transparency, I mean you're going to have to handle proxying not just IMAP, but you'll also need to direct your SMTP server so incoming messages get delivered to the right host. And you'll need to proxy POP if you're going to offer that. Most of those are solved problems---nginx can handle them, though you'll need to hack up an auth daemon. Takes a few hundred lines of Perl+POE to do, or, I imagine, Python+Twisted or whatever you prefer. If you're going to provide access to sieve scripts, you're going to have to figure out some way to proxy that, as nginx _doesn't_ do that. So on and so forth. It's not that you can't do it, but you're going to have additional software to handle all the things that Murder is intended to handle. > Unless you have a serious need for mailbox sharing, Murder isn't worth > it, IMHO. It takes a LOT of hardware to be really fault-tolerant, and > has all of the other caveats you posted. If you are running more than one server, whether for fault-tolerance or scalability, I think a non-Murder config is going to have a higher cost overall, as it is going to involve more software to learn, configure, monitor and run, while having basically the same hardware requirements. > Perdition is the IMAP proxy usually used for this application. Err, I think people with high-volume requirements have mostly moved to nginx, which is much lighter-weight than perdition. Mike. From peo at intersonic.se Tue Jul 29 04:42:13 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Tue, 29 Jul 2008 10:42:13 +0200 Subject: even more questions on replication and expire Message-ID: <488ED7E5.90005@intersonic.se> In the course of setting up delayed expunge on our production server I came across the following; - With delayed_expunge on the master, messages that are expunged by a user will be retained -X days on the master but immideately deleted on the replica unless it has delayed_expunge too. So if I implement delayed_expunge on the replica, do I need cyr_expire to permanently remove messages after -X days or will sync_client do that? I can imagine situations where master and replica is far from synced if one is not careful here. Sorry if this is already in the docs or list somewhere. --per From Rudy.Gevaert at UGent.be Tue Jul 29 06:16:01 2008 From: Rudy.Gevaert at UGent.be (Rudy Gevaert) Date: Tue, 29 Jul 2008 12:16:01 +0200 Subject: even more questions on replication and expire In-Reply-To: <488ED7E5.90005@intersonic.se> References: <488ED7E5.90005@intersonic.se> Message-ID: <488EEDE1.5030006@UGent.be> Per olof Ljungmark wrote: > In the course of setting up delayed expunge on our production server I > came across the following; > > - With delayed_expunge on the master, messages that are expunged by a > user will be retained -X days on the master but immideately deleted on > the replica unless it has delayed_expunge too. > > So if I implement delayed_expunge on the replica, do I need cyr_expire > to permanently remove messages after -X days or will sync_client do > that? yes -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert Rudy.Gevaert at UGent.be tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office Groep Systemen Systems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- From brong at fastmail.fm Tue Jul 29 08:58:33 2008 From: brong at fastmail.fm (Bron Gondwana) Date: Tue, 29 Jul 2008 22:58:33 +1000 Subject: even more questions on replication and expire In-Reply-To: <488EEDE1.5030006@UGent.be> References: <488ED7E5.90005@intersonic.se> <488EEDE1.5030006@UGent.be> Message-ID: <20080729125833.GA10268@brong.net> On Tue, Jul 29, 2008 at 12:16:01PM +0200, Rudy Gevaert wrote: > Per olof Ljungmark wrote: > > In the course of setting up delayed expunge on our production server I > > came across the following; > > > > - With delayed_expunge on the master, messages that are expunged by a > > user will be retained -X days on the master but immideately deleted on > > the replica unless it has delayed_expunge too. > > > > So if I implement delayed_expunge on the replica, do I need cyr_expire > > to permanently remove messages after -X days or will sync_client do > > that? > > yes That's "yes" to "you need to run cyr_expire on the replica too". Bron. From peo at intersonic.se Tue Jul 29 11:09:05 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Tue, 29 Jul 2008 17:09:05 +0200 Subject: even more questions on replication and expire In-Reply-To: <20080729125833.GA10268@brong.net> References: <488ED7E5.90005@intersonic.se> <488EEDE1.5030006@UGent.be> <20080729125833.GA10268@brong.net> Message-ID: <488F3291.3080504@intersonic.se> Bron Gondwana wrote: > On Tue, Jul 29, 2008 at 12:16:01PM +0200, Rudy Gevaert wrote: >> Per olof Ljungmark wrote: >>> In the course of setting up delayed expunge on our production server I >>> came across the following; >>> >>> - With delayed_expunge on the master, messages that are expunged by a >>> user will be retained -X days on the master but immideately deleted on >>> the replica unless it has delayed_expunge too. >>> >>> So if I implement delayed_expunge on the replica, do I need cyr_expire >>> to permanently remove messages after -X days or will sync_client do >>> that? >> yes > > That's "yes" to "you need to run cyr_expire on the replica too". Thanks for the info. I can't help wonder if this was a firm design decision? From a user perspective it should be easier if this followed the synchronization I believe. Anyway, thanks, that was the last piece needed to finish off. From wes at umich.edu Tue Jul 29 11:30:27 2008 From: wes at umich.edu (Wesley Craig) Date: Tue, 29 Jul 2008 11:30:27 -0400 Subject: Cyrus Murder or IMAP proxy. In-Reply-To: <200807281414.06714.carles@unlimitedmail.org> References: <200807281414.06714.carles@unlimitedmail.org> Message-ID: On 28 Jul 2008, at 08:14, UnlimitedMail.net - Carles Xavier Munyoz Bald? wrote: > Note that Cyrus Murder is still relatively young in the grand > scheme of > things, and if you choose to deploy you are doing so at your > own risk. That text is from 2002. Yes, Cyrus Murder is younger than, say, most FTP implementations, but it's hardly a spring chicken at this point. It's very well tested code in production a lot of places. If you're interested in the functionality, it's invaluable. Also, there are a lot of people on this list and else where who can help you if you run into problems. See the list archives for examples. You deploy *everything* at your own risk. :wes From wes at umich.edu Tue Jul 29 11:33:13 2008 From: wes at umich.edu (Wesley Craig) Date: Tue, 29 Jul 2008 11:33:13 -0400 Subject: even more questions on replication and expire In-Reply-To: <488F3291.3080504@intersonic.se> References: <488ED7E5.90005@intersonic.se> <488EEDE1.5030006@UGent.be> <20080729125833.GA10268@brong.net> <488F3291.3080504@intersonic.se> Message-ID: On 29 Jul 2008, at 11:09, Per olof Ljungmark wrote: > Thanks for the info. I can't help wonder if this was a firm design > decision? From a user perspective it should be easier if this followed > the synchronization I believe. No, I don't think it's firm. There's been some discussion of how delay-expunged messages are handled, e.g., during xfer. I think the same applies to sync. I'm not aware of anyone working on changing it, but I improvements to the design are possible. :wes From morgan at orst.edu Tue Jul 29 12:34:41 2008 From: morgan at orst.edu (Andrew Morgan) Date: Tue, 29 Jul 2008 09:34:41 -0700 (PDT) Subject: Installation In-Reply-To: <756AD765ACB345D8B8623ACD1CA446B2@Sunshine> References: <756AD765ACB345D8B8623ACD1CA446B2@Sunshine> Message-ID: On Sat, 26 Jul 2008, kbajwa wrote: > CentOS 5.2 > Postfix 2.3.3 > > After three weeks to install Dovecot & Dovecot-Sieve, I am going to try to > install: > > Cyrus-Imapd, > Cyrus-SASL & > Cyrus-Sieve > > > I have already installed Cyrus package which comes with CentOS. I am looking > simple "How to" to configure these application. > > Please dire me to a URL. > > Thank you. > > Kirti Try: http://nakedape.cc/info/Cyrus-IMAP-HOWTO/ Andy From morgan at orst.edu Tue Jul 29 12:45:25 2008 From: morgan at orst.edu (Andrew Morgan) Date: Tue, 29 Jul 2008 09:45:25 -0700 (PDT) Subject: Cyrus Murder or IMAP proxy. In-Reply-To: <200807281414.06714.carles@unlimitedmail.org> References: <200807281414.06714.carles@unlimitedmail.org> Message-ID: On Mon, 28 Jul 2008, UnlimitedMail.net - Carles Xavier Munyoz Bald? wrote: > Hello, > I'm thinking about to use the Cyrus Murder in order to setup an e-mail IMAP > cluster system. The problem is that I have seen this note on the > install-murder text file: > > [...] > Note that Cyrus Murder is still relatively young in the grand scheme of > things, and if you choose to deploy you are doing so at your own risk. > Many of the failure modes can be difficult to track without a detailed > understanding of the mupdate protocol and IMAP in general, and thus > even considering a deployment is not for the faint at heart. > > Sites which think they need the Murder functionality but do not need a > uniform namespace (no shared mailboxes) should consider other IMAP > proxy solutions. > > At the same time, we are using it successfully in production at > Carnegie Mellon. > [...] > > Then, for a production system, should I use an IMAP proxy solution instead of > Cyrus Murder? > Is there anyone using Cyrus Murder in a hevay loaded production e-mail system? We use Cyrus Murder here with approximately 35,000 mailboxes. It has worked great for us. The comment "Cyrus Murder is still relatively young" has been in the documentation for a long time. It should probably be reworded or removed at this point, since it has been in Cyrus for several major version releases and is heavily used and tested. Andy From brong at fastmail.fm Wed Jul 30 02:15:31 2008 From: brong at fastmail.fm (Bron Gondwana) Date: Wed, 30 Jul 2008 16:15:31 +1000 Subject: even more questions on replication and expire In-Reply-To: <488F3291.3080504@intersonic.se> References: <488ED7E5.90005@intersonic.se> <488EEDE1.5030006@UGent.be> <20080729125833.GA10268@brong.net> <488F3291.3080504@intersonic.se> Message-ID: <20080730061531.GA24513@brong.net> On Tue, Jul 29, 2008 at 05:09:05PM +0200, Per olof Ljungmark wrote: > Bron Gondwana wrote: >> On Tue, Jul 29, 2008 at 12:16:01PM +0200, Rudy Gevaert wrote: >>> Per olof Ljungmark wrote: >>>> In the course of setting up delayed expunge on our production >>>> server I came across the following; >>>> >>>> - With delayed_expunge on the master, messages that are expunged by >>>> a user will be retained -X days on the master but immideately >>>> deleted on the replica unless it has delayed_expunge too. >>>> >>>> So if I implement delayed_expunge on the replica, do I need >>>> cyr_expire to permanently remove messages after -X days or will >>>> sync_client do that? >>> yes >> >> That's "yes" to "you need to run cyr_expire on the replica too". > > Thanks for the info. I can't help wonder if this was a firm design > decision? From a user perspective it should be easier if this followed > the synchronization I believe. > > Anyway, thanks, that was the last piece needed to finish off. I would much prefer that it was done via synchronisation as well. It's a pain from a consistency point of view. But there you go. Bron. From Rudy.Gevaert at UGent.be Wed Jul 30 03:03:54 2008 From: Rudy.Gevaert at UGent.be (Rudy Gevaert) Date: Wed, 30 Jul 2008 09:03:54 +0200 Subject: singleinstancestore and replication Message-ID: <4890125A.7020406@UGent.be> Hi, I'm seeing a big difference in used space on my replicas and masters. Given the facts - that a mailbox is in sync; - I'm using the same configuration on master and replica; I can only see that the hard link count of certain files don't match. I can easily see how this can happen and don't see a way how we can prevent it. It's not even a problem. But, what I was wondering is. Am I not seeing anything over the head? Other issues that might be a cause for the difference in used space. Thanks, -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert Rudy.Gevaert at UGent.be tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office Groep Systemen Systems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- From mu at epag.de Wed Jul 30 05:06:43 2008 From: mu at epag.de (Martin Urban) Date: Wed, 30 Jul 2008 11:06:43 +0200 Subject: Problem with Cyrus and blank space in mailbox folder Message-ID: <48902F23.1060602@epag.de> Hi, I have a Problem with cyrus and procmail. I use procmail, to check the mails and sort them into the right folders. In the procmail recipes (rc) I call cyrus to deliver the mails, this works fine so far. But if the Folder has a blank space inside its name, it doenstn't work. If I take a look into the logs I know whats the problem procmail: Assigning "BLA=/usr/cyrus/bin/deliver -a username at domain.xx -m user/username/b la at domain.xx but i didn't find a way to mask this blank space. I tried backspace, double backspace, etc but nothing works. Has anyone an idea? Bye, Martin From peo at intersonic.se Wed Jul 30 05:38:29 2008 From: peo at intersonic.se (Per olof Ljungmark) Date: Wed, 30 Jul 2008 11:38:29 +0200 Subject: even more questions on replication and expire In-Reply-To: <20080730061531.GA24513@brong.net> References: <488ED7E5.90005@intersonic.se> <488EEDE1.5030006@UGent.be> <20080729125833.GA10268@brong.net> <488F3291.3080504@intersonic.se> <20080730061531.GA24513@brong.net> Message-ID: <48903695.3080508@intersonic.se> Bron Gondwana wrote: > On Tue, Jul 29, 2008 at 05:09:05PM +0200, Per olof Ljungmark wrote: >> Bron Gondwana wrote: >>> On Tue, Jul 29, 2008 at 12:16:01PM +0200, Rudy Gevaert wrote: >>>> Per olof Ljungmark wrote: >>>>> In the course of setting up delayed expunge on our production >>>>> server I came across the following; >>>>> >>>>> - With delayed_expunge on the master, messages that are expunged by >>>>> a user will be retained -X days on the master but immideately >>>>> deleted on the replica unless it has delayed_expunge too. >>>>> >>>>> So if I implement delayed_expunge on the replica, do I need >>>>> cyr_expire to permanently remove messages after -X days or will >>>>> sync_client do that? >>>> yes >>> That's "yes" to "you need to run cyr_expire on the replica too". >> Thanks for the info. I can't help wonder if this was a firm design >> decision? From a user perspective it should be easier if this followed >> the synchronization I believe. >> >> Anyway, thanks, that was the last piece needed to finish off. > > I would much prefer that it was done via synchronisation as well. It's > a pain from a consistency point of view. Yes indeed. This is gonna be interesting. Sorry to bugger the list with all those perhaps already answered questions but I'm on my toes here. First run of cyr_expire on a replica exhibited this: cyr_expire[5829]: Expunged 4 messages from user.user1 cyr_expire[5829]: IOERROR: reading cache record for user.user2: got bogus offset 1935894896 for 4/1617; try reconstruct master[4384]: process 5829 exited, signaled to death by 11 What does the figure 4/1617 tell me if anything? I assume the cure here is "reconstruct -r -f -k user/user2" ? If I omit the "-k", will I end up without cyrus.expunge and orphaned message files or will they be deleted? Thanks again all. From dimma at higis.ru Wed Jul 30 05:57:03 2008 From: dimma at higis.ru (Dmitriy Kirhlarov) Date: Wed, 30 Jul 2008 13:57:03 +0400 Subject: ptloader problem Message-ID: <48903AEF.6070506@higis.ru> Hi, list We find a problem -- when ptloader build with ldap support by gcc4 on amd64 platform it's doesn't work. After investigation ptloader core with gdb we find a problem. (I'm sorry, for possible unpropper problem description) 1. ldap.h have hints: ---- #if LDAP_DEPRECATED LDAP_F( char ** ) ldap_get_values LDAP_P(( /* deprecated, use ldap_get_values_len */ LDAP *ld, LDAPMessage *entry, LDAP_CONST char *target )); ---- 2. cyrus building without "-DLDAP_DEPRECATED", by default and ldap_get_values is "int32" 3. ptloader running 3.1 call libldap 3.2 libldap get values from server 3.3 return pointer to ptloader as int64 3.4 ptloader get it as _int32_ and core dumping My test configuration: cyrus-imapd-2.3.{8,11} with ldap support cyrus-sasl-saslauthd-2.1.22 with ldap support openldap 2.{3,4} FreeBSD 7.0 amd64 This configuration work very good on FreeBSD 6.x amd64. userbase in ldap, authentication over saslauthd, authorization over ptloader. How I can report a but to developers? I can provide my configs and detalize test procedure, if needed. WBR Dmitriy From wes at umich.edu Wed Jul 30 13:35:51 2008 From: wes at umich.edu (Wesley Craig) Date: Wed, 30 Jul 2008 13:35:51 -0400 Subject: ptloader problem In-Reply-To: <48903AEF.6070506@higis.ru> References: <48903AEF.6070506@higis.ru> Message-ID: You can add it to the bugzilla here: https://bugzilla.andrew.cmu.edu/ Thanks! :wes On 30 Jul 2008, at 05:57, Dmitriy Kirhlarov wrote: > We find a problem -- when ptloader build with ldap support by gcc4 on > amd64 platform it's doesn't work. > > After investigation ptloader core with gdb we find a problem. (I'm > sorry, for possible unpropper problem description) > > 1. ldap.h have hints: > ---- > #if LDAP_DEPRECATED > LDAP_F( char ** ) > ldap_get_values LDAP_P(( /* deprecated, use > ldap_get_values_len */ > LDAP *ld, > LDAPMessage *entry, > LDAP_CONST char *target )); > ---- > > 2. cyrus building without "-DLDAP_DEPRECATED", by default and > ldap_get_values is "int32" > > 3. ptloader running > 3.1 call libldap > 3.2 libldap get values from server > 3.3 return pointer to ptloader as int64 > 3.4 ptloader get it as _int32_ and core dumping > > My test configuration: > cyrus-imapd-2.3.{8,11} with ldap support > cyrus-sasl-saslauthd-2.1.22 with ldap support > openldap 2.{3,4} > FreeBSD 7.0 amd64 > > This configuration work very good on FreeBSD 6.x amd64. > userbase in ldap, authentication over saslauthd, authorization over > ptloader. > > How I can report a but to developers? > I can provide my configs and detalize test procedure, if needed. From carles at unlimitedmail.org Thu Jul 31 06:32:21 2008 From: carles at unlimitedmail.org (UnlimitedMail.net - Carles Xavier Munyoz =?utf-8?q?Bald=C3=B3?=) Date: Thu, 31 Jul 2008 12:32:21 +0200 Subject: Several cyrus instances on same host. Message-ID: <200807311232.21349.carles@unlimitedmail.org> Hello, Is it possible to run several cyrus imap instances (with different cyrus.conf and imapd.conf files) on the same server? I will like to have all related files for imap server A in one directory (/imapA) and all the related files for imap server B in another directory (/imapB). Is it possible? Best regards. --- UnlimitedMail.net - Carles Xavier Munyoz Bald? cmunyoz at unlimitedmail.net http://www.unlimitedmail.net/ --- --- La informaci?n contenida en este e-mail es confidencial, siendo para uso exclusivo del destinatario arriba mencionado. Le informamos que est? totalmente prohibida cualquier utilizaci?n, divulgaci?n, distribuci?n y/o reproducci?n de esta comunicaci?n sin autorizaci?n expresa en virtud de la legislaci?n vigente. Si ha recibido este mensaje por error, le rogamos nos lo notifique inmediatamente por la misma v?a y proceda a su eliminaci?n. --- From jarg at co.com.mx Thu Jul 31 15:04:26 2008 From: jarg at co.com.mx (Jonathan Rivera) Date: Thu, 31 Jul 2008 14:04:26 -0500 (CDT) Subject: how to replicate quotas in murder replicated mode? In-Reply-To: <13543480.15671217531063607.JavaMail.root@mail> Message-ID: hello everybody! i am testing the replicated config of murder but i can't see how to replicate quotas info. it is posible? regards.