From kleiner77 at gmx.net Fri May 1 01:10:32 2009 From: kleiner77 at gmx.net (Stefan Palme) Date: Fri, 01 May 2009 07:10:32 +0200 Subject: strange pop protocol? [solved] In-Reply-To: <1241117337.6561.1.camel@drops.kapott.org> References: <1071.83.221.68.220.1241111418.squirrel@webmail2.hora-obscura.de> <72F7BC39-CAA8-4CCC-8DFF-EF09CEBDA86A@umich.edu> <1241117337.6561.1.camel@drops.kapott.org> Message-ID: <1241154632.6561.7.camel@drops.kapott.org> On Thu, 2009-04-30 at 20:48 +0200, kleiner77 at gmx.net wrote: > On Thu, 2009-04-30 at 14:15 -0400, Wesley Craig wrote: > > On 30 Apr 2009, at 13:10, Stefan Palme wrote: > > > No, the pop server does not hang. After this "QUIT" message the client > > > disappears. The next connection from the same client (or from any > > > other > > > client) works normally - client can fetch at least one email. > > > > Have you enabled cyrus telemetry for this user? I'd probably look at > > that. > > Never heard about "telemetry" until now, but just have found how > to enable will. Will take a look at the generated logs... > > > The behavior you're describing doesn't make a ton of sense. After a long night of debugging and network sniffing I had to learn, that the problem was NOT the cyrus imap server, but wireshark :-( The pop3 sessions in question have been pop3/ssl sessions, so I used wiresharks feature to decode this SSL stream (I am running the server, so I have access to the corresponding rsa key). Decoding of the first three or four pop3 request/response pairs obviously worked, but after the "RETR 2" command from the client, wireshark only printed data sent by the client - data sent by the server simply was "hidden" in wiresharks output. Thanks for the great hint concerning "telemetry" - the telemetry logs showed the *complete* pop3 session, with everything as expected :-) Regards -stefan- From janne.peltonen at helsinki.fi Mon May 4 01:42:54 2009 From: janne.peltonen at helsinki.fi (Janne Peltonen) Date: Mon, 4 May 2009 08:42:54 +0300 Subject: Bug? xfermailbox seems to be broken but using rename to xfer a mailbox works just fine. In-Reply-To: <200904301105.15120.bawood@umich.edu> References: <20090430075550.GB8861@helsinki.fi> <200904301105.15120.bawood@umich.edu> Message-ID: <20090504054254.GE15736@helsinki.fi> On Thu, Apr 30, 2009 at 11:05:14AM -0400, Brian Awood wrote: > > I get > > > > Apr 30 10:24:45 m2cn1t m2v1t/imap[3793]: could not dump mailbox in > > m2v2t.mappi.helsinki.fi (unknown error) Apr 30 10:24:45 m2cn1t > > m2v1t/imap[3793]: Could not move mailbox: user.atest001r, > > dump_mailbox() failed > > > > in my murder frontend log, the command (in cyradm) never returns, [...] > > It looks like error was logged from your frontend host m2v1t, so I > would guess that the xfer command was issued to it, which isn't > correct. You have to connect to the backend where the mailbox is > stored and give the xfer command there. Oh, of course. Thanks. :) (The fact that 'rename' worked on the frontend, apparently because it got proxied to the correct backend, was confusing. :) > But the fact that your frontend database gets corrupted like and that you > didn't get a better error (like "mailbox not local"), definitely seems like a > bug. What is you mupdate_config set to on your frontend? Standard. I tried to run a unified murder for a while a couple of years before, but run into so many bugs that I decided to use the standard config. --Janne -- Janne Peltonen PGP Key ID: 0x9CFAC88B Please consider membership of the Hospitality Club (http://www.hospitalityclub.org) From wes at umich.edu Mon May 4 14:46:43 2009 From: wes at umich.edu (Wesley Craig) Date: Mon, 4 May 2009 14:46:43 -0400 Subject: Bug? xfermailbox seems to be broken but using rename to xfer a mailbox works just fine. In-Reply-To: <20090504054254.GE15736@helsinki.fi> References: <20090430075550.GB8861@helsinki.fi> <200904301105.15120.bawood@umich.edu> <20090504054254.GE15736@helsinki.fi> Message-ID: On 04 May 2009, at 01:42, Janne Peltonen wrote: > Standard. I tried to run a unified murder for a while a couple of > years before, > but run into so many bugs that I decided to use the standard config. Many of them have been fixed, but I don't think all. On the other hand, I think unified murder is really the way of the future for Cyrus. :wes From selsky at columbia.edu Mon May 4 16:48:48 2009 From: selsky at columbia.edu (Matt Selsky) Date: Mon, 4 May 2009 16:48:48 -0400 Subject: Bug? xfermailbox seems to be broken but using rename to xfer a mailbox works just fine. In-Reply-To: <0E732C24-E638-4FA8-B516-E52874B48DA0@umich.edu> References: <20090430075550.GB8861@helsinki.fi> <200904301105.15120.bawood@umich.edu> <0E732C24-E638-4FA8-B516-E52874B48DA0@umich.edu> Message-ID: On Apr 30, 2009, at 11:37 AM, Wesley Craig wrote: > On 30 Apr 2009, at 11:05, Brian Awood wrote: >> It looks like error was logged from your frontend host m2v1t, so I >> would guess that the xfer command was issued to it, which isn't >> correct. You have to connect to the backend where the mailbox is >> stored and give the xfer command there. But the fact that your >> frontend database gets corrupted like and that you didn't get a >> better error (like "mailbox not local"), definitely seems like a bug. >> What is you mupdate_config set to on your frontend? > > There's no test in cmd_xfer for MBTYPE_REMOTE (unlike cmd_rename). > That's either a bug in that it ought to notice and report an error, > or it ought to notice and proxy the xfer to the hosting backend. I > think the trend is for the latter solution, tho the former solution > is a fine stop-gap. I added this to bugzilla: https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3155 From gbulfon at sonicle.com Tue May 5 09:45:36 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Tue, 5 May 2009 15:45:36 +0200 (CEST) Subject: finding by message id Message-ID: <101915.23.1241531136265.JavaMail.gbulfon@pgbulfon> Hello, I've got a message logged by posfix with a specific message id, and stated as correctly sent to cyrus. But the user of the imap mailbox is sure that he never received that message. No filter is setup to move the message elsewhere, and no error is visible anywhere. So, I've got the message id from the postfix log. I know that cyrus checks for duplicate ids, so he's got quick knoweledge of every id in the imap folders. How can I ask cyrus for an ID and see if it actually exists somewhere? And how to find it without having to scan all imap folders? Thanx for any help. Gabriele. Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090505/2c2bc248/attachment.html From Hagedorn at uni-koeln.de Tue May 5 09:58:42 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Tue, 05 May 2009 15:58:42 +0200 Subject: finding by message id In-Reply-To: <101915.23.1241531136265.JavaMail.gbulfon@pgbulfon> References: <101915.23.1241531136265.JavaMail.gbulfon@pgbulfon> Message-ID: --On 5. Mai 2009 15:45:36 +0200 Gabriele Bulfon wrote: > I've got a message logged by posfix with a specific message id, and > stated as correctly sent to cyrus. But the user of the imap mailbox is > sure that he never received that message. All users lie. > No filter is setup to move the > message elsewhere, and no error is visible anywhere. So, I've got the > message id from the postfix log. > I know that cyrus checks for duplicate ids, so he's got quick knoweledge > of every id in the imap folders. How can I ask cyrus for an ID and see if > it actually exists somewhere? And how to find it without having to scan > all imap folders? Cyrus can log the message id's it delivers, e.g.: May 5 15:49:24 lvr13 lmtpunix[1219]: Delivered: <101915.23.1241531136265.JavaMail.gbulfon at pgbulfon> to mailbox: user.a0620 I'm not sure which log level you need to get these messages. -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (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: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090505/f0e37ed6/attachment.bin From zing+cyrus at fastmail.fm Tue May 5 13:18:46 2009 From: zing+cyrus at fastmail.fm (Zing) Date: Tue, 5 May 2009 13:18:46 -0400 (EDT) Subject: unexpunge segfault part 2 Message-ID: I'm also seeing a segfault (i've seen bus error also) in unexpunge -l when I set an expire annotation on a mailbox and run cyr_expire. I'm running cyrus 2.3.14 + the ipurge patch from Bron on f10 (x86_64), but that doesn't help (i didn't think it would): Program received signal SIGBUS, Bus error. list_expunged (mailbox=0x7fffffffbf80, msgs=0x7ffff821ef90, exists=10, expunge_index_base=0x7ffff7e30000 "") at unexpunge.c:150 150 cacheitem = CACHE_ITEM_NEXT(cacheitem); /* skip envelope */ Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.22-19.fc10.x86_64 db4-4.7.25-7.fc10.x86_64 e2fsprogs-libs-1.41.4-4.fc10.x86_64 glibc-2.9-3.x86_64 keyutils-libs-1.2-3.fc9.x86_64 krb5-libs-1.6.3-18.fc10.x86_64 libselinux-2.0.78-1.fc10.x86_64 openssl-0.9.8g-12.fc10.x86_64 zlib-1.2.3-18.fc9.x86_64 (gdb) th app all bt Thread 1 (Thread 0x7ffff7f017b0 (LWP 14422)): #0 list_expunged (mailbox=0x7fffffffbf80, msgs=0x7ffff821ef90, exists=10, expunge_index_base=0x7ffff7e30000 "") at unexpunge.c:150 #1 0x00007ffff7f2a98c in main (argc=10, argv=0x0) at unexpunge.c:632 It's easy to replicate this corruption: 1. turn on expunge: delayed in imap.conf 2. set the expire annotation on a user mailbox (mboxconfig user.doej expire 100) 3. run cyr_expire -E 7 -X 100 4. run unexpunge -l user.doej 5. bus error. unexpunge works fine until you run cyr_expire, then there is some type of corruption happening with the cache files. zing From brong at fastmail.fm Tue May 5 17:50:39 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Wed, 6 May 2009 07:50:39 +1000 Subject: unexpunge segfault part 2 In-Reply-To: References: Message-ID: <20090505215039.GA10549@brong.net> On Tue, May 05, 2009 at 01:18:46PM -0400, Zing wrote: > I'm also seeing a segfault (i've seen bus error also) in unexpunge -l when > I set an expire annotation on a mailbox and run cyr_expire. I'm running > cyrus 2.3.14 + the ipurge patch from Bron on f10 (x86_64), but that > doesn't help (i didn't think it would): You want the "disable EXPUNGE_FORCE" patch I committed to CVS yesterday :) (I've also got patches that turn that crash into a syslogged error instead, but they don't actually solve the corruption) Bron. From zing at fastmail.fm Tue May 5 19:08:41 2009 From: zing at fastmail.fm (Zing Zing Shishak) Date: Tue, 05 May 2009 19:08:41 -0400 Subject: unexpunge segfault part 2 In-Reply-To: <20090505215039.GA10549@brong.net> References: <20090505215039.GA10549@brong.net> Message-ID: <4A00C6F9.2000002@fastmail.fm> Bron Gondwana wrote: > On Tue, May 05, 2009 at 01:18:46PM -0400, Zing wrote: >> I'm also seeing a segfault (i've seen bus error also) in unexpunge -l when >> I set an expire annotation on a mailbox and run cyr_expire. I'm running >> cyrus 2.3.14 + the ipurge patch from Bron on f10 (x86_64), but that >> doesn't help (i didn't think it would): > > You want the "disable EXPUNGE_FORCE" patch I committed to CVS yesterday :) oh, perfect timing. :) That seems to do the trick as a workaround. thanks. > (I've also got patches that turn that crash into a syslogged error instead, > but they don't actually solve the corruption) good to know. i can test out any patches if people want to try to solve the corruption... As I was searching the dev archives, a post by James E. Blair last year seemed to have an analysis: http://lists.andrew.cmu.edu/pipermail/cyrus-devel/2008-September/000935.html zing From brong at fastmail.fm Tue May 5 20:20:39 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Wed, 6 May 2009 10:20:39 +1000 Subject: unexpunge segfault part 2 In-Reply-To: <4A00C6F9.2000002@fastmail.fm> References: <20090505215039.GA10549@brong.net> <4A00C6F9.2000002@fastmail.fm> Message-ID: <20090506002039.GA23892@brong.net> On Tue, May 05, 2009 at 07:08:41PM -0400, Zing Zing Shishak wrote: > Bron Gondwana wrote: > > On Tue, May 05, 2009 at 01:18:46PM -0400, Zing wrote: > >> I'm also seeing a segfault (i've seen bus error also) in unexpunge -l when > >> I set an expire annotation on a mailbox and run cyr_expire. I'm running > >> cyrus 2.3.14 + the ipurge patch from Bron on f10 (x86_64), but that > >> doesn't help (i didn't think it would): > > > > You want the "disable EXPUNGE_FORCE" patch I committed to CVS yesterday :) > > oh, perfect timing. :) That seems to do the trick as a workaround. thanks. Cool :) It seems the most sensible approach - NEVER delete the files on disk completely unless doing a cyr_expire run. > > (I've also got patches that turn that crash into a syslogged error instead, > > but they don't actually solve the corruption) > > good to know. i can test out any patches if people want to try to solve > the corruption... The really interesting ones aren't production tested yet - a complete rewrite of all cache accesses to go through the one codepath is in production at FastMail, but the delayed cache loading isn't. Delayed cache loading is nice, because if you select a mailbox and never make a query that actually _needs_ the cache, it doesn't get opened or statted or anything. Reduces IO. So anyway - I should get back to work on that soon. First I need to figure out what missing sync_log commands are needed to make CONDSTORE replication reliable. I've just enabled CONDSTORE for a sacrificial few thousand users to see what happens :) Including me of course! The new Thunderbird beta supports using it, so I want it on! > As I was searching the dev archives, a post by James E. Blair last year > seemed to have an analysis: > > http://lists.andrew.cmu.edu/pipermail/cyrus-devel/2008-September/000935.html Yes, now that is interesting. I think I skimmed over it at the time, but it raises some good points. The 200Gb virtual file size - sounds like the "exists" field in the cyrus.expunge file got some totally bogus value. Index files get written at an offset calculated by exists rather than by actual file size so that a failed append doesn't break anything. I haven't done any work at solving that issue. The whole expunge codepath, despite having been cleaned up a couple of times over the years, could still do with some more TLC! Bron. From Hagedorn at uni-koeln.de Wed May 6 05:20:03 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Wed, 06 May 2009 11:20:03 +0200 Subject: unexpunge segfault part 2 In-Reply-To: <20090506002039.GA23892@brong.net> References: <20090505215039.GA10549@brong.net> <4A00C6F9.2000002@fastmail.fm> <20090506002039.GA23892@brong.net> Message-ID: <9B5EB8B24358309A3F8988F2@tyrion.rrz.uni-koeln.de> --On 6. Mai 2009 10:20:39 +1000 Bron Gondwana wrote: > I've just enabled CONDSTORE for > a sacrificial few thousand users to see what happens :) Including > me of course! > > The new Thunderbird beta supports using it, so I want it on! Interesting. I'd ignored that so far, but now I got curious. I have enabled it on my INBOX and managed to do so on all my subfolders like this: > mboxcfg user/xxx/* condstore true Is that how you did it or is there a better way? And how exactly does the new mailbox_default_options work? The manpage only says: Default "options" field for the mailbox on create. You?ll want to know what you?re doing before setting this, but it can apply some default annotations like condstore or duplicate supression So how would I enable condstore for all new mailboxes? -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (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: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090506/7d255a95/attachment.bin From brong at fastmail.fm Wed May 6 05:34:30 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Wed, 06 May 2009 19:34:30 +1000 Subject: unexpunge segfault part 2 In-Reply-To: <9B5EB8B24358309A3F8988F2@tyrion.rrz.uni-koeln.de> References: <20090505215039.GA10549@brong.net> <4A00C6F9.2000002@fastmail.fm><20090506002039.GA23892@brong.net> <9B5EB8B24358309A3F8988F2@tyrion.rrz.uni-koeln.de> Message-ID: <1241602470.23104.1314052589@webmail.messagingengine.com> On Wed, 06 May 2009 11:20 +0200, "Sebastian Hagedorn" wrote: > --On 6. Mai 2009 10:20:39 +1000 Bron Gondwana wrote: > > > I've just enabled CONDSTORE for > > a sacrificial few thousand users to see what happens :) Including > > me of course! > > > > The new Thunderbird beta supports using it, so I want it on! > > Interesting. I'd ignored that so far, but now I got curious. I have > enabled > it on my INBOX and managed to do so on all my subfolders like this: > > > mboxcfg user/xxx/* condstore true > > Is that how you did it or is there a better way? And how exactly does the > new mailbox_default_options work? The manpage only says: I used setannotation directly via an IMAP connection as the admin user for each mailbox. I wrapped it all in a little script that can do it per "prefix" or whatever on any store. It's easy for me because we can get a Mail::IMAPTalk object connected as the admin user to any store in about 2 lines of perl. > Default "options" field for the mailbox on create. You?ll > want to > know what you?re doing before setting this, but it can apply > some > default annotations like condstore or duplicate supression > > So how would I enable condstore for all new mailboxes? set it to "2". Yes, it's deep magic voodoo and sort of sucks. I'd prefer to just make CONDSTORE the default for everyone all the time - which I'm looking in to now. If the IO hit isn't too high, I'll do it :) Bron. -- Bron Gondwana brong at fastmail.fm From gbulfon at sonicle.com Thu May 7 06:04:52 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Thu, 7 May 2009 12:04:52 +0200 (CEST) Subject: finding by message id Message-ID: <14130686.83.1241690692582.JavaMail.root@www> Hahahaha, yes you're true....all users lie... Yes, I believe I can do what you said about logging, but it's too late now... I just wondered if there were some kind of cyrus utlity or just db utility to see if cyrus considers that id already used....and maybe where... Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com ---------------------------------------------------------------------------------- Da: Sebastian Hagedorn A: Gabriele Bulfon Cc: info-cyrus at lists.andrew.cmu.edu Data: 5 maggio 2009 15.58.42 CEST Oggetto: Re: finding by message id --On 5. Mai 2009 15:45:36 +0200 Gabriele Bulfon wrote: > I've got a message logged by posfix with a specific message id, and > stated as correctly sent to cyrus. But the user of the imap mailbox is > sure that he never received that message. All users lie. > No filter is setup to move the > message elsewhere, and no error is visible anywhere. So, I've got the > message id from the postfix log. > I know that cyrus checks for duplicate ids, so he's got quick knoweledge > of every id in the imap folders. How can I ask cyrus for an ID and see if > it actually exists somewhere? And how to find it without having to scan > all imap folders? Cyrus can log the message id's it delivers, e.g.: May 5 15:49:24 lvr13 lmtpunix[1219]: Delivered: <101915.23.1241531136265.JavaMail.gbulfon at pgbulfon> to mailbox: user.a0620 I'm not sure which log level you need to get these messages. -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. .:.:.:.Skype: shagedorn.:.:.:. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090507/8532bfbb/attachment.html From gbulfon at sonicle.com Thu May 7 07:13:24 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Thu, 7 May 2009 13:13:24 +0200 (CEST) Subject: misterious duplicate message-id Message-ID: <5828900.86.1241694804586.JavaMail.root@www> Hello, as a follow up to my "finding by message id" message, I found the reason why that message was silently discarded: for 3 times that Outlook user could send an email with the exact same message-id generated by Outlook! How is it possible?! Gabriele. Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090507/efded904/attachment.html From Hagedorn at uni-koeln.de Thu May 7 09:45:24 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Thu, 07 May 2009 15:45:24 +0200 Subject: misterious duplicate message-id In-Reply-To: <5828900.86.1241694804586.JavaMail.root@www> References: <5828900.86.1241694804586.JavaMail.root@www> Message-ID: <2D54C97E8D8D9F884F19F59C@tyrion.rrz.uni-koeln.de> --On 7. Mai 2009 13:13:24 +0200 Gabriele Bulfon wrote: > as a follow up to my "finding by message id" message, I found the reason > why that message was silently discarded: for 3 times that Outlook user > could send an email with the exact same message-id generated by Outlook! > How is it possible?! That's a known Outlook bug. I don't recall the precise circumstances, but I've seen that again and again. -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (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: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090507/0d36efab/attachment.bin From gbulfon at sonicle.com Thu May 7 08:11:36 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Thu, 7 May 2009 14:11:36 +0200 (CEST) Subject: misterious duplicate message-id Message-ID: <10208109.89.1241698296652.JavaMail.root@www> I supposed it was a known bug....but it seems to be unknown to google! I looked for "outlook duplicate message-id" in various forms....no result! Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com ---------------------------------------------------------------------------------- Da: Sebastian Hagedorn A: Gabriele Bulfon Cc: info-cyrus at lists.andrew.cmu.edu Data: 7 maggio 2009 15.45.24 CEST Oggetto: Re: misterious duplicate message-id --On 7. Mai 2009 13:13:24 +0200 Gabriele Bulfon wrote: > as a follow up to my "finding by message id" message, I found the reason > why that message was silently discarded: for 3 times that Outlook user > could send an email with the exact same message-id generated by Outlook! > How is it possible?! That's a known Outlook bug. I don't recall the precise circumstances, but I've seen that again and again. -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. .:.:.:.Skype: shagedorn.:.:.:. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090507/b298ca24/attachment.html From awilliam at whitemice.org Thu May 7 10:19:46 2009 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Thu, 07 May 2009 10:19:46 -0400 Subject: misterious duplicate message-id In-Reply-To: <2D54C97E8D8D9F884F19F59C@tyrion.rrz.uni-koeln.de> References: <5828900.86.1241694804586.JavaMail.root@www> <2D54C97E8D8D9F884F19F59C@tyrion.rrz.uni-koeln.de> Message-ID: <1241705986.5372.7.camel@linux-m3mt> On Thu, 2009-05-07 at 15:45 +0200, Sebastian Hagedorn wrote: > --On 7. Mai 2009 13:13:24 +0200 Gabriele Bulfon wrote: > > as a follow up to my "finding by message id" message, I found the reason > > why that message was silently discarded: for 3 times that Outlook user > > could send an email with the exact same message-id generated by Outlook! > > How is it possible?! > That's a known Outlook bug. I don't recall the precise circumstances, but > I've seen that again and again. If you do a re-send in Outlook it seems to resend the *exact* message, including Message-ID. The "fix" for this is to use M$-Exchange 2000 SP1 or later; their MTA (on the server) rewrites the Message-ID of the submitted message to a unique value. Someone told me there is an issue with re-using Message-IDs in the DSN functionality too, but I've never seen that one. -- OpenGroupware developer: awilliam at whitemice.org OpenGroupare & Cyrus IMAPd documenation @ From Hagedorn at uni-koeln.de Thu May 7 10:23:57 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Thu, 07 May 2009 16:23:57 +0200 Subject: misterious duplicate message-id In-Reply-To: <10208109.89.1241698296652.JavaMail.root@www> References: <10208109.89.1241698296652.JavaMail.root@www> Message-ID: --On 7. Mai 2009 14:11:36 +0200 Gabriele Bulfon wrote: > I supposed it was a known bug....but it seems to be unknown to google! > I looked for "outlook duplicate message-id" in various forms....no result! Not so here ... e.g.: -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (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: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090507/64d1631b/attachment.bin From gbulfon at sonicle.com Thu May 7 08:24:18 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Thu, 7 May 2009 14:24:18 +0200 (CEST) Subject: misterious duplicate message-id Message-ID: <9362809.95.1241699058581.JavaMail.root@www> ...the "fix" is to use Exchange?!?!?!?!?!?! My users use Cyrus+Postfix+Solaris10!!!! Should I convert all my installations to Exchange????? ...there must be another solution, come on.... Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com ---------------------------------------------------------------------------------- Da: Adam Tauno Williams A: info-cyrus at lists.andrew.cmu.edu Data: 7 maggio 2009 16.19.46 CEST Oggetto: Re: misterious duplicate message-id On Thu, 2009-05-07 at 15:45 +0200, Sebastian Hagedorn wrote: > --On 7. Mai 2009 13:13:24 +0200 Gabriele Bulfon wrote: > > as a follow up to my "finding by message id" message, I found the reason > > why that message was silently discarded: for 3 times that Outlook user > > could send an email with the exact same message-id generated by Outlook! > > How is it possible?! > That's a known Outlook bug. I don't recall the precise circumstances, but > I've seen that again and again. If you do a re-send in Outlook it seems to resend the *exact* message, including Message-ID. The "fix" for this is to use M$-Exchange 2000 SP1 or later; their MTA (on the server) rewrites the Message-ID of the submitted message to a unique value. Someone told me there is an issue with re-using Message-IDs in the DSN functionality too, but I've never seen that one. -- OpenGroupware developer: awilliam at whitemice.org OpenGroupare & Cyrus IMAPd documenation @ ---- 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/20090507/d9d09b6f/attachment-0001.html From gbulfon at sonicle.com Thu May 7 08:27:05 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Thu, 7 May 2009 14:27:05 +0200 (CEST) Subject: misterious duplicate message-id Message-ID: <27425423.98.1241699225191.JavaMail.root@www> Thx a lot :) You mean I should configure cyrus to allow for duplicate ids? Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com ---------------------------------------------------------------------------------- Da: Sebastian Hagedorn A: Gabriele Bulfon Cc: info-cyrus at lists.andrew.cmu.edu Data: 7 maggio 2009 16.23.57 CEST Oggetto: Re: misterious duplicate message-id --On 7. Mai 2009 14:11:36 +0200 Gabriele Bulfon wrote: > I supposed it was a known bug....but it seems to be unknown to google! > I looked for "outlook duplicate message-id" in various forms....no result! Not so here ... e.g.: -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. .:.:.:.Skype: shagedorn.:.:.:. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090507/420b0c9a/attachment.html From brennan at columbia.edu Thu May 7 10:50:07 2009 From: brennan at columbia.edu (Joseph Brennan) Date: Thu, 07 May 2009 10:50:07 -0400 Subject: misterious duplicate message-id In-Reply-To: <9362809.95.1241699058581.JavaMail.root@www> References: <9362809.95.1241699058581.JavaMail.root@www> Message-ID: <7180E21020CC93FC31953297@sodor.cc.columbia.edu> Gabriele Bulfon wrote: > ...the "fix" is to use Exchange?!?!?!?!?!?! My users use > Cyrus+Postfix+Solaris10!!!! > Should I convert all my installations to Exchange????? > > ...there must be another solution, come on.... Their business model is to make Outlook _almost_ work right with SMTP and POP/IMAP, but have lots of subtle problems that go away when you convert people to their Exchange product. I have to say that this is one of the most blatant examples, where they actually tell you that the fix for Outlook's problem is to use Exchange. Or you can believe it's incompetence, but I don't, because Microsoft could afford to hire expert engineers and make it work right if they wanted to. Joseph Brennan Lead Email Systems Engineer Columbia University Information Technology From bawood at umich.edu Thu May 7 11:15:50 2009 From: bawood at umich.edu (Brian Awood) Date: Thu, 7 May 2009 11:15:50 -0400 Subject: finding by message id In-Reply-To: <101915.23.1241531136265.JavaMail.gbulfon@pgbulfon> References: <101915.23.1241531136265.JavaMail.gbulfon@pgbulfon> Message-ID: <200905071115.50516.bawood@umich.edu> On Tuesday 05 May 2009 @ 09:45, Gabriele Bulfon wrote: > Hello, > I've got a message logged by posfix with a specific message id, and > stated as correctly sent to cyrus. But the user of the imap mailbox > is sure that he never received that message. No filter is setup to > move the message elsewhere, and no error is visible anywhere. So, > I've got the message id from the postfix log. > I know that cyrus checks for duplicate ids, so he's got quick > knoweledge of every id in the imap folders. How can I ask cyrus for > an ID and see if it actually exists somewhere? And how to find it > without having to scan all imap folders? > Thanx for any help. You can try cyr_dbtool, whether the message ID is still listed or not will depend on how long ago it was delivered and the time period used for clearing the duplicate database. Usually cyr_expire -E "somevalue" is run on a regular basis to prune old entries from the database. The message IDs are written to the file deliver.db, the location and format depends on your configuration. For example if it's in /var/imap and a berkeley-nosync database you could run; cyr_dbtool /var/imap/deliver.db berkeley-nosync show |grep "MSGID" Brian From adam at morrison-ind.com Thu May 7 11:37:38 2009 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Thu, 07 May 2009 11:37:38 -0400 Subject: misterious duplicate message-id In-Reply-To: <7180E21020CC93FC31953297@sodor.cc.columbia.edu> References: <9362809.95.1241699058581.JavaMail.root@www> <7180E21020CC93FC31953297@sodor.cc.columbia.edu> Message-ID: <1241710658.28186.8.camel@sandbox64.mormail.com> > Or you can believe it's incompetence, but I don't, because Microsoft > could afford to hire expert engineers and make it work right if they > wanted to. "Never attribute to malice what can be explained by incompetence." Or in this case possibly indifference. But from indifference to conspiracy is a not a single step. There is no cause to invoke conspiracy here; at any software house the list of bugs and feature requests soon becomes immense and things very often get solved in a non-optimal manner. That's just human [and you don't make money by doing everything you can afford to do, the making money part comes in by doing somewhat *less* than you can afford to do; that's just good business and what *everyone* does]. And the constant conspiracy charges diminishes the credibility of the community. From morgan at orst.edu Thu May 7 15:38:58 2009 From: morgan at orst.edu (Andrew Morgan) Date: Thu, 7 May 2009 12:38:58 -0700 (PDT) Subject: misterious duplicate message-id In-Reply-To: <27425423.98.1241699225191.JavaMail.root@www> References: <27425423.98.1241699225191.JavaMail.root@www> Message-ID: On Thu, 7 May 2009, Gabriele Bulfon wrote: > Thx a lot :) > You mean I should configure cyrus to allow for duplicate ids? Sure, just set the following in imapd.conf: duplicatesuppression: 0 Who cares if you deliver the same message multiple times? So far I've never seen it happen here. Andy From paul at vandervlis.nl Fri May 8 04:56:12 2009 From: paul at vandervlis.nl (Paul van der Vlis) Date: Fri, 08 May 2009 10:56:12 +0200 Subject: Disable pop for some users Message-ID: <4A03F3AC.7000704@vandervlis.nl> Hello, Is it possible to disable POP for some users, so they can only use IMAP? This to avoid the risk that people configure POP by mistake in their client, and download all mail. But other users still need POP... With regards, Paul van der Vlis. -- http://www.vandervlis.nl/ From rbaum at nexplosion.de Fri May 8 05:26:49 2009 From: rbaum at nexplosion.de (Roland B) Date: Fri, 8 May 2009 11:26:49 +0200 Subject: Disable pop for some users In-Reply-To: <4A03F3AC.7000704@vandervlis.nl> References: <4A03F3AC.7000704@vandervlis.nl> Message-ID: <200905081126.49528.rbaum@nexplosion.de> You can make this by the following workaround: starting imapd and pop3d with different imap.conf-files within these different imapd.conf-files, you can make some appropriate settings to differ if the present user may use POP3/IMAP or not. For myself, i did the authentication job against a PostgreSQL database with auxprop. There, it was easy to use two different sql-statements within these two imapd.conf-files to achieve exactly this :-) On Freitag, 8. Mai 2009 10:56:12 Paul van der Vlis wrote: > Hello, > > Is it possible to disable POP for some users, so they can only use IMAP? > This to avoid the risk that people configure POP by mistake in their > client, and download all mail. > > But other users still need POP... > > With regards, > Paul van der Vlis. -- Roland -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090508/59752554/attachment.html From brong at fastmail.fm Fri May 8 06:21:54 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Fri, 8 May 2009 20:21:54 +1000 Subject: Disable pop for some users In-Reply-To: <200905081126.49528.rbaum@nexplosion.de> References: <4A03F3AC.7000704@vandervlis.nl> <200905081126.49528.rbaum@nexplosion.de> Message-ID: <20090508102154.GA15426@brong.net> On Fri, May 08, 2009 at 11:26:49AM +0200, Roland B wrote: > You can make this by the following workaround: > > starting imapd and pop3d with different imap.conf-files > within these different imapd.conf-files, you can make some appropriate settings > to differ if the present user may use POP3/IMAP or not. > > For myself, i did the authentication job against a PostgreSQL database with > auxprop. There, it was easy to use two different sql-statements within these > two imapd.conf-files to achieve exactly this :-) We use nginx similarly. We have a custom authentication daemon which can talk saslauthd protocol to Cyrus or HTTP protocol to nginx (since that's what it prefers). One nice thing about our setup is that we can provide an informative message to our users about why the connection is being refused (basically "pay us more money and we'll give you POP" ;) Bron. From D.J.Mayo at bath.ac.uk Fri May 8 06:59:58 2009 From: D.J.Mayo at bath.ac.uk (David Mayo) Date: Fri, 08 May 2009 11:59:58 +0100 Subject: mupdate - GSSAPI authentication Message-ID: <4A0410AE.5070903@bath.ac.uk> Hi guys, We are upgrading to cyrus-imap-2.3.14 and are looking at using mupdate for the first time, but we are having problems with the GSSAPI authentication between mupdate hosts. We have two servers - sauber and tyrrell. sauber is one of the backend hosts and tyrrell is the mupdate master. We have generated service principals for them and placed them in their own key tabs: mupdate/sauber.bath.ac.uk imap/sauber.bath.ac.uk mupdate/tyrrell.bath.ac.uk imap/tyrrell.bath.ac.uk We initialise these keytabs in the START section of cyrus.conf with the following line: # authenticate to Kerberos auth cmd="/usr/bin/kinit -k -t /opt/etc/imapd/krb5.keytab mupdate/sauber.bath.ac.uk" (obviously the mupdate master uses mupdate/tyrrell.bath.ac.uk) If we run mupdatetest after starting the master daemons we see the following output on sauber: sauber $ /opt/packages/cyrus-imapd/bin/mupdatetest tyrrell S: * AUTH "PLAIN" "GSSAPI" S: * STARTTLS S: * PARTIAL-UPDATE S: * OK MUPDATE "tyrrell.bath.ac.uk" "Cyrus Murder" "v2.3.14" "(master)" C: A01 AUTHENTICATE "GSSAPI" {796+} YIICUAYJKoZIhvcSAQICAQBuggI/MIICO6ADAgEFoQMCAQ6iBwMFACAAAACjggFCYYIBPjCCATqgAwIBBaEMGwpCQVRILkFDLlVLoiowKKADAgEDoSEwHxsHbXVwZGF0ZRsUc2F1YmVyLXoxLmJhdGguYWMudWujgfgwgfWgAwIBEqEDAgEDooHoBIHlPVA1HD73jR4nq9Hb68acrSI8xYmDdZSJKFzualaEiI9UyhvV5nfMKIbjNaWwk5IYqI8Jm6MPIpHlsCrauF9WaiOwlYFPErEu0id4jWpl/FmqBoG+LdfivBIcpOLMWDNvRZYuarje/b97MEId8G5zikjr9wQSCjA0Yo68DtIbAPsLIWXCuVd5Pf8gY8S0U3nQeSS/YvI3hgvn9Aau4fCU/A9UWx50HrV+8AqEXqtrZ6HatkiZn1HgbvG+3iaPPKfiKeM96ZKydluJX+iI8iojF6IObakbCFdaqeploQQaqKjsradGJqSB3zCB3KADAgESooHUBIHR1h3Qku1JS6q6PkUXU48xtkn3r/SwKKAZ9MU/b2ieGfHw+1mmoo6a8A4SSOjep/CCU5jCRte2yURf+j0gCkyuH/8YhP1xxITn8ljDCkLFr0zZIWOOXg6yEB4Rpg8kUJx7xeIsTLHIc4BQE+MfDxqrKFkwM0o+RTZEd5cKICdk5Tq1bu3d/zsDuSk2x1QT77iQUMIu7g2k+tSPobMgmphjLcwqrknc68gmjTbn/NYe6ltfteRzTDQzRiga8cU3nlC/MEYA9Wc3AFIxh93GC1WqTuU= S: YIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvLEn4nvf4zsyDbNlSFPQe3SwAxL7iusPxROKhmcdUc9TRrN2290JAKNL9odMnOeOcEcVsmJHAq55ux476T6iF7L+G2XLWJiseyjeCDar7PpfA0p6h+TNFKnuqHhB7BNyVgGsLrGT91R4GHa0Y0LEP C: S: BQQF/wAMAAAAAAAAOK+zDAcAEADNmu4T0KaBjcxG0O4= C: BQQE/wAMAAAAAAAAGT4NlQQABAAv1geB3Ly5Xf/bqt8= failure: prot layer failure And resulting logs on tyrrell: May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15800]: [ID 921384 mail.debug] accepted connection May 8 10:10:35 tyrrell.bath.ac.uk master[15766]: [ID 970914 mail.error] process 15800 exited, signaled to death by 11 May 8 10:10:35 tyrrell.bath.ac.uk master[15766]: [ID 684980 mail.warning] service mupdate pid 15800 in READY state: terminated abnormally May 8 10:10:35 tyrrell.bath.ac.uk master[15803]: [ID 392559 mail.debug] about to exec /opt/packages/cyrus-imapd/bin/mupdate May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 518349 mail.debug] executed May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 mail.debug] New worker thread started, for a total of 1 May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 mail.debug] New worker thread started, for a total of 2 May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 mail.debug] New worker thread started, for a total of 3 May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 mail.debug] New worker thread started, for a total of 4 May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 mail.debug] New worker thread started, for a total of 5 Looking on sauber, the mupdate/tyrrell.bath.ac.uk principal has already been exchanged by the time the mupdate server crashes: sauber $ klist Ticket cache: FILE:/tmp/krb5cc_58 Default principal: mupdate/sauber.bath.ac.uk at BATH.AC.UK Valid starting Expires Service principal 08/05/2009 10:10:31 08/05/2009 20:10:31 krbtgt/BATH.AC.UK at BATH.AC.UK renew until 15/05/2009 10:10:31 08/05/2009 10:10:31 08/05/2009 20:10:31 mupdate/tyrrell.bath.ac.uk at BATH.AC.UK renew until 15/05/2009 10:10:31 While trying to make this work, we did find one way - use a principal that has a password rather than in the keytab: sauber $ kinit cyrus Password for cyrus at BATH.AC.UK: sauber $ /opt/packages/cyrus-imapd/bin/mupdatetest tyrrell S: * AUTH "PLAIN" "GSSAPI" S: * STARTTLS S: * PARTIAL-UPDATE S: * OK MUPDATE "tyrrell.bath.ac.uk" "Cyrus Murder" "v2.3.14" "(master)" C: A01 AUTHENTICATE "GSSAPI" {772+} YIICPwYJKoZIhvcSAQICAQBuggIuMIICKqADAgEFoQMCAQ6iBwMFACAAAACjggFDYYIBPzCCATugAwIBBaEMGwpCQVRILkFDLlVLoiowKKADAgEDoSEwHxsHbXVwZGF0ZRsUc2F1YmVyLXoxLmJhdGguYWMudWujgfkwgfagAwIBEqEDAgEDooHpBIHmuu+hTMP3LCm1YcazFaEgALSsEnuUnd3k+wIaSSW2doz9+Rrbp8HAuKOB0wLUebUNTPuBXrjBpcAGQisNQczjKMFwCaMMUnyvJ0GdcWRLZHBeoB+kTB6X0E3mtvgjeCdGr9ti70noQBdDHXlvWWyhPOxrIasUi1EDxzw+v/iaO2vagQqolWPN/TOC2ydpgBDbqawW6DjF4Bv4vPe7DCruKQeGzgT1iaPu5afp8kyEFehPHAwtvwB9toPgZI9FEm4SWmjiTfdjPuFs7tjWQZermemeKmMgod8TbHJ8zsmyMoRs1WxqIROkgc0wgcqgAwIBEqKBwgSBv/Bw1XraXVNjA1HQ8e8gk2GTm57PW6/hLWfjZwhsY4yKojltxJXkovaecdbesbu9oa9vT4m+p8QcxQ74pdPKHYwvx8OZh9epNhVbnllMpWyWP8PXuwQCqSWjPhgTbvNjNfVIwpNd7IjtMI99sRc1q5+jDiJE+yblWDpQOPP7rCkMVYxsCT9FQ0cgaU7IsRT4r+jw45HG99w4cvqLhA9RHwg9cXfrg3umajngNovT13CD0deXlQjWwlO7m9bZN/zI S: YIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6ysRnz7c5/jXdrML5GDO3yUDRd6e483bvcFFSv7Om/LcVmstU3vc7py4zljh1sI9cqP6wV0d6NKtUNJBEGaQNciHdasq+ywbgRsMvAsAM5/m7i06vByFOdRvZX2MxCdEMVW9KbAGRIHBvK6JQFxG C: S: BQQF/wAMAAAAAAAAOaMBYAcAEAAlGhxrUx+QK7vb6rg= C: BQQE/wAMAAAAAAAAELjSmQQABAB9zam/40LRAaw4zaw= S: A01 OK "Authenticated" Authenticated. Security strength factor: 56 C: Q01 LOGOUT Q01 OK "bye-bye" Connection closed. sauber $ klist Ticket cache: FILE:/tmp/krb5cc_58 Default principal: cyrus at BATH.AC.UK Valid starting Expires Service principal 08/05/2009 10:27:37 08/05/2009 20:27:37 krbtgt/BATH.AC.UK at BATH.AC.UK renew until 15/05/2009 10:27:37 08/05/2009 10:27:43 08/05/2009 20:27:37 mupdate/tyrrell.bath.ac.uk at BATH.AC.UK renew until 15/05/2009 10:27:37 Relevant logs from tyrrell: May 8 10:27:42 tyrrell.bath.ac.uk mupdate[15803]: [ID 596527 mail.notice] login: sauber.bath.ac.uk [138.38.132.132] cyrus GSSAPI User logged in The *only* difference is we are using a default principal of cyrus at BATH.AC.UK rather than mupdate/sauber.bath.ac.uk at BATH.AC.UK. This does not seem to make sense. Relevant lines from config files: sauber imapd.conf: admins: cyrus imap/sauber.bath.ac.uk sasl_pwcheck_method: saslauthd sasl_mech_list: plain gssapi mupdate_server: tyrrell.bath.ac.uk mupdate_config: standard mupdate_authname: mupdate/sauber.bath.ac.uk mupdate_username: cyrus tyrrell imapd.conf: admins: cyrus mupdate/sauber.bath.ac.uk sasl_pwcheck_method: saslauthd sasl_mech_list: plain gssapi We compiled cyrus-imapd-2.3.14 with the following flags: PROGDIR=/opt/packages/cyrus-imapd \ ./configure --prefix=$PROGDIR --mandir=/opt/share/man \ --sysconfdir=/opt/etc/imapd \ --enable-listext --enable-idled --with-snmp \ --enable-murder \ --enable-replication \ --enable-nntp \ --disable-gssapi \ --with-cyrus-group=cyrus \ --with-cyrus-user=cyrus \ --with-cyrus-prefix=$PROGDIR \ --with-openssl=$OPENSSLDIR \ --with-ucdsnmp=/opt/packages/net-snmp \ --with-sasl=$SASLDIR \ --with-dbdir=/opt/packages/berkeley-db \ --with-syslogfacility=MAIL We are using Cyrus SASL 2.1.22 built like this: PROGDIR=/opt/packages/cyrus-sasl \ ./configure --prefix=$PROGDIR --sysconfdir=/opt/etc/cyrus \ --with-plugindir=/opt/packages/cyrus-sasl/lib/sasl2 \ --enable-shared \ --disable-static \ --disable-java \ --with-configdir=/opt/etc/sasl2 \ --disable-krb4 \ --with-gss_impl=mit \ --with-rc4 \ --with-dblib=berkeley \ --with-saslauthd=/var/sasl2 --without-pwcheck \ --with-devrandom=/dev/urandom \ --enable-anon \ --enable-cram \ --enable-digest \ --enable-ntlm \ --enable-plain \ --enable-login \ --without-ldap \ --disable-otp \ --disable-ldapdb \ --disable-sql --without-mysql --without-pgsql --without-sqlite \ --enable-gssapi=$KERBEROSDIR \ --with-openssl=$OPENSSLDIR We are using MIT KerberosV 1.6.3 and running on Solaris 10 x86. tyrrell is actually a Solaris 'Zone' on sauber. If anyone has any ideas of what might be causing this problem we'd be very interested! Regards, Dave. David Mayo Networks/Systems Administrator University of Bath Computing Services Tel: +44 1225 38 6046 Email: D.J.Mayo at bath.ac.uk From gbulfon at sonicle.com Fri May 8 09:32:47 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Fri, 8 May 2009 15:32:47 +0200 (CEST) Subject: Sieve international charachters Message-ID: <23755929.20.1241789567052.JavaMail.root@www> Hello, does sieve filtering accepts international characters (e.g. ?,? and so on)? Until now I could never input an automatic response containing such characters. But users are a bit disappointed to use apostrophe instead of their normal chars. Is there any way to encode such chars inside sieve scripting? Thx for any help. Gabriele. Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090508/aef479fb/attachment.html From brong at fastmail.fm Sat May 9 07:49:04 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Sat, 9 May 2009 21:49:04 +1000 Subject: Sieve international charachters In-Reply-To: <23755929.20.1241789567052.JavaMail.root@www> References: <23755929.20.1241789567052.JavaMail.root@www> Message-ID: <20090509114904.GA17560@brong.net> On Fri, May 08, 2009 at 03:32:47PM +0200, Gabriele Bulfon wrote: > Hello, > does sieve filtering accepts international characters (e.g. ?,? and so on)? > Until now I could never input an automatic response containing such characters. > But users are a bit disappointed to use apostrophe instead of their normal chars. > Is there any way to encode such chars inside sieve scripting? > Thx for any help. YES! Except I haven't pushed it into upstream Cyrus yet... http://github.com/brong/cyrus-sieve/tree/57b26fc75fe1748e54c8f6d51c16e8d8f8ee10bf It needs a bunch of changes from my cyrus-imapd tree as well to provide the UTF8 decoding functionality. I'm hoping to get it all polished up and ready for the next Cyrus release. It's a pretty intrusive set of changes, but it's been running happily for over a month here at FastMail now. Bron. From reinaldoc at gmail.com Sat May 9 16:22:27 2009 From: reinaldoc at gmail.com (Reinaldo de Carvalho) Date: Sat, 9 May 2009 17:22:27 -0300 Subject: LIST and GETANNOTATTION divergence Message-ID: <4a5881460905091322m6785f6f4x1e54aa9c9f183562@mail.gmail.com> Hi, I'd like show this (cyrus 2.2.13-14 - debian lenny): #### LBFH6 LIST * "user/re%" 17:05:12.057484 IP 192.168.0.2.143 > 192.168.0.2.42666: P 703:974(271) ack 152 win 512 E..C.. at .@..z.............c...Z.h........... .,...,..* LIST (\HasChildren) "/" "user/reinaldo.carvalho at example.com" * LIST (\HasChildren) "/" "user/renata.lima at example.org" * LIST (\HasChildren) "/" "user/resana.vld at example.net" * LIST (\HasChildren) "/" "user/rei" LBFH6 OK Completed (0.000 secs 21 calls) #### LBFH8 GETANNOTATION "user/re%" "/vendor/cmu/cyrus-imapd/partition" "value.shared" 17:10:15.367304 IP 192.168.0.2.143 > 192.168.0.2.42666: P 1007:1115(108) ack 250 win 512 E..... at .@................c...Z............. .. /.. /* ANNOTATION "user/rei" "/vendor/cmu/cyrus-imapd/partition" ("value.shared" "default") LBFH8 OK Completed #### I'd like suggest a improvement. Getannotation could search all domains, and not only default domain. To get partition for all users, currently is required LIST "user/%" and get annotation foreach mailbox. If getannotation results like LIST will be more fast retrive many informations. Thranks, -- Reinaldo de Carvalho http://korreio.sf.net http://python-cyrus.sf.net From mikeegg1 at mac.com Sun May 10 14:08:50 2009 From: mikeegg1 at mac.com (Mike Eggleston) Date: Sun, 10 May 2009 13:08:50 -0500 Subject: requesting help please, sendmail not talking to cyrus-imapd Message-ID: <20090510180850.GA8004@mail.mac.com> Morning, I have been working this morning on upgrading Samba. While testing the upgrade I noticed that I was no longer receiving email. I have rolled back the upgrade, including the modification to the Samba LDAP schema. The log says multiple instances of: May 10 12:49:25 elo imaps[4146]: auxpropfunc error invalid parameter supplied May 10 12:49:25 elo imaps[4146]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb May 10 12:49:25 elo pop3[4147]: auxpropfunc error invalid parameter supplied May 10 12:49:25 elo pop3[4147]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb May 10 12:49:25 elo imap[4144]: auxpropfunc error invalid parameter supplied May 10 12:49:25 elo imap[4144]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb May 10 12:49:42 10.1.2.37 named[1982]: client 10.1.2.96#57617: update 'pointwise.com/IN' denied May 10 12:49:51 elo dhcpd: DHCPREQUEST for 10.1.2.173 from 00:1e:4f:c3:63:0a (eliot) via eth0 May 10 12:49:51 elo dhcpd: DHCPACK on 10.1.2.173 to 00:1e:4f:c3:63:0a (eliot) via eth0 May 10 12:50:25 elo pop3s[4508]: auxpropfunc error invalid parameter supplied May 10 12:50:25 elo pop3s[4508]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb May 10 12:50:52 elo lmtpunix[4564]: auxpropfunc error invalid parameter supplied May 10 12:50:52 elo lmtpunix[4564]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb May 10 12:50:52 elo lmtpunix[4565]: auxpropfunc error invalid parameter supplied May 10 12:50:52 elo lmtpunix[4565]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb May 10 12:51:19 elo ntpd[2444]: synchronized to 217.160.254.116, stratum 2 May 10 12:52:00 elo lmtpunix[4662]: auxpropfunc error invalid parameter supplied May 10 12:52:00 elo lmtpunix[4662]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb May 10 12:52:33 elo pop3s[4680]: auxpropfunc error invalid parameter supplied May 10 12:52:33 elo pop3s[4680]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb May 10 12:52:46 elo lmtpunix[4688]: auxpropfunc error invalid parameter supplied May 10 12:52:46 elo lmtpunix[4688]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb May 10 12:52:46 elo lmtpunix[4689]: auxpropfunc error invalid parameter supplied When I run 'sendmail -v -q' I get: Running /var/spool/mqueue/n4AHfU5S003362 (sequence 153 of 545) mikee... Deferred: No such file or directory Running /var/spool/mqueue/n4AHfTee003343 (sequence 154 of 545) mikee... Deferred: No such file or directory Running /var/spool/mqueue/n4AHfTwE003346 (sequence 155 of 545) mikee... Deferred: No such file or directory Running /var/spool/mqueue/n4AHfUS8003363 (sequence 156 of 545) mikee... Deferred: No such file or directory Other than running 'make install' for Samba and modifying the samba schema files (2 files) I made no other changes. No changes to selinux, ldap configuration, cyrus configuration, nothing. It's as if there is a permissions issue with sendmail talking to cyrus (lmptd?). I can connect to my cyrus server with mutt, delete and otherwise manipulate messages that are already in cyrus, but I'm not getting any new messages. Any guess what's going on? Mike Fedora Core 5 cyrus-imapd-devel-2.3.1-2.8.fc5 cyrus-sasl-lib-2.1.21-10 cyrus-sasl-2.1.21-10 cyrus-imapd-utils-2.3.1-2.8.fc5 cyrus-sasl-ldap-2.1.21-10 cyrus-imapd-2.3.1-2.8.fc5 cyrus-sasl-devel-2.1.21-10 sendmail-8.13.8-1.fc5 sendmail-cf-8.13.8-1.fc5 From dom.lalot at gmail.com Sun May 10 14:44:27 2009 From: dom.lalot at gmail.com (LALOT Dominique) Date: Sun, 10 May 2009 20:44:27 +0200 Subject: reading seen state as cyrus priviledged user Message-ID: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> Hello, I would like to run scripts for deleting unread old mails. But using the imap API, I can only read the good seen status if I logged as the user. Checking as cyrus tells me, that nothing has been read. Is there an su option for imap? How can I do that? Thanks Dom -- Dominique LALOT Ing?nieur Syst?mes et R?seaux http://annuaire.univmed.fr/showuser.php?uid=lalot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090510/00966e34/attachment.html From craigwhite at azapple.com Sun May 10 16:00:58 2009 From: craigwhite at azapple.com (Craig White) Date: Sun, 10 May 2009 13:00:58 -0700 Subject: requesting help please, sendmail not talking to cyrus-imapd In-Reply-To: <20090510180850.GA8004@mail.mac.com> References: <20090510180850.GA8004@mail.mac.com> Message-ID: <1241985658.30343.244.camel@lin-workstation.azapple.com> On Sun, 2009-05-10 at 13:08 -0500, Mike Eggleston wrote: > Morning, > > I have been working this morning on upgrading Samba. While testing the > upgrade I noticed that I was no longer receiving email. I have rolled > back the upgrade, including the modification to the Samba LDAP schema. The > log says multiple instances of: > > May 10 12:49:25 elo imaps[4146]: auxpropfunc error invalid parameter supplied > May 10 12:49:25 elo imaps[4146]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb > May 10 12:49:25 elo pop3[4147]: auxpropfunc error invalid parameter supplied > May 10 12:49:25 elo pop3[4147]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb > May 10 12:49:25 elo imap[4144]: auxpropfunc error invalid parameter supplied > May 10 12:49:25 elo imap[4144]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb > May 10 12:49:42 10.1.2.37 named[1982]: client 10.1.2.96#57617: update 'pointwise.com/IN' denied > May 10 12:49:51 elo dhcpd: DHCPREQUEST for 10.1.2.173 from 00:1e:4f:c3:63:0a (eliot) via eth0 > May 10 12:49:51 elo dhcpd: DHCPACK on 10.1.2.173 to 00:1e:4f:c3:63:0a (eliot) via eth0 > May 10 12:50:25 elo pop3s[4508]: auxpropfunc error invalid parameter supplied > May 10 12:50:25 elo pop3s[4508]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb > May 10 12:50:52 elo lmtpunix[4564]: auxpropfunc error invalid parameter supplied > May 10 12:50:52 elo lmtpunix[4564]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb > May 10 12:50:52 elo lmtpunix[4565]: auxpropfunc error invalid parameter supplied > May 10 12:50:52 elo lmtpunix[4565]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb > May 10 12:51:19 elo ntpd[2444]: synchronized to 217.160.254.116, stratum 2 > May 10 12:52:00 elo lmtpunix[4662]: auxpropfunc error invalid parameter supplied > May 10 12:52:00 elo lmtpunix[4662]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb > May 10 12:52:33 elo pop3s[4680]: auxpropfunc error invalid parameter supplied > May 10 12:52:33 elo pop3s[4680]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb > May 10 12:52:46 elo lmtpunix[4688]: auxpropfunc error invalid parameter supplied > May 10 12:52:46 elo lmtpunix[4688]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb > May 10 12:52:46 elo lmtpunix[4689]: auxpropfunc error invalid parameter supplied > > When I run 'sendmail -v -q' I get: > > Running /var/spool/mqueue/n4AHfU5S003362 (sequence 153 of 545) > mikee... Deferred: No such file or directory > > Running /var/spool/mqueue/n4AHfTee003343 (sequence 154 of 545) > mikee... Deferred: No such file or directory > > Running /var/spool/mqueue/n4AHfTwE003346 (sequence 155 of 545) > mikee... Deferred: No such file or directory > > Running /var/spool/mqueue/n4AHfUS8003363 (sequence 156 of 545) > mikee... Deferred: No such file or directory > > Other than running 'make install' for Samba and modifying the samba > schema files (2 files) I made no other changes. No changes to selinux, > ldap configuration, cyrus configuration, nothing. It's as if there is > a permissions issue with sendmail talking to cyrus (lmptd?). > > I can connect to my cyrus server with mutt, delete and otherwise > manipulate messages that are already in cyrus, but I'm not getting any > new messages. > > Any guess what's going on? > > Mike > > Fedora Core 5 > > cyrus-imapd-devel-2.3.1-2.8.fc5 > cyrus-sasl-lib-2.1.21-10 > cyrus-sasl-2.1.21-10 > cyrus-imapd-utils-2.3.1-2.8.fc5 > cyrus-sasl-ldap-2.1.21-10 > cyrus-imapd-2.3.1-2.8.fc5 > cyrus-sasl-devel-2.1.21-10 > > sendmail-8.13.8-1.fc5 > sendmail-cf-8.13.8-1.fc5 > ---- where did you get samba package from? where did you get cyrus-sasl from? did samba package include a different version of cyrus-sasl? Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From brong at fastmail.fm Sun May 10 19:04:16 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Mon, 11 May 2009 09:04:16 +1000 Subject: reading seen state as cyrus priviledged user In-Reply-To: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> References: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> Message-ID: <20090510230416.GA5526@brong.net> On Sun, May 10, 2009 at 08:44:27PM +0200, LALOT Dominique wrote: > Hello, > > I would like to run scripts for deleting unread old mails. But using the > imap API, I can only read the good seen status if I logged as the user. > Checking as cyrus tells me, that nothing has been read. > > Is there an su option for imap? > > How can I do that? Yeah, that would be nice actually. I'm pretty sure there's nothing like it at the moment. There's probably something nasty you can do via SASL, but being able to see a particular user's seen state is a different matter entirely. I'm thinking something like this: A01 FETCH 1:* (USERFLAGS.brong) * FLAGS 1 \Seen.brong * FLAGS 2 \Recent A01 OK FETCH Completed might just about do the trick... obviously it would test if you were either an admin or that user before allowing it... Bron ( also, IMAP language hacks. Bah. Along with our DIGEST.SHA1 hack we're hardly talking IMAP anymore... ) From wes at umich.edu Sun May 10 20:40:01 2009 From: wes at umich.edu (Wesley Craig) Date: Sun, 10 May 2009 20:40:01 -0400 Subject: reading seen state as cyrus priviledged user In-Reply-To: <20090510230416.GA5526@brong.net> References: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> <20090510230416.GA5526@brong.net> Message-ID: <4C408A5A-2B5C-4CCB-897F-3185EF6DA688@umich.edu> On 10 May 2009, at 19:04, Bron Gondwana wrote: > Yeah, that would be nice actually. I'm pretty sure there's nothing > like > it at the moment. I'd probably modify ipurge to optionally examine seen state. :wes From whl at igne.de Mon May 11 04:53:06 2009 From: whl at igne.de (Gerald Nowitzky) Date: Mon, 11 May 2009 10:53:06 +0200 Subject: delete specific mail in all folders Message-ID: <1095_1242031989_n4B8r8Oj011213_1fe001c9d215$e6ded840$0a00a8c0@ALDI2> Hello! I have been confronted with a request today: We are running cyrus as imap server. We have currently about 3 million files and 150GB in our mail dir. One user has accidently sent something confidential to all users via a list. The request was, of course, to delete the mail from all mailboxes. Is there any reasonable approach to do something like this? Thanks! (Gerald) From dom.lalot at gmail.com Mon May 11 05:43:20 2009 From: dom.lalot at gmail.com (LALOT Dominique) Date: Mon, 11 May 2009 11:43:20 +0200 Subject: delete specific mail in all folders In-Reply-To: <1095_1242031989_n4B8r8Oj011213_1fe001c9d215$e6ded840$0a00a8c0@ALDI2> References: <1095_1242031989_n4B8r8Oj011213_1fe001c9d215$e6ded840$0a00a8c0@ALDI2> Message-ID: <1617f8010905110243u6163e703yd1cf2ffe267dcaca@mail.gmail.com> That could be something like that script (test and adapt). I'm just a beginer with Mail::IMAPTalk and I don't use correctly search method The trick will be to find the from and subject and/or the date.. Dom #!/usr/bin/perl use Mail::IMAPTalk; $IMAP = Mail::IMAPTalk->new( Server => 'localhost', Username => 'cyrus', Password => 'xxx', Uid => 1 ) || die "Failed to connect/login to IMAP server"; #http://linuxfr.org/forums/27/21722.html $IMAP->set_root_folder('inbox', '/', 1, 'user'); @folder=$IMAP->list("user.%",'*'); foreach $bals (@folder){ $tot=0; $msgnb=0; foreach $bal (@$bals){ if ($bal=~/user\//){ #$IMAP->examine($_); #$count=$IMAP->message_count($_); $IMAP->select($bal) || warn "cant access $bal: $@"; $ResSearch = $IMAP->search('1:*', 'FROM', 'xxx'); # find the good search to do $Res = $IMAP->fetch($Res, '(rfc822.size envelope)') || die "cant access $bal: $@"; foreach $id (keys %$Res){ $size=$Res->{$id}->{'rfc822.size'}; $subject=$Res->{$id}->{'envelope'}->{'Subject'}; print "id=$id size=$size sub=$subject\n"; } $IMAP->store($ResSearch, '+flags', '(\\deleted)'); $lasterr=$IMAP->get_last_error(); if (defined $lasterr){ next if ($lasterr=~/No fetch data/); warn " $bal: $@"; next; } } } } $IMAP->logout(); 2009/5/11 Gerald Nowitzky > Hello! > > I have been confronted with a request today: We are running cyrus as imap > server. We have currently about 3 million files and 150GB in our mail dir. > One user has accidently sent something confidential to all users via a > list. > The request was, of course, to delete the mail from all mailboxes. Is there > any reasonable approach to do something like this? > > Thanks! > (Gerald) > > ---- > 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 > -- Dominique LALOT Ing?nieur Syst?mes et R?seaux http://annuaire.univmed.fr/showuser.php?uid=lalot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090511/7ea933b4/attachment-0001.html From gbulfon at sonicle.com Mon May 11 04:16:34 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Mon, 11 May 2009 10:16:34 +0200 (CEST) Subject: Sieve international charachters Message-ID: <16576620.41.1242029794690.JavaMail.root@www> Thx a lot, how do I check or set the script encoding? Gabriele. Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com ---------------------------------------------------------------------------------- Da: info-cyrus at lists.andrew.cmu.edu A: Gabriele Bulfon Cc: Andrea Garau Data: 9 maggio 2009 5.22.48 CEST Oggetto: Re: Sieve international charachters Hi > does sieve filtering accepts international characters (e.g. ?,? and so > on)? sieve doesn't decode MIME 1522 encoded headers, making it basically impossible to match on subjects/from address with these characters. However, as I'm sure Bron would love to point out, checkout the charset patches here, that should fix that: http://cyrus.brong.fastmail.fm/ > Until now I could never input an automatic response containing > such characters. But users are a bit disappointed to use apostrophe > instead of their normal chars. Is there any way to encode such chars > inside sieve scripting? Thx for any help. I believe this should work, but the sieve script needs to be in utf-8. Rob robm at fastmail.fm Sign up at http://fastmail.fm for fast, ad free, IMAP accessible email -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090511/bd09f1ff/attachment.html From paul at vandervlis.nl Mon May 11 06:34:31 2009 From: paul at vandervlis.nl (Paul van der Vlis) Date: Mon, 11 May 2009 12:34:31 +0200 Subject: delete specific mail in all folders In-Reply-To: <1095_1242031989_n4B8r8Oj011213_1fe001c9d215$e6ded840$0a00a8c0@ALDI2> References: <1095_1242031989_n4B8r8Oj011213_1fe001c9d215$e6ded840$0a00a8c0@ALDI2> Message-ID: <4A07FF37.1080000@vandervlis.nl> Gerald Nowitzky schreef: > Hello! > > I have been confronted with a request today: We are running cyrus as imap > server. We have currently about 3 million files and 150GB in our mail dir. > One user has accidently sent something confidential to all users via a list. > The request was, of course, to delete the mail from all mailboxes. Is there > any reasonable approach to do something like this? Maybe you could use 'find' with some characteristics of the message, like the size and the date. You could replace the found files with the same message, but where all what is confidential was removed. With regards, Paul van der Vlis. -- http://www.vandervlis.nl/ From dom.lalot at gmail.com Mon May 11 07:12:37 2009 From: dom.lalot at gmail.com (LALOT Dominique) Date: Mon, 11 May 2009 13:12:37 +0200 Subject: delete specific mail in all folders In-Reply-To: <4A07FF37.1080000@vandervlis.nl> References: <1095_1242031989_n4B8r8Oj011213_1fe001c9d215$e6ded840$0a00a8c0@ALDI2> <4A07FF37.1080000@vandervlis.nl> Message-ID: <1617f8010905110412i17db296bm2c4ac3268f2f691f@mail.gmail.com> 2009/5/11 Paul van der Vlis > Gerald Nowitzky schreef: > > Hello! > > > > I have been confronted with a request today: We are running cyrus as imap > > server. We have currently about 3 million files and 150GB in our mail > dir. > > One user has accidently sent something confidential to all users via a > list. > > The request was, of course, to delete the mail from all mailboxes. Is > there > > any reasonable approach to do something like this? > > Maybe you could use 'find' with some characteristics of the message, > like the size and the date. the size may differ as the destination change, same for date, as it's a bulk delivery which could last several minutes. > You could replace the found files with the > same message, but where all what is confidential was removed. Nice idea, but you will keep the subject in the index anyway. So, if the subject is "Fuck the boss", you will not get rid of that.. > > > With regards, > Paul van der Vlis. > > > > > -- > http://www.vandervlis.nl/ > > ---- > 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 > -- Dominique LALOT Ing?nieur Syst?mes et R?seaux http://annuaire.univmed.fr/showuser.php?uid=lalot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090511/ab004249/attachment.html From dom.lalot at gmail.com Mon May 11 07:26:01 2009 From: dom.lalot at gmail.com (LALOT Dominique) Date: Mon, 11 May 2009 13:26:01 +0200 Subject: Sieve international charachters In-Reply-To: <20090509114904.GA17560@brong.net> References: <23755929.20.1241789567052.JavaMail.root@www> <20090509114904.GA17560@brong.net> Message-ID: <1617f8010905110426i452896bcic2afe063895cfd97@mail.gmail.com> That would be great. It's a long awaited feature for us. Thanks Dom 2009/5/9 Bron Gondwana > On Fri, May 08, 2009 at 03:32:47PM +0200, Gabriele Bulfon wrote: > > Hello, > > does sieve filtering accepts international characters (e.g. ?,? and so > on)? > > Until now I could never input an automatic response containing such > characters. > > But users are a bit disappointed to use apostrophe instead of their > normal chars. > > Is there any way to encode such chars inside sieve scripting? > > Thx for any help. > > YES! Except I haven't pushed it into upstream Cyrus yet... > > > http://github.com/brong/cyrus-sieve/tree/57b26fc75fe1748e54c8f6d51c16e8d8f8ee10bf > > It needs a bunch of changes from my cyrus-imapd tree as well > to provide the UTF8 decoding functionality. > > I'm hoping to get it all polished up and ready for the next > Cyrus release. It's a pretty intrusive set of changes, but > it's been running happily for over a month here at FastMail > now. > > Bron. > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > -- Dominique LALOT Ing?nieur Syst?mes et R?seaux http://annuaire.univmed.fr/showuser.php?uid=lalot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090511/bfd6aaa3/attachment.html From dwhite at olp.net Mon May 11 10:37:22 2009 From: dwhite at olp.net (Dan White) Date: Mon, 11 May 2009 09:37:22 -0500 Subject: reading seen state as cyrus priviledged user In-Reply-To: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> References: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> Message-ID: <4A083822.6080105@olp.net> LALOT Dominique wrote: > Hello, > > I would like to run scripts for deleting unread old mails. But using > the imap API, I can only read the good seen status if I logged as the > user. Checking as cyrus tells me, that nothing has been read. > > Is there an su option for imap? > > How can I do that? You can authenticate as an admin, and authz as the user you wish to see seen state for. E.g.: imtest -m DIGEST-MD5 -a cyrus -u dwhite at olp.net localhost Depending on your environment, the '/vendor/cmu/cyrus/imapd/sharedseen' annotation may be useful. See the 'cyradm' man page for details. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090511/d4a8d753/attachment.html From reinaldoc at gmail.com Mon May 11 10:43:02 2009 From: reinaldoc at gmail.com (Reinaldo de Carvalho) Date: Mon, 11 May 2009 11:43:02 -0300 Subject: reading seen state as cyrus priviledged user In-Reply-To: <4A083822.6080105@olp.net> References: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> <4A083822.6080105@olp.net> Message-ID: <4a5881460905110743x83e7225g22af3c76e6515591@mail.gmail.com> On Mon, May 11, 2009 at 11:37 AM, Dan White wrote: > LALOT Dominique wrote: > > Hello, > > I would like to run scripts for deleting unread old mails. But using the > imap API, I can only read the good seen status if I logged as the user. > Checking as cyrus tells me, that nothing has been read. > > Is there an su option for imap? > > How can I do that? > > You can authenticate as an admin, and authz as the user you wish to see seen > state for. > > E.g.: > > imtest -m DIGEST-MD5 -a cyrus -u dwhite at olp.net localhost > > Depending on your environment, the '/vendor/cmu/cyrus/imapd/sharedseen' > annotation may be useful. See the 'cyradm' man page for details. > Where can I find (not in the code) all supported annotations by cyrus? -- Reinaldo de Carvalho http://korreio.sf.net http://python-cyrus.sf.net From dwhite at olp.net Mon May 11 11:08:45 2009 From: dwhite at olp.net (Dan White) Date: Mon, 11 May 2009 10:08:45 -0500 Subject: reading seen state as cyrus priviledged user In-Reply-To: <4a5881460905110743x83e7225g22af3c76e6515591@mail.gmail.com> References: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> <4A083822.6080105@olp.net> <4a5881460905110743x83e7225g22af3c76e6515591@mail.gmail.com> Message-ID: <4A083F7D.6010603@olp.net> Reinaldo de Carvalho wrote: > On Mon, May 11, 2009 at 11:37 AM, Dan White wrote: > >> Depending on your environment, the '/vendor/cmu/cyrus/imapd/sharedseen' >> annotation may be useful. See the 'cyradm' man page for details. >> >> > > Where can I find (not in the code) all supported annotations by cyrus? > The doc/changes.html file is the only place I know of, but I don't think it's comprehensive. perl/imap/IMAP/Shell.pm implies that the following are supported: [\&_sc_mboxcfg, 'mailbox [comment|condstore|expire|news2mail|sharedseen|sieve|squat] value', - Dan From reinaldoc at gmail.com Mon May 11 11:33:40 2009 From: reinaldoc at gmail.com (Reinaldo de Carvalho) Date: Mon, 11 May 2009 12:33:40 -0300 Subject: reading seen state as cyrus priviledged user In-Reply-To: <4A083F7D.6010603@olp.net> References: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> <4A083822.6080105@olp.net> <4a5881460905110743x83e7225g22af3c76e6515591@mail.gmail.com> <4A083F7D.6010603@olp.net> Message-ID: <4a5881460905110833g70c603beo2dbf654beaed63e5@mail.gmail.com> On Mon, May 11, 2009 at 12:08 PM, Dan White wrote: > > The doc/changes.html file is the only place I know of, but I don't think > it's comprehensive. > Thanks, don't wonry, I wrote a cyradm-like with python/qt (Korreio). > perl/imap/IMAP/Shell.pm implies that the following are supported: > > [\&_sc_mboxcfg, 'mailbox > [comment|condstore|expire|news2mail|sharedseen|sieve|squat] value', > > - Dan > I'd like a documentation prior another code, to see cyradm code, better to see cyrus code. -- Reinaldo de Carvalho http://korreio.sf.net http://python-cyrus.sf.net From dom.lalot at gmail.com Mon May 11 12:10:22 2009 From: dom.lalot at gmail.com (LALOT Dominique) Date: Mon, 11 May 2009 18:10:22 +0200 Subject: reading seen state as cyrus priviledged user In-Reply-To: <4A083822.6080105@olp.net> References: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> <4A083822.6080105@olp.net> Message-ID: <1617f8010905110910q6db12d1bq3d4356274c9e21eb@mail.gmail.com> 2009/5/11 Dan White > LALOT Dominique wrote: > > Hello, > > I would like to run scripts for deleting unread old mails. But using the > imap API, I can only read the good seen status if I logged as the user. > Checking as cyrus tells me, that nothing has been read. > > Is there an su option for imap? > > How can I do that? > > > You can authenticate as an admin, and authz as the user you wish to see > seen state for. > > E.g.: > > imtest -m DIGEST-MD5 -a cyrus -u dwhite at olp.net localhost > Interesting, I'll look at what is generated using debug mode of cyrus Thanks Dom > > > Depending on your environment, the '/vendor/cmu/cyrus/imapd/sharedseen' > annotation may be useful. See the 'cyradm' man page for details. > > -- Dominique LALOT Ing?nieur Syst?mes et R?seaux http://annuaire.univmed.fr/showuser.php?uid=lalot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090511/f6774523/attachment.html From champ at umbc.edu Mon May 11 12:40:29 2009 From: champ at umbc.edu (Tim Champ) Date: Mon, 11 May 2009 12:40:29 -0400 Subject: Disabling quotas in cyrus Message-ID: <4A0854FD.401@umbc.edu> Hello all. We are doing some substantial number of moves of users between backends here, and have been running into problems with quotas.db. We are currently running 2.3.8 as our version of cyrus. The problem is that we seem to run into lock issues with quotas.db (nothing else yet, thankfully!) where errors arise, and in some cases it brings cyrus to a halt. We have to then grab a last known good quotas.db file (either from a backup or a export that we import) and then restart with that. Then we do a "quota -f" to update, and await the users that aren't in the file (since they were moved after that last known good copy) to "pop up" on the list so we can fix their quota (as it gives them 0 by default). The problems with this are those users start bouncing mail, it takes a lot of manual intervention, downtime on the mail server, etc. So, what we were thinking of is disabling quotas on the servers we're moving to, so that this problem is mitigated and our moves can continue at a good pace. Currently we've just been sticking to a single batch script that only does one "xfer" at a time, as that seems to avoid any major problems. (we still see it occasionally, but it seems to recover on its own) We would like to run multiples, but it seems to really start to have problems with locking on the multiple xfers. We haven't noticed any problems on the "from" boxes with moves. Also, once disabled, we'd then need to be able to re-enable and set quotas for everyone at a future time. (Hopefully without a manual one at a time process) Is there any semi-easy solution to this? If not, we'll stick to what we're doing, but wanted to ask. Also, this problem doesn't seem to happen in normal functions of our servers (we hadn't before run into it until these xfers) If anyone has further questions for me, I'll answer as best I can. Sample log entries below for the curious. Sorry if this is a "RTFM" question, I just haven't seen anything about it in my searches. Thanks! Tim Champ UMBC DoIT Unix Infrastructure Team Logs: $DATE MAILSERVER imap[14262]: [ID 335833 local6.error] DBERROR: error fetching user.$USER.$FOLDER: cyrusdb error $DATE MAILSERVER imap[14262]: [ID 602473 local6.error] IOERROR: lock_shared /$SERVER/data/config/quotas.db: Bad file number --- This sometimes resolves itself fine, but other times it causes cyrus to quit functioning. If you attempt to restart cyrus, it flakes out with quotas.db being invalid. This log blurb is during the move of $USER. From weigel at dfbnet.de Tue May 12 07:10:55 2009 From: weigel at dfbnet.de (Helmut Weigel) Date: Tue, 12 May 2009 13:10:55 +0200 Subject: Username with @ sign at login possible? Message-ID: <20090512131055984.00000001848@dfbm-hwe> Hi all, our customer wants to login with the full mailaddress as the username to our cyrus imapd. is this possible? We run an installation with postfix and cyrus-imapd. Helmut Weigel DFB-Medien GmbH & Co. KG Otto-Fleck-Schneise 6 60528 Frankfurt fon: +49 (69) 6788-319 fax: +49 (69) 6788-343 pcfax: +49 (511) 760770 76 - 259 email: helmut.weigel at dfbnet.de Homepage: www.dfb-medien.de -------------------------------------------- Hermann-Neuberger-Haus | Otto-Fleck-Schneise 6 | 60528 Frankfurt | DFB Medien GmbH & Co. KG | Gesch?ftsf?hrung: DFB Medien Verwaltungs-GmbH, deren Gesch?ftsf?hrer: Kurt G?rtner, Tilman Walk |Vorsitzender des Aufsichtsrates: Dr. Theo Zwanziger | HRA 30550 | Registergericht: Frankfurt From ted at lyncon.se Tue May 12 07:41:49 2009 From: ted at lyncon.se (ted at lyncon.se) Date: Tue, 12 May 2009 13:41:49 +0200 Subject: Username with @ sign at login possible? In-Reply-To: <20090512131055984.00000001848@dfbm-hwe> References: <20090512131055984.00000001848@dfbm-hwe> Message-ID: <1242128509.4a09607d5e93a@lyncon.se> Helmut Weigel wrote: > > our customer wants to login with the full mailaddress as the username > to our cyrus imapd. is this possible? Yes, that is certainly possible. I do that to manage multiple domains. I create the mailboxes with 'cm user/@'. I dont remember if there was some additional setup involved to be able to do it though. This springs to mind though. In /etc/imap.conf: virtdomains: yes altnamespace: yes unixhierarchysep: on > We run an installation with postfix and cyrus-imapd. I do too. Cheers, Ted From tschlabach at gmx.net Tue May 12 08:58:21 2009 From: tschlabach at gmx.net (Torsten Schlabach) Date: Tue, 12 May 2009 14:58:21 +0200 Subject: AW: Username with @ sign at login possible? In-Reply-To: <20090512145451375.00000001848@dfbm-hwe> References: <20090512145451375.00000001848@dfbm-hwe> Message-ID: <4A09726D.5090504@gmx.net> Hi! Quick note to the list admins: Can't this list be condigured so replies go to the list, not to the sender? I frequently forget to "replay all" and other do as well. On the subject: > Up to now we mapped virtual users to usernames like usera-xxx. Does virtual user mean, you are already hosting different users in different domains, i.e.: firstname.name at domaina.tld someone.else at domainb.tld So if I am firstname.name at domaina.tld, I need to login using firstname.name#domaina.tld now? Regards, Torsten Helmut Weigel schrieb: > Hi, > > you guessed right ;-) > > It is an existing installation with about 30000 user right now. > Up to now we mapped virtual users to usernames like usera-xxx. > > Regards, > Helmut > > > -----Urspr?ngliche Nachricht----- > Von: Torsten Schlabach [mailto:tschlabach at gmx.net] > Gesendet: Dienstag, 12. Mai 2009 13:57 > An: Helmut Weigel > Betreff: Re: Username with @ sign at login possible? > > Dear Helmut! > > When asking "is this possible" I guess you refer to the fact that by default the @ will cut the email address into a local part (left of the > @) and turn the domain name into a realm which may brake your SASL authentication. > > Is this an existing installation where users have used other names before or are you settings this up front scratch? Just asking to possibly guide you around some potential pitfalls. > > Regards, > Torsten > > Helmut Weigel schrieb: >> Hi all, >> >> our customer wants to login with the full mailaddress as the username >> to our cyrus imapd. is this possible? >> >> We run an installation with postfix and cyrus-imapd. >> >> Helmut Weigel >> >> DFB-Medien GmbH & Co. KG >> Otto-Fleck-Schneise 6 >> 60528 Frankfurt >> >> fon: +49 (69) 6788-319 >> fax: +49 (69) 6788-343 >> pcfax: +49 (511) 760770 76 - 259 >> email: helmut.weigel at dfbnet.de >> Homepage: www.dfb-medien.de >> >> -------------------------------------------- >> Hermann-Neuberger-Haus | Otto-Fleck-Schneise 6 | 60528 Frankfurt | DFB >> Medien GmbH & Co. KG | Gesch?ftsf?hrung: DFB Medien Verwaltungs-GmbH, >> deren Gesch?ftsf?hrer: Kurt G?rtner, Tilman Walk |Vorsitzender des >> Aufsichtsrates: Dr. Theo Zwanziger | HRA 30550 | Registergericht: >> Frankfurt >> >> ---- >> 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 D.J.Mayo at bath.ac.uk Tue May 12 09:09:17 2009 From: D.J.Mayo at bath.ac.uk (David Mayo) Date: Tue, 12 May 2009 14:09:17 +0100 Subject: mupdate - GSSAPI authentication In-Reply-To: <4A0410AE.5070903@bath.ac.uk> References: <4A0410AE.5070903@bath.ac.uk> Message-ID: <4A0974FD.2060208@bath.ac.uk> Hi guys, This morning we created a principal "mupdate at BATH.AC.UK" and added that to the key tab on sauber for the IMAP server, and it authenticated fine. It would appear there is a bug somewhere meaning that "primary/instance at REALM" style principals cannot be used as clients to mupdate. Regards, Dave. David Mayo Networks/Systems Administrator University of Bath Computing Services Tel: +44 1225 38 6046 Email: D.J.Mayo at bath.ac.uk David Mayo wrote: > Hi guys, > > We are upgrading to cyrus-imap-2.3.14 and are looking at using mupdate > for the first time, but we are having problems with the GSSAPI > authentication between mupdate hosts. > > We have two servers - sauber and tyrrell. sauber is one of the backend > hosts and tyrrell is the mupdate master. We have generated service > principals for them and placed them in their own key tabs: > > mupdate/sauber.bath.ac.uk > imap/sauber.bath.ac.uk > > mupdate/tyrrell.bath.ac.uk > imap/tyrrell.bath.ac.uk > > We initialise these keytabs in the START section of cyrus.conf with the > following line: > > # authenticate to Kerberos > auth cmd="/usr/bin/kinit -k -t /opt/etc/imapd/krb5.keytab > mupdate/sauber.bath.ac.uk" > > (obviously the mupdate master uses mupdate/tyrrell.bath.ac.uk) > > If we run mupdatetest after starting the master daemons we see the > following output on sauber: > > sauber $ /opt/packages/cyrus-imapd/bin/mupdatetest tyrrell > S: * AUTH "PLAIN" "GSSAPI" > S: * STARTTLS > S: * PARTIAL-UPDATE > S: * OK MUPDATE "tyrrell.bath.ac.uk" "Cyrus Murder" "v2.3.14" "(master)" > C: A01 AUTHENTICATE "GSSAPI" {796+} > YIICUAYJKoZIhvcSAQICAQBuggI/MIICO6ADAgEFoQMCAQ6iBwMFACAAAACjggFCYYIBPjCCATqgAwIBBaEMGwpCQVRILkFDLlVLoiowKKADAgEDoSEwHxsHbXVwZGF0ZRsUc2F1YmVyLXoxLmJhdGguYWMudWujgfgwgfWgAwIBEqEDAgEDooHoBIHlPVA1HD73jR4nq9Hb68acrSI8xYmDdZSJKFzualaEiI9UyhvV5nfMKIbjNaWwk5IYqI8Jm6MPIpHlsCrauF9WaiOwlYFPErEu0id4jWpl/FmqBoG+LdfivBIcpOLMWDNvRZYuarje/b97MEId8G5zikjr9wQSCjA0Yo68DtIbAPsLIWXCuVd5Pf8gY8S0U3nQeSS/YvI3hgvn9Aau4fCU/A9UWx50HrV+8AqEXqtrZ6HatkiZn1HgbvG+3iaPPKfiKeM96ZKydluJX+iI8iojF6IObakbCFdaqeploQQaqKjsradGJqSB3zCB3KADAgESooHUBIHR1h3Qku1JS6q6PkUXU48xtkn3r/SwKKAZ9MU/b2ieGfHw+1mmoo6a8A4SSOjep/CCU5jCRte2yURf+j0gCkyuH/8YhP1xxITn8ljDCkLFr0zZIWOOXg6yEB4Rpg8kUJx7xeIsTLHIc4BQE+MfDxqrKFkwM0o+RTZEd5cKICdk5Tq1bu3d/zsDuSk2x1QT77iQUMIu7g2k+tSPobMgmphjLcwqrknc68gmjTbn/NYe6ltfteRzTDQzRiga8cU3nlC/MEYA9Wc3AFIxh93GC1WqTuU= > S: > YIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvLEn4nvf4zsyDbNlSFPQe3SwAxL7iusPxROKhmcdUc9TRrN2290JAKNL9odMnOeOcEcVsmJHAq55ux476T6iF7L+G2XLWJiseyjeCDar7PpfA0p6h+TNFKnuqHhB7BNyVgGsLrGT91R4GHa0Y0LEP > C: > S: BQQF/wAMAAAAAAAAOK+zDAcAEADNmu4T0KaBjcxG0O4= > C: BQQE/wAMAAAAAAAAGT4NlQQABAAv1geB3Ly5Xf/bqt8= > failure: prot layer failure > > And resulting logs on tyrrell: > > May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15800]: [ID 921384 > mail.debug] accepted connection > May 8 10:10:35 tyrrell.bath.ac.uk master[15766]: [ID 970914 mail.error] > process 15800 exited, signaled to death by 11 > May 8 10:10:35 tyrrell.bath.ac.uk master[15766]: [ID 684980 > mail.warning] service mupdate pid 15800 in READY state: terminated > abnormally > May 8 10:10:35 tyrrell.bath.ac.uk master[15803]: [ID 392559 mail.debug] > about to exec /opt/packages/cyrus-imapd/bin/mupdate > May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 518349 > mail.debug] executed > May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 > mail.debug] New worker thread started, for a total of 1 > May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 > mail.debug] New worker thread started, for a total of 2 > May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 > mail.debug] New worker thread started, for a total of 3 > May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 > mail.debug] New worker thread started, for a total of 4 > May 8 10:10:35 tyrrell.bath.ac.uk mupdate[15803]: [ID 242572 > mail.debug] New worker thread started, for a total of 5 > > Looking on sauber, the mupdate/tyrrell.bath.ac.uk principal has already > been exchanged by the time the mupdate server crashes: > > sauber $ klist > Ticket cache: FILE:/tmp/krb5cc_58 > Default principal: mupdate/sauber.bath.ac.uk at BATH.AC.UK > > Valid starting Expires Service principal > 08/05/2009 10:10:31 08/05/2009 20:10:31 krbtgt/BATH.AC.UK at BATH.AC.UK > renew until 15/05/2009 10:10:31 > 08/05/2009 10:10:31 08/05/2009 20:10:31 > mupdate/tyrrell.bath.ac.uk at BATH.AC.UK > renew until 15/05/2009 10:10:31 > > While trying to make this work, we did find one way - use a principal > that has a password rather than in the keytab: > > sauber $ kinit cyrus > Password for cyrus at BATH.AC.UK: > sauber $ /opt/packages/cyrus-imapd/bin/mupdatetest tyrrell > S: * AUTH "PLAIN" "GSSAPI" > S: * STARTTLS > S: * PARTIAL-UPDATE > S: * OK MUPDATE "tyrrell.bath.ac.uk" "Cyrus Murder" "v2.3.14" "(master)" > C: A01 AUTHENTICATE "GSSAPI" {772+} > YIICPwYJKoZIhvcSAQICAQBuggIuMIICKqADAgEFoQMCAQ6iBwMFACAAAACjggFDYYIBPzCCATugAwIBBaEMGwpCQVRILkFDLlVLoiowKKADAgEDoSEwHxsHbXVwZGF0ZRsUc2F1YmVyLXoxLmJhdGguYWMudWujgfkwgfagAwIBEqEDAgEDooHpBIHmuu+hTMP3LCm1YcazFaEgALSsEnuUnd3k+wIaSSW2doz9+Rrbp8HAuKOB0wLUebUNTPuBXrjBpcAGQisNQczjKMFwCaMMUnyvJ0GdcWRLZHBeoB+kTB6X0E3mtvgjeCdGr9ti70noQBdDHXlvWWyhPOxrIasUi1EDxzw+v/iaO2vagQqolWPN/TOC2ydpgBDbqawW6DjF4Bv4vPe7DCruKQeGzgT1iaPu5afp8kyEFehPHAwtvwB9toPgZI9FEm4SWmjiTfdjPuFs7tjWQZermemeKmMgod8TbHJ8zsmyMoRs1WxqIROkgc0wgcqgAwIBEqKBwgSBv/Bw1XraXVNjA1HQ8e8gk2GTm57PW6/hLWfjZwhsY4yKojltxJXkovaecdbesbu9oa9vT4m+p8QcxQ74pdPKHYwvx8OZh9epNhVbnllMpWyWP8PXuwQCqSWjPhgTbvNjNfVIwpNd7IjtMI99sRc1q5+jDiJE+yblWDpQOPP7rCkMVYxsCT9FQ0cgaU7IsRT4r+jw45HG99w4cvqLhA9RHwg9cXfrg3umajngNovT13CD0deXlQjWwlO7m9bZN/zI > S: > YIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6ysRnz7c5/jXdrML5GDO3yUDRd6e483bvcFFSv7Om/LcVmstU3vc7py4zljh1sI9cqP6wV0d6NKtUNJBEGaQNciHdasq+ywbgRsMvAsAM5/m7i06vByFOdRvZX2MxCdEMVW9KbAGRIHBvK6JQFxG > C: > S: BQQF/wAMAAAAAAAAOaMBYAcAEAAlGhxrUx+QK7vb6rg= > C: BQQE/wAMAAAAAAAAELjSmQQABAB9zam/40LRAaw4zaw= > S: A01 OK "Authenticated" > Authenticated. > Security strength factor: 56 > C: Q01 LOGOUT > Q01 OK "bye-bye" > Connection closed. > sauber $ klist > Ticket cache: FILE:/tmp/krb5cc_58 > Default principal: cyrus at BATH.AC.UK > > Valid starting Expires Service principal > 08/05/2009 10:27:37 08/05/2009 20:27:37 krbtgt/BATH.AC.UK at BATH.AC.UK > renew until 15/05/2009 10:27:37 > 08/05/2009 10:27:43 08/05/2009 20:27:37 > mupdate/tyrrell.bath.ac.uk at BATH.AC.UK > renew until 15/05/2009 10:27:37 > > Relevant logs from tyrrell: > > May 8 10:27:42 tyrrell.bath.ac.uk mupdate[15803]: [ID 596527 > mail.notice] login: sauber.bath.ac.uk [138.38.132.132] cyrus GSSAPI User > logged in > > The *only* difference is we are using a default principal of > cyrus at BATH.AC.UK rather than mupdate/sauber.bath.ac.uk at BATH.AC.UK. This > does not seem to make sense. > > Relevant lines from config files: > > sauber imapd.conf: > > admins: cyrus imap/sauber.bath.ac.uk > sasl_pwcheck_method: saslauthd > sasl_mech_list: plain gssapi > mupdate_server: tyrrell.bath.ac.uk > mupdate_config: standard > mupdate_authname: mupdate/sauber.bath.ac.uk > mupdate_username: cyrus > > tyrrell imapd.conf: > > admins: cyrus mupdate/sauber.bath.ac.uk > sasl_pwcheck_method: saslauthd > sasl_mech_list: plain gssapi > > We compiled cyrus-imapd-2.3.14 with the following flags: > PROGDIR=/opt/packages/cyrus-imapd \ > ./configure --prefix=$PROGDIR --mandir=/opt/share/man \ > --sysconfdir=/opt/etc/imapd \ > --enable-listext --enable-idled --with-snmp \ > --enable-murder \ > --enable-replication \ > --enable-nntp \ > --disable-gssapi \ > --with-cyrus-group=cyrus \ > --with-cyrus-user=cyrus \ > --with-cyrus-prefix=$PROGDIR \ > --with-openssl=$OPENSSLDIR \ > --with-ucdsnmp=/opt/packages/net-snmp \ > --with-sasl=$SASLDIR \ > --with-dbdir=/opt/packages/berkeley-db \ > --with-syslogfacility=MAIL > > We are using Cyrus SASL 2.1.22 built like this: > > PROGDIR=/opt/packages/cyrus-sasl \ > ./configure --prefix=$PROGDIR --sysconfdir=/opt/etc/cyrus \ > --with-plugindir=/opt/packages/cyrus-sasl/lib/sasl2 \ > --enable-shared \ > --disable-static \ > --disable-java \ > --with-configdir=/opt/etc/sasl2 \ > --disable-krb4 \ > --with-gss_impl=mit \ > --with-rc4 \ > --with-dblib=berkeley \ > --with-saslauthd=/var/sasl2 --without-pwcheck \ > --with-devrandom=/dev/urandom \ > --enable-anon \ > --enable-cram \ > --enable-digest \ > --enable-ntlm \ > --enable-plain \ > --enable-login \ > --without-ldap \ > --disable-otp \ > --disable-ldapdb \ > --disable-sql --without-mysql --without-pgsql --without-sqlite \ > --enable-gssapi=$KERBEROSDIR \ > --with-openssl=$OPENSSLDIR > > We are using MIT KerberosV 1.6.3 and running on Solaris 10 x86. tyrrell > is actually a Solaris 'Zone' on sauber. > > If anyone has any ideas of what might be causing this problem we'd be > very interested! > > Regards, > > > Dave. > > David Mayo > Networks/Systems Administrator > University of Bath Computing Services > > Tel: +44 1225 38 6046 > Email: D.J.Mayo at bath.ac.uk > > > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html From dwhite at olp.net Tue May 12 09:59:47 2009 From: dwhite at olp.net (Dan White) Date: Tue, 12 May 2009 08:59:47 -0500 Subject: mupdate - GSSAPI authentication In-Reply-To: <4A0974FD.2060208@bath.ac.uk> References: <4A0410AE.5070903@bath.ac.uk> <4A0974FD.2060208@bath.ac.uk> Message-ID: <4A0980D3.4060302@olp.net> David Mayo wrote: > Hi guys, > > This morning we created a principal "mupdate at BATH.AC.UK" and added that > to the key tab on sauber for the IMAP server, and it authenticated fine. > > It would appear there is a bug somewhere meaning that > "primary/instance at REALM" style principals cannot be used as clients to > mupdate. > > /etc/krb.equiv should let you canonicalize "primary/instance at REALM" to something easier for cyrus to digest. See "Kerberos vs. Unix Authorization" in doc/overview.html (in the release tarball). - Dan From bawood at umich.edu Tue May 12 10:13:35 2009 From: bawood at umich.edu (Brian Awood) Date: Tue, 12 May 2009 10:13:35 -0400 Subject: mupdate - GSSAPI authentication In-Reply-To: <4A0410AE.5070903@bath.ac.uk> References: <4A0410AE.5070903@bath.ac.uk> Message-ID: <200905121013.35714.bawood@umich.edu> On Friday 08 May 2009 @ 06:59, David Mayo wrote: > Relevant lines from config files: > > sauber imapd.conf: > > admins: cyrus imap/sauber.bath.ac.uk > sasl_pwcheck_method: saslauthd > sasl_mech_list: plain gssapi > mupdate_server: tyrrell.bath.ac.uk > mupdate_config: standard > mupdate_authname: mupdate/sauber.bath.ac.uk > mupdate_username: cyrus > > tyrrell imapd.conf: > > admins: cyrus mupdate/sauber.bath.ac.uk > sasl_pwcheck_method: saslauthd > sasl_mech_list: plain gssapi try setting; auth_mech: krb5 I'm not sure sasl_mech_list is a valid option anymore. Brian From dom.lalot at gmail.com Tue May 12 10:22:30 2009 From: dom.lalot at gmail.com (LALOT Dominique) Date: Tue, 12 May 2009 16:22:30 +0200 Subject: reading seen state as cyrus priviledged user In-Reply-To: <20090510230416.GA5526@brong.net> References: <1617f8010905101144j51430e82s77c3c7897182bdfa@mail.gmail.com> <20090510230416.GA5526@brong.net> Message-ID: <1617f8010905120722q64c74a56v6ae6efee4b42a66e@mail.gmail.com> Well, I'm thinking about another way to do that. Running as localhost of cyrus-imap and as cyrus user, I'm able to open seen skiplist database. Is there a Perl module to interact with? Thanks Dom 2009/5/11 Bron Gondwana > On Sun, May 10, 2009 at 08:44:27PM +0200, LALOT Dominique wrote: > > Hello, > > > > I would like to run scripts for deleting unread old mails. But using the > > imap API, I can only read the good seen status if I logged as the user. > > Checking as cyrus tells me, that nothing has been read. > > > > Is there an su option for imap? > > > > How can I do that? > > Yeah, that would be nice actually. I'm pretty sure there's nothing like > it at the moment. > > There's probably something nasty you can do via SASL, but being able to > see a particular user's seen state is a different matter entirely. > > I'm thinking something like this: > > A01 FETCH 1:* (USERFLAGS.brong) > * FLAGS 1 \Seen.brong > * FLAGS 2 \Recent > A01 OK FETCH Completed > > might just about do the trick... obviously it would test if you were > either an admin or that user before allowing it... > > Bron ( also, IMAP language hacks. Bah. Along with our DIGEST.SHA1 > hack we're hardly talking IMAP anymore... ) > -- Dominique LALOT Ing?nieur Syst?mes et R?seaux http://annuaire.univmed.fr/showuser.php?uid=lalot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090512/d370535e/attachment.html From helmut.weigel at dfbnet.de Tue May 12 11:45:44 2009 From: helmut.weigel at dfbnet.de (Helmut Weigel) Date: Tue, 12 May 2009 17:45:44 +0200 Subject: AW: AW: Username with @ sign at login possible? In-Reply-To: <4A09726D.5090504@gmx.net> Message-ID: <20090512174544328.00000001848@dfbm-hwe> Hi! yess your right. more specified ist like we have a lot (~30.000) of users e.g. name at domaina.tld in the default domain (postfix). In cyrus they are just user.name Then we have several users in the postfix virtual table e.g. someone_else at domainb.tld They are mapped to cyrus users user.someone_else_domainb The mapping ist done in the ldapmap in postfix. the ldap maps email to uid. Regards Helmut -----Urspr?ngliche Nachricht----- Von: Torsten Schlabach [mailto:tschlabach at gmx.net] Gesendet: Dienstag, 12. Mai 2009 14:58 An: Helmut Weigel; info-cyrus at andrew.cmu.edu Betreff: Re: AW: Username with @ sign at login possible? Hi! Quick note to the list admins: Can't this list be condigured so replies go to the list, not to the sender? I frequently forget to "replay all" and other do as well. On the subject: > Up to now we mapped virtual users to usernames like usera-xxx. Does virtual user mean, you are already hosting different users in different domains, i.e.: firstname.name at domaina.tld someone.else at domainb.tld So if I am firstname.name at domaina.tld, I need to login using firstname.name#domaina.tld now? Regards, Torsten Helmut Weigel schrieb: > Hi, > > you guessed right ;-) > > It is an existing installation with about 30000 user right now. > Up to now we mapped virtual users to usernames like usera-xxx. > > Regards, > Helmut > > > -----Urspr?ngliche Nachricht----- > Von: Torsten Schlabach [mailto:tschlabach at gmx.net] > Gesendet: Dienstag, 12. Mai 2009 13:57 > An: Helmut Weigel > Betreff: Re: Username with @ sign at login possible? > > Dear Helmut! > > When asking "is this possible" I guess you refer to the fact that by default the @ will cut the email address into a local part (left of the > @) and turn the domain name into a realm which may brake your SASL authentication. > > Is this an existing installation where users have used other names before or are you settings this up front scratch? Just asking to possibly guide you around some potential pitfalls. > > Regards, > Torsten > > Helmut Weigel schrieb: >> Hi all, >> >> our customer wants to login with the full mailaddress as the username >> to our cyrus imapd. is this possible? >> >> We run an installation with postfix and cyrus-imapd. >> >> Helmut Weigel >> >> DFB-Medien GmbH & Co. KG >> Otto-Fleck-Schneise 6 >> 60528 Frankfurt >> >> fon: +49 (69) 6788-319 >> fax: +49 (69) 6788-343 >> pcfax: +49 (511) 760770 76 - 259 >> email: helmut.weigel at dfbnet.de >> Homepage: www.dfb-medien.de >> >> -------------------------------------------- >> Hermann-Neuberger-Haus | Otto-Fleck-Schneise 6 | 60528 Frankfurt | >> DFB Medien GmbH & Co. KG | Gesch?ftsf?hrung: DFB Medien >> Verwaltungs-GmbH, deren Gesch?ftsf?hrer: Kurt G?rtner, Tilman Walk >> |Vorsitzender des >> Aufsichtsrates: Dr. Theo Zwanziger | HRA 30550 | Registergericht: >> Frankfurt >> >> ---- >> 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 reinaldoc at gmail.com Tue May 12 12:21:14 2009 From: reinaldoc at gmail.com (Reinaldo de Carvalho) Date: Tue, 12 May 2009 13:21:14 -0300 Subject: AW: Username with @ sign at login possible? In-Reply-To: <20090512174544328.00000001848@dfbm-hwe> References: <4A09726D.5090504@gmx.net> <20090512174544328.00000001848@dfbm-hwe> Message-ID: <4a5881460905120921y373faa34i9177f692f2460af0@mail.gmail.com> On Tue, May 12, 2009 at 12:45 PM, Helmut Weigel wrote: > Hi! > > yess your right. more specified ist like > > we have a lot (~30.000) of users e.g. name at domaina.tld in the default domain (postfix). > In cyrus they are just user.name > > Then we have several users in the postfix virtual table e.g. someone_else at domainb.tld > They are mapped to cyrus users user.someone_else_domainb > > The mapping ist done in the ldapmap in postfix. the ldap maps email to uid. > > Regards Helmut > The first question is if you want login only with "user at domaina.tld" or with "user" too, on cyrus and postfix. Sasl related, you need match ldap_filter with johndoe and johndoe at domaina.tld usernames. Cyrus related, you need set "defaultdomain: domaina.tld" on imapd.conf for cyrus map username johndoe at domaina.tld to mailbox johndoe. For suport multdomains is another question, and is required use 'mail' attribute for all autentication queries, enable "virtdomains" and create mailbox with domain: user/johndoe at example.net user/johndoe/Sent at example.net user/johndoe/Drafts at example.net user/johndoe at example.org user/johndoe/Sent at example.org user/johndoe/Drafts at example.org -- Reinaldo de Carvalho http://korreio.sf.net http://python-cyrus.sf.net From pobox at verysmall.org Wed May 13 17:14:55 2009 From: pobox at verysmall.org (Iv Ray) Date: Wed, 13 May 2009 23:14:55 +0200 Subject: searching for a 25 seconds delay Message-ID: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> Hello everyone, For several months I have been searching the reason for a 25 seconds delay on every Squirrelmail operation (login, select folder, select another page) - the mail server runs on FreeBSD 6.x with latest postfix and Cyrus IMAP with Cyrus SASL authentication against a PostgreSQL database. Mail clients like Mac Mail, Thunderbird, etc. do not exhibit this problem. I received some guidance on this list and I tried quite a few things without being able to locate the problem. Today, however, I finally noticed something - 1. All operations that I could try using imtest respond immediately (including initial login). 2. However the initial login of cyradm is delayed exactly 25 seconds. It would be great if someone could help me analyze the reason for this difference, which might bring me closer to the issue. Cyrus does not have redundant authentication mechanisms (some people suggested that this might cause delay) and the 25 seconds appear very stable (i. e. it is always 25 seconds). Thank you very much! Iv From morgan at orst.edu Wed May 13 19:19:59 2009 From: morgan at orst.edu (Andrew Morgan) Date: Wed, 13 May 2009 16:19:59 -0700 (PDT) Subject: mupdate TLS In-Reply-To: References: Message-ID: On Mon, 16 Jun 2008, Wesley Craig wrote: > On 16 Jun 2008, at 19:07, Andrew Morgan wrote: >> Does the mupdate process in a Cyrus murder actually use TLS? > > Almost certainly. mupdate_connect devolves to backend_connect, the same > routine that cyrus routinely uses throughout for proxy connections. Also, > the mupdate server pays attention to the "allowplaintext" configuration, so > if you're not using TLS and aren't permitting plaintest, passwords don't > work. Are you using GSSAPI? > >> The 'mupdatetest' binary doesn't seem to support it. The --help doesn't >> list TLS as an option, and if I use "-t ''", it just hangs during TLS >> negotiation. > > I see that imtest / mupdatetest specifically doesn't mention -t wrt mupdate. > But imtest's TLS support is pretty broken, AFAIK. In particular, there's not > way at all to set a CA location. In any case, mupdatetest -t "" does in fact > work for me, tho it gives errors about self-signed certificates. With no CA, > self-signed certs are kind of a given. > >> It seems like it should work because mupdated lists STARTTLS in the >> capability string, but none of the hosts in my Cyrus murder try to use TLS >> as far as I can tell. > > If you don't want them to, don't configure certificates for your mupdate > master. Personally, I'm using GSSAPI everywhere, so I prefer not to have > certificates configured where they aren't going to provide me with much (if > any) benefit. If you do configure them, they are used. Following up on this old thread... When I use mupdatetest with the TLS option, it hangs: mail1:~# mupdatetest -u cyr_mupdate -a cyr_mupdate -t '' test1.onid.oregonstate.edu S: * AUTH "PLAIN" S: * STARTTLS S: * PARTIAL-UPDATE S: * OK MUPDATE "test1.onid.oregonstate.edu" "Cyrus Murder" "v2.3.13" "(master)" C: S01 STARTTLS S: S01 OK Begin TLS negotiation now SSL_connect error -1 SSL session removed failure: TLS negotiation failed! This is what appears in the mupdate server logs: May 13 13:35:14 test1 mupdate[21064]: accepted connection May 13 13:35:14 test1 mupdate[21064]: New worker thread started, for a total of 3 May 13 13:38:14 test1 mupdate[21064]: SSL_accept() timed out -> fail May 13 13:38:14 test1 mupdate[21064]: STARTTLS negotiation failed: mail1.onid.oregonstate.edu [128.193.4.128] May 13 13:38:14 test1 mupdate[21064]: Connection reset by peer, closing connection May 13 13:38:14 test1 mupdate[21064]: Thread timed out waiting for listener_lock I did an strace on mupdatetest and I can see it sending the TLS start bits (87 bytes of something). When I strace the mupdate process on the server, I see: [pid 21098] read(11, "S01 STARTTLS\r\n", 4096) = 14 [pid 21098] write(11, "S01 OK Begin TLS negotiation now"..., 34) = 34 [pid 21098] fcntl64(11, F_GETFL) = 0x2 (flags O_RDWR) [pid 21098] fcntl64(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0 [pid 21098] select(1, [], NULL, NULL, {180, 0} The server process doesn't seem to "see" the TLS bits that were sent. And.... after a lot of digging I see that this is a known bug: https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3119 Never mind! This sounds like an very complicated problem so I'll just stay away from TLS for mupdate. Although I don't understand why mupdate isn't having problems for me right now, since mupdate seems to be advertising STARTTLS in the capability string. Andy From rudy.gevaert at ugent.be Thu May 14 02:01:35 2009 From: rudy.gevaert at ugent.be (Rudy Gevaert) Date: Thu, 14 May 2009 08:01:35 +0200 Subject: searching for a 25 seconds delay In-Reply-To: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> References: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> Message-ID: <20090514080135.14854ev80igfym67@langoest.ugent.be> Citeren Iv Ray : > Hello everyone, > > For several months I have been searching the reason for a 25 seconds > delay on every Squirrelmail operation (login, select folder, select > another page) - the mail server runs on FreeBSD 6.x with latest > postfix and Cyrus IMAP with Cyrus SASL authentication against a > PostgreSQL database. > > Mail clients like Mac Mail, Thunderbird, etc. do not exhibit this > problem. > > I received some guidance on this list and I tried quite a few things > without being able to locate the problem. > > Today, however, I finally noticed something - > > 1. All operations that I could try using imtest respond immediately > (including initial login). > > 2. However the initial login of cyradm is delayed exactly 25 seconds. > > It would be great if someone could help me analyze the reason for this > difference, which might bring me closer to the issue. > > Cyrus does not have redundant authentication mechanisms (some people > suggested that this might cause delay) and the 25 seconds appear very > stable (i. e. it is always 25 seconds). It is maybe your sasl not having enough entropy, as probably squirelmail logs in for each request. Recompile sasl to use /dev/urandom in stead of /dev/random -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert Rudy.Gevaert at UGent.be tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur Direction ICT, Infrastructure dept. Groep Systemen Systems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- From pobox at verysmall.org Thu May 14 05:09:58 2009 From: pobox at verysmall.org (Iv Ray) Date: Thu, 14 May 2009 11:09:58 +0200 Subject: searching for a 25 seconds delay In-Reply-To: <20090514080135.14854ev80igfym67@langoest.ugent.be> References: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> <20090514080135.14854ev80igfym67@langoest.ugent.be> Message-ID: <470A388C-296F-48D6-B76D-8709B0902E46@verysmall.org> On 14.05.2009, at 08:01, Rudy Gevaert wrote: > Citeren Iv Ray : >> Hello everyone, >> >> For several months I have been searching the reason for a 25 seconds >> delay on every Squirrelmail operation (login, select folder, select >> another page) - the mail server runs on FreeBSD 6.x with latest >> postfix and Cyrus IMAP with Cyrus SASL authentication against a >> PostgreSQL database. >> >> Mail clients like Mac Mail, Thunderbird, etc. do not exhibit this >> problem. >> >> I received some guidance on this list and I tried quite a few things >> without being able to locate the problem. >> >> Today, however, I finally noticed something - >> >> 1. All operations that I could try using imtest respond immediately >> (including initial login). >> >> 2. However the initial login of cyradm is delayed exactly 25 seconds. >> >> It would be great if someone could help me analyze the reason for >> this >> difference, which might bring me closer to the issue. >> >> Cyrus does not have redundant authentication mechanisms (some people >> suggested that this might cause delay) and the 25 seconds appear very >> stable (i. e. it is always 25 seconds). > > It is maybe your sasl not having enough entropy, as probably > squirelmail logs in for each request. Recompile sasl to use > /dev/urandom in stead of /dev/random Hi, No change. What else can it be? Iv From Duncan.Gibb at SiriusIT.co.uk Thu May 14 06:08:14 2009 From: Duncan.Gibb at SiriusIT.co.uk (Duncan Gibb) Date: Thu, 14 May 2009 11:08:14 +0100 Subject: mupdate TLS In-Reply-To: References: Message-ID: <4A0BED8E.9030708@SiriusIT.co.uk> Andrew Morgan wrote: AM> Does the mupdate process in a Cyrus murder actually use TLS? AM> And.... after a lot of digging I see that this is a known bug: AM> https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3119 AM> Never mind! This sounds like an very complicated problem Not particularly - it's quite a small patch which goes onto 2.3.14 and current CVS HEAD cleanly. If there's any extra work required for it to be applied upstream, I'm happy to do that. AM> so I'll just stay away from TLS for mupdate. Although I don't AM> understand why mupdate isn't having problems for me right now, AM> since mupdate seems to be advertising STARTTLS in the AM> capability string. If your config allows the Mupdate server to advertise a usable SASL mech without doing a "STARTTLS", then backend_authenticate() won't bother. We've deployed Murder Classic with TLS everywhere and client cert authentication between all the systems using this patch plus the client certs one (bug #3133). On the Mupdate box we have something like: allowplaintext: no sasl_mech_list: EXTERNAL tls_require_cert: true tls_ca_file: /etc/ssl/certs/client-internal-CA.pem mupdate_admins: fe1.client.dom fe2.client.dom fe3.client.dom \ fe4.client.dom fe5.client.dom fe6.client.dom \ be1.client.dom be2.client.dom be3.client.dom Cheers Duncan -- Duncan Gibb - Technical Director Sirius Corporation plc - control through freedom http://www.siriusit.co.uk/ || t: +44 870 608 0063 Debian Cyrus Team - https://alioth.debian.org/projects/pkg-cyrus-imapd/ From pegasus at nerv.eu.org Thu May 14 06:21:37 2009 From: pegasus at nerv.eu.org (Jure =?UTF-8?B?UGXEjWFy?=) Date: Thu, 14 May 2009 12:21:37 +0200 Subject: shared folders permissions from ldap Message-ID: <20090514122137.e3d3c5c6.pegasus@nerv.eu.org> Hello, I find myself playing with cyrus again after a few years, this time in a bit different role. I'm setting up a company internal mail system with a central point of management. I chose ldap for auth, mail routing and antispam info. Now I'm looking at shared folders and find them very useful for what I want to do. My only problem is that their permissions need to be set within cyrus (as they are basically imap permissions), which means another admin interface for that. So I'm looking for ideas on how to integrate the two. Does anyone know a web ui of some sort that would integrate editing ldap and imap flags? Before we start writing our own ... -- Jure Pe?ar http://jure.pecar.org From mayak at australsat.com Thu May 14 06:42:08 2009 From: mayak at australsat.com (mayak chunder-qwern) Date: Thu, 14 May 2009 12:42:08 +0200 Subject: shared folders permissions from ldap In-Reply-To: <20090514122137.e3d3c5c6.pegasus@nerv.eu.org> References: <20090514122137.e3d3c5c6.pegasus@nerv.eu.org> Message-ID: <1242297728.10269.23.camel@sumatra.ccuse.com> Hi Jure, Never played with those flags, but for everything else you're doing, you should definitely have a look at Gosa -- best ldap tool I've ever seen. https://oss.gonicus.de/labs/gosa/ You could certainly code what you're looking for in a plugin .... Cheers Mayak On Thu, 2009-05-14 at 12:21 +0200, Jure Pe?ar wrote: > Hello, > > I find myself playing with cyrus again after a few years, this time in a bit different role. > > I'm setting up a company internal mail system with a central point of management. I chose ldap for auth, mail routing and antispam info. Now I'm looking at shared folders and find them very useful for what I want to do. My only problem is that their permissions need to be set within cyrus (as they are basically imap permissions), which means another admin interface for that. > > So I'm looking for ideas on how to integrate the two. Does anyone know a web ui of some sort that would integrate editing ldap and imap flags? Before we start writing our own ... > > > -- > > Jure Pe?ar > http://jure.pecar.org > ---- > 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 Duncan.Gibb at SiriusIT.co.uk Thu May 14 06:46:41 2009 From: Duncan.Gibb at SiriusIT.co.uk (Duncan Gibb) Date: Thu, 14 May 2009 11:46:41 +0100 Subject: shared folders permissions from ldap In-Reply-To: <20090514122137.e3d3c5c6.pegasus@nerv.eu.org> References: <20090514122137.e3d3c5c6.pegasus@nerv.eu.org> Message-ID: <4A0BF691.9010004@SiriusIT.co.uk> Jure Pe?ar wrote: JP> I'm setting up a company internal mail system with a central point JP> of management. I chose ldap for auth, mail routing and antispam JP> info. Now I'm looking at shared folders and find them very useful JP> for what I want to do. My only problem is that their permissions JP> need to be set within cyrus (as they are basically imap JP> permissions), which means another admin interface for that. Not necessarily. You can probably do most of it with the Cyrus pts ldap module. Unfortunately that's currently a very prickly beast to configure. I had to read the source code more than once to understand how to make it respect "group:foo" ACLs in the context of what I consider a "normal" LDAP tree. When I get my head out of my current project, I'd like to start a discussion with interested parties (Wes?) wrt how pts ldap _ought_ to work... JP> So I'm looking for ideas on how to integrate the two. Does anyone JP> know a web ui of some sort that would integrate editing ldap and JP> imap flags? Before we start writing our own ... Our intention is to tweak GOsa http://www.gosa-project.org/ which solves most of the problem already. Duncan -- Duncan Gibb - Technical Director Sirius Corporation plc - control through freedom http://www.siriusit.co.uk/ || t: +44 870 608 0063 Debian Cyrus Team - https://alioth.debian.org/projects/pkg-cyrus-imapd/ From reinaldoc at gmail.com Thu May 14 07:21:20 2009 From: reinaldoc at gmail.com (Reinaldo de Carvalho) Date: Thu, 14 May 2009 08:21:20 -0300 Subject: shared folders permissions from ldap In-Reply-To: <20090514122137.e3d3c5c6.pegasus@nerv.eu.org> References: <20090514122137.e3d3c5c6.pegasus@nerv.eu.org> Message-ID: <4a5881460905140421w3c7bd329w129be3f68ddad619@mail.gmail.com> On Thu, May 14, 2009 at 7:21 AM, Jure Pe?ar wrote: > > Hello, > > I find myself playing with cyrus again after a few years, this time in a bit different role. > > I'm setting up a company internal mail system with a central point of management. I chose ldap for auth, mail routing and antispam info. Now I'm looking at shared folders and find them very useful for what I want to do. My only problem is that their permissions need to be set within cyrus (as they are basically imap permissions), which means another admin interface for that. > Do you look Korreio? http://korreio.sf.net > So I'm looking for ideas on how to integrate the two. Does anyone know a web ui of some sort that would integrate editing ldap and imap flags? Before we start writing our own ... > > -- > > Jure Pe?ar > http://jure.pecar.org -- Reinaldo de Carvalho From reinaldoc at gmail.com Thu May 14 07:29:41 2009 From: reinaldoc at gmail.com (Reinaldo de Carvalho) Date: Thu, 14 May 2009 08:29:41 -0300 Subject: searching for a 25 seconds delay In-Reply-To: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> References: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> Message-ID: <4a5881460905140429r5f41cd12h611bb170dfb350f8@mail.gmail.com> On Wed, May 13, 2009 at 6:14 PM, Iv Ray wrote: > > 1. All operations that I could try using imtest respond immediately > (including initial login). > > 2. However the initial login of cyradm is delayed exactly 25 seconds. > > It would be great if someone could help me analyze the reason for this > difference, which might bring me closer to the issue. > Check delay reason: tcpdump -n -i lo -s 0 -A port 143 -- Reinaldo de Carvalho http://korreio.sf.net http://python-cyrus.sf.net From list at joreybump.com Thu May 14 09:29:07 2009 From: list at joreybump.com (Jorey Bump) Date: Thu, 14 May 2009 09:29:07 -0400 Subject: searching for a 25 seconds delay In-Reply-To: <470A388C-296F-48D6-B76D-8709B0902E46@verysmall.org> References: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> <20090514080135.14854ev80igfym67@langoest.ugent.be> <470A388C-296F-48D6-B76D-8709B0902E46@verysmall.org> Message-ID: <4A0C1CA3.6080908@joreybump.com> Iv Ray wrote, at 05/14/2009 05:09 AM: > On 14.05.2009, at 08:01, Rudy Gevaert wrote: >> It is maybe your sasl not having enough entropy, as probably >> squirelmail logs in for each request. Recompile sasl to use >> /dev/urandom in stead of /dev/random > > Hi, > > No change. > > What else can it be? Show us how you are invoking imtest on the command line, then show us everything up to and including the line containing the word AUTHENTICATE (before you actually enter your password). This will reveal the mechanisms offered by the server, and the one imtest is using without encountering a delay. Consider creating a test user for this, so you don't accidentally post any sensitive information. Once you have that information, you can compare it to the imapd log, which will list the mechanism Squirrelmail is using. Speaking of logs, have you inspected them for relevant errors? Either way, a sample would be helpful. From morgan at orst.edu Thu May 14 12:33:05 2009 From: morgan at orst.edu (Andrew Morgan) Date: Thu, 14 May 2009 09:33:05 -0700 (PDT) Subject: mupdate TLS In-Reply-To: <4A0BED8E.9030708@SiriusIT.co.uk> References: <4A0BED8E.9030708@SiriusIT.co.uk> Message-ID: On Thu, 14 May 2009, Duncan Gibb wrote: > Andrew Morgan wrote: > > AM> Does the mupdate process in a Cyrus murder actually use TLS? > > AM> And.... after a lot of digging I see that this is a known bug: > > AM> https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3119 > > AM> Never mind! This sounds like an very complicated problem > > Not particularly - it's quite a small patch which goes onto 2.3.14 and > current CVS HEAD cleanly. If there's any extra work required for it to > be applied upstream, I'm happy to do that. Well I'm a little scared to break things on my production cyrus site. I don't particularly need this feature, but it was on my checklist of things for a long time. I'm happy to wait until this code is included in a regular release. > AM> so I'll just stay away from TLS for mupdate. Although I don't > AM> understand why mupdate isn't having problems for me right now, > AM> since mupdate seems to be advertising STARTTLS in the > AM> capability string. > > If your config allows the Mupdate server to advertise a usable SASL mech > without doing a "STARTTLS", then backend_authenticate() won't bother. Ah, that explains it. I have allowplaintext: 1 at the moment. I'll make a note of this though. Thanks for your explanation! Andy From murch at andrew.cmu.edu Thu May 14 13:05:34 2009 From: murch at andrew.cmu.edu (Ken Murchison) Date: Thu, 14 May 2009 13:05:34 -0400 Subject: Cyrus SASL 2.1.23 Released Message-ID: <4A0C4F5E.8080901@andrew.cmu.edu> I'd like to announce the release of Cyrus SASL 2.1.23 on ftp.andrew.cmu.edu. This version includes a fix for a potential buffer overflow in sasl_encode64() (see http://www.kb.cert.org/vuls/id/238019), otherwise it is identical to 2.1.22. Please note that while this fixes vulnerable code, non-vulnerable code may break if the buffer passed to sasl_encode64() is the exact size of the encoded data and doesn't include space for the trailing NUL. Please send any feedback either to cyrus-sasl at lists.andrew.cmu.edu (public list) or to cyrus-bugs at andrew.cmu.edu. Download at: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.23.tar.gz -- Kenneth Murchison Systems Programmer Carnegie Mellon University From pobox at verysmall.org Thu May 14 15:53:39 2009 From: pobox at verysmall.org (Iv Ray) Date: Thu, 14 May 2009 21:53:39 +0200 Subject: searching for a 25 seconds delay In-Reply-To: <4A0C1CA3.6080908@joreybump.com> References: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> <20090514080135.14854ev80igfym67@langoest.ugent.be> <470A388C-296F-48D6-B76D-8709B0902E46@verysmall.org> <4A0C1CA3.6080908@joreybump.com> Message-ID: <6B5A13AE-8C92-4063-AC66-30A3762C40B5@verysmall.org> On 14.05.2009, at 15:29, Jorey Bump wrote: > Show us how you are invoking imtest on the command line, then show us > everything up to and including the line containing the word > AUTHENTICATE > (before you actually enter your password). This will reveal the > mechanisms offered by the server, and the one imtest is using without > encountering a delay. Consider creating a test user for this, so you > don't accidentally post any sensitive information. > > Once you have that information, you can compare it to the imapd log, > which will list the mechanism Squirrelmail is using. Speaking of logs, > have you inspected them for relevant errors? Either way, a sample > would > be helpful. While playing with your advice I think I found something. As soon as I give the cyradm password, in the error log appears - May 14 20:10:01 xxxxx imap[24292]: login: localhost [127.0.0.1] cyrus LOGIN User logged in Which means that cyradm logs in as fast as imtest. (I am really sorry, I did not read the logs earlier... I inherited a server and I am not that good in administering it.) And then! - exactly after 15 seconds comes a line - May 14 20:10:26 xxxxx imap[24292]: dracsend: call failed: RPC: Timed out (the 25 seconds where my own counting, seems I count a bit too fast) I feel a bit stupid now, but it seems the drac is operating improperly. I knew something about it, but it never occurred to me that it can cause the delay. I'll try to fix this now, thanks a lot, Jorey! Iv PS drac is in case the clients cannot SMTP authenticate, is that correct? If we assume that only modern e-mail clients are used, is it safe to remove drac? From pobox at verysmall.org Thu May 14 15:56:18 2009 From: pobox at verysmall.org (Iv Ray) Date: Thu, 14 May 2009 21:56:18 +0200 Subject: searching for a 25 seconds delay, RESOLVED In-Reply-To: <6B5A13AE-8C92-4063-AC66-30A3762C40B5@verysmall.org> References: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> <20090514080135.14854ev80igfym67@langoest.ugent.be> <470A388C-296F-48D6-B76D-8709B0902E46@verysmall.org> <4A0C1CA3.6080908@joreybump.com> <6B5A13AE-8C92-4063-AC66-30A3762C40B5@verysmall.org> Message-ID: <1AB24C68-BDB4-4BAC-9375-35FAFC4B01C2@verysmall.org> > And then! - exactly after 15 seconds comes a line - I mean, 25 seconds. From pobox at verysmall.org Thu May 14 16:26:17 2009 From: pobox at verysmall.org (Iv Ray) Date: Thu, 14 May 2009 22:26:17 +0200 Subject: searching for a 25 seconds delay, RESOLVED In-Reply-To: <6B5A13AE-8C92-4063-AC66-30A3762C40B5@verysmall.org> References: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> <20090514080135.14854ev80igfym67@langoest.ugent.be> <470A388C-296F-48D6-B76D-8709B0902E46@verysmall.org> <4A0C1CA3.6080908@joreybump.com> <6B5A13AE-8C92-4063-AC66-30A3762C40B5@verysmall.org> Message-ID: > On 14.05.2009, at 15:29, Jorey Bump wrote: >> Show us how you are invoking imtest on the command line, then show us >> everything up to and including the line containing the word >> AUTHENTICATE >> (before you actually enter your password). This will reveal the >> mechanisms offered by the server, and the one imtest is using without >> encountering a delay. Consider creating a test user for this, so you >> don't accidentally post any sensitive information. >> >> Once you have that information, you can compare it to the imapd log, >> which will list the mechanism Squirrelmail is using. Speaking of >> logs, >> have you inspected them for relevant errors? Either way, a sample >> would >> be helpful. > > While playing with your advice I think I found something. > > As soon as I give the cyradm password, in the error log appears - > > May 14 20:10:01 xxxxx imap[24292]: login: localhost [127.0.0.1] cyrus > LOGIN User logged in > > Which means that cyradm logs in as fast as imtest. > > (I am really sorry, I did not read the logs earlier... I inherited a > server and I am not that good in administering it.) > > And then! - exactly after 15 seconds comes a line - > > May 14 20:10:26 xxxxx imap[24292]: dracsend: call failed: RPC: Timed > out > > (the 25 seconds where my own counting, seems I count a bit too fast) > > I feel a bit stupid now, but it seems the drac is operating > improperly. I knew something about it, but it never occurred to me > that it can cause the delay. > > I'll try to fix this now, thanks a lot, Jorey! > > Iv > > PS drac is in case the clients cannot SMTP authenticate, is that > correct? If we assume that only modern e-mail clients are used, is it > safe to remove drac? That was it. Removed drac and the 25 seconds are gone. It would be great to know if all modern e-mail clients can do SMTP authentication! Thanks a lot! Iv From morgan at orst.edu Thu May 14 16:28:23 2009 From: morgan at orst.edu (Andrew Morgan) Date: Thu, 14 May 2009 13:28:23 -0700 (PDT) Subject: searching for a 25 seconds delay, RESOLVED In-Reply-To: References: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> <20090514080135.14854ev80igfym67@langoest.ugent.be> <470A388C-296F-48D6-B76D-8709B0902E46@verysmall.org> <4A0C1CA3.6080908@joreybump.com> <6B5A13AE-8C92-4063-AC66-30A3762C40B5@verysmall.org> Message-ID: On Thu, 14 May 2009, Iv Ray wrote: > That was it. > > Removed drac and the 25 seconds are gone. > > It would be great to know if all modern e-mail clients can do SMTP > authentication! They can. :) Andy From pobox at verysmall.org Thu May 14 16:47:48 2009 From: pobox at verysmall.org (Iv Ray) Date: Thu, 14 May 2009 22:47:48 +0200 Subject: searching for a 25 seconds delay, RESOLVED In-Reply-To: References: <9AD2819F-C0E2-40BB-99F0-E0818B4FC6B0@verysmall.org> <20090514080135.14854ev80igfym67@langoest.ugent.be> <470A388C-296F-48D6-B76D-8709B0902E46@verysmall.org> <4A0C1CA3.6080908@joreybump.com> <6B5A13AE-8C92-4063-AC66-30A3762C40B5@verysmall.org> Message-ID: <3880FBA8-7D3B-4EBE-A346-3D0D9601635D@verysmall.org> On 14.05.2009, at 22:28, Andrew Morgan wrote: > On Thu, 14 May 2009, Iv Ray wrote: > >> That was it. >> >> Removed drac and the 25 seconds are gone. >> >> It would be great to know if all modern e-mail clients can do SMTP >> authentication! > > They can. :) > > Andy Nice, to know :) Thank you, Iv From johnm at advocap.org Fri May 15 07:15:26 2009 From: johnm at advocap.org (John McMonagle) Date: Fri, 15 May 2009 06:15:26 -0500 Subject: Problem migrating acls. Message-ID: <200905150615.26903.johnm@advocap.org> Working on migrating our debian sarge cyrus mail to kolab 2.2.1. That would be cyrus 2.1.18 to cyrus 2.3.13. The problem is in the old cyrus users are specified as userid the new is userid at domain. I'll summarize what I have done. With new cyrus stopped. I copied the mail spool over to the correct spot with correct permissions. Did ctl_mboxlist -d on old server. edited with awk 'BEGIN { FS = "\t" } ;{print "advocap.org!" $1 "\t" $2 "\t" $3"@advocap.org" "\t" $4 }' /tmp/mboxlist.txt > /tmp/newmbox.txt Sample from old dump mboxlist.txt user.test default test lrswipcda mailadm lrswipcda user.test.Drafts default test lrswipcda mailadm lrswipcda user.test.Sent default test lrswipcda mailadm lrswipcda user.test.Trash default test lrswipcda mailadm lrswipcda Sample from New newmbox.txt: advocap.org!user.test default test at advocap.org lrswipcda advocap.org!user.test.Drafts default test at advocap.org lrswipcda advocap.org!user.test.Sent default test at advocap.org lrswipcda advocap.org!user.test.Trash default test at advocap.org lrswipcda loaded with ctl_mboxlist -u on the new server Did cyrreconstruct and it finds all the new mail boxes. start cyrus in cyradm lm user/test at advocap.org user/test at advocap.org (\HasChildren) lam user/test at advocap.org .....Nothing... If I add with sam it's ok. Did a test and it appears that the acls are defined in the cyrus.header files. For example: Cyrus mailbox header "The best thing about this system was that it had lots of goals." --Jim Morris on Andrew advocap.org!user.test 1513ee1e4424dbbc Junk test at advocap.org lrswipcda mailadm lrswipcda I edited the last line and then ran cyrreconstruct. Now acl is OK. Is this how to do it? Is there a better way? Is the mbox dump and upload really needed? Thanks John -------------- next part -------------- A non-text attachment was scrubbed... Name: johnm.vcf Type: text/x-vcard Size: 250 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090515/164061b8/attachment.vcf From Eric.Luyten at vub.ac.be Fri May 15 08:49:21 2009 From: Eric.Luyten at vub.ac.be (Eric Luyten) Date: Fri, 15 May 2009 14:49:21 +0200 (CEST) Subject: Problem migrating acls. In-Reply-To: <200905150615.26903.johnm@advocap.org> References: <200905150615.26903.johnm@advocap.org> Message-ID: <59602.134.184.15.103.1242391761.squirrel@nuts.vub.ac.be> On Fri, May 15, 2009 1:15 pm, John McMonagle wrote: > Did a test and it appears that the acls are defined in the cyrus.header > files. > > For example: > Cyrus mailbox header > "The best thing about this system was that it had lots of goals." > --Jim Morris on Andrew > advocap.org!user.test 1513ee1e4424dbbc Junk > test at advocap.org lrswipcda mailadm lrswipcda > > I edited the last line and then ran cyrreconstruct. > Now acl is OK. Mailbox ACLs do indeed appear both in the mailboxes.db AND in the individual cyrus.header files. Which one is authoritative for which action ? Eric. From dgottsc at emory.edu Fri May 15 10:05:06 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Fri, 15 May 2009 10:05:06 -0400 Subject: Vacation Application In-Reply-To: <20090310190559.GT13289@it.is.rice.edu> References: <49B6AA9B.4060905@onlight.com> <20090310190559.GT13289@it.is.rice.edu> Message-ID: I'm in the process of setting up smartsieve now, but I'm wondering how to write a hook for login details. I see the sample in the conf.php, but I don't entirely understand what is going on or how to write my own. I'd like to have a hook that authenticates username and password against ldap, and pulls the server for them to login to. Any pointers/examples? Thanks for any help! David Gottschalk Emory University UTS Messaging Team -----Original Message----- From: Kenneth Marshall [mailto:ktm at rice.edu] Sent: Tuesday, March 10, 2009 3:06 PM To: Gottschalk, David Cc: Nic Bernstein; info-cyrus at lists.andrew.cmu.edu Subject: Re: Vacation Application We use SmartSieve (http://smartsieve.sourceforge.net/) to manage vacation/sieve scripts. We look up the appropriate backend in our LDAP directory, but a DNS lookup could be done just as easily. It is simple to setup an configure, 1.0RC2. Cheers, Ken On Tue, Mar 10, 2009 at 03:00:39PM -0400, Gottschalk, David wrote: > No murder here. > > Oldschool Cyrus setup. I want to upgrade it actually, but there are 30K + accounts on these 3 servers. > > The only problem I see with having it try each server, but failing how do you know if it really isn't that server, or there is just a network issue. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: Nic Bernstein [mailto:nic at onlight.com] > Sent: Tuesday, March 10, 2009 2:00 PM > To: Gottschalk, David > Cc: info-cyrus at lists.andrew.cmu.edu > Subject: Re: Vacation Application > > On 03/10/2009 12:42 PM, Gottschalk, David wrote: > > Hi All, > > I have a question regarding a vacation application for Cyrus servers. I want to know what others are using to meet this need. Currently, we have a home grown application that allows users to enable/disable vacation messages for their Cyrus accounts. This application is old and outdated, and needs to be replaced. I found the Horde vacation application which looks like it will meet my needs, but I have one issue. We currently have three Cyrus servers with all the accounts spread out across those three servers. The problem I am running into with any vacation application, is how to identify to the vacation application which server a user is on without the user needing to know this information. Is anyone else in a similar situation? > > > Um, use a murder? Otherwise you may want to adapt something like the > cyrus user validation script which was recently posted here. Your > application could then perform lookups in the output of that script. > Lastly, you could just let you application attempt authenticating > against each server, in turn, stopping once it succeeds. > > Cheers, > -nic > > -- > Nic Bernstein nic at onlight.com > Onlight llc. www.onlight.com > 2266 North Prospect Avenue #610 v. 414.272.4477 > Milwaukee, Wisconsin 53202-6306 f. 414.290.0335 > > > This e-mail message (including any attachments) is for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution > or copying of this message (including any attachments) is strictly > prohibited. > > If you have received this message in error, please contact > the sender by reply e-mail message and destroy all copies of the > original message (including attachments). > ---- > 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 ktm at rice.edu Fri May 15 10:30:17 2009 From: ktm at rice.edu (Kenneth Marshall) Date: Fri, 15 May 2009 09:30:17 -0500 Subject: Vacation Application In-Reply-To: References: <49B6AA9B.4060905@onlight.com> <20090310190559.GT13289@it.is.rice.edu> Message-ID: <20090515143017.GG28923@it.is.rice.edu> On Fri, May 15, 2009 at 10:05:06AM -0400, Gottschalk, David wrote: > I'm in the process of setting up smartsieve now, but I'm wondering how to write a hook for login details. > > I see the sample in the conf.php, but I don't entirely understand what is going on or how to write my own. I'd like to have a hook that authenticates username and password against ldap, and pulls the server for them to login to. > > Any pointers/examples? > > Thanks for any help! > > David Gottschalk > Emory University > UTS Messaging Team > David, Unless you are using a SSO system, you will still need to authenticate to the sieve server. The problem there is to use the right backend if you have multiple backends. In our case, we have a Berkeley DB map file that contains the user -> backend mappings that we also use for our perdition IMAP/POP proxy to the backends. For that we use something like: $passwd = Crypto::decrypt($smartsieve['passwd']); $managesieve = new Managesieve(); // Open server based on popmap.bdb entry $id = dba_open("/etc/opt/perdition/popmap.bdb","r","db4"); if (!$id) { return 'authenticate: unable to open popmap'; } if (dba_exists($smartsieve['authz'], $id)) { $ret = $managesieve->open(dba_fetch($smartsieve['authz'], $id), 2000, SmartSieve::getConf('socket_timeout', 2)); } else { dba_close($id); return 'authenticate: no mail server found'; } dba_close($id); if ($ret !== true) { $err = $managesieve->getError(); in lib/SmartSieve.lib. You would want to do something similar to identify your backend. LDAP can be used as well but since we already need the flatfile for perdition we just used it. We do pull and updated list of aliases to prepopulate the vacation fields using the getEmailAddresses() hook in config.php. Something like this could also be used to pull the backend from your LDAP directory: /** * Example get_email_addresses_hook function. * * @return array The list of email addresses */ function getEmailAddresses() { $addresses = array(); if (extension_loaded('ldap')) { $ds = ldap_connect('ldap.rice.edu'); if ($ds) { if (!ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) { fatal_error("Failed to set LDAP Protocol version to 3, TLS not supported."); } // starttls is broken in php 5.2.1 //if (!ldap_start_tls($ds)) { // fatal_error("Ldap_start_tls failed"); //} // anonymous bind to get mailAlternateAddress entries $r = ldap_bind($ds); $sr = ldap_search($ds, "dc=rice,dc=edu", "uid=".$_SESSION['smartsieve']['authz']); $entries = ldap_get_entries($ds, $sr); for ($i=0; $i<$entries['count']; $i++) { for ($j=0; $j<$entries[$i]['mailalternateaddress']['count']; $j++) { $addresses[] = $entries[$i]['mailalternateaddress'][$j]; } } } ldap_close($ds); } return $addresses; } I hope that this helps. Regards, Ken > > -----Original Message----- > From: Kenneth Marshall [mailto:ktm at rice.edu] > Sent: Tuesday, March 10, 2009 3:06 PM > To: Gottschalk, David > Cc: Nic Bernstein; info-cyrus at lists.andrew.cmu.edu > Subject: Re: Vacation Application > > We use SmartSieve (http://smartsieve.sourceforge.net/) to > manage vacation/sieve scripts. We look up the appropriate backend > in our LDAP directory, but a DNS lookup could be done just as > easily. It is simple to setup an configure, 1.0RC2. > > Cheers, > Ken > > On Tue, Mar 10, 2009 at 03:00:39PM -0400, Gottschalk, David wrote: > > No murder here. > > > > Oldschool Cyrus setup. I want to upgrade it actually, but there are 30K + accounts on these 3 servers. > > > > The only problem I see with having it try each server, but failing how do you know if it really isn't that server, or there is just a network issue. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > -----Original Message----- > > From: Nic Bernstein [mailto:nic at onlight.com] > > Sent: Tuesday, March 10, 2009 2:00 PM > > To: Gottschalk, David > > Cc: info-cyrus at lists.andrew.cmu.edu > > Subject: Re: Vacation Application > > > > On 03/10/2009 12:42 PM, Gottschalk, David wrote: > > > Hi All, > > > I have a question regarding a vacation application for Cyrus servers. I want to know what others are using to meet this need. Currently, we have a home grown application that allows users to enable/disable vacation messages for their Cyrus accounts. This application is old and outdated, and needs to be replaced. I found the Horde vacation application which looks like it will meet my needs, but I have one issue. We currently have three Cyrus servers with all the accounts spread out across those three servers. The problem I am running into with any vacation application, is how to identify to the vacation application which server a user is on without the user needing to know this information. Is anyone else in a similar situation? > > > > > Um, use a murder? Otherwise you may want to adapt something like the > > cyrus user validation script which was recently posted here. Your > > application could then perform lookups in the output of that script. > > Lastly, you could just let you application attempt authenticating > > against each server, in turn, stopping once it succeeds. > > > > Cheers, > > -nic > > > > -- > > Nic Bernstein nic at onlight.com > > Onlight llc. www.onlight.com > > 2266 North Prospect Avenue #610 v. 414.272.4477 > > Milwaukee, Wisconsin 53202-6306 f. 414.290.0335 > > > > > > This e-mail message (including any attachments) is for the sole use of > > the intended recipient(s) and may contain confidential and privileged > > information. If the reader of this message is not the intended > > recipient, you are hereby notified that any dissemination, distribution > > or copying of this message (including any attachments) is strictly > > prohibited. > > > > If you have received this message in error, please contact > > the sender by reply e-mail message and destroy all copies of the > > original message (including attachments). > > ---- > > 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 dgottsc at emory.edu Fri May 15 15:13:43 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Fri, 15 May 2009 15:13:43 -0400 Subject: Vacation Application In-Reply-To: <20090515143017.GG28923@it.is.rice.edu> References: <49B6AA9B.4060905@onlight.com> <20090310190559.GT13289@it.is.rice.edu> <20090515143017.GG28923@it.is.rice.edu> Message-ID: Kenneth, Thanks for the reply. That was helpful. I guess what I don't understand is how to know where to put information, and lookup information. I'm not really a PHP programmer, so its not always easy for me to look and see what is going on easily. So you just modified the SmartSieve.lib instead of using any type of custom hooks? What would you suggest? Thanks!! David Gottschalk Emory University UTS Messaging Team -----Original Message----- From: Kenneth Marshall [mailto:ktm at rice.edu] Sent: Friday, May 15, 2009 10:30 AM To: Gottschalk, David Cc: info-cyrus at lists.andrew.cmu.edu Subject: Re: Vacation Application On Fri, May 15, 2009 at 10:05:06AM -0400, Gottschalk, David wrote: > I'm in the process of setting up smartsieve now, but I'm wondering how to write a hook for login details. > > I see the sample in the conf.php, but I don't entirely understand what is going on or how to write my own. I'd like to have a hook that authenticates username and password against ldap, and pulls the server for them to login to. > > Any pointers/examples? > > Thanks for any help! > > David Gottschalk > Emory University > UTS Messaging Team > David, Unless you are using a SSO system, you will still need to authenticate to the sieve server. The problem there is to use the right backend if you have multiple backends. In our case, we have a Berkeley DB map file that contains the user -> backend mappings that we also use for our perdition IMAP/POP proxy to the backends. For that we use something like: $passwd = Crypto::decrypt($smartsieve['passwd']); $managesieve = new Managesieve(); // Open server based on popmap.bdb entry $id = dba_open("/etc/opt/perdition/popmap.bdb","r","db4"); if (!$id) { return 'authenticate: unable to open popmap'; } if (dba_exists($smartsieve['authz'], $id)) { $ret = $managesieve->open(dba_fetch($smartsieve['authz'], $id), 2000, SmartSieve::getConf('socket_timeout', 2)); } else { dba_close($id); return 'authenticate: no mail server found'; } dba_close($id); if ($ret !== true) { $err = $managesieve->getError(); in lib/SmartSieve.lib. You would want to do something similar to identify your backend. LDAP can be used as well but since we already need the flatfile for perdition we just used it. We do pull and updated list of aliases to prepopulate the vacation fields using the getEmailAddresses() hook in config.php. Something like this could also be used to pull the backend from your LDAP directory: /** * Example get_email_addresses_hook function. * * @return array The list of email addresses */ function getEmailAddresses() { $addresses = array(); if (extension_loaded('ldap')) { $ds = ldap_connect('ldap.rice.edu'); if ($ds) { if (!ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) { fatal_error("Failed to set LDAP Protocol version to 3, TLS not supported."); } // starttls is broken in php 5.2.1 //if (!ldap_start_tls($ds)) { // fatal_error("Ldap_start_tls failed"); //} // anonymous bind to get mailAlternateAddress entries $r = ldap_bind($ds); $sr = ldap_search($ds, "dc=rice,dc=edu", "uid=".$_SESSION['smartsieve']['authz']); $entries = ldap_get_entries($ds, $sr); for ($i=0; $i<$entries['count']; $i++) { for ($j=0; $j<$entries[$i]['mailalternateaddress']['count']; $j++) { $addresses[] = $entries[$i]['mailalternateaddress'][$j]; } } } ldap_close($ds); } return $addresses; } I hope that this helps. Regards, Ken > > -----Original Message----- > From: Kenneth Marshall [mailto:ktm at rice.edu] > Sent: Tuesday, March 10, 2009 3:06 PM > To: Gottschalk, David > Cc: Nic Bernstein; info-cyrus at lists.andrew.cmu.edu > Subject: Re: Vacation Application > > We use SmartSieve (http://smartsieve.sourceforge.net/) to > manage vacation/sieve scripts. We look up the appropriate backend > in our LDAP directory, but a DNS lookup could be done just as > easily. It is simple to setup an configure, 1.0RC2. > > Cheers, > Ken > > On Tue, Mar 10, 2009 at 03:00:39PM -0400, Gottschalk, David wrote: > > No murder here. > > > > Oldschool Cyrus setup. I want to upgrade it actually, but there are 30K + accounts on these 3 servers. > > > > The only problem I see with having it try each server, but failing how do you know if it really isn't that server, or there is just a network issue. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > -----Original Message----- > > From: Nic Bernstein [mailto:nic at onlight.com] > > Sent: Tuesday, March 10, 2009 2:00 PM > > To: Gottschalk, David > > Cc: info-cyrus at lists.andrew.cmu.edu > > Subject: Re: Vacation Application > > > > On 03/10/2009 12:42 PM, Gottschalk, David wrote: > > > Hi All, > > > I have a question regarding a vacation application for Cyrus servers. I want to know what others are using to meet this need. Currently, we have a home grown application that allows users to enable/disable vacation messages for their Cyrus accounts. This application is old and outdated, and needs to be replaced. I found the Horde vacation application which looks like it will meet my needs, but I have one issue. We currently have three Cyrus servers with all the accounts spread out across those three servers. The problem I am running into with any vacation application, is how to identify to the vacation application which server a user is on without the user needing to know this information. Is anyone else in a similar situation? > > > > > Um, use a murder? Otherwise you may want to adapt something like the > > cyrus user validation script which was recently posted here. Your > > application could then perform lookups in the output of that script. > > Lastly, you could just let you application attempt authenticating > > against each server, in turn, stopping once it succeeds. > > > > Cheers, > > -nic > > > > -- > > Nic Bernstein nic at onlight.com > > Onlight llc. www.onlight.com > > 2266 North Prospect Avenue #610 v. 414.272.4477 > > Milwaukee, Wisconsin 53202-6306 f. 414.290.0335 > > > > > > This e-mail message (including any attachments) is for the sole use of > > the intended recipient(s) and may contain confidential and privileged > > information. If the reader of this message is not the intended > > recipient, you are hereby notified that any dissemination, distribution > > or copying of this message (including any attachments) is strictly > > prohibited. > > > > If you have received this message in error, please contact > > the sender by reply e-mail message and destroy all copies of the > > original message (including attachments). > > ---- > > 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 gavan at coolfactor.org Mon May 18 07:18:19 2009 From: gavan at coolfactor.org (Gavan Fantom) Date: Mon, 18 May 2009 12:18:19 +0100 Subject: Incorrect sort order when sorting by date Message-ID: <4A1143FB.9060107@coolfactor.org> I have been running cyrus imapd for several years now. I recently installed roundcube, to provide access to email on those occasions when a proper IMAP client isn't available. Unlike Thunderbird, roundcube relies on IMAP SORT. When sorting by date, some emails from the past are presented as newer than the most recent messages. There is nothing in the headers which looks particuraly different, and those messages are stored in the correct order in the filesystem. The timestamp on the messages is consistent with the Date: header. I verified that this was imapd getting it wrong, using UID SORT (DATE) UTF-8 ALL It returned messages in the same order as roundcube had displayed them. One of the messages was from March this year (a facebook notification message, much the same as many other such messages - there really was nothing to stand out about this one) and the other messages were periodic updates from another website, spread across the last couple of years. Again, there was nothing particularly special that I could see about the headers in any of these messages. I tried running reconstruct on the folder after renaming the cyrus.{cache,header,index} files. Suspiciously, it recreated absolutely identical files. Perhaps it found the files that I had renamed. I see that this exact problem has been asked about before: http://lists.andrew.cmu.edu/pipermail/info-cyrus/2006-August/023316.html but there was no reply at the time. I also couldn't find a report about this issue in bugzilla. I am running cyrus imapd 2.2.13 on NetBSD, as installed from pkgsrc. Does anybody understand what is causing this? -- Gillette - the best a man can forget From andyjpb at ashurst.eu.org Mon May 18 07:45:08 2009 From: andyjpb at ashurst.eu.org (Andy Bennett) Date: Mon, 18 May 2009 12:45:08 +0100 Subject: Incorrect sort order when sorting by date In-Reply-To: <4A1143FB.9060107@coolfactor.org> References: <4A1143FB.9060107@coolfactor.org> Message-ID: <4A114A44.7030307@ashurst.eu.org> Hi, > I am running cyrus imapd 2.2.13 on NetBSD, as installed from pkgsrc. I've also got a cyrus + roundcube installation and I see the same problem. I've got cyrus 2.2.13-10 on Debian etch. The out of order messages in my INBOX just happen to be spam and some have weird character sets. The dates of sorted message in my INBOX are 06.01.2010 01:00 (spam) 28.12.2008 13:23 (spam) 28.12.2008 07:36 (spam) 28.12.2008 01:00 (spam) 18.05.2009 12:18 18.05.2009 12:12 ... When I sort in mailbox order the 28.12.2008 messages sort somewhere in the middle, roughly where I'd expect them. When I sort with the IMAP date sort the 28.12.2008 messages always seem to bubble to the top, even after new mail is delivered. Regards, @ndy -- andyjpb at ashurst.eu.org http://www.ashurst.eu.org/ http://www.gonumber.com/andyjpb 0x7EBA75FF From whl at igne.de Mon May 18 08:00:33 2009 From: whl at igne.de (Gerald Nowitzky) Date: Mon, 18 May 2009 14:00:33 +0200 Subject: imapd locked Message-ID: <31949_1242648035_n4IC0YC9028642_277c01c9d7b0$3fa03650$0a00a8c0@ALDI2> Hello! I had a strange problem with my cyrus here. I am starting imapd with imap cmd="imapd -U 50" listen="imap" prefork=0 maxchild=100 imaps cmd="imapd -s -U 50" listen="imaps" prefork=0 maxchild=100 Three times this morning I found that imap was stalled. I had 100 instances of the imap imapd-process. In the logs I just saw messages about connections established and connection timeout on imap. cyrmaster was running and listening on the imap port. After restarting everything was ok again. The interesting part is that the imaps - imapd was running well meanwhile. It might well be that I hit the maxchild limit on imap, but that shouldnt stall the complete imap, should it? I changed the imap process to cmd="imapd -U 10 -T 10" listen="imap" prefork=0 maxchild=200". It is running for now. Is there any explanation for that? Any Ideas where I could look for reasons if it happens again? I am using cyrus imap 2.2.13-10 on debian. Thanks a lot! (Gerald) From Hagedorn at uni-koeln.de Mon May 18 08:12:55 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Mon, 18 May 2009 14:12:55 +0200 Subject: imapd locked In-Reply-To: <31949_1242648035_n4IC0YC9028642_277c01c9d7b0$3fa03650$0a00a8c0@ALDI2> References: <31949_1242648035_n4IC0YC9028642_277c01c9d7b0$3fa03650$0a00a8c0@ALDI2> Message-ID: --On 18. Mai 2009 14:00:33 +0200 Gerald Nowitzky wrote: > I had a strange problem with my cyrus here. I am starting imapd with > > imap cmd="imapd -U 50" listen="imap" prefork=0 > maxchild=100 > imaps cmd="imapd -s -U 50" listen="imaps" prefork=0 > maxchild=100 > > > Three times this morning I found that imap was stalled. What dou you mean when you write "stalled"? > I had 100 > instances of the imap imapd-process. ... > It might well be that I hit the maxchild limit on imap, but that shouldnt > stall the complete imap, should it? Depends on what you mean. New connections to imapd block block indefinitely until the number of processes goes below maxchild. If that's what you call "stall", it's to be expected. -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090518/9adc6ef7/attachment.bin From kleiner77 at gmx.net Mon May 18 08:21:24 2009 From: kleiner77 at gmx.net (Stefan Palme) Date: Mon, 18 May 2009 14:21:24 +0200 Subject: another strange pop protocol Message-ID: <1242649284.17271.53.camel@devel.office.ancoso-development.de> Hello, We are running Cyrus IMAP Server 2.3.13 to store user mails. One of our customers uses MS Exchange to fetch the mails from our server to their MS Exchange system (from where the mails are distributed to the correct users in the customers intranet). Because customer complaints about times where MS exchange seems to not get any mails from our server, I have enabled telemetry logs for this customer. And I see the following strange stuff: -------------------------------------------------------------- >1242398161>+OK Mailbox locked and ready <12423981611242398161>+OK unique-id listing follows 1 1157352258.222464 2 1157352258.222465 3 1157352258.222466 ... (about 50 entries here) . <12423981611242398161>+OK scan listing follows 1 7863531 2 8217 3 20990 .... (again about 50 entries) . <12423981621242398162>+OK Message follows Return-Path: Received: .... // here I see the full email text. It is a multipart message with // an embedded image. The telemetry log ends with the following lines: IUWtBzN7/RTufRknUldIObFYpX3ePOWjJ+QOZr64SxMqTcMfjPnlUZAITORwBgeQCzFXlm/icEme MxGlMsDlwyDm56B2y0ApxEU3Mp6PphmQp9MdeHyF2/hQdKGR5TXksATQSImK+gZHlp1eqV2pWJT1 oE0P5uNEzvAg1fHGqxKvMacC84VSdqd08Ub9<12423999921242399991>9G YHuVwgObMjJc1PR+xp+PJhweX5wWU9rhIHmDDWEt6Y+m7K/qHS6DOtMPj0yAcaD5BFamBnRl6Jkv XnH69+w8l+y8YPACzuIslMR2uNpCYcN8fDKPem1T+FshPLCainNwYyko+U8B2LdyF6UfL8DwZZpy (See the end of the line in the middle). It looks like the cyrus server mixes some strange output (">1242399991>") into the telemetry logs (and maybe this also makes the connection somehow "broken"?). Anybody knows what's the problem here and how to solve it? Thanks and regards -stefan- From robm at fastmail.fm Mon May 18 08:21:58 2009 From: robm at fastmail.fm (Robert Mueller (web)) Date: Mon, 18 May 2009 22:21:58 +1000 Subject: Incorrect sort order when sorting by date In-Reply-To: <4A1143FB.9060107@coolfactor.org> References: <4A1143FB.9060107@coolfactor.org> Message-ID: <1242649318.17294.1315994095@webmail.messagingengine.com> I bet if you look at the Date headers of the problem emails, you'll find that they're not RFC compliant. The cyrus date parser is very strict, and if the header isn't RFC compliant, you'll get a bad value, and bad sorting. Looking at the RFC http://www.faqs.org/rfcs/rfc5256.html If the sent date cannot be determined (a Date: header is missing or cannot be parsed), the INTERNALDATE for that message is used as the sent date. I'm not cyrus is actually doing this though, Rob On Mon, 18 May 2009 12:18 +0100, "Gavan Fantom" wrote: > I have been running cyrus imapd for several years now. I recently > installed roundcube, to provide access to email on those occasions when > a proper IMAP client isn't available. > > Unlike Thunderbird, roundcube relies on IMAP SORT. When sorting by date, > some emails from the past are presented as newer than the most recent > messages. > > There is nothing in the headers which looks particuraly different, and > those messages are stored in the correct order in the filesystem. The > timestamp on the messages is consistent with the Date: header. > > I verified that this was imapd getting it wrong, using > > UID SORT (DATE) UTF-8 ALL > > It returned messages in the same order as roundcube had displayed them. > > One of the messages was from March this year (a facebook notification > message, much the same as many other such messages - there really was > nothing to stand out about this one) and the other messages were > periodic updates from another website, spread across the last couple of > years. Again, there was nothing particularly special that I could see > about the headers in any of these messages. > > I tried running reconstruct on the folder after renaming the > cyrus.{cache,header,index} files. Suspiciously, it recreated absolutely > identical files. Perhaps it found the files that I had renamed. > > I see that this exact problem has been asked about before: > > http://lists.andrew.cmu.edu/pipermail/info-cyrus/2006-August/023316.html > > but there was no reply at the time. I also couldn't find a report about > this issue in bugzilla. > > I am running cyrus imapd 2.2.13 on NetBSD, as installed from pkgsrc. > > Does anybody understand what is causing this? > > -- > Gillette - the best a man can forget > ---- > 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 robm at fastmail.fm Sign up at http://fastmail.fm for fast, ad free, IMAP accessible email From janne.peltonen at helsinki.fi Mon May 18 08:23:46 2009 From: janne.peltonen at helsinki.fi (Janne Peltonen) Date: Mon, 18 May 2009 15:23:46 +0300 Subject: imapd locked In-Reply-To: References: <31949_1242648035_n4IC0YC9028642_277c01c9d7b0$3fa03650$0a00a8c0@ALDI2> Message-ID: <20090518122346.GL22872@helsinki.fi> On Mon, May 18, 2009 at 02:12:55PM +0200, Sebastian Hagedorn wrote: >> imap cmd="imapd -U 50" listen="imap" prefork=0 >> maxchild=100 >> imaps cmd="imapd -s -U 50" listen="imaps" prefork=0 >> maxchild=100 >> >> [...] > Depends on what you mean. New connections to imapd block block > indefinitely until the number of processes goes below maxchild. If that's > what you call "stall", it's to be expected. Yup, maxchild should be more than the number of expected concurrent imap connections, and then some safety margin added. :) (I have it set to 5000 on my two murder front ends. I rarely get more than 10000 concurrent users - actually, I don't get more than, say, 8000 concurrent users, but I use a crude & primitive load balancing system, so it isn't always perfectly balanced.) --Janne -- Janne Peltonen PGP Key ID: 0x9CFAC88B Please consider membership of the Hospitality Club (http://www.hospitalityclub.org) From whl at igne.de Mon May 18 08:35:19 2009 From: whl at igne.de (Gerald Nowitzky) Date: Mon, 18 May 2009 14:35:19 +0200 Subject: imapd locked References: <31949_1242648035_n4IC0YC9028642_277c01c9d7b0$3fa03650$0a00a8c0@ALDI2> Message-ID: <32105_1242650120_n4ICZJpJ025075_279501c9d7b5$1aef69c0$0a00a8c0@ALDI2> Hello Sebastian, What I wanted to describe with "stalled" is, that none of the processes was doing anything. So the problem was not that 100 instances where working and connection #101 was waiting; it was that all 100 instances were also hanging. At the same time, the imaps-processes where working. That is what I had in my logs from imap: May 18 10:07:33 bilbo cyrus/imap[18436]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[17450]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[17916]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[17449]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[18775]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[18777]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[18778]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[18777]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18436]: accepted connection May 18 10:07:33 bilbo cyrus/imap[17449]: accepted connection May 18 10:07:33 bilbo cyrus/imap[17450]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18775]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18778]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18777]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18436]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18778]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18775]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[20005]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[18775]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18778]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18436]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18775]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18778]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18436]: accepted connection May 18 10:07:33 bilbo cyrus/imap[20005]: accepted connection May 18 10:07:33 bilbo cyrus/imap[18775]: accepted connection May 18 10:07:33 bilbo cyrus/imap[17449]: Connection reset by peer, closing connection May 18 10:07:33 bilbo cyrus/imap[17450]: Connection reset by peer, closing connection From gavan at coolfactor.org Mon May 18 09:06:52 2009 From: gavan at coolfactor.org (Gavan Fantom) Date: Mon, 18 May 2009 14:06:52 +0100 Subject: Incorrect sort order when sorting by date In-Reply-To: <1242649318.17294.1315994095@webmail.messagingengine.com> References: <4A1143FB.9060107@coolfactor.org> <1242649318.17294.1315994095@webmail.messagingengine.com> Message-ID: <4A115D6C.8070007@coolfactor.org> Robert Mueller (web) wrote: > I bet if you look at the Date headers of the problem emails, you'll find > that they're not RFC compliant. These are the date headers from the offending emails. Date: Sun, 29 Mar 2009 01:48:19 -0700 Date: Sun 17 Feb 2008 20:05:01 -0500 Date: Sun 27 Jan 2008 20:15:18 -0500 Date: Sun 30 Dec 2007 20:04:16 -0500 Date: Thu 6 Dec 2007 20:17:13 -0500 Date: Thu 1 Nov 2007 20:02:33 -0400 Date: Mon 22 Oct 2007 20:08:57 -0400 Date: Sat 6 Oct 2007 20:02:46 -0400 I see absolutely nothing wrong with the first one. The rest are missing a comma after the day of week. (based on the grammar provided in RFC2822) > The cyrus date parser is very strict, and if the header isn't RFC > compliant, you'll get a bad value, and bad sorting. I could believe that all but the first one fail to parse. > Looking at the RFC > > http://www.faqs.org/rfcs/rfc5256.html > > If the sent date cannot be determined (a Date: header is missing or > cannot be parsed), the INTERNALDATE for that message is used as the > sent date. > > I'm not cyrus is actually doing this though, If INTERNALDATE is derived from the timestamp on the file, then the INTERNALDATE is certainly not what it is sorting on here. -- Gillette - the best a man can forget From andyjpb at ashurst.eu.org Mon May 18 09:22:09 2009 From: andyjpb at ashurst.eu.org (Andy Bennett) Date: Mon, 18 May 2009 14:22:09 +0100 Subject: Incorrect sort order when sorting by date In-Reply-To: <1242649318.17294.1315994095@webmail.messagingengine.com> References: <4A1143FB.9060107@coolfactor.org> <1242649318.17294.1315994095@webmail.messagingengine.com> Message-ID: <4A116101.9090602@ashurst.eu.org> Hi, > I bet if you look at the Date headers of the problem emails, you'll find > that they're not RFC compliant. > > The cyrus date parser is very strict, and if the header isn't RFC > compliant, you'll get a bad value, and bad sorting. > > Looking at the RFC > > http://www.faqs.org/rfcs/rfc5256.html > > If the sent date cannot be determined (a Date: header is missing or > cannot be parsed), the INTERNALDATE for that message is used as the > sent date. > > I'm not cyrus is actually doing this though, I've got several wonky dates: Date: Wed, 31 Dec 3609 10:05:57 +0800 Date: , 28 Dec 2008 13:23:13 +0100 Date: , 28 Dec 2008 14:36:35 +0800 I'm not sure if 3609 is a valid year but, despite the fact it's a blatant lie, it doesn't seem to be syntactically invalid. It shows up in the listing as "06.01.2010 01:00" but that date (6/1) doesn't appear in any of the headers. I'd expect this message to sort first in descending order. The ones without days of week are just plain wrong. I wouldn't expect them to sort before (in descending order) my other, valid, messages in 2009. I assume that INTERNALDATE will end up being the time that cyrus actually receives a message. In that case I wouldn't expect the offending messages (28/12/2008) to continually sort before all other messages in the mailbox. Regards, @ndy -- andyjpb at ashurst.eu.org http://www.ashurst.eu.org/ http://www.gonumber.com/andyjpb 0x7EBA75FF From awilliam at whitemice.org Mon May 18 08:41:42 2009 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Mon, 18 May 2009 08:41:42 -0400 Subject: imapd locked In-Reply-To: References: <31949_1242648035_n4IC0YC9028642_277c01c9d7b0$3fa03650$0a00a8c0@ALDI2> Message-ID: <1242650502.5644.0.camel@linux-m3mt> > > It might well be that I hit the maxchild limit on imap, but that shouldnt > > stall the complete imap, should it? > Depends on what you mean. New connections to imapd block block indefinitely > until the number of processes goes below maxchild. If that's what you call > "stall", it's to be expected. If connections are forced into a wait-state by a maxchild limitation is this condition logged or any kind of notice raised? From Hagedorn at uni-koeln.de Mon May 18 09:48:23 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Mon, 18 May 2009 15:48:23 +0200 Subject: imapd locked In-Reply-To: <1242650502.5644.0.camel@linux-m3mt> References: <31949_1242648035_n4IC0YC9028642_277c01c9d7b0$3fa03650$0a00a8c0@ALDI2> <1242650502.5644.0.camel@linux-m3mt> Message-ID: --On 18. Mai 2009 08:41:42 -0400 Adam Tauno Williams wrote: >> Depends on what you mean. New connections to imapd block block >> indefinitely until the number of processes goes below maxchild. If >> that's what you call "stall", it's to be expected. > > If connections are forced into a wait-state by a maxchild limitation is > this condition logged or any kind of notice raised? AFAIK no. That got me in the early days of our using Cyrus. -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090518/abd29a5e/attachment.bin From carlos.horowicz at gmail.com Mon May 18 15:32:42 2009 From: carlos.horowicz at gmail.com (Carlos Horowicz) Date: Mon, 18 May 2009 16:32:42 -0300 Subject: packages for debian amd64 Message-ID: <962968300905181232j18c84b2cmc4ebb9b10e95f754@mail.gmail.com> Hi, is there anybody maintaining up-to-date amd64 debian packages for cyrus-imapd ? (I only use FreeBSD ports por cyrus-imap, don't know if there are "port maintainers" in the Debian/Ubuntu world). Thanks, Carlos From duncan.gibb at siriusit.co.uk Mon May 18 16:23:01 2009 From: duncan.gibb at siriusit.co.uk (Duncan Gibb) Date: Mon, 18 May 2009 21:23:01 +0100 Subject: packages for debian amd64 In-Reply-To: <962968300905181232j18c84b2cmc4ebb9b10e95f754@mail.gmail.com> References: <962968300905181232j18c84b2cmc4ebb9b10e95f754@mail.gmail.com> Message-ID: <4A11C3A5.3050707@siriusit.co.uk> Carlos Horowicz wrote: CH> is there anybody maintaining up-to-date amd64 debian packages CH> for cyrus-imapd ? (I only use FreeBSD ports por cyrus-imap, CH> don't know if there are "port maintainers" in the CH> Debian/Ubuntu world). Yes, kind of. There are no 2.3.x binaries in official Debian (yet). This is considered a bug. 2.3.14 _is_, however, in the Debian svn repo in such a state that you should be able simply to check it out/export it from https://mail.incase.de/svn/cyrus22/branches/cyrus23/cyrus-imapd-2.3-development/ type "dpkg-buildpackage" and get a set of binary packages. Try this, and if it breaks, shout at me. There are several reasons why there aren't official binaries, mostly centred around picking a version of BDB to build against (the above dev version will use whatever you have installed on the build system, which is not deterministic enough for a proper release). The Debian BDB team understandably want to limit the number of BDB versions they have to support. The Debian Cyrus team has been reluctant to take any more risk than the Debian OpenLDAP team, who only recently switched from 4.2 to 4.7. It would be useful to hear from this list what other people's experience with different BDB versions has been, and whether Cyrus's BDB code is officially supposed to work with 4.7 (I know it does). The other major thing we need to fix in Debian is the lack of a clean, automated upgrade path from 2.2 for users of small self-contained systems. Historically a file specifying the backend DB defaults and BDB version has been used to stop the init scripts working until the sysadmin has manually ensured all the databases are upgraded. This is not really considered elegant. Internally at Sirius, we have a package set based on Debian (well, actually now it's more the other way round) with a whole slew of extra features like the UoA auto-* patches, my TLS fixes, client certs patch, and PTS LDAP enabled (but patched to work slightly differently)... Controversy-permitting, some of these should find their way into Debian mainline RSN. To answer your question: yes, Lenny on amd64 is our primary deployment architecture. Cheers Duncan -- Duncan Gibb - Technical Director Sirius Corporation plc - control through freedom http://www.siriusit.co.uk/ || t: +44 870 608 0063 Debian Cyrus Team - https://alioth.debian.org/projects/pkg-cyrus-imapd/ From jvoorhees1 at gmail.com Mon May 18 21:22:52 2009 From: jvoorhees1 at gmail.com (Jose Perez) Date: Mon, 18 May 2009 20:22:52 -0500 Subject: POP3 locking. Is there a way to reduce this "issue"? Message-ID: Hi there: I'm having problems with POP3 locking. I already read the forums and info-cyrus mail archives talking about this but I didn't find a solution yet: - RFC states that is it necessary a minimum of 10 minutes before detect a timeout on the client - RFC states that only one connection is possible at the same time. - Restarting Cyrus IMAP it could solve POP3 locking in that moment, but it could happen again soon - MUA's like Outlook or others aren't exactly the source of problem since this ocurred with other e-mail clients - Searching and killing the process of pop3d that is locking a user connections could be a solution, but again... it could happen soon one more time - Apparently the source of this "issue" could be network connectivy problems: maybe clients before slow PPP connections or something simliar could be affected by broken connections while POP3 Server (cyrus imap) thinks that the other connection is still alive and so keeps the locking active for at least 10 minutes (minimum timeout) - We can't decrease the value of poptimeout option in imapd.conf without change source code and recompiling Cyrus because of the nature of POP3 protocol. I think I was googling around enough to get this info (above) and understand that this isn't a POP3 problem exactly, that's the normal way of POP3 behavior. Some people could just say "don't use POP3 anymore, use IMAP" right? Ok, I'd say the same as a sysadmin but you know exactly that this isn't always possible is some organizations for others reasons not technical. What I would like to know is: Are there some tips/tricks/configuration/magic/tutorial/howto/recommendation/etc that we can follow to reduce this POP3 locking in some users? I'm having this more frequently with users that get e-mail trough Blackberry according to mail logs. I hope someone could share its experiences, ideas and suggestions of how to reduce this issue. Maybe it could be something at the server level or maybe at the user level. Any help will be appreciated, thanks. Bye From vbfox at ucdavis.edu Tue May 19 00:02:56 2009 From: vbfox at ucdavis.edu (Vincent Fox) Date: Mon, 18 May 2009 21:02:56 -0700 Subject: POP3 locking. Is there a way to reduce this "issue"? In-Reply-To: References: Message-ID: <4A122F70.8080705@ucdavis.edu> Jose Perez wrote: > Some people could just say "don't use POP3 anymore, use IMAP" right? > YES! > Ok, I'd say the same as a sysadmin but you know exactly that this > isn't always possible is some organizations for others reasons not > technical. > > What I would like to know is: > > Are there some tips/tricks/configuration/magic/tutorial/howto/recommendation/etc > that we can follow to reduce this POP3 locking in some users? I'm > having this more frequently with users that get e-mail trough > Blackberry according to mail logs. > > Our University HelpDesk sporadically gets calls from users who have left POP running on multiple systems and naturally gets into lock problems. This is a good time to convert that user to IMAP not fight with antique protocols. AFAICR the Blackberry devices are capable of IMAP. This is not a problem specific to Cyrus, this is basic to POP. From dgottsc at emory.edu Tue May 19 16:17:11 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Tue, 19 May 2009 16:17:11 -0400 Subject: Cyrus + Sieve Message-ID: I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? I'm running Cyrus version: 2.2.12-3 (I know it's old) Thanks for any assistance, I'd greatly appreciate it. David Gottschalk UTS Email team david.gottschalk at emory.edu This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From dom.lalot at gmail.com Wed May 20 02:36:47 2009 From: dom.lalot at gmail.com (LALOT Dominique) Date: Wed, 20 May 2009 08:36:47 +0200 Subject: Api for seen state, perl preferred Message-ID: <1617f8010905192336u6cdb3s7395254cc6e2856d@mail.gmail.com> Hello, I'm following a previous thread. I would like to be able to open a seen skiplist database in order to verify if a particular user has red its mail. If possible, a way to do that in PERL would be perfect. Thanks in advance Dom -- Dominique LALOT Ing?nieur Syst?mes et R?seaux http://annuaire.univmed.fr/showuser.php?uid=lalot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090520/3409af46/attachment.html From brong at fastmail.fm Wed May 20 05:23:24 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Wed, 20 May 2009 19:23:24 +1000 Subject: Api for seen state, perl preferred In-Reply-To: <1617f8010905192336u6cdb3s7395254cc6e2856d@mail.gmail.com> References: <1617f8010905192336u6cdb3s7395254cc6e2856d@mail.gmail.com> Message-ID: <20090520092324.GA25148@brong.net> On Wed, May 20, 2009 at 08:36:47AM +0200, LALOT Dominique wrote: > Hello, > > I'm following a previous thread. I would like to be able to open a seen > skiplist database in order to verify if a particular user has red its mail. > If possible, a way to do that in PERL would be perfect. > > Thanks in advance That's, um, tricky actually. You need to read the uniqueid of the mailbox from the cyrus.header file first, then read the contents of the skiplist file. The easiest way to do that is `cyr_dbtool /path/to/seen/file.db skiplist get $uniqueid`, which will give you the seen record. You then need to parse that for uniqueids - it's in the format: range,range,range where range is either a single integer or $low:$high where low and high are both integers - in which case all the messages in that range inclusive are seen. There's some other stuff in that seen record as well. Here we go: [brong at imap3 hm]$ cat /mnt/meta8/slot308/store23/meta/b/user/brong/cyrus.header | grep user.brong user.brong 6af857f64475158a [brong at imap3 hm]$ /usr/cyrus/bin/cyr_dbtool -C /etc/imapd-slot308-master.conf /mnt/meta8/slot308/store23/conf/user/b/brong.seen skiplist get 6af857f64475158a 1 1242810803 386716 1242800567 1:386615 Looks like I've seen all my email! Also notice 4 other fields at the start: Here's a more interesting couple of folders to give you an idea of what ranges look like: 798b2df94146a5fe 1 1095746485 1526 1095740252 1:559,561:772,774:920,922:1109,1111:1115,1117:1138,1140:1170,1172:1195,1197:1521 798b2df941576261 1 1125837870 34307 1123831223 1:28289,29118,30871,31887,31935,32058,32209:32210,32214:32219,32222,32228 So - in summary. It's not easy. Some plumbing required... (lastuid gives you "\Recent" as per the IMAP flag - anything newer than that is recent!) Bron. From awilliam at whitemice.org Wed May 20 07:34:52 2009 From: awilliam at whitemice.org (Adam Tauno WIlliams) Date: Wed, 20 May 2009 07:34:52 -0400 Subject: Api for seen state, perl preferred In-Reply-To: <20090520092324.GA25148@brong.net> References: <1617f8010905192336u6cdb3s7395254cc6e2856d@mail.gmail.com> <20090520092324.GA25148@brong.net> Message-ID: <1242819292.4642.31.camel@estate1.whitemice.org> > > I'm following a previous thread. I would like to be able to open a seen > > skiplist database in order to verify if a particular user has red its mail. > > If possible, a way to do that in PERL would be perfect. > > Thanks in advance > That's, um, tricky actually. > You need to read the uniqueid of the mailbox from the cyrus.header file > first, then read the contents of the skiplist file. The easiest way to > do that is `cyr_dbtool /path/to/seen/file.db skiplist get $uniqueid`, > which will give you the seen record. You then need to parse that for > uniqueids - it's in the format: > range,range,range > where range is either a single integer or $low:$high where low and high > are both integers - in which case all the messages in that range > inclusive are seen. > There's some other stuff in that seen record as well. Here we go: > [brong at imap3 hm]$ cat /mnt/meta8/slot308/store23/meta/b/user/brong/cyrus.header | grep user.brong > user.brong 6af857f64475158a Maybe I'm looking in the wrong place; but on my test server (cyrus-imapd-2.3.11) my cyrus.header looks like - estate1:/var/spool/imap/user/awilliam # cat cyrus.header Cyrus mailbox header "The best thing about this system was that it had lots of goals." --Jim Morris on Andrew 46a0a0b041114dce Junk $Label1 $Label2 $Label3 $Label4 $Label5 $MDNSent NotJunk receipt-handled $has_cal awilliam lrswipcda Is "46a0a0b041114dce" the id? > [brong at imap3 hm]$ /usr/cyrus/bin/cyr_dbtool -C /etc/imapd-slot308-master.conf /mnt/meta8/slot308/store23/conf/user/b/brong.seen skiplist get 6af857f64475158a > 1 1242810803 386716 1242800567 1:386615 > Looks like I've seen all my email! Also notice 4 other > fields at the start: > is an epoch time stamp? I'm not clear on what is; looks like it is a message id? What operation sets/updates the value? > Here's a more interesting couple of folders to give you an idea > of what ranges look like: > 798b2df94146a5fe 1 1095746485 1526 1095740252 1:559,561:772,774:920,922:1109,1111:1115,1117:1138,1140:1170,1172:1195,1197:1521 > 798b2df941576261 1 1125837870 34307 1123831223 1:28289,29118,30871,31887,31935,32058,32209:32210,32214:32219,32222,32228 > So - in summary. It's not easy. Some plumbing required... > (lastuid gives you "\Recent" as per the IMAP flag - anything > newer than that is recent!) So any message with $id > $lastuid is "recent". From brong at fastmail.fm Wed May 20 07:59:35 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Wed, 20 May 2009 21:59:35 +1000 Subject: Api for seen state, perl preferred In-Reply-To: <1242819292.4642.31.camel@estate1.whitemice.org> References: <1617f8010905192336u6cdb3s7395254cc6e2856d@mail.gmail.com> <20090520092324.GA25148@brong.net> <1242819292.4642.31.camel@estate1.whitemice.org> Message-ID: <20090520115935.GA7193@brong.net> On Wed, May 20, 2009 at 07:34:52AM -0400, Adam Tauno WIlliams wrote: > Maybe I'm looking in the wrong place; but on my test server > (cyrus-imapd-2.3.11) my cyrus.header looks like - > > estate1:/var/spool/imap/user/awilliam # cat cyrus.header > Cyrus mailbox header > "The best thing about this system was that it had lots of goals." > --Jim Morris on Andrew > 46a0a0b041114dce > Junk $Label1 $Label2 $Label3 $Label4 $Label5 $MDNSent NotJunk > receipt-handled $has_cal > awilliam lrswipcda > > Is "46a0a0b041114dce" the id? Yeah, just means you have no quota root. That's the ID. > > [brong at imap3 hm]$ /usr/cyrus/bin/cyr_dbtool -C /etc/imapd-slot308-master.conf /mnt/meta8/slot308/store23/conf/user/b/brong.seen skiplist get 6af857f64475158a > > 1 1242810803 386716 1242800567 1:386615 > > Looks like I've seen all my email! Also notice 4 other > > fields at the start: > > > > is an epoch time stamp? Yes. > I'm not clear on what is; looks like it is a message id? What > operation sets/updates the value? It's a UID. > > Here's a more interesting couple of folders to give you an idea > > of what ranges look like: > > 798b2df94146a5fe 1 1095746485 1526 1095740252 1:559,561:772,774:920,922:1109,1111:1115,1117:1138,1140:1170,1172:1195,1197:1521 > > 798b2df941576261 1 1125837870 34307 1123831223 1:28289,29118,30871,31887,31935,32058,32209:32210,32214:32219,32222,32228 > > So - in summary. It's not easy. Some plumbing required... > > (lastuid gives you "\Recent" as per the IMAP flag - anything > > newer than that is recent!) > > So any message with $id > $lastuid is "recent". $uid. Please don't get confused between the two. It's an important distinction. Everything is in UIDs internally. Bron. From dwhite at olp.net Wed May 20 09:56:55 2009 From: dwhite at olp.net (Dan White) Date: Wed, 20 May 2009 08:56:55 -0500 Subject: Api for seen state, perl preferred In-Reply-To: <1617f8010905192336u6cdb3s7395254cc6e2856d@mail.gmail.com> References: <1617f8010905192336u6cdb3s7395254cc6e2856d@mail.gmail.com> Message-ID: <4A140C27.1050204@olp.net> LALOT Dominique wrote: > Hello, > > I'm following a previous thread. I would like to be able to open a > seen skiplist database in order to verify if a particular user has red > its mail. If possible, a way to do that in PERL would be perfect. > > Thanks in advance > > Dom > Connecting via IMAP would be more portable. See 'imtestExample.pl' within Mail::IMAPClient for something to start with. With that script, you would do, e.g.: ./imtestExample.pl -m DIGEST-MD5 -a cyrus -u dwhite at olp.net -w mysecret where 'cyrus' is an admin, and 'dwhite at olp.net' is the user who's mailbox you want to examine. You'll need to add logic to the script to view seen state. - Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090520/c20e1ab8/attachment.html From dgottsc at emory.edu Wed May 20 16:04:44 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Wed, 20 May 2009 16:04:44 -0400 Subject: Cyrus + Sieve In-Reply-To: References: Message-ID: Anyone? I would greatly appreciate any assistance with this issue. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David Sent: Tuesday, May 19, 2009 4:17 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Cyrus + Sieve I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? I'm running Cyrus version: 2.2.12-3 (I know it's old) Thanks for any assistance, I'd greatly appreciate it. David Gottschalk UTS Email team david.gottschalk at emory.edu This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ---- 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 blake at ispn.net Wed May 20 16:15:17 2009 From: blake at ispn.net (Blake Hudson) Date: Wed, 20 May 2009 15:15:17 -0500 Subject: Cyrus + Sieve In-Reply-To: References: Message-ID: <4A1464D5.2090906@ispn.net> I'm not a sieve guru, but I might be able to point you in the right direction for troubleshooting... How are you making your sieve scripts (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the forwarding and sieve reject options are working as expected to generate new messages? Do you have a duplicate delivery db in your cyrus meta data folder? -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:04:44 PM > Anyone? I would greatly appreciate any assistance with this issue. > > Thanks. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David > Sent: Tuesday, May 19, 2009 4:17 PM > To: info-cyrus at lists.andrew.cmu.edu > Subject: Cyrus + Sieve > > I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? > > I'm running Cyrus version: 2.2.12-3 (I know it's old) > > Thanks for any assistance, I'd greatly appreciate it. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > > This e-mail message (including any attachments) is for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution > or copying of this message (including any attachments) is strictly > prohibited. > > If you have received this message in error, please contact > the sender by reply e-mail message and destroy all copies of the > original message (including attachments). > ---- > 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 dgottsc at emory.edu Wed May 20 16:18:02 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Wed, 20 May 2009 16:18:02 -0400 Subject: Cyrus + Sieve In-Reply-To: <4A1464D5.2090906@ispn.net> References: <4A1464D5.2090906@ispn.net> Message-ID: I'm using SmartSieve to create the scripts. The forwarding and reject options are working as expected. Do duplicate delivery dbs create issues? David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:15 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve I'm not a sieve guru, but I might be able to point you in the right direction for troubleshooting... How are you making your sieve scripts (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the forwarding and sieve reject options are working as expected to generate new messages? Do you have a duplicate delivery db in your cyrus meta data folder? -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:04:44 PM > Anyone? I would greatly appreciate any assistance with this issue. > > Thanks. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David > Sent: Tuesday, May 19, 2009 4:17 PM > To: info-cyrus at lists.andrew.cmu.edu > Subject: Cyrus + Sieve > > I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? > > I'm running Cyrus version: 2.2.12-3 (I know it's old) > > Thanks for any assistance, I'd greatly appreciate it. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > > This e-mail message (including any attachments) is for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution > or copying of this message (including any attachments) is strictly > prohibited. > > If you have received this message in error, please contact > the sender by reply e-mail message and destroy all copies of the > original message (including attachments). > ---- > 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 > ---- 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 mikeegg1 at mac.com Wed May 20 16:21:06 2009 From: mikeegg1 at mac.com (Mike Eggleston) Date: Wed, 20 May 2009 15:21:06 -0500 Subject: Cyrus + Sieve In-Reply-To: References: Message-ID: <20090520202106.GH20710@mail.mac.com> On Wed, 20 May 2009, Gottschalk, David might have said: > Anyone? I would greatly appreciate any assistance with this issue. > > Thanks. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David > Sent: Tuesday, May 19, 2009 4:17 PM > To: info-cyrus at lists.andrew.cmu.edu > Subject: Cyrus + Sieve > > I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? > > I'm running Cyrus version: 2.2.12-3 (I know it's old) > > Thanks for any assistance, I'd greatly appreciate it. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu I had an issue with the vacation portion of sieve. I posted my solution some time back to this list. Maybe a search of previous messages will help find you a solution? Mike From blake at ispn.net Wed May 20 16:44:15 2009 From: blake at ispn.net (Blake Hudson) Date: Wed, 20 May 2009 15:44:15 -0500 Subject: Cyrus + Sieve In-Reply-To: References: <4A1464D5.2090906@ispn.net> Message-ID: <4A146B9F.6020705@ispn.net> The duplicate db is used in the vacation code of sieve to determine if a sender has previously received a vacation response. As I understand it (from reading the mailing list), older versions of Cyrus made the duplicate db optional and the vacation portion of sieve may not work as expected without it. So, ensure that you have it enabled. I'm not familiar with SmartSieve, but perhaps you could provide an example script that it creates when you setup a vacation response - perhaps me or someone else here can debug it... --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:18:02 PM > I'm using SmartSieve to create the scripts. > > The forwarding and reject options are working as expected. > > Do duplicate delivery dbs create issues? > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson > Sent: Wednesday, May 20, 2009 4:15 PM > To: info-cyrus at lists.andrew.cmu.edu > Subject: Re: Cyrus + Sieve > > I'm not a sieve guru, but I might be able to point you in the right > direction for troubleshooting... How are you making your sieve scripts > (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the > forwarding and sieve reject options are working as expected to generate > new messages? Do you have a duplicate delivery db in your cyrus meta > data folder? > > > -Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: info-cyrus at lists.andrew.cmu.edu > Date: Wednesday, May 20, 2009 3:04:44 PM > >> Anyone? I would greatly appreciate any assistance with this issue. >> >> Thanks. >> >> David Gottschalk >> UTS Email team >> david.gottschalk at emory.edu >> >> >> -----Original Message----- >> From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David >> Sent: Tuesday, May 19, 2009 4:17 PM >> To: info-cyrus at lists.andrew.cmu.edu >> Subject: Cyrus + Sieve >> >> I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? >> >> I'm running Cyrus version: 2.2.12-3 (I know it's old) >> >> Thanks for any assistance, I'd greatly appreciate it. >> >> David Gottschalk >> UTS Email team >> david.gottschalk at emory.edu >> >> >> >> This e-mail message (including any attachments) is for the sole use of >> the intended recipient(s) and may contain confidential and privileged >> information. If the reader of this message is not the intended >> recipient, you are hereby notified that any dissemination, distribution >> or copying of this message (including any attachments) is strictly >> prohibited. >> >> If you have received this message in error, please contact >> the sender by reply e-mail message and destroy all copies of the >> original message (including attachments). >> ---- >> 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 >> >> > > ---- > 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/20090520/a145af7c/attachment-0001.html From ram at netcore.co.in Thu May 21 01:52:12 2009 From: ram at netcore.co.in (ram) Date: Thu, 21 May 2009 11:22:12 +0530 Subject: What are the Bottlenecks in lmtpd Message-ID: <1242885132.19574.36.camel@darkstar.netcore.co.in> I see that sometimes on my cyrus server , when mail is being delivered by postfix. lmtpd takes too long to deliver But strangely enough this happens only "some" times .. and any other time things are working fine. The number of mails received & downloaded per hour are much the same throughout the day (working hours). And this server does nothing else except running cyrus +postfix and mysql for authentication I want to analyse what are the possible bottlenecks for lmtpd whenever it goes slow I have a feeling that the creations of files in /var/spool/imap/stage./ and moving them is taking most of the time Is there any way I can pinpoint what is going wrong. Thanks Ram From dgottsc at emory.edu Thu May 21 09:48:42 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 21 May 2009 09:48:42 -0400 Subject: Cyrus + Sieve In-Reply-To: <4A146B9F.6020705@ispn.net> References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> Message-ID: Blake, thanks for the assistance. I?ll check out the duplicate db, and enable it. Here is a copy of a example vacation sieve script: #Mail filter rules for dgottsc #Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 require ["vacation"]; vacation :days 7 :addresses ["dgottsc at emory.edu", "dgottsc at removed.emory.edu"] text: This is a test vacation reply. . ; ##PSEUDO script start #SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matchAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"actions";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This is a test vacation reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory.edu";i:1;s:27:"dgottsc at removed.emory.edu";}}}} #mode&&basic Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:44 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve The duplicate db is used in the vacation code of sieve to determine if a sender has previously received a vacation response. As I understand it (from reading the mailing list), older versions of Cyrus made the duplicate db optional and the vacation portion of sieve may not work as expected without it. So, ensure that you have it enabled. I'm not familiar with SmartSieve, but perhaps you could provide an example script that it creates when you setup a vacation response - perhaps me or someone else here can debug it... --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:18:02 PM I'm using SmartSieve to create the scripts. The forwarding and reject options are working as expected. Do duplicate delivery dbs create issues? David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:15 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve I'm not a sieve guru, but I might be able to point you in the right direction for troubleshooting... How are you making your sieve scripts (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the forwarding and sieve reject options are working as expected to generate new messages? Do you have a duplicate delivery db in your cyrus meta data folder? -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:04:44 PM Anyone? I would greatly appreciate any assistance with this issue. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David Sent: Tuesday, May 19, 2009 4:17 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Cyrus + Sieve I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? I'm running Cyrus version: 2.2.12-3 (I know it's old) Thanks for any assistance, I'd greatly appreciate it. David Gottschalk UTS Email team david.gottschalk at emory.edu This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ---- 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 ---- 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/20090521/34bdbe61/attachment-0001.html From blake at ispn.net Thu May 21 12:26:34 2009 From: blake at ispn.net (Blake Hudson) Date: Thu, 21 May 2009 11:26:34 -0500 Subject: Cyrus + Sieve In-Reply-To: References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> Message-ID: <4A1580BA.9000002@ispn.net> That looks valid as far as I can tell... Are you sure the messages are actually being sent to one of the listed addresses? --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 8:48:42 AM > > Blake, thanks for the assistance. > > > > I?ll check out the duplicate db, and enable it. > > > > Here is a copy of a example vacation sieve script: > > > > #Mail filter rules for dgottsc > > #Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 > > require ["vacation"]; > > > > vacation :days 7 :addresses ["dgottsc at emory.edu", > "dgottsc at removed.emory.edu"] text: > > This is a test vacation reply. > > . > > ; > > > > > > ##PSEUDO script start > > #SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matchAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"actions";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This > is a test vacation > reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory.edu";i:1;s:27:"dgottsc at removed.emory.edu";}}}} > > #mode&&basic > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Wednesday, May 20, 2009 4:44 PM > *To:* info-cyrus at lists.andrew.cmu.edu > *Subject:* Re: Cyrus + Sieve > > > > The duplicate db is used in the vacation code of sieve to determine if > a sender has previously received a vacation response. As I understand > it (from reading the mailing list), older versions of Cyrus made the > duplicate db optional and the vacation portion of sieve may not work > as expected without it. So, ensure that you have it enabled. > > I'm not familiar with SmartSieve, but perhaps you could provide an > example script that it creates when you setup a vacation response - > perhaps me or someone else here can debug it... > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Wednesday, May 20, 2009 3:18:02 PM > > I'm using SmartSieve to create the scripts. > > The forwarding and reject options are working as expected. > > Do duplicate delivery dbs create issues? > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson > Sent: Wednesday, May 20, 2009 4:15 PM > To: info-cyrus at lists.andrew.cmu.edu > Subject: Re: Cyrus + Sieve > > I'm not a sieve guru, but I might be able to point you in the right > direction for troubleshooting... How are you making your sieve scripts > (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the > forwarding and sieve reject options are working as expected to generate > new messages? Do you have a duplicate delivery db in your cyrus meta > data folder? > > > -Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: info-cyrus at lists.andrew.cmu.edu > Date: Wednesday, May 20, 2009 3:04:44 PM > > > Anyone? I would greatly appreciate any assistance with this issue. > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > -----Original Message----- > > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David > > Sent: Tuesday, May 19, 2009 4:17 PM > > To: info-cyrus at lists.andrew.cmu.edu > > Subject: Cyrus + Sieve > > > > I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? > > > > I'm running Cyrus version: 2.2.12-3 (I know it's old) > > > > Thanks for any assistance, I'd greatly appreciate it. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > > > This e-mail message (including any attachments) is for the sole use of > > the intended recipient(s) and may contain confidential and privileged > > information. If the reader of this message is not the intended > > recipient, you are hereby notified that any dissemination, distribution > > or copying of this message (including any attachments) is strictly > > prohibited. > > > > If you have received this message in error, please contact > > the sender by reply e-mail message and destroy all copies of the > > original message (including attachments). > > ---- > > 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 > > > > > > > ---- > 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/20090521/8da35985/attachment.html From dgottsc at emory.edu Thu May 21 13:41:05 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 21 May 2009 13:41:05 -0400 Subject: Cyrus + Sieve In-Reply-To: <4A1580BA.9000002@ispn.net> References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> Message-ID: Yeah, I?m sending emails to that address. How do I enable duplicate suppression? I think that might be my issue. I?ve enabled it in imapd.conf, and defined the database type, but it doesn?t seem to be creating a duplicate.db. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 12:27 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve That looks valid as far as I can tell... Are you sure the messages are actually being sent to one of the listed addresses? --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 8:48:42 AM Blake, thanks for the assistance. I?ll check out the duplicate db, and enable it. Here is a copy of a example vacation sieve script: #Mail filter rules for dgottsc #Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 require ["vacation"]; vacation :days 7 :addresses ["dgottsc at emory.edu", "dgottsc at removed.emory.edu"] text: This is a test vacation reply. . ; ##PSEUDO script start #SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matchAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"actions";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This is a test vacation reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory.edu";i:1;s:27:"dgottsc at removed.emory.edu";}}}} #mode&&basic Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:44 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve The duplicate db is used in the vacation code of sieve to determine if a sender has previously received a vacation response. As I understand it (from reading the mailing list), older versions of Cyrus made the duplicate db optional and the vacation portion of sieve may not work as expected without it. So, ensure that you have it enabled. I'm not familiar with SmartSieve, but perhaps you could provide an example script that it creates when you setup a vacation response - perhaps me or someone else here can debug it... --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:18:02 PM I'm using SmartSieve to create the scripts. The forwarding and reject options are working as expected. Do duplicate delivery dbs create issues? David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:15 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve I'm not a sieve guru, but I might be able to point you in the right direction for troubleshooting... How are you making your sieve scripts (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the forwarding and sieve reject options are working as expected to generate new messages? Do you have a duplicate delivery db in your cyrus meta data folder? -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:04:44 PM Anyone? I would greatly appreciate any assistance with this issue. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David Sent: Tuesday, May 19, 2009 4:17 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Cyrus + Sieve I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? I'm running Cyrus version: 2.2.12-3 (I know it's old) Thanks for any assistance, I'd greatly appreciate it. David Gottschalk UTS Email team david.gottschalk at emory.edu This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ---- 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 ---- 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/20090521/df0c5318/attachment-0001.html From dgottsc at emory.edu Thu May 21 13:51:30 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 21 May 2009 13:51:30 -0400 Subject: Cyrus + Sieve In-Reply-To: <48A1D56CF392F0AA7321ACE5@[192.168.0.147]> References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <48A1D56CF392F0AA7321ACE5@[192.168.0.147]> Message-ID: Yeah, at first I was sending from the same address. Then I realized this problem and started sending from a different address, but still no luck. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: David R Bosso [mailto:dbosso at lsit.ucsb.edu] Sent: Thursday, May 21, 2009 1:51 PM To: Gottschalk, David Subject: RE: Cyrus + Sieve --On Thursday, May 21, 2009 1:41 PM -0400 "Gottschalk, David" wrote: > Yeah, I?m sending emails to that address. Are you sending them from a different address? I'm pretty sure it won't reply to one of its defined addresses to prevent loops. -David > How do I enable duplicate suppression? I think that might be my issue. > I?ve enabled it in imapd.conf, and defined the database type, but it > doesn?t seem to be creating a duplicate.db. > > Thanks. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On > Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 12:27 PM > To: info-cyrus at lists.andrew.cmu.edu > Subject: Re: Cyrus + Sieve > > That looks valid as far as I can tell... Are you sure the messages are > actually being sent to one of the listed addresses? > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > Date: Thursday, May 21, 2009 8:48:42 AM > > Blake, thanks for the assistance. > > I?ll check out the duplicate db, and enable it. > > Here is a copy of a example vacation sieve script: > ># Mail filter rules for dgottsc ># Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 > require ["vacation"]; > > vacation :days 7 :addresses > ["dgottsc at emory.edu", > "dgottsc at removed.emory.edu"] text: This > is a test vacation reply. > . > ; > > >## PSEUDO script start ># SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matc ># hAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"action ># s";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This is a ># test vacation ># reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory. ># edu";i:1;s:27:"dgottsc at removed.emory.edu"# to:dgottsc at removed.emory.edu>;}}}} mode&&basic > > Thanks. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > From: > info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu us-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu> > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On > Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:44 PM > To: > info-cyrus at lists.andrew.cmu.edu > Subject: Re: Cyrus + Sieve > > The duplicate db is used in the vacation code of sieve to determine if a > sender has previously received a vacation response. As I understand it > (from reading the mailing list), older versions of Cyrus made the > duplicate db optional and the vacation portion of sieve may not work as > expected without it. So, ensure that you have it enabled. > > I'm not familiar with SmartSieve, but perhaps you could provide an > example script that it creates when you setup a vacation response - > perhaps me or someone else here can debug it... > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > Date: Wednesday, May 20, 2009 3:18:02 PM > > > > I'm using SmartSieve to create the scripts. > > > > The forwarding and reject options are working as expected. > > > > Do duplicate delivery dbs create issues? > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > -----Original Message----- > > From: > info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu us-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu> > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On > Behalf Of Blake Hudson > > Sent: Wednesday, May 20, 2009 4:15 PM > > To: > info-cyrus at lists.andrew.cmu.edu > > Subject: Re: Cyrus + Sieve > > > > I'm not a sieve guru, but I might be able to point you in the right > > direction for troubleshooting... How are you making your sieve scripts > > (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the > > forwarding and sieve reject options are working as expected to generate > > new messages? Do you have a duplicate delivery db in your cyrus meta > > data folder? > > > > > > -Blake > > > > -------- Original Message -------- > > Subject: Re: Cyrus + Sieve > > From: Gottschalk, David > > To: > info-cyrus at lists.andrew.cmu.edu > > > Date: Wednesday, May 20, 2009 3:04:44 PM > > > > Anyone? I would greatly appreciate any assistance with this issue. > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > -----Original Message----- > > From: > info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu us-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu> > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On > Behalf Of Gottschalk, David > > Sent: Tuesday, May 19, 2009 4:17 PM > > To: > info-cyrus at lists.andrew.cmu.edu > > Subject: Cyrus + Sieve > > > > I'm in the process of getting sieve working on my Cyrus servers. I've got > everything working except for the vacation portion of sieve. I'm not sure > why this isn't working. I've searched the web like crazy, and found quite > a few people that had this issue. I've tried their solutions, but no > luck. All the other sieve options work fine, but the vacation app. Any > ideas? > > > > I'm running Cyrus version: 2.2.12-3 (I know it's old) > > > > Thanks for any assistance, I'd greatly appreciate it. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > > > This e-mail message (including any attachments) is for the sole use of > > the intended recipient(s) and may contain confidential and privileged > > information. If the reader of this message is not the intended > > recipient, you are hereby notified that any dissemination, distribution > > or copying of this message (including any attachments) is strictly > > prohibited. > > > > If you have received this message in error, please contact > > the sender by reply e-mail message and destroy all copies of the > > original message (including attachments). > > ---- > > 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 > > > > > > > > ---- > > 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 blake at ispn.net Thu May 21 13:55:00 2009 From: blake at ispn.net (Blake Hudson) Date: Thu, 21 May 2009 12:55:00 -0500 Subject: Cyrus + Sieve In-Reply-To: References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> Message-ID: <4A159574.4090808@ispn.net> The file will be located in your 'configdirectory' (mine is /var/lib/imap). In the absence of config options it will be automatically created and should will be a Berkeley db file named 'deliver.db' --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 12:41:05 PM > > Yeah, I?m sending emails to that address. > > > > How do I enable duplicate suppression? I think that might be my issue. > I?ve enabled it in imapd.conf, and defined the database type, but it > doesn?t seem to be creating a duplicate.db. > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Thursday, May 21, 2009 12:27 PM > *To:* info-cyrus at lists.andrew.cmu.edu > *Subject:* Re: Cyrus + Sieve > > > > That looks valid as far as I can tell... Are you sure the messages are > actually being sent to one of the listed addresses? > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Thursday, May 21, 2009 8:48:42 AM > > Blake, thanks for the assistance. > > > > I?ll check out the duplicate db, and enable it. > > > > Here is a copy of a example vacation sieve script: > > > > #Mail filter rules for dgottsc > > #Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 > > require ["vacation"]; > > > > vacation :days 7 :addresses ["dgottsc at emory.edu" > , "dgottsc at removed.emory.edu" > ] text: > > This is a test vacation reply. > > . > > ; > > > > > > ##PSEUDO script start > > #SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matchAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"actions";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This > is a test vacation > reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory.edu" > ;i:1;s:27:"dgottsc at removed.emory.edu" > ;}}}} > > #mode&&basic > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Wednesday, May 20, 2009 4:44 PM > *To:* info-cyrus at lists.andrew.cmu.edu > > *Subject:* Re: Cyrus + Sieve > > > > The duplicate db is used in the vacation code of sieve to determine if > a sender has previously received a vacation response. As I understand > it (from reading the mailing list), older versions of Cyrus made the > duplicate db optional and the vacation portion of sieve may not work > as expected without it. So, ensure that you have it enabled. > > I'm not familiar with SmartSieve, but perhaps you could provide an > example script that it creates when you setup a vacation response - > perhaps me or someone else here can debug it... > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Wednesday, May 20, 2009 3:18:02 PM > > > I'm using SmartSieve to create the scripts. > > The forwarding and reject options are working as expected. > > Do duplicate delivery dbs create issues? > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson > Sent: Wednesday, May 20, 2009 4:15 PM > To: info-cyrus at lists.andrew.cmu.edu > Subject: Re: Cyrus + Sieve > > I'm not a sieve guru, but I might be able to point you in the right > direction for troubleshooting... How are you making your sieve scripts > (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the > forwarding and sieve reject options are working as expected to generate > new messages? Do you have a duplicate delivery db in your cyrus meta > data folder? > > > -Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: info-cyrus at lists.andrew.cmu.edu > Date: Wednesday, May 20, 2009 3:04:44 PM > > > Anyone? I would greatly appreciate any assistance with this issue. > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > -----Original Message----- > > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David > > Sent: Tuesday, May 19, 2009 4:17 PM > > To: info-cyrus at lists.andrew.cmu.edu > > Subject: Cyrus + Sieve > > > > I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? > > > > I'm running Cyrus version: 2.2.12-3 (I know it's old) > > > > Thanks for any assistance, I'd greatly appreciate it. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > > > This e-mail message (including any attachments) is for the sole use of > > the intended recipient(s) and may contain confidential and privileged > > information. If the reader of this message is not the intended > > recipient, you are hereby notified that any dissemination, distribution > > or copying of this message (including any attachments) is strictly > > prohibited. > > > > If you have received this message in error, please contact > > the sender by reply e-mail message and destroy all copies of the > > original message (including attachments). > > ---- > > 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 > > > > > > > ---- > 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/20090521/800486d1/attachment-0001.html From dgottsc at emory.edu Thu May 21 14:02:32 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 21 May 2009 14:02:32 -0400 Subject: Cyrus + Sieve In-Reply-To: <4A159574.4090808@ispn.net> References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> Message-ID: Hmm. This is strange. I?ve enabled it, but I don?t see it in my configuration directory. I restarted Cyrus, no joy. Do I need to clear my DBs in order for this to get created? Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 1:55 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve The file will be located in your 'configdirectory' (mine is /var/lib/imap). In the absence of config options it will be automatically created and should will be a Berkeley db file named 'deliver.db' --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 12:41:05 PM Yeah, I?m sending emails to that address. How do I enable duplicate suppression? I think that might be my issue. I?ve enabled it in imapd.conf, and defined the database type, but it doesn?t seem to be creating a duplicate.db. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 12:27 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve That looks valid as far as I can tell... Are you sure the messages are actually being sent to one of the listed addresses? --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 8:48:42 AM Blake, thanks for the assistance. I?ll check out the duplicate db, and enable it. Here is a copy of a example vacation sieve script: #Mail filter rules for dgottsc #Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 require ["vacation"]; vacation :days 7 :addresses ["dgottsc at emory.edu", "dgottsc at removed.emory.edu"] text: This is a test vacation reply. . ; ##PSEUDO script start #SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matchAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"actions";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This is a test vacation reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory.edu";i:1;s:27:"dgottsc at removed.emory.edu";}}}} #mode&&basic Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:44 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve The duplicate db is used in the vacation code of sieve to determine if a sender has previously received a vacation response. As I understand it (from reading the mailing list), older versions of Cyrus made the duplicate db optional and the vacation portion of sieve may not work as expected without it. So, ensure that you have it enabled. I'm not familiar with SmartSieve, but perhaps you could provide an example script that it creates when you setup a vacation response - perhaps me or someone else here can debug it... --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:18:02 PM I'm using SmartSieve to create the scripts. The forwarding and reject options are working as expected. Do duplicate delivery dbs create issues? David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:15 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve I'm not a sieve guru, but I might be able to point you in the right direction for troubleshooting... How are you making your sieve scripts (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the forwarding and sieve reject options are working as expected to generate new messages? Do you have a duplicate delivery db in your cyrus meta data folder? -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:04:44 PM Anyone? I would greatly appreciate any assistance with this issue. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David Sent: Tuesday, May 19, 2009 4:17 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Cyrus + Sieve I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? I'm running Cyrus version: 2.2.12-3 (I know it's old) Thanks for any assistance, I'd greatly appreciate it. David Gottschalk UTS Email team david.gottschalk at emory.edu This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ---- 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 ---- 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/20090521/e8bd40ec/attachment-0001.html From blake at ispn.net Thu May 21 14:18:37 2009 From: blake at ispn.net (Blake Hudson) Date: Thu, 21 May 2009 13:18:37 -0500 Subject: Cyrus + Sieve In-Reply-To: References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> Message-ID: <4A159AFD.4010701@ispn.net> Any errors in the log? does your configdirectory have the proper ownership/permissions? drwxr-x--- 18 cyrus mail 4096 May 21 13:01 imap -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 1:02:32 PM > > Hmm. > > > > This is strange. I?ve enabled it, but I don?t see it in my > configuration directory. I restarted Cyrus, no joy. Do I need to clear > my DBs in order for this to get created? > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Thursday, May 21, 2009 1:55 PM > *To:* info-cyrus at lists.andrew.cmu.edu > *Subject:* Re: Cyrus + Sieve > > > > The file will be located in your 'configdirectory' (mine is > /var/lib/imap). In the absence of config options it will be > automatically created and should will be a Berkeley db file named > 'deliver.db' > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Thursday, May 21, 2009 12:41:05 PM > > Yeah, I?m sending emails to that address. > > > > How do I enable duplicate suppression? I think that might be my issue. > I?ve enabled it in imapd.conf, and defined the database type, but it > doesn?t seem to be creating a duplicate.db. > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Thursday, May 21, 2009 12:27 PM > *To:* info-cyrus at lists.andrew.cmu.edu > > *Subject:* Re: Cyrus + Sieve > > > > That looks valid as far as I can tell... Are you sure the messages are > actually being sent to one of the listed addresses? > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Thursday, May 21, 2009 8:48:42 AM > > > Blake, thanks for the assistance. > > > > I?ll check out the duplicate db, and enable it. > > > > Here is a copy of a example vacation sieve script: > > > > #Mail filter rules for dgottsc > > #Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 > > require ["vacation"]; > > > > vacation :days 7 :addresses ["dgottsc at emory.edu" > , "dgottsc at removed.emory.edu" > ] text: > > This is a test vacation reply. > > . > > ; > > > > > > ##PSEUDO script start > > #SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matchAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"actions";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This > is a test vacation > reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory.edu" > ;i:1;s:27:"dgottsc at removed.emory.edu" > ;}}}} > > #mode&&basic > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Wednesday, May 20, 2009 4:44 PM > *To:* info-cyrus at lists.andrew.cmu.edu > > *Subject:* Re: Cyrus + Sieve > > > > The duplicate db is used in the vacation code of sieve to determine if > a sender has previously received a vacation response. As I understand > it (from reading the mailing list), older versions of Cyrus made the > duplicate db optional and the vacation portion of sieve may not work > as expected without it. So, ensure that you have it enabled. > > I'm not familiar with SmartSieve, but perhaps you could provide an > example script that it creates when you setup a vacation response - > perhaps me or someone else here can debug it... > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Wednesday, May 20, 2009 3:18:02 PM > > > > I'm using SmartSieve to create the scripts. > > The forwarding and reject options are working as expected. > > Do duplicate delivery dbs create issues? > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson > Sent: Wednesday, May 20, 2009 4:15 PM > To: info-cyrus at lists.andrew.cmu.edu > Subject: Re: Cyrus + Sieve > > I'm not a sieve guru, but I might be able to point you in the right > direction for troubleshooting... How are you making your sieve scripts > (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the > forwarding and sieve reject options are working as expected to generate > new messages? Do you have a duplicate delivery db in your cyrus meta > data folder? > > > -Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: info-cyrus at lists.andrew.cmu.edu > Date: Wednesday, May 20, 2009 3:04:44 PM > > > Anyone? I would greatly appreciate any assistance with this issue. > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > -----Original Message----- > > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David > > Sent: Tuesday, May 19, 2009 4:17 PM > > To: info-cyrus at lists.andrew.cmu.edu > > Subject: Cyrus + Sieve > > > > I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? > > > > I'm running Cyrus version: 2.2.12-3 (I know it's old) > > > > Thanks for any assistance, I'd greatly appreciate it. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > > > This e-mail message (including any attachments) is for the sole use of > > the intended recipient(s) and may contain confidential and privileged > > information. If the reader of this message is not the intended > > recipient, you are hereby notified that any dissemination, distribution > > or copying of this message (including any attachments) is strictly > > prohibited. > > > > If you have received this message in error, please contact > > the sender by reply e-mail message and destroy all copies of the > > original message (including attachments). > > ---- > > 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 > > > > > > > ---- > 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/20090521/dde92793/attachment-0001.html From dgottsc at emory.edu Thu May 21 14:24:09 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 21 May 2009 14:24:09 -0400 Subject: Cyrus + Sieve In-Reply-To: <4A159AFD.4010701@ispn.net> References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> Message-ID: Cannot find any error(s) in the logs. Permissions are correct on the folder. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 2:19 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve Any errors in the log? does your configdirectory have the proper ownership/permissions? drwxr-x--- 18 cyrus mail 4096 May 21 13:01 imap -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 1:02:32 PM Hmm. This is strange. I?ve enabled it, but I don?t see it in my configuration directory. I restarted Cyrus, no joy. Do I need to clear my DBs in order for this to get created? Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 1:55 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve The file will be located in your 'configdirectory' (mine is /var/lib/imap). In the absence of config options it will be automatically created and should will be a Berkeley db file named 'deliver.db' --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 12:41:05 PM Yeah, I?m sending emails to that address. How do I enable duplicate suppression? I think that might be my issue. I?ve enabled it in imapd.conf, and defined the database type, but it doesn?t seem to be creating a duplicate.db. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 12:27 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve That looks valid as far as I can tell... Are you sure the messages are actually being sent to one of the listed addresses? --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 8:48:42 AM Blake, thanks for the assistance. I?ll check out the duplicate db, and enable it. Here is a copy of a example vacation sieve script: #Mail filter rules for dgottsc #Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 require ["vacation"]; vacation :days 7 :addresses ["dgottsc at emory.edu", "dgottsc at removed.emory.edu"] text: This is a test vacation reply. . ; ##PSEUDO script start #SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matchAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"actions";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This is a test vacation reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory.edu";i:1;s:27:"dgottsc at removed.emory.edu";}}}} #mode&&basic Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:44 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve The duplicate db is used in the vacation code of sieve to determine if a sender has previously received a vacation response. As I understand it (from reading the mailing list), older versions of Cyrus made the duplicate db optional and the vacation portion of sieve may not work as expected without it. So, ensure that you have it enabled. I'm not familiar with SmartSieve, but perhaps you could provide an example script that it creates when you setup a vacation response - perhaps me or someone else here can debug it... --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:18:02 PM I'm using SmartSieve to create the scripts. The forwarding and reject options are working as expected. Do duplicate delivery dbs create issues? David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:15 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve I'm not a sieve guru, but I might be able to point you in the right direction for troubleshooting... How are you making your sieve scripts (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the forwarding and sieve reject options are working as expected to generate new messages? Do you have a duplicate delivery db in your cyrus meta data folder? -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:04:44 PM Anyone? I would greatly appreciate any assistance with this issue. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David Sent: Tuesday, May 19, 2009 4:17 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Cyrus + Sieve I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? I'm running Cyrus version: 2.2.12-3 (I know it's old) Thanks for any assistance, I'd greatly appreciate it. David Gottschalk UTS Email team david.gottschalk at emory.edu This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ---- 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 ---- 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/20090521/a71d1693/attachment-0001.html From blake at ispn.net Thu May 21 14:29:13 2009 From: blake at ispn.net (Blake Hudson) Date: Thu, 21 May 2009 13:29:13 -0500 Subject: Cyrus + Sieve In-Reply-To: References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> Message-ID: <4A159D79.10007@ispn.net> Assuming you're only running one instance and you're looking in the right place - I'm out of ideas... Perhaps someone else can chime in at this point as to why the deliver.db could be missing and when it is missing, what the consequential behavior would be. -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 1:24:09 PM > > Cannot find any error(s) in the logs. > > > > Permissions are correct on the folder. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Thursday, May 21, 2009 2:19 PM > *To:* info-cyrus at lists.andrew.cmu.edu > *Subject:* Re: Cyrus + Sieve > > > > Any errors in the log? does your configdirectory have the proper > ownership/permissions? > drwxr-x--- 18 cyrus mail 4096 May 21 13:01 imap > > > -Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Thursday, May 21, 2009 1:02:32 PM > > Hmm. > > > > This is strange. I?ve enabled it, but I don?t see it in my > configuration directory. I restarted Cyrus, no joy. Do I need to clear > my DBs in order for this to get created? > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Thursday, May 21, 2009 1:55 PM > *To:* info-cyrus at lists.andrew.cmu.edu > > *Subject:* Re: Cyrus + Sieve > > > > The file will be located in your 'configdirectory' (mine is > /var/lib/imap). In the absence of config options it will be > automatically created and should will be a Berkeley db file named > 'deliver.db' > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Thursday, May 21, 2009 12:41:05 PM > > > Yeah, I?m sending emails to that address. > > > > How do I enable duplicate suppression? I think that might be my issue. > I?ve enabled it in imapd.conf, and defined the database type, but it > doesn?t seem to be creating a duplicate.db. > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Thursday, May 21, 2009 12:27 PM > *To:* info-cyrus at lists.andrew.cmu.edu > > *Subject:* Re: Cyrus + Sieve > > > > That looks valid as far as I can tell... Are you sure the messages are > actually being sent to one of the listed addresses? > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Thursday, May 21, 2009 8:48:42 AM > > > > Blake, thanks for the assistance. > > > > I?ll check out the duplicate db, and enable it. > > > > Here is a copy of a example vacation sieve script: > > > > #Mail filter rules for dgottsc > > #Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 > > require ["vacation"]; > > > > vacation :days 7 :addresses ["dgottsc at emory.edu" > , "dgottsc at removed.emory.edu" > ] text: > > This is a test vacation reply. > > . > > ; > > > > > > ##PSEUDO script start > > #SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matchAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"actions";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This > is a test vacation > reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory.edu" > ;i:1;s:27:"dgottsc at removed.emory.edu" > ;}}}} > > #mode&&basic > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > *From:* info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu > > [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] *On > Behalf Of *Blake Hudson > *Sent:* Wednesday, May 20, 2009 4:44 PM > *To:* info-cyrus at lists.andrew.cmu.edu > > *Subject:* Re: Cyrus + Sieve > > > > The duplicate db is used in the vacation code of sieve to determine if > a sender has previously received a vacation response. As I understand > it (from reading the mailing list), older versions of Cyrus made the > duplicate db optional and the vacation portion of sieve may not work > as expected without it. So, ensure that you have it enabled. > > I'm not familiar with SmartSieve, but perhaps you could provide an > example script that it creates when you setup a vacation response - > perhaps me or someone else here can debug it... > > --Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: Blake Hudson , > info-cyrus at lists.andrew.cmu.edu > > > Date: Wednesday, May 20, 2009 3:18:02 PM > > > > > I'm using SmartSieve to create the scripts. > > The forwarding and reject options are working as expected. > > Do duplicate delivery dbs create issues? > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson > Sent: Wednesday, May 20, 2009 4:15 PM > To: info-cyrus at lists.andrew.cmu.edu > Subject: Re: Cyrus + Sieve > > I'm not a sieve guru, but I might be able to point you in the right > direction for troubleshooting... How are you making your sieve scripts > (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the > forwarding and sieve reject options are working as expected to generate > new messages? Do you have a duplicate delivery db in your cyrus meta > data folder? > > > -Blake > > -------- Original Message -------- > Subject: Re: Cyrus + Sieve > From: Gottschalk, David > To: info-cyrus at lists.andrew.cmu.edu > Date: Wednesday, May 20, 2009 3:04:44 PM > > > Anyone? I would greatly appreciate any assistance with this issue. > > > > Thanks. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > -----Original Message----- > > From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David > > Sent: Tuesday, May 19, 2009 4:17 PM > > To: info-cyrus at lists.andrew.cmu.edu > > Subject: Cyrus + Sieve > > > > I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? > > > > I'm running Cyrus version: 2.2.12-3 (I know it's old) > > > > Thanks for any assistance, I'd greatly appreciate it. > > > > David Gottschalk > > UTS Email team > > david.gottschalk at emory.edu > > > > > > > > This e-mail message (including any attachments) is for the sole use of > > the intended recipient(s) and may contain confidential and privileged > > information. If the reader of this message is not the intended > > recipient, you are hereby notified that any dissemination, distribution > > or copying of this message (including any attachments) is strictly > > prohibited. > > > > If you have received this message in error, please contact > > the sender by reply e-mail message and destroy all copies of the > > original message (including attachments). > > ---- > > 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 > > > > > > > ---- > 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/20090521/dc9b0da6/attachment-0001.html From dgottsc at emory.edu Thu May 21 15:41:59 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 21 May 2009 15:41:59 -0400 Subject: Cyrus + Sieve In-Reply-To: <4A159D79.10007@ispn.net> References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> Message-ID: Well, I think duplicate surpression might be already working. I just looked at my logs and see entries for it. I don?t have a deliver.db though, which is interesting. I did look at the Cyrus change log, and noticed that at some point they did merge the deliver.db and the duplicate.db. Any other ideas I could try, or tests I could do? David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 2:29 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve Assuming you're only running one instance and you're looking in the right place - I'm out of ideas... Perhaps someone else can chime in at this point as to why the deliver.db could be missing and when it is missing, what the consequential behavior would be. -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 1:24:09 PM Cannot find any error(s) in the logs. Permissions are correct on the folder. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 2:19 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve Any errors in the log? does your configdirectory have the proper ownership/permissions? drwxr-x--- 18 cyrus mail 4096 May 21 13:01 imap -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 1:02:32 PM Hmm. This is strange. I?ve enabled it, but I don?t see it in my configuration directory. I restarted Cyrus, no joy. Do I need to clear my DBs in order for this to get created? Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 1:55 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve The file will be located in your 'configdirectory' (mine is /var/lib/imap). In the absence of config options it will be automatically created and should will be a Berkeley db file named 'deliver.db' --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 12:41:05 PM Yeah, I?m sending emails to that address. How do I enable duplicate suppression? I think that might be my issue. I?ve enabled it in imapd.conf, and defined the database type, but it doesn?t seem to be creating a duplicate.db. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Thursday, May 21, 2009 12:27 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve That looks valid as far as I can tell... Are you sure the messages are actually being sent to one of the listed addresses? --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Thursday, May 21, 2009 8:48:42 AM Blake, thanks for the assistance. I?ll check out the duplicate db, and enable it. Here is a copy of a example vacation sieve script: #Mail filter rules for dgottsc #Generated by dgottsc using SmartSieve 1.0.0-RC2 2009/05/21 10:29:26 require ["vacation"]; vacation :days 7 :addresses ["dgottsc at emory.edu", "dgottsc at removed.emory.edu"] text: This is a test vacation reply. . ; ##PSEUDO script start #SmartSieveRule#a:6:{s:6:"status";s:7:"ENABLED";s:7:"control";N;s:8:"matchAny";N;s:10:"conditions";a:0:{}s:7:"special";s:8:"vacation";s:7:"actions";a:1:{i:0;a:4:{s:4:"type";s:8:"vacation";s:7:"message";s:30:"This is a test vacation reply.";s:4:"days";s:1:"7";s:9:"addresses";a:2:{i:0;s:17:"dgottsc at emory.edu";i:1;s:27:"dgottsc at removed.emory.edu";}}}} #mode&&basic Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:44 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve The duplicate db is used in the vacation code of sieve to determine if a sender has previously received a vacation response. As I understand it (from reading the mailing list), older versions of Cyrus made the duplicate db optional and the vacation portion of sieve may not work as expected without it. So, ensure that you have it enabled. I'm not familiar with SmartSieve, but perhaps you could provide an example script that it creates when you setup a vacation response - perhaps me or someone else here can debug it... --Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: Blake Hudson , info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:18:02 PM I'm using SmartSieve to create the scripts. The forwarding and reject options are working as expected. Do duplicate delivery dbs create issues? David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Blake Hudson Sent: Wednesday, May 20, 2009 4:15 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Cyrus + Sieve I'm not a sieve guru, but I might be able to point you in the right direction for troubleshooting... How are you making your sieve scripts (websieve, squirrelmail plugin, horde/IMP, etc)? Are you sure the forwarding and sieve reject options are working as expected to generate new messages? Do you have a duplicate delivery db in your cyrus meta data folder? -Blake -------- Original Message -------- Subject: Re: Cyrus + Sieve From: Gottschalk, David To: info-cyrus at lists.andrew.cmu.edu Date: Wednesday, May 20, 2009 3:04:44 PM Anyone? I would greatly appreciate any assistance with this issue. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Gottschalk, David Sent: Tuesday, May 19, 2009 4:17 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Cyrus + Sieve I'm in the process of getting sieve working on my Cyrus servers. I've got everything working except for the vacation portion of sieve. I'm not sure why this isn't working. I've searched the web like crazy, and found quite a few people that had this issue. I've tried their solutions, but no luck. All the other sieve options work fine, but the vacation app. Any ideas? I'm running Cyrus version: 2.2.12-3 (I know it's old) Thanks for any assistance, I'd greatly appreciate it. David Gottschalk UTS Email team david.gottschalk at emory.edu This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ---- 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 ---- 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/20090521/5e529d04/attachment-0001.html From simon.matter at invoca.ch Thu May 21 15:53:34 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 21 May 2009 21:53:34 +0200 Subject: Cyrus + Sieve In-Reply-To: References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> Message-ID: <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> > Well, I think duplicate surpression might be already working. I just > looked at my logs and see entries for it. > > I don???t have a deliver.db though, which is interesting. I did look at > the Cyrus change log, and noticed that at some point they did merge the > deliver.db and the duplicate.db. Hm, IIRC the duplicate db is always stored in deliver.db. > > Any other ideas I could try, or tests I could do? The thread is already quite long and I don't remember all details. But the problem you report is very common. Everything works but vacation does not. It usually boils down to the fact that everything is okay but the tester thinks it doesn't because he expects a message but cyrus thinks it has already sent one message. One thing you might check is your "sendmail" option in imapd.conf. Does it point to a usable sendmail command which really does the right thing? Simon From dgottsc at emory.edu Thu May 21 16:08:34 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 21 May 2009 16:08:34 -0400 Subject: Cyrus + Sieve In-Reply-To: <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> Message-ID: Good thinking. I sent a email from a completely new address, and it still didn't work. I wonder if this has something to do with how Sendmail and Cyrus talk to each other. This production environment was not setup by me, and there is a actual .promailrc script that hands off from sendmail to Cyrus. I wonder if this is causing mail to get malformed, and sieve not handle it. I saw some other posts online with users talking about this very issue. I'm not sure how that would affect the vacation portion, but maybe it could be? David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: Simon Matter [mailto:simon.matter at invoca.ch] Sent: Thursday, May 21, 2009 3:54 PM To: Gottschalk, David Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu Subject: RE: Cyrus + Sieve > Well, I think duplicate surpression might be already working. I just > looked at my logs and see entries for it. > > I don???t have a deliver.db though, which is interesting. I did look at > the Cyrus change log, and noticed that at some point they did merge the > deliver.db and the duplicate.db. Hm, IIRC the duplicate db is always stored in deliver.db. > > Any other ideas I could try, or tests I could do? The thread is already quite long and I don't remember all details. But the problem you report is very common. Everything works but vacation does not. It usually boils down to the fact that everything is okay but the tester thinks it doesn't because he expects a message but cyrus thinks it has already sent one message. One thing you might check is your "sendmail" option in imapd.conf. Does it point to a usable sendmail command which really does the right thing? Simon This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From simon.matter at invoca.ch Thu May 21 16:11:41 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 21 May 2009 22:11:41 +0200 Subject: Cyrus + Sieve In-Reply-To: References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> Message-ID: > Good thinking. I sent a email from a completely new address, and it still > didn't work. > > I wonder if this has something to do with how Sendmail and Cyrus talk to > each other. This production environment was not setup by me, and there is > a actual .promailrc script that hands off from sendmail to Cyrus. I wonder > if this is causing mail to get malformed, and sieve not handle it. What I meant is whether cyrus can send mails back via sendmail. That's how vacation messages are sent, cyrus call the "sendmail" program and sends the vacation message. If the sendmail parameter is not configured correctly then that won't work. Simon > > I saw some other posts online with users talking about this very issue. > > I'm not sure how that would affect the vacation portion, but maybe it > could be? > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: Simon Matter [mailto:simon.matter at invoca.ch] > Sent: Thursday, May 21, 2009 3:54 PM > To: Gottschalk, David > Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu > Subject: RE: Cyrus + Sieve > >> Well, I think duplicate surpression might be already working. I just >> looked at my logs and see entries for it. >> >> I don????????t have a deliver.db though, which is interesting. I did >> look at >> the Cyrus change log, and noticed that at some point they did merge the >> deliver.db and the duplicate.db. > > Hm, IIRC the duplicate db is always stored in deliver.db. > >> >> Any other ideas I could try, or tests I could do? > > The thread is already quite long and I don't remember all details. But > the > problem you report is very common. Everything works but vacation does > not. > It usually boils down to the fact that everything is okay but the tester > thinks it doesn't because he expects a message but cyrus thinks it has > already sent one message. > One thing you might check is your "sendmail" option in imapd.conf. Does > it > point to a usable sendmail command which really does the right thing? > > Simon > > > > This e-mail message (including any attachments) is for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution > or copying of this message (including any attachments) is strictly > prohibited. > > If you have received this message in error, please contact > the sender by reply e-mail message and destroy all copies of the > original message (including attachments). > From dgottsc at emory.edu Thu May 21 16:13:27 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 21 May 2009 16:13:27 -0400 Subject: Cyrus + Sieve In-Reply-To: References: <4A1464D5.2090906@ispn.net> <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> Message-ID: I configured that option, and still no go. How would it reply to reject messages without that option, but not vacation? Either way, I've added it for sake of trying/troubleshooting. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: Simon Matter [mailto:simon.matter at invoca.ch] Sent: Thursday, May 21, 2009 4:12 PM To: Gottschalk, David Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu Subject: RE: Cyrus + Sieve > Good thinking. I sent a email from a completely new address, and it still > didn't work. > > I wonder if this has something to do with how Sendmail and Cyrus talk to > each other. This production environment was not setup by me, and there is > a actual .promailrc script that hands off from sendmail to Cyrus. I wonder > if this is causing mail to get malformed, and sieve not handle it. What I meant is whether cyrus can send mails back via sendmail. That's how vacation messages are sent, cyrus call the "sendmail" program and sends the vacation message. If the sendmail parameter is not configured correctly then that won't work. Simon > > I saw some other posts online with users talking about this very issue. > > I'm not sure how that would affect the vacation portion, but maybe it > could be? > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: Simon Matter [mailto:simon.matter at invoca.ch] > Sent: Thursday, May 21, 2009 3:54 PM > To: Gottschalk, David > Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu > Subject: RE: Cyrus + Sieve > >> Well, I think duplicate surpression might be already working. I just >> looked at my logs and see entries for it. >> >> I don???,??"?t have a deliver.db though, which is interesting. I did >> look at >> the Cyrus change log, and noticed that at some point they did merge the >> deliver.db and the duplicate.db. > > Hm, IIRC the duplicate db is always stored in deliver.db. > >> >> Any other ideas I could try, or tests I could do? > > The thread is already quite long and I don't remember all details. But > the > problem you report is very common. Everything works but vacation does > not. > It usually boils down to the fact that everything is okay but the tester > thinks it doesn't because he expects a message but cyrus thinks it has > already sent one message. > One thing you might check is your "sendmail" option in imapd.conf. Does > it > point to a usable sendmail command which really does the right thing? > > Simon > > > > This e-mail message (including any attachments) is for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution > or copying of this message (including any attachments) is strictly > prohibited. > > If you have received this message in error, please contact > the sender by reply e-mail message and destroy all copies of the > original message (including attachments). > From simon.matter at invoca.ch Thu May 21 16:21:40 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 21 May 2009 22:21:40 +0200 Subject: Cyrus + Sieve In-Reply-To: References: <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> > I configured that option, and still no go. > > How would it reply to reject messages without that option, but not > vacation? Sure, I missed the detail that reject works for you. Well, then I'm also out of ideas. If you want to make sure it has nothing to do with duplicate db, then you could stop cyrus, "mv deliver.db deliver.db.old" and start cyrus. Then try it again. Simon > > Either way, I've added it for sake of trying/troubleshooting. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: Simon Matter [mailto:simon.matter at invoca.ch] > Sent: Thursday, May 21, 2009 4:12 PM > To: Gottschalk, David > Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu > Subject: RE: Cyrus + Sieve > >> Good thinking. I sent a email from a completely new address, and it >> still >> didn't work. >> >> I wonder if this has something to do with how Sendmail and Cyrus talk to >> each other. This production environment was not setup by me, and there >> is >> a actual .promailrc script that hands off from sendmail to Cyrus. I >> wonder >> if this is causing mail to get malformed, and sieve not handle it. > > What I meant is whether cyrus can send mails back via sendmail. That's how > vacation messages are sent, cyrus call the "sendmail" program and sends > the vacation message. If the sendmail parameter is not configured > correctly then that won't work. > > Simon > >> >> I saw some other posts online with users talking about this very issue. >> >> I'm not sure how that would affect the vacation portion, but maybe it >> could be? >> >> David Gottschalk >> UTS Email team >> david.gottschalk at emory.edu >> >> >> -----Original Message----- >> From: Simon Matter [mailto:simon.matter at invoca.ch] >> Sent: Thursday, May 21, 2009 3:54 PM >> To: Gottschalk, David >> Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu >> Subject: RE: Cyrus + Sieve >> >>> Well, I think duplicate surpression might be already working. I just >>> looked at my logs and see entries for it. >>> >>> I don???,??"?t have a deliver.db though, which is interesting. I did >>> look at >>> the Cyrus change log, and noticed that at some point they did merge the >>> deliver.db and the duplicate.db. >> >> Hm, IIRC the duplicate db is always stored in deliver.db. >> >>> >>> Any other ideas I could try, or tests I could do? >> >> The thread is already quite long and I don't remember all details. But >> the >> problem you report is very common. Everything works but vacation does >> not. >> It usually boils down to the fact that everything is okay but the tester >> thinks it doesn't because he expects a message but cyrus thinks it has >> already sent one message. >> One thing you might check is your "sendmail" option in imapd.conf. Does >> it >> point to a usable sendmail command which really does the right thing? >> >> Simon >> >> >> >> This e-mail message (including any attachments) is for the sole use of >> the intended recipient(s) and may contain confidential and privileged >> information. If the reader of this message is not the intended >> recipient, you are hereby notified that any dissemination, distribution >> or copying of this message (including any attachments) is strictly >> prohibited. >> >> If you have received this message in error, please contact >> the sender by reply e-mail message and destroy all copies of the >> original message (including attachments). >> > From alan at iomart.com Fri May 22 08:07:09 2009 From: alan at iomart.com (Alan Robertson) Date: Fri, 22 May 2009 13:07:09 +0100 Subject: saslcache missing option '-f' Message-ID: <4A16956D.9030801@iomart.com> Hi, Been looking in the saslcache.c code and whilst the usage section has the following: fprintf(stderr, " -f Purges all entries from the cache.\n"); There doesn't actually appear to be any cache purging code. The only options defined are 'd', 's', 'm' and show usage. I checked the SASL releases from cyrus-sasl-2.1.13 > cyrus-sasl-2.1.23 Did locate one of the original patches from the author that did contain the case statement and the corresponding "purge_cache". Has it been removed on purpose or am I just missing something ? Thanks, Alan. From dgottsc at emory.edu Fri May 22 08:51:56 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Fri, 22 May 2009 08:51:56 -0400 Subject: Cyrus + Sieve In-Reply-To: <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> References: <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> Message-ID: Well, this is interesting. I tested one of my reject rules (to make sure I'm not crazy), and it replied the rejected message to my inbox, not to the sender. Is that normal behavior? David Gottschalk Emory University UTS Messaging Team -----Original Message----- From: Simon Matter [mailto:simon.matter at invoca.ch] Sent: Thursday, May 21, 2009 4:22 PM To: Gottschalk, David Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu Subject: RE: Cyrus + Sieve > I configured that option, and still no go. > > How would it reply to reject messages without that option, but not > vacation? Sure, I missed the detail that reject works for you. Well, then I'm also out of ideas. If you want to make sure it has nothing to do with duplicate db, then you could stop cyrus, "mv deliver.db deliver.db.old" and start cyrus. Then try it again. Simon > > Either way, I've added it for sake of trying/troubleshooting. > > David Gottschalk > UTS Email team > david.gottschalk at emory.edu > > > -----Original Message----- > From: Simon Matter [mailto:simon.matter at invoca.ch] > Sent: Thursday, May 21, 2009 4:12 PM > To: Gottschalk, David > Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu > Subject: RE: Cyrus + Sieve > >> Good thinking. I sent a email from a completely new address, and it >> still >> didn't work. >> >> I wonder if this has something to do with how Sendmail and Cyrus talk to >> each other. This production environment was not setup by me, and there >> is >> a actual .promailrc script that hands off from sendmail to Cyrus. I >> wonder >> if this is causing mail to get malformed, and sieve not handle it. > > What I meant is whether cyrus can send mails back via sendmail. That's how > vacation messages are sent, cyrus call the "sendmail" program and sends > the vacation message. If the sendmail parameter is not configured > correctly then that won't work. > > Simon > >> >> I saw some other posts online with users talking about this very issue. >> >> I'm not sure how that would affect the vacation portion, but maybe it >> could be? >> >> David Gottschalk >> UTS Email team >> david.gottschalk at emory.edu >> >> >> -----Original Message----- >> From: Simon Matter [mailto:simon.matter at invoca.ch] >> Sent: Thursday, May 21, 2009 3:54 PM >> To: Gottschalk, David >> Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu >> Subject: RE: Cyrus + Sieve >> >>> Well, I think duplicate surpression might be already working. I just >>> looked at my logs and see entries for it. >>> >>> I don???,??"?t have a deliver.db though, which is interesting. I did >>> look at >>> the Cyrus change log, and noticed that at some point they did merge the >>> deliver.db and the duplicate.db. >> >> Hm, IIRC the duplicate db is always stored in deliver.db. >> >>> >>> Any other ideas I could try, or tests I could do? >> >> The thread is already quite long and I don't remember all details. But >> the >> problem you report is very common. Everything works but vacation does >> not. >> It usually boils down to the fact that everything is okay but the tester >> thinks it doesn't because he expects a message but cyrus thinks it has >> already sent one message. >> One thing you might check is your "sendmail" option in imapd.conf. Does >> it >> point to a usable sendmail command which really does the right thing? >> >> Simon >> >> >> >> This e-mail message (including any attachments) is for the sole use of >> the intended recipient(s) and may contain confidential and privileged >> information. If the reader of this message is not the intended >> recipient, you are hereby notified that any dissemination, distribution >> or copying of this message (including any attachments) is strictly >> prohibited. >> >> If you have received this message in error, please contact >> the sender by reply e-mail message and destroy all copies of the >> original message (including attachments). >> > From dbucherml at hsolutions.ch Sat May 23 10:39:43 2009 From: dbucherml at hsolutions.ch (Denis BUCHER) Date: Sat, 23 May 2009 16:39:43 +0200 Subject: help : cyradm can't access other domains ??? Message-ID: <4A180AAF.5090707@hsolutions.ch> Hello, I really don't understand how to access "other" (virtual) domains from cyradm : su - cyrus cyradm --user cyrus localhost lm I see all mailboxes from our main domain, for example : user.dbucherml.ML (\HasChildren) user.dbucherml.ML.Fournisseurs (\HasChildren) user.dbucherml.ML.Fournisseurs.Acer (\HasNoChildren) user.dbucherml.ML.Fournisseurs.Alltron (\HasNoChildren) user.dbucherml.ML.Fournisseurs.Microsoft (\HasChildren) user.dbucherml.ML.Fournisseurs.Microsoft.MSPRP (\HasNoChildren) But how can I access other domains ? I tried : lm user.dbucherml.myotherdomain.com but it doesn't work ??? And everything works fine except this ? The files are stored like that on the server : ls -lda /var/spool/imap/domain/h/hsolutions.ch/d/user/dbucherml/ Thanks a lot in advance, Denis From obata at lins.jp Sat May 23 17:37:53 2009 From: obata at lins.jp (OBATA Akio) Date: Sun, 24 May 2009 06:37:53 +0900 Subject: help : cyradm can't access other domains ??? In-Reply-To: <4A180AAF.5090707@hsolutions.ch> References: <4A180AAF.5090707@hsolutions.ch> Message-ID: Hi! On Sat, 23 May 2009 23:39:43 +0900, Denis BUCHER wrote: > Hello, > > I really don't understand how to access "other" (virtual) domains from > cyradm : > > su - cyrus > cyradm --user cyrus localhost > lm > > I see all mailboxes from our main domain, for example : > > user.dbucherml.ML (\HasChildren) > user.dbucherml.ML.Fournisseurs (\HasChildren) > user.dbucherml.ML.Fournisseurs.Acer (\HasNoChildren) > user.dbucherml.ML.Fournisseurs.Alltron (\HasNoChildren) > user.dbucherml.ML.Fournisseurs.Microsoft (\HasChildren) > user.dbucherml.ML.Fournisseurs.Microsoft.MSPRP (\HasNoChildren) Can you find following line? > user.dbucherml at hsolutions.ch (\HasChildren) If not, your cyrus user may not allowed to access hsolutions.ch domain (not a global admin?) -- OBATA Akio / obata at lins.jp From dom.lalot at gmail.com Mon May 25 11:10:44 2009 From: dom.lalot at gmail.com (LALOT Dominique) Date: Mon, 25 May 2009 17:10:44 +0200 Subject: Api for seen state, perl preferred In-Reply-To: <20090520115935.GA7193@brong.net> References: <1617f8010905192336u6cdb3s7395254cc6e2856d@mail.gmail.com> <20090520092324.GA25148@brong.net> <1242819292.4642.31.camel@estate1.whitemice.org> <20090520115935.GA7193@brong.net> Message-ID: <1617f8010905250810m692d64d8h2b1b3cd9489844da@mail.gmail.com> Sorry to be late to answer, and thanks for the thread. I tried that command and gets lots of info: getting id in a folder, I got that [cyrus at smtp ~]$ ./test.pl lastread:Tue May 19 14:14:04 2009 52 lastchange:Tue May 19 14:05:51 2009 1:52 I put an unread mail in that folder, it appears to be at uid 53 [cyrus at smtp ~]$ ./test.pl lastread:Tue May 19 14:14:04 2009 52 lastchange:Tue May 19 14:05:51 2009 1:52 Nothing changed Then clicking on it: [cyrus at smtp ~]$ ./test.pl lastread:Mon May 25 14:51:06 2009 53 lastchange:Mon May 25 14:51:06 2009 1:53 Yes that information has been updated. I begin to understand but my subfolder was easy, few messages and just one unread. When it's mixed it's more difficult: For my INBOX: [cyrus at smtp ~]$ ./test.pl lastread:Mon May 25 14:49:37 2009 30714 lastchange:Mon May 25 14:45:48 2009 1:30421,30423:30443,30445,30448:30449,30451,30453:30455,30457:30467,30472,30474,30477:30478,30480,30485:30490,30492,30494,30496:30498,30502,30504,30506,30508:30509,30511:30514,30516:30518,30520,30522:30523,30526:30528,30530:30537,30548:30558,30577,30579:30581,30606:30607,30610,30612,30615:30619,30621,30623:30643,30650,30652,30656,30659,30663:30666,30669:30670,30672:30675,30677:30678,30681,30683,30685,30687:30689,30691,30696:30697,30699:30701,30703:30705,30710,30713 [cyrus at smtp ~]$ ll /var/spool/imap2/l/user/lalot/3071* -rw------- 1 cyrus cyrus 1642 mai 25 16:31 /var/spool/imap2/l/user/lalot/30710. -rw------- 1 cyrus cyrus 31880 mai 25 16:35 /var/spool/imap2/l/user/lalot/30712. -rw------- 1 cyrus cyrus 2058 mai 25 16:41 /var/spool/imap2/l/user/lalot/30713. -rw------- 1 cyrus cyrus 8268 mai 25 16:47 /var/spool/imap2/l/user/lalot/30714. -rw------- 1 cyrus cyrus 2622 mai 25 16:50 /var/spool/imap2/l/user/lalot/30715. -rw------- 1 cyrus cyrus 7982 mai 25 16:56 /var/spool/imap2/l/user/lalot/30716. [cyrus at smtp ~]$ ./test.pl lastread:Mon May 25 16:49:37 2009 30714 lastchange:Mon May 25 16:45:48 2009 1:30421,30423:30443,30445,30448:30449,30451,30453:30455,30457:30467,30472,30474,30477:30478,30480,30485:30490,30492,30494,30496:30498,30502,30504,30506,30508:30509,30511:30514,30516:30518,30520,30522:30523,30526:30528,30530:30537,30548:30558,30577,30579:30581,30606:30607,30610,30612,30615:30619,30621,30623:30643,30650,30652,30656,30659,30663:30666,30669:30670,30672:30675,30677:30678,30681,30683,30685,30687:30689,30691,30696:30697,30699:30701,30703:30705,30710,30713 The last 3 emails haven't been red. and we stopped at 30713 I clicked on last one: [cyrus at smtp ~]$ ./test.pl lastread:Mon May 25 17:03:06 2009 30716 lastchange:Mon May 25 17:03:07 2009 1:30421,30423:30443,30445,30448:30449,30451,30453:30455,30457:30467,30472,30474,30477:30478,30480,30485:30490,30492,30494,30496:30498,30502,30504,30506,30508:30509,30511:30514,30516:30518,30520,30522:30523,30526:30528,30530:30537,30548:30558,30577,30579:30581,30606:30607,30610,30612,30615:30619,30621,30623:30643,30650,30652,30656,30659,30663:30666,30669:30670,30672:30675,30677:30678,30681,30683,30685,30687:30689,30691,30696:30697,30699:30701,30703:30705,30710:30711,30713,30716 So, I have all the ranges of what has been red. I can put the ranges in a structure, then do a search before "xx" and compare if the mails are in the range. I believe it can do the job with that. Thanks Dom 2009/5/20 Bron Gondwana > On Wed, May 20, 2009 at 07:34:52AM -0400, Adam Tauno WIlliams wrote: > > Maybe I'm looking in the wrong place; but on my test server > > (cyrus-imapd-2.3.11) my cyrus.header looks like - > > > > estate1:/var/spool/imap/user/awilliam # cat cyrus.header > > Cyrus mailbox header > > "The best thing about this system was that it had lots of goals." > > --Jim Morris on Andrew > > 46a0a0b041114dce > > Junk $Label1 $Label2 $Label3 $Label4 $Label5 $MDNSent NotJunk > > receipt-handled $has_cal > > awilliam lrswipcda > > > > Is "46a0a0b041114dce" the id? > > Yeah, just means you have no quota root. That's the ID. > > > > [brong at imap3 hm]$ /usr/cyrus/bin/cyr_dbtool -C > /etc/imapd-slot308-master.conf > /mnt/meta8/slot308/store23/conf/user/b/brong.seen skiplist get > 6af857f64475158a > > > 1 1242810803 386716 1242800567 1:386615 > > > Looks like I've seen all my email! Also notice 4 other > > > fields at the start: > > > > > > > is an epoch time stamp? > > Yes. > > > I'm not clear on what is; looks like it is a message id? What > > operation sets/updates the value? > > It's a UID. > > > > Here's a more interesting couple of folders to give you an idea > > > of what ranges look like: > > > 798b2df94146a5fe 1 1095746485 1526 1095740252 > 1:559,561:772,774:920,922:1109,1111:1115,1117:1138,1140:1170,1172:1195,1197:1521 > > > 798b2df941576261 1 1125837870 34307 1123831223 > 1:28289,29118,30871,31887,31935,32058,32209:32210,32214:32219,32222,32228 > > > So - in summary. It's not easy. Some plumbing required... > > > (lastuid gives you "\Recent" as per the IMAP flag - anything > > > newer than that is recent!) > > > > So any message with $id > $lastuid is "recent". > > $uid. Please don't get confused between the two. It's an > important distinction. Everything is in UIDs internally. > > Bron. > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > -- Dominique LALOT Ing?nieur Syst?mes et R?seaux http://annuaire.univmed.fr/showuser.php?uid=lalot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090525/5424bb71/attachment.html From dbucherml at hsolutions.ch Mon May 25 12:55:45 2009 From: dbucherml at hsolutions.ch (Denis BUCHER) Date: Mon, 25 May 2009 18:55:45 +0200 Subject: help : cyradm can't access other domains ??? In-Reply-To: References: <4A180AAF.5090707@hsolutions.ch> Message-ID: <4A1ACD91.1040303@hsolutions.ch> OBATA Akio a ?crit : >> I really don't understand how to access "other" (virtual) domains from >> cyradm : >> >> su - cyrus >> cyradm --user cyrus localhost >> lm >> >> I see all mailboxes from our main domain, for example : >> >> user.dbucherml.ML (\HasChildren) >> user.dbucherml.ML.Fournisseurs (\HasChildren) >> user.dbucherml.ML.Fournisseurs.Acer (\HasNoChildren) >> user.dbucherml.ML.Fournisseurs.Alltron (\HasNoChildren) >> user.dbucherml.ML.Fournisseurs.Microsoft (\HasChildren) >> user.dbucherml.ML.Fournisseurs.Microsoft.MSPRP (\HasNoChildren) > > Can you find following line? >> user.dbucherml at hsolutions.ch (\HasChildren) No, I don't have any "@hsolutions.ch" or "@anything.else" > If not, your cyrus user may not allowed to access hsolutions.ch domain > (not a global admin?) Yes I think my cyrus user is not a global admin, but I don't understand how to make it global ? Thanks a lot in advance for your help... Denis From garry at glendown.de Mon May 25 16:12:25 2009 From: garry at glendown.de (Garry) Date: Mon, 25 May 2009 22:12:25 +0200 Subject: Sieve: Vacation not working Message-ID: <4A1AFBA9.2060203@glendown.de> I have a SuSE Enterprise 10 system set up, which is running smoothly ... I have Cyrus 2.2.12 on it, which too is working fine - IMAP, SASL-Auth, the whole 9 yards ... even Sieve itself is fine, messages are moved to the appropriate folders as directed in the Sieve config ... Here's an excerpt from the Sieve script: require [ "vacation" , "fileinto" ] ; ## Flag: |UniqueId:1|Rulename: SpamMsg if header :contains "From" "gkg" { fileinto "INBOX.Spam" ; } ## Flag: vacation|UniqueId:0|Rulename: Abwesenheitsbenachrichtigung if true { vacation :days 7 :addresses [ "admin at ox6.mydomain.de" , "admin at mydomain.de" ] :subject "Ich bin nicht da ..." "blah" ; } The message is received, but according to /var/log/messages, nothing happens apart from it being stored locally ... I'm somewhat at a loss as to where else I can check for the reason of it not working ... couldn't find anything on Google that would have been helpful, either ... maybe somebody could point me in the right direction ... ?! Tnx, -garry From thomas.cataldo at aliasource.fr Mon May 25 19:47:42 2009 From: thomas.cataldo at aliasource.fr (Thomas Cataldo) Date: Tue, 26 May 2009 01:47:42 +0200 Subject: [PATCH] closedir missing in timsieved Message-ID: Hello, While writing a sieve client lib for the minig (minig.org) webmail project, I triggered a bug in the LISTSCRIPTS implementation in cyrus 2.2 from debian etch. The directory seems to remain unclosed and this is a problem when prefork > 0 is set on timsieved. The attached patch should fix it. -------------- next part -------------- --- actions.c 2009-05-26 01:41:57.000000000 +0200 +++ actions.fixed.c 2009-05-26 01:42:27.000000000 +0200 @@ -542,6 +542,8 @@ } } + closedir(dp); + prot_printf(conn,"OK\r\n"); return TIMSIEVE_OK; From thomas.cataldo at aliasource.fr Mon May 25 20:10:19 2009 From: thomas.cataldo at aliasource.fr (Thomas Cataldo) Date: Tue, 26 May 2009 02:10:19 +0200 Subject: [PATCH] closedir missing in timsieved In-Reply-To: References: Message-ID: On Tue, May 26, 2009 at 1:47 AM, Thomas Cataldo wrote: > Hello, > > While writing a sieve client lib for the minig (minig.org) webmail > project, I triggered a bug in the LISTSCRIPTS implementation in cyrus > 2.2 from debian etch. The directory seems to remain unclosed and this > is a problem when prefork > 0 is set on timsieved. > > The attached patch should fix it. > Same patch needed on 2.3 cvs : Index: actions.c =================================================================== RCS file: /cvs/src/cyrus/timsieved/actions.c,v retrieving revision 1.46 diff -u -r1.46 actions.c --- actions.c 14 Jan 2009 15:50:47 -0000 1.46 +++ actions.c 26 May 2009 00:09:09 -0000 @@ -555,6 +555,8 @@ } } + closedir(dp); + prot_printf(conn,"OK\r\n"); return TIMSIEVE_OK; From gbulfon at sonicle.com Tue May 26 02:29:51 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Tue, 26 May 2009 08:29:51 +0200 (CEST) Subject: Sieve filter with spaces Message-ID: <23410111.8.1243319391168.JavaMail.root@www> Hello, I'm having trouble with some filters that match a sentence with spaces. Is there a special way I should specify spaces in a rule? This is the rule that is not considered at all: ... elsif allof (address :contains ["from"] "Mall LM Giver") { fileinto "SL.Mall"; } ... The mails that should be matched, all contains this header: ... From: "Mall LM Giver" <2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd35v at im.agni.lindenlab.com> ... Thanx for any help Gabriele. Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090526/257a22c5/attachment.html From michael.menge at zdv.uni-tuebingen.de Tue May 26 05:30:27 2009 From: michael.menge at zdv.uni-tuebingen.de (Michael Menge) Date: Tue, 26 May 2009 11:30:27 +0200 Subject: Sieve filter with spaces In-Reply-To: <23410111.8.1243319391168.JavaMail.root@www> References: <23410111.8.1243319391168.JavaMail.root@www> Message-ID: <20090526113027.69765wcaiwj5z5bn@webmail.uni-tuebingen.de> Hi, Quoting Gabriele Bulfon : > Hello, > I'm having trouble with some filters that match a sentence with spaces. > Is there a special way I should specify spaces in a rule? > This is the rule that is not considered at all: > ... > elsif allof (address :contains ["from"] "Mall LM Giver") { > fileinto "SL.Mall"; > } > ... > The mails that should be matched, all contains this header: > ... > From: "Mall LM Giver" > <2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd35v at im.agni.lindenlab.com> > ... The space is not the problem. String has to match the address not the display name. In your case "2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd35v at im.agni.lindenlab.com" -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5339 bytes Desc: S/MIME krytographische Unterschrift Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090526/e720d562/attachment-0001.bin From vova at edu.yar.ru Tue May 26 06:24:40 2009 From: vova at edu.yar.ru (Vladimir Vassiliev) Date: Tue, 26 May 2009 14:24:40 +0400 Subject: POP3 locking. Is there a way to reduce this "issue"? Message-ID: <200905261424.40957.vova@edu.yar.ru> Yeah, it's really annoying issue. I can add to your summary that poptimeout option is not very useful because POP daemon may stall much more than its value. It's because of blocking write() call whose timeout depends on TCP settings of host system. For example, with my system defaults timeout reaches 30 minutes. It's possible to play with /proc/sys/net/ipv4/tcp_retries2 (on Linux) to reduce it. The best solution I could implement is to search and kill all pop3d daemons (there should be only one) belonging to user when he logs on. I do it with pam_exec module. PAM config and script in attachment. It works for me, but my server load is not very big so some race issues with bigger load are possible. -- Vladimir Vassiliev -------------- next part -------------- auth required pam_unix.so auth optional pam_exec.so debug log=/var/log/kill_pop3d.log /usr/local/cyrus/bin/kill_pop3d account required pam_permit.so -------------- next part -------------- A non-text attachment was scrubbed... Name: kill_pop3d Type: application/x-shellscript Size: 790 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090526/c3527c67/attachment.bin From fh at sadig.com Tue May 26 08:01:19 2009 From: fh at sadig.com (Fernando Hartmann) Date: Tue, 26 May 2009 09:01:19 -0300 Subject: Cyrus + Sieve In-Reply-To: <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> References: <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <4A1BDA0F.5040609@sadig.com> I tried to make my Sieve Vacation work a lot of times, on the last few years, but it never worked :-( The problem is like yours and I never understand what is happening. This is the reason because I subscribed this list, I have the hope the in some time anyone (may be you) have the same problem and post some ideas that can help to solve my problem too. Good luck to us ! Simon Matter wrote: >> I configured that option, and still no go. >> >> How would it reply to reject messages without that option, but not >> vacation? >> > > Sure, I missed the detail that reject works for you. > > Well, then I'm also out of ideas. > If you want to make sure it has nothing to do with duplicate db, then you > could stop cyrus, "mv deliver.db deliver.db.old" and start cyrus. Then try > it again. > > Simon > > >> Either way, I've added it for sake of trying/troubleshooting. >> >> David Gottschalk >> UTS Email team >> david.gottschalk at emory.edu >> >> >> -----Original Message----- >> From: Simon Matter [mailto:simon.matter at invoca.ch] >> Sent: Thursday, May 21, 2009 4:12 PM >> To: Gottschalk, David >> Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu >> Subject: RE: Cyrus + Sieve >> >> >>> Good thinking. I sent a email from a completely new address, and it >>> still >>> didn't work. >>> >>> I wonder if this has something to do with how Sendmail and Cyrus talk to >>> each other. This production environment was not setup by me, and there >>> is >>> a actual .promailrc script that hands off from sendmail to Cyrus. I >>> wonder >>> if this is causing mail to get malformed, and sieve not handle it. >>> >> What I meant is whether cyrus can send mails back via sendmail. That's how >> vacation messages are sent, cyrus call the "sendmail" program and sends >> the vacation message. If the sendmail parameter is not configured >> correctly then that won't work. >> >> Simon >> >> >>> I saw some other posts online with users talking about this very issue. >>> >>> I'm not sure how that would affect the vacation portion, but maybe it >>> could be? >>> >>> David Gottschalk >>> UTS Email team >>> david.gottschalk at emory.edu >>> >>> >>> -----Original Message----- >>> From: Simon Matter [mailto:simon.matter at invoca.ch] >>> Sent: Thursday, May 21, 2009 3:54 PM >>> To: Gottschalk, David >>> Cc: Blake Hudson; info-cyrus at lists.andrew.cmu.edu >>> Subject: RE: Cyrus + Sieve >>> >>> >>>> Well, I think duplicate surpression might be already working. I just >>>> looked at my logs and see entries for it. >>>> >>>> I don???,??"?t have a deliver.db though, which is interesting. I did >>>> look at >>>> the Cyrus change log, and noticed that at some point they did merge the >>>> deliver.db and the duplicate.db. >>>> >>> Hm, IIRC the duplicate db is always stored in deliver.db. >>> >>> >>>> Any other ideas I could try, or tests I could do? >>>> >>> The thread is already quite long and I don't remember all details. But >>> the >>> problem you report is very common. Everything works but vacation does >>> not. >>> It usually boils down to the fact that everything is okay but the tester >>> thinks it doesn't because he expects a message but cyrus thinks it has >>> already sent one message. >>> One thing you might check is your "sendmail" option in imapd.conf. Does >>> it >>> point to a usable sendmail command which really does the right thing? >>> >>> Simon >>> >>> >>> >>> This e-mail message (including any attachments) is for the sole use of >>> the intended recipient(s) and may contain confidential and privileged >>> information. If the reader of this message is not the intended >>> recipient, you are hereby notified that any dissemination, distribution >>> or copying of this message (including any attachments) is strictly >>> prohibited. >>> >>> If you have received this message in error, please contact >>> the sender by reply e-mail message and destroy all copies of the >>> original message (including attachments). >>> >>> > > > ---- > 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/20090526/b2d039c9/attachment.html From awilliam at whitemice.org Tue May 26 08:41:32 2009 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Tue, 26 May 2009 08:41:32 -0400 Subject: Cyrus + Sieve In-Reply-To: References: <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <1243341692.5710.8.camel@linux-m3mt> On Fri, 2009-05-22 at 08:51 -0400, Gottschalk, David wrote: > Well, this is interesting. > I tested one of my reject rules (to make sure I'm not crazy), and it > replied the rejected message to my inbox, not to the sender. What do the "Received:" headers of the message look like (how did it end up in your mailbox)? I wonder if this isn't some bizarre MTA (Mail Transfer Agent [sendmail/postfix]) misconfiguration. Have you verified that your IMAP server can correctly send mail? SIEVE sends mail using the executable specified via the "sendmail" directive of the imapd.conf file. > Is that normal behavior? No, but I've never had any sieve/vacation issues on any of the various Cyrus systems I've installed over the last decade. > > I configured that option, and still no go. > > How would it reply to reject messages without that option, but not > > vacation? > Sure, I missed the detail that reject works for you. > Well, then I'm also out of ideas. > If you want to make sure it has nothing to do with duplicate db, then you > could stop cyrus, "mv deliver.db deliver.db.old" and start cyrus. Then try > it again. -- OpenGroupware developer: awilliam at whitemice.org OpenGroupare & Cyrus IMAPd documenation @ From dgottsc at emory.edu Tue May 26 08:48:30 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Tue, 26 May 2009 08:48:30 -0400 Subject: Sieve: Vacation not working In-Reply-To: <4A1AFBA9.2060203@glendown.de> References: <4A1AFBA9.2060203@glendown.de> Message-ID: Check out my thread going on this. I'm having the same issue. How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be my issue, maybe yours too. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Garry Sent: Monday, May 25, 2009 4:12 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Sieve: Vacation not working I have a SuSE Enterprise 10 system set up, which is running smoothly ... I have Cyrus 2.2.12 on it, which too is working fine - IMAP, SASL-Auth, the whole 9 yards ... even Sieve itself is fine, messages are moved to the appropriate folders as directed in the Sieve config ... Here's an excerpt from the Sieve script: require [ "vacation" , "fileinto" ] ; ## Flag: |UniqueId:1|Rulename: SpamMsg if header :contains "From" "gkg" { fileinto "INBOX.Spam" ; } ## Flag: vacation|UniqueId:0|Rulename: Abwesenheitsbenachrichtigung if true { vacation :days 7 :addresses [ "admin at ox6.mydomain.de" , "admin at mydomain.de" ] :subject "Ich bin nicht da ..." "blah" ; } The message is received, but according to /var/log/messages, nothing happens apart from it being stored locally ... I'm somewhat at a loss as to where else I can check for the reason of it not working ... couldn't find anything on Google that would have been helpful, either ... maybe somebody could point me in the right direction ... ?! Tnx, -garry ---- 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 This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From gbulfon at sonicle.com Tue May 26 08:50:17 2009 From: gbulfon at sonicle.com (Gabriele Bulfon) Date: Tue, 26 May 2009 14:50:17 +0200 (CEST) Subject: Sieve filter with spaces Message-ID: <25483759.38.1243342217015.JavaMail.gbulfon@pgbulfon> Uhm....so...how would I let it match the complete From header instead of just the email address? I assumed that "from" was all the from string, including the display name. And...actually I have remembrances of having the same problem with a Subject containing spaces... Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY http://www.sonicle.com ---------------------------------------------------------------------------------- Da: Michael Menge A: info-cyrus at lists.andrew.cmu.edu Data: 26 maggio 2009 11.30.27 CEST Oggetto: Re: Sieve filter with spaces Hi, Quoting Gabriele Bulfon : > Hello, > I'm having trouble with some filters that match a sentence with spaces. > Is there a special way I should specify spaces in a rule? > This is the rule that is not considered at all: > ... > elsif allof (address :contains ["from"] "Mall LM Giver") { > fileinto "SL.Mall"; > } > ... > The mails that should be matched, all contains this header: > ... > From: "Mall LM Giver" > <2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd35v at im.agni.lindenlab.com> > ... The space is not the problem. String has to match the address not the display name. In your case "2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd35v at im.agni.lindenlab.com" -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen ---- 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/20090526/8186781f/attachment-0001.html From dgottsc at emory.edu Tue May 26 08:52:15 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Tue, 26 May 2009 08:52:15 -0400 Subject: Cyrus + Sieve In-Reply-To: <1243341692.5710.8.camel@linux-m3mt> References: <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> <1243341692.5710.8.camel@linux-m3mt> Message-ID: Do you mean the From: header line? I have multiple "Received:" headers since the message had to transverse multiple servers to get to the Cyrus server. What is the "Return-Path: " signify? I'm wondering if that is the problem. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Adam Tauno Williams Sent: Tuesday, May 26, 2009 8:42 AM To: info-cyrus at lists.andrew.cmu.edu Subject: RE: Cyrus + Sieve On Fri, 2009-05-22 at 08:51 -0400, Gottschalk, David wrote: > Well, this is interesting. > I tested one of my reject rules (to make sure I'm not crazy), and it > replied the rejected message to my inbox, not to the sender. What do the "Received:" headers of the message look like (how did it end up in your mailbox)? I wonder if this isn't some bizarre MTA (Mail Transfer Agent [sendmail/postfix]) misconfiguration. Have you verified that your IMAP server can correctly send mail? SIEVE sends mail using the executable specified via the "sendmail" directive of the imapd.conf file. > Is that normal behavior? No, but I've never had any sieve/vacation issues on any of the various Cyrus systems I've installed over the last decade. > > I configured that option, and still no go. > > How would it reply to reject messages without that option, but not > > vacation? > Sure, I missed the detail that reject works for you. > Well, then I'm also out of ideas. > If you want to make sure it has nothing to do with duplicate db, then you > could stop cyrus, "mv deliver.db deliver.db.old" and start cyrus. Then try > it again. -- OpenGroupware developer: awilliam at whitemice.org OpenGroupare & Cyrus IMAPd documenation @ ---- 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 This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From dgottsc at emory.edu Tue May 26 09:21:23 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Tue, 26 May 2009 09:21:23 -0400 Subject: Sieve: Vacation not working In-Reply-To: <4A1BEB0E.8020309@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> Message-ID: See, I'm using this entirely custom deliver script in .procmailrc, and I think that is my problem. I think if Sieve doesn't get a proper from address, it will not reply. The question is how do you know if this is occurring? You might try different configuration options of that. I've seen searching the web that some people had vacation reply issues with different configurations of the Cyrus mailer(s). David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: Garry [mailto:garry at glendown.de] Sent: Tuesday, May 26, 2009 9:14 AM To: Gottschalk, David Subject: Re: Sieve: Vacation not working Gottschalk, David wrote: > Check out my thread going on this. > > I'm having the same issue. > > How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be my issue, maybe yours too. > I'm using the cyrus feature define(`confLOCAL_MAILER', `cyrus')dnl ifdef(`CYRUS_MAILER_ARGS',, `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')') in the mc file, and as the regular sorting seems to work (moving certain mails to other folders e.g.), as well as storing incoming mail in the appropriate inboxes, I assume the Cyrus interface as such should be working fine, as well as the Sieve call ... what puzzles me is that I don't even see Sieve attempt to deliever anything, at least not locally - plus I can't seem to find any config file that would contain definitions about what to do with mails generated by Sieve (like, e.g., what Mailserver to use) -garry This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From michael.menge at zdv.uni-tuebingen.de Tue May 26 09:27:22 2009 From: michael.menge at zdv.uni-tuebingen.de (Michael Menge) Date: Tue, 26 May 2009 15:27:22 +0200 Subject: Sieve filter with spaces In-Reply-To: <25483759.38.1243342217015.JavaMail.gbulfon@pgbulfon> References: <25483759.38.1243342217015.JavaMail.gbulfon@pgbulfon> Message-ID: <20090526152722.20937hngu61ysbay@webmail.uni-tuebingen.de> Hi have you tried header :contains "from" "Mall LM Giver" Quoting Gabriele Bulfon : > Uhm....so...how would I let it match the complete From header > instead of just the email address? > I assumed that "from" was all the from string, including the display name. > And...actually I have remembrances of having the same problem with a > Subject containing spaces... > Gabriele Bulfon - Sonicle S.r.l. > Tel +39 028246016 Int. 30 - Fax +39 028243880 > Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY > http://www.sonicle.com > ---------------------------------------------------------------------------------- > Da: Michael Menge > A: info-cyrus at lists.andrew.cmu.edu > Data: 26 maggio 2009 11.30.27 CEST > Oggetto: Re: Sieve filter with spaces > Hi, > Quoting Gabriele Bulfon : >> Hello, >> I'm having trouble with some filters that match a sentence with spaces. >> Is there a special way I should specify spaces in a rule? >> This is the rule that is not considered at all: >> ... >> elsif allof (address :contains ["from"] "Mall LM Giver") { >> fileinto "SL.Mall"; >> } >> ... >> The mails that should be matched, all contains this header: >> ... >> From: "Mall LM Giver" >> <2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd35v at im.agni.lindenlab.com> >> ... > The space is not the problem. String has to match the address not > the display name. In your case > "2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd35v at im.agni.lindenlab.com" > -------------------------------------------------------------------------------- > M.Menge Tel.: (49) 7071/29-70316 > Universit?t T?bingen Fax.: (49) 7071/29-5912 > Zentrum f?r Datenverarbeitung mail: > michael.menge at zdv.uni-tuebingen.de > W?chterstra?e 76 > 72074 T?bingen > ---- > 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 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5339 bytes Desc: S/MIME krytographische Unterschrift Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090526/e2d50c29/attachment.bin From awilliam at whitemice.org Tue May 26 09:57:54 2009 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Tue, 26 May 2009 09:57:54 -0400 Subject: Cyrus + Sieve In-Reply-To: References: <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> <1243341692.5710.8.camel@linux-m3mt> Message-ID: <1243346274.5710.22.camel@linux-m3mt> On Tue, 2009-05-26 at 08:52 -0400, Gottschalk, David wrote: > Do you mean the From: header line? No, the "From:" line is, as always, utterly meaningless. > I have multiple "Received:" headers since the message had to transverse multiple > servers to get to the Cyrus server. Which is normal. But they will show how the message actually got processed; most importantly who the message was addresses to by the first server to process it. I've seen people header/masquerade rewritting rules do some weird stuff. > What is the "Return-Path: " signify? I'm wondering if that > is the problem. The Return-Path: specifies the reply address for any autp responders (RFC3834). It shouldn't matter for diagnosing your problem unless something is rewriting the Return-Path on inbound messages [which would be very wrong, and in your MTA, not in Cyrus]. -- OpenGroupware developer: awilliam at whitemice.org OpenGroupare & Cyrus IMAPd documenation @ From dgottsc at emory.edu Tue May 26 10:03:15 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Tue, 26 May 2009 10:03:15 -0400 Subject: Cyrus + Sieve In-Reply-To: <1243346274.5710.22.camel@linux-m3mt> References: <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> <1243341692.5710.8.camel@linux-m3mt> <1243346274.5710.22.camel@linux-m3mt> Message-ID: The Return-Path must be my problem them. Right now, any emails that come into dgottsc at miriam have a return path of that. So your saying the Return-Path should be the sender of the email, not the recipient? Correct? David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Adam Tauno Williams Sent: Tuesday, May 26, 2009 9:58 AM To: info-cyrus at lists.andrew.cmu.edu Subject: RE: Cyrus + Sieve On Tue, 2009-05-26 at 08:52 -0400, Gottschalk, David wrote: > Do you mean the From: header line? No, the "From:" line is, as always, utterly meaningless. > I have multiple "Received:" headers since the message had to transverse multiple > servers to get to the Cyrus server. Which is normal. But they will show how the message actually got processed; most importantly who the message was addresses to by the first server to process it. I've seen people header/masquerade rewritting rules do some weird stuff. > What is the "Return-Path: " signify? I'm wondering if that > is the problem. The Return-Path: specifies the reply address for any autp responders (RFC3834). It shouldn't matter for diagnosing your problem unless something is rewriting the Return-Path on inbound messages [which would be very wrong, and in your MTA, not in Cyrus]. -- OpenGroupware developer: awilliam at whitemice.org OpenGroupare & Cyrus IMAPd documenation @ ---- 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 This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From awilliam at whitemice.org Tue May 26 10:05:34 2009 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Tue, 26 May 2009 10:05:34 -0400 Subject: Cyrus + Sieve In-Reply-To: References: <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> <1243341692.5710.8.camel@linux-m3mt> <1243346274.5710.22.camel@linux-m3mt> Message-ID: <1243346734.5710.24.camel@linux-m3mt> On Tue, 2009-05-26 at 10:03 -0400, Gottschalk, David wrote: > The Return-Path must be my problem them. > Right now, any emails that come into dgottsc at miriam have a return path of that. > So your saying the Return-Path should be the sender of the email, not the recipient? Correct? Yes, your mail message (via the list) in by INBOX has - Return-Path: -- OpenGroupware developer: awilliam at whitemice.org OpenGroupare & Cyrus IMAPd documenation @ From dgottsc at emory.edu Tue May 26 10:17:24 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Tue, 26 May 2009 10:17:24 -0400 Subject: Cyrus + Sieve In-Reply-To: <1243346734.5710.24.camel@linux-m3mt> References: <4A146B9F.6020705@ispn.net> <4A1580BA.9000002@ispn.net> <4A159574.4090808@ispn.net> <4A159AFD.4010701@ispn.net> <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> <1243341692.5710.8.camel@linux-m3mt> <1243346274.5710.22.camel@linux-m3mt> <1243346734.5710.24.camel@linux-m3mt> Message-ID: That must be my issue then. Every message in my inbox has a Return-path of: dgottsc at servername (No domain extension just the server hostname) Even though the message did not come from myself, but a external recipient. I need to look at changing sendmail to not use this custom deliver script (I didn't write it), and instead use the Cyrus mailer in sendmail. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Adam Tauno Williams Sent: Tuesday, May 26, 2009 10:06 AM To: info-cyrus at lists.andrew.cmu.edu Subject: RE: Cyrus + Sieve On Tue, 2009-05-26 at 10:03 -0400, Gottschalk, David wrote: > The Return-Path must be my problem them. > Right now, any emails that come into dgottsc at miriam have a return path of that. > So your saying the Return-Path should be the sender of the email, not the recipient? Correct? Yes, your mail message (via the list) in by INBOX has - Return-Path: -- OpenGroupware developer: awilliam at whitemice.org OpenGroupare & Cyrus IMAPd documenation @ ---- 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 This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From dbucherml at hsolutions.ch Tue May 26 10:18:45 2009 From: dbucherml at hsolutions.ch (Denis BUCHER) Date: Tue, 26 May 2009 16:18:45 +0200 Subject: help : cyradm can't access other domains In-Reply-To: <4A1ACD91.1040303@hsolutions.ch> References: <4A180AAF.5090707@hsolutions.ch> <4A1ACD91.1040303@hsolutions.ch> Message-ID: <4A1BFA45.6060605@hsolutions.ch> Hello everyone, If someone could help me on this point it would be nice, because I have a mailbox that is almost full and I don't know how to change the quota ? Thanks a lot in advance for any help Denis Denis BUCHER a ?crit : > OBATA Akio a ?crit : >>> I really don't understand how to access "other" (virtual) domains from >>> cyradm : >>> >>> su - cyrus >>> cyradm --user cyrus localhost >>> lm >>> >>> I see all mailboxes from our main domain, for example : >>> >>> user.dbucherml.ML (\HasChildren) >>> user.dbucherml.ML.Fournisseurs (\HasChildren) >>> user.dbucherml.ML.Fournisseurs.Acer (\HasNoChildren) >>> user.dbucherml.ML.Fournisseurs.Alltron (\HasNoChildren) >>> user.dbucherml.ML.Fournisseurs.Microsoft (\HasChildren) >>> user.dbucherml.ML.Fournisseurs.Microsoft.MSPRP (\HasNoChildren) >> Can you find following line? >>> user.dbucherml at hsolutions.ch (\HasChildren) > > No, I don't have any "@hsolutions.ch" or "@anything.else" > >> If not, your cyrus user may not allowed to access hsolutions.ch domain >> (not a global admin?) > > Yes I think my cyrus user is not a global admin, but I don't understand > how to make it global ? > > Thanks a lot in advance for your help... From awilliam at whitemice.org Tue May 26 11:18:25 2009 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Tue, 26 May 2009 11:18:25 -0400 Subject: Sieve: Vacation not working In-Reply-To: References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> Message-ID: <1243351105.5710.29.camel@linux-m3mt> On Tue, 2009-05-26 at 09:21 -0400, Gottschalk, David wrote: > See, I'm using this entirely custom deliver script in .procmailrc, and > I think that is my problem. I think if Sieve doesn't get a proper from > address, it will not reply. The question is how do you know if this is > occurring? Sendmail has been able to perform LMTP delivery (no "deliver" required) for a long time. > You might try different configuration options of that. I've seen searching the web that some people had vacation reply issues with different configurations of the Cyrus mailer(s). > > How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be my issue, maybe yours too. > I'm using the cyrus feature > define(`confLOCAL_MAILER', `cyrus')dnl > ifdef(`CYRUS_MAILER_ARGS',, > `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')') > in the mc file, and as the regular sorting seems to work (moving certain > mails to other folders e.g.), as well as storing incoming mail in the > appropriate inboxes, I assume the Cyrus interface as such should be > working fine, as well as the Sieve call ... what puzzles me is that I > don't even see Sieve attempt to deliever anything, at least not locally > - plus I can't seem to find any config file that would contain > definitions about what to do with mails generated by Sieve (like, e.g., > what Mailserver to use) This is specified in imapd.conf via the "sendmail" directive. sendmail: /usr/sbin/sendmail The pathname of the sendmail executable. Sieve invokes sendmail for sending rejections, redirects and vacation responses. Note: This Invoca RPM build uses /usr/sbin/sendmail by default instead of /usr/lib/sendmail for sendmail. sendsms: /usr/bin/sendsms The pathname of the sendsms executable. Sieve invokes sendsms for sending SMS notifications. From hans.moser at ofd-sth.niedersachsen.de Tue May 26 11:26:03 2009 From: hans.moser at ofd-sth.niedersachsen.de (Marc Patermann) Date: Tue, 26 May 2009 17:26:03 +0200 Subject: Cyrus + Sieve In-Reply-To: References: <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> <1243341692.5710.8.camel@linux-m3mt> <1243346274.5710.22.camel@linux-m3mt> <1243346734.5710.24.camel@linux-m3mt> Message-ID: <4A1C0A0B.102@ofd-sth.niedersachsen.de> Hi, Gottschalk, David schrieb: > That must be my issue then. Every message in my inbox has a > Return-path of: > > dgottsc at servername (No domain extension just the server hostname) This might be the issue then. If your MTA is not "too open", relaying with this sender might not be allowed and your vacation mail is never ever sent to to intended recipient which is the original sender. > Even though the message did not come from myself, but a external > recipient. Don't you mess up "vacation mail sender" and "sender of the mail on which to send a vacation message"? The sender obove is the cyrus generated sender for the cyrus generated vacation mail. I think you are referencing here to the original mail instead, are you? Marc From lazara at ipt.br Tue May 26 11:32:46 2009 From: lazara at ipt.br (Lazara F. Adorno Martins) Date: Tue, 26 May 2009 12:32:46 -0300 Subject: Unable to remove folder Message-ID: <32316_1243352040_n4QFXw3R027252_4CE0B9E70E784C68B713605D4213429D@ad.ipt.br> Hello, By mistake, when we created a user with dot, the user was created out of the cyrus structure "user/". The problem is: We can't remove "useredilxx/silva". When lm command: localhost.localdomain> lm user/zixx/Rascunhos (\HasNoChildren) user/zuxx (\HasChildren) user/zuxx/Enviados (\HasNoChildren) user/zuxx/Lixeira (\HasNoChildren) user/zuxx/Rascunhos (\HasNoChildren) useredilxx/silva (\HasNoChildren) localhost.localdomain> When we try to locate user, the structure is: /mail/spoolmail/cyrus/mail/s/useredilxx /mail/spoolmail/cyrus/mail/s/useredilxx/silva /mail/spoolmail/cyrus/mail/s/useredilxx/silva/cyrus.cache /mail/spoolmail/cyrus/mail/s/useredilxx/silva/cyrus.header /mail/spoolmail/cyrus/mail/s/useredilxx/silva/cyrus.index The folder useredilxx/silva appear for all user. Any ideas? Thanks in advance for your help. L?zara F. Adorno -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090526/e36f156b/attachment.html From dgottsc at emory.edu Tue May 26 11:42:08 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Tue, 26 May 2009 11:42:08 -0400 Subject: Cyrus + Sieve In-Reply-To: <4A1C0A0B.102@ofd-sth.niedersachsen.de> References: <4A159D79.10007@ispn.net> <7accfdc850a11cc8f197643c34198c04.squirrel@webmail.bi.corp.invoca.ch> <88a3b0897fa366d5e756af0112211796.squirrel@webmail.bi.corp.invoca.ch> <1243341692.5710.8.camel@linux-m3mt> <1243346274.5710.22.camel@linux-m3mt> <1243346734.5710.24.camel@linux-m3mt> <4A1C0A0B.102@ofd-sth.niedersachsen.de> Message-ID: No, that was a part of a message that came through from a external source. Not one generated locally or from the same address. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: Marc Patermann [mailto:hans.moser at ofd-sth.niedersachsen.de] Sent: Tuesday, May 26, 2009 11:26 AM To: Gottschalk, David; Cyrus Mailing List Subject: Re: Cyrus + Sieve Hi, Gottschalk, David schrieb: > That must be my issue then. Every message in my inbox has a > Return-path of: > > dgottsc at servername (No domain extension just the server hostname) This might be the issue then. If your MTA is not "too open", relaying with this sender might not be allowed and your vacation mail is never ever sent to to intended recipient which is the original sender. > Even though the message did not come from myself, but a external > recipient. Don't you mess up "vacation mail sender" and "sender of the mail on which to send a vacation message"? The sender obove is the cyrus generated sender for the cyrus generated vacation mail. I think you are referencing here to the original mail instead, are you? Marc This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From richw at richw.org Tue May 26 18:42:11 2009 From: richw at richw.org (Rich Wales) Date: Tue, 26 May 2009 15:42:11 -0700 Subject: Can't connect to timsieved (2.3.14) Message-ID: <4A1C7043.9050405@rde-richw-3.stanford.edu> I recently upgraded from Cyrus 2.3.10 to 2.3.14 on an Ubuntu 9.04 server. Since doing this upgrade, I can no longer connect to timsieved to update my Sieve script. The symptom is that the connection gets dropped right after the client (I'm using sieve-connect) sends an AUTHENTICATE command. Here's sample debugging output from sieve-connect: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= (05/26 15:19 richw at whodunit /var/log 119) sieve-connect --debug localhost connection: remote host address is 127.0.0.1 <<< "IMPLEMENTATION" "Cyrus timsieved v2.3.14"\r\n <<< "SASL" "DIGEST-MD5"\r\n <<< "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify include envelope body relational regex subaddress copy"\r\n <<< "STARTTLS"\r\n <<< OK\r\n >>> STARTTLS\r\n <<< OK "Begin TLS negotiation now"\r\n --- TLS activated here >>> NOOP\r\n <<< "IMPLEMENTATION" "Cyrus timsieved v2.3.14"\r\n <<< "SASL" "CRAM-MD5 DIGEST-MD5 LOGIN PLAIN"\r\n <<< "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify include envelope body relational regex subaddress copy"\r\n <<< OK\r\n >>> AUTHENTICATE "DIGEST-MD5"\r\n ... no line read, connection dropped? Connection dropped unexpectedly when trying to read. (05/26 15:19 richw at whodunit /var/log 120) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= and here is the relevant syslog output: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= May 26 15:19:37 whodunit cyrus/master[5625]: about to exec /usr/cyrus/bin/timsieved May 26 15:19:37 whodunit cyrus/sieve[5625]: executed May 26 15:19:37 whodunit cyrus/sieve[5625]: accepted connection May 26 15:19:37 whodunit cyrus/sieve[5625]: skiplist: recovered /cyrus/config/tls_sessions.db (5 records, 1180 bytes) in 0 seconds May 26 15:19:37 whodunit cyrus/sieve[5625]: imapd:Loading hard-coded DH parameters May 26 15:19:37 whodunit cyrus/sieve[5625]: SSL_accept() incomplete -> wait May 26 15:19:37 whodunit cyrus/sieve[5625]: SSL_accept() succeeded -> done May 26 15:19:37 whodunit cyrus/sieve[5625]: starttls: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits new) no authentication May 26 15:19:37 whodunit cyrus/sieve[5625]: Lost connection to client -- exiting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= and just in case it matters, here are the Sieve-related lines in my imapd.conf file: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= sieve_extensions: fileinto reject vacation imapflags notify include envelope body relational regex subaddress copy sieve_maxscripts: 1000 sieve_maxscriptsize: 100 sieve_sasl_send_unsolicited_capability: 1 sievedir: /cyrus/config/sieve sieveusehomedir: false =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= and in my cyrus.conf file: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= sieve cmd="timsieved" listen="sieve" prefork=0 proto=tcp4 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Specifying another authentication mechanism doesn't seem to help. I tried LOGIN and CRAM-MD5, with the same result. When I tried PLAIN, I got a "Broken pipe" error right after sieve-connect's AUTHENTICATE command. Does anyone have any ideas here? Is there any way to make timsieved (or sieve-connect) produce more debugging output which might help pinpoint the problem? -- Rich Wales / richw at richw.org / richw at stanford.edu Wikipedia: http://en.wikipedia.org/wiki/User:Richwales Facebook: http://www.new.facebook.com/profile.php?id=206680 From richw at richw.org Tue May 26 19:38:26 2009 From: richw at richw.org (Rich Wales) Date: Tue, 26 May 2009 16:38:26 -0700 Subject: Can't connect to timsieved (2.3.14) In-Reply-To: <4A1C7043.9050405@rde-richw-3.stanford.edu> References: <4A1C7043.9050405@rde-richw-3.stanford.edu> Message-ID: <4A1C7D72.7080203@rde-richw-3.stanford.edu> An addendum to my original problem/question: I tried using "sivtest". When I did "sivtest -v localhost" (on the server itself), I got the following: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 05/26 16:31 richw at whodunit ~ 36) sivtest -v localhost S: "IMPLEMENTATION" "Cyrus timsieved v2.3.14" S: "SASL" "DIGEST-MD5" S: "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify include envelope body relational regex subaddress copy" S: "STARTTLS" S: OK C: AUTHENTICATE "DIGEST-MD5" S: {212} S: bm9uY2U9Inl5TUxtc3BrOVllNUN1blFvTk14bExyU2g3bW8rZjNJZGtKKzFGQmkrdW89IixyZWFsbT0id2hvZHVuaXQucmljaHcub3JnIixxb3A9ImF1dGgtY29uZiIsY2lwaGVyPSJyYzQsM2RlcyIsbWF4YnVmPTQwOTYsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M= Please enter your password: C: {360+} C: dXNlcm5hbWU9InJpY2h3IixyZWFsbT0id2hvZHVuaXQucmljaHcub3JnIixub25jZT0ieXlNTG1zcGs5WWU1Q3VuUW9OTXhsTHJTaDdtbytmM0lka0orMUZCaSt1bz0iLGNub25jZT0ib1VCdjE5VlBsRXAyei9INlJUZG1tSUMzL28yb0tyTFQ0R1ZoaHpWdS8vbz0iLG5jPTAwMDAwMDAxLHFvcD1hdXRoLWNvbmYsY2lwaGVyPXJjNCxtYXhidWY9MTAyNCxkaWdlc3QtdXJpPSJzaWV2ZS9sb2NhbGhvc3QiLHJlc3BvbnNlPTUyZTJkMDlmMTQ1MzhlMzY1MjdkOTlmNWU0MjIwYjY5 S: OK (SASL "cnNwYXV0aD1iNTZmYTBkYTg0NzQ0ZTVlYTcyZjZjYTdkYTVjMzcwNw==") Authenticated. Security strength factor: 128 Asking for capabilities again since they might have changed =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= So far, so good. But right after the above, I got a bunch of unprintable garbage -- and when I tried typing something, this was the response: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Protection error: decoding error: generic failure; SASL(-1): generic failure: Unable to find a callback: 32775 Connection closed. (05/26 16:32 richw at whodunit ~ 37) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I then tried "sivtest -v whodunit" from another machine on my local network (not my server), and it appeared to work (i.e., I was able to type a ManageSieve command and get a coherent response): =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= (05/26 16:29 richw at liberation ~ 102) sivtest -v whodunit S: "IMPLEMENTATION" "Cyrus timsieved v2.3.14" S: "SASL" "DIGEST-MD5" S: "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify include envelope body relational regex subaddress copy" S: "STARTTLS" S: OK C: AUTHENTICATE "DIGEST-MD5" S: {248} S: bm9uY2U9ImQrcHNHTGdIWTJiVVFpd2lPd0hlejN0eW42ZU5JSkIxODI5Vmk3dXB3Wk09IixyZWFsbT0id2hvZHVuaXQucmljaHcub3JnIixxb3A9ImF1dGgtaW50LGF1dGgtY29uZiIsY2lwaGVyPSJyYzQtNDAscmM0LTU2LHJjNCxkZXMsM2RlcyIsbWF4YnVmPTQwOTYsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M= Please enter your password: C: {372+} C: dXNlcm5hbWU9InJpY2h3IixyZWFsbT0id2hvZHVuaXQucmljaHcub3JnIixub25jZT0iZCtwc0dMZ0hZMmJVUWl3aU93SGV6M3R5bjZlTklKQjE4MjlWaTd1cHdaTT0iLGNub25jZT0iMkx0TFNDUDNTaXBaMVpzNmkvd29UMnBtQUJUdkp5aEFvK1BZcS9yYTZPMD0iLG5jPTAwMDAwMDAxLHFvcD1hdXRoLWNvbmYsY2lwaGVyPXJjNCxtYXhidWY9MTAyNCxkaWdlc3QtdXJpPSJzaWV2ZS93aG9kdW5pdC5yaWNody5vcmciLHJlc3BvbnNlPTNiZTFiY2QyZmJjZDJjNzhjOGE2MjAyNTI0OTIyNGQ2 S: OK (SASL "cnNwYXV0aD05NjViNDgyZGJmZjAwNDYyM2NkMWI2OWIzMTI3OTdkOQ==") Authenticated. Security strength factor: 128 "IMPLEMENTATION" "Cyrus timsieved v2.3.14" "SASL" "DIGEST-MD5" "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify include envelope body relational regex subaddress copy" OK havespace "blah" 1000 OK quit Connection closed. (05/26 16:30 richw at liberation ~ 103) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "sieve-connect" still fails, as I described earlier, whether I try it on the server or some other host. -- Rich Wales / richw at richw.org / richw at stanford.edu Wikipedia: http://en.wikipedia.org/wiki/User:Richwales Facebook: http://www.new.facebook.com/profile.php?id=206680 From baconm at email.unc.edu Tue May 26 21:27:33 2009 From: baconm at email.unc.edu (Michael Bacon) Date: Tue, 26 May 2009 21:27:33 -0400 Subject: Painful performance on mupdate push (how long does yours take?) Message-ID: We're in the last stages of getting off of our old single-server mail system into a murder environment, and we're currently at the point where the single old backend gets starts pushing its mb database to the mupdate server, so that we can move the main DNS pointer to the front-ends and start moving mailboxes over to other servers. Last Friday night, I tried that push for the first time, thinking it would take 10-20 minutes, tops (for an 850k line mailbox database, or about 75 MB). 3.5 hours later, it finally completed, and a subsequent ctl_mboxlist -m hung indefinitely, with neither side doing anything (as per truss). Since this was originally a push to a non-global Solaris zone connecting to a ZFS file system over the "local loopback" interface that Sun has for its zones, I tried to see if the problem went away by connecting to a vanilla Solaris install on UFS. Nope, still syncing on the order of 30-40k per minute. I tried shutting off the GSSAPI security layer (max SASL layer set to 0), same performance issue. Since all of this was on Sun CoolThreads hardware, I spent the last part of this afternoon trying to run it on an old school sparc box, but didn't get it running before I left for the day. Surely this isn't the kind of performance I should expect, right? For large sites, how long does an initial mboxlist push to the MUPDATE server usually take, and for how many lines? And is anyone else running a murder on Sun CoolThreads (Tx000, T5x20) server hardware? Thanks much, Michael Bacon ITS Messaging UNC Chapel Hill From garry at glendown.de Wed May 27 03:42:57 2009 From: garry at glendown.de (Garry) Date: Wed, 27 May 2009 09:42:57 +0200 Subject: Sieve: Vacation not working In-Reply-To: <1243351105.5710.29.camel@linux-m3mt> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> Message-ID: <4A1CEF01.4020703@glendown.de> Adam Tauno Williams wrote: > On Tue, 2009-05-26 at 09:21 -0400, Gottschalk, David wrote: > >> See, I'm using this entirely custom deliver script in .procmailrc, and >> I think that is my problem. I think if Sieve doesn't get a proper from >> address, it will not reply. The question is how do you know if this is >> occurring? >> > > Sendmail has been able to perform LMTP delivery (no "deliver" required) > for a long time. > > >> You might try different configuration options of that. I've seen searching the web that some people had vacation reply issues with different configurations of the Cyrus mailer(s). >> >>> How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be my issue, maybe yours too. >>> >> I'm using the cyrus feature >> define(`confLOCAL_MAILER', `cyrus')dnl >> ifdef(`CYRUS_MAILER_ARGS',, >> `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')') >> in the mc file, and as the regular sorting seems to work (moving certain >> mails to other folders e.g.), as well as storing incoming mail in the >> appropriate inboxes, I assume the Cyrus interface as such should be >> working fine, as well as the Sieve call ... what puzzles me is that I >> don't even see Sieve attempt to deliever anything, at least not locally >> - plus I can't seem to find any config file that would contain >> definitions about what to do with mails generated by Sieve (like, e.g., >> what Mailserver to use) >> > > This is specified in imapd.conf via the "sendmail" directive. > Yes, found that in the meantime ... anyway, still no success ... according to the mail log, it's not being called, at least there are still no messages from it ... I enabled the debugging_command, using strace to get some infos on whether it is even trying to call sendmail ... from what I can tell, it doesn't even attempt to do anything ... is the vacation line valid the way it is in the script? Also, the logfile created by this line: debug_command: /usr/bin/strace -tt -f -s256 -o /tmp/strace.cyrus.%s.%d -p %2$d <&- 2>&1 & doesn't show up right away either ... Isn't there any way to make timsieved more verbose about what it's (not) doing and why? Tnx, -garry From simon.matter at invoca.ch Wed May 27 04:43:47 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Wed, 27 May 2009 10:43:47 +0200 Subject: [PATCH] closedir missing in timsieved In-Reply-To: References: Message-ID: <38b99e5de9331c778ac2b67df39f71cd.squirrel@webmail.bi.corp.invoca.ch> > On Tue, May 26, 2009 at 1:47 AM, Thomas Cataldo > wrote: >> Hello, >> >> While writing a sieve client lib for the minig (minig.org) webmail >> project, I triggered a bug in the LISTSCRIPTS implementation in cyrus >> 2.2 from debian etch. The directory seems to remain unclosed and this >> is a problem when prefork > 0 is set on timsieved. >> >> The attached patch should fix it. >> > > Same patch needed on 2.3 cvs : Hi, Looks like there is another closedir() missing. I posted the patch to https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3159 Regards, Simon From garry at glendown.de Wed May 27 06:31:18 2009 From: garry at glendown.de (Garry) Date: Wed, 27 May 2009 12:31:18 +0200 Subject: Sieve: Vacation not working In-Reply-To: <4A1CEF01.4020703@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> Message-ID: <4A1D1676.4050402@glendown.de> > Also, the logfile created by this line: > [..] > doesn't show up right away either ... > Actually, I just noticed that timsieved of course isn't even the process responsible for doing any filtering, but only for doing the back-end script stuff ... so I added the "-D" to the lmtpd line, which I _assume_ (please correct me if I'm wrong) is the process that actually should be doing the sieve checking and processing ... anyway, there was no sign that lmtpd attempted to do any sendmail interaction ... Help, anybody? Tnx, -garry From choeger at open-xchange.com Wed May 27 10:35:44 2009 From: choeger at open-xchange.com (Carsten Hoeger) Date: Wed, 27 May 2009 16:35:44 +0200 Subject: Sieve: Vacation not working In-Reply-To: <4A1D1676.4050402@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> Message-ID: <20090527143544.GG5388@open-xchange.com> On Wed, May 27, Garry wrote: > > Also, the logfile created by this line: > > [..] > > doesn't show up right away either ... > > > Actually, I just noticed that timsieved of course isn't even the process > responsible for doing any filtering, but only for doing the back-end > script stuff ... so I added the "-D" to the lmtpd line, which I _assume_ > (please correct me if I'm wrong) is the process that actually should be > doing the sieve checking and processing ... anyway, there was no sign > that lmtpd attempted to do any sendmail interaction ... AFAIR the Mail headers must contain the addresses you specified in the vacation rules. Did you check that? Also keep in mind, that vacation mail is not sent, when sender and recipient are the same. -- With best regards, Carsten Hoeger -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090527/fc9a83d0/attachment.bin From adam at morrison-ind.com Wed May 27 10:47:30 2009 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Wed, 27 May 2009 10:47:30 -0400 Subject: Sieve: Vacation not working In-Reply-To: <20090527143544.GG5388@open-xchange.com> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> Message-ID: <1243435650.5580.35.camel@linux-m3mt> On Wed, 2009-05-27 at 16:35 +0200, Carsten Hoeger wrote: > On Wed, May 27, Garry wrote: > > > Also, the logfile created by this line: > > > [..] > > > doesn't show up right away either ... > > Actually, I just noticed that timsieved of course isn't even the process > > responsible for doing any filtering, but only for doing the back-end > > script stuff ... so I added the "-D" to the lmtpd line, which I _assume_ > > (please correct me if I'm wrong) is the process that actually should be > > doing the sieve checking and processing ... anyway, there was no sign > > that lmtpd attempted to do any sendmail interaction ... > AFAIR the Mail headers must contain the addresses you specified in the > vacation rules. Did you check that? His [custom] delivery mech is rewriting/inserting a Return-Path: to *himself* for *every* message. So when this message arrives in his INBOX the Return-Path will not be the sender (me) or even the list, but his address (the destination). That will break just about everything. > Also keep in mind, that vacation mail is not sent, when sender and recipient > are the same. From morgan at orst.edu Wed May 27 12:21:36 2009 From: morgan at orst.edu (Andrew Morgan) Date: Wed, 27 May 2009 09:21:36 -0700 (PDT) Subject: Painful performance on mupdate push (how long does yours take?) In-Reply-To: References: Message-ID: On Tue, 26 May 2009, Michael Bacon wrote: > We're in the last stages of getting off of our old single-server mail > system into a murder environment, and we're currently at the point > where the single old backend gets starts pushing its mb database to > the mupdate server, so that we can move the main DNS pointer to the > front-ends and start moving mailboxes over to other servers. > > Last Friday night, I tried that push for the first time, thinking it > would take 10-20 minutes, tops (for an 850k line mailbox database, or > about 75 MB). 3.5 hours later, it finally completed, and a subsequent > ctl_mboxlist -m hung indefinitely, with neither side doing anything > (as per truss). > > Since this was originally a push to a non-global Solaris zone > connecting to a ZFS file system over the "local loopback" interface > that Sun has for its zones, I tried to see if the problem went away by > connecting to a vanilla Solaris install on UFS. Nope, still syncing > on the order of 30-40k per minute. I tried shutting off the GSSAPI > security layer (max SASL layer set to 0), same performance issue. > Since all of this was on Sun CoolThreads hardware, I spent the last > part of this afternoon trying to run it on an old school sparc box, > but didn't get it running before I left for the day. > > Surely this isn't the kind of performance I should expect, right? For > large sites, how long does an initial mboxlist push to the MUPDATE > server usually take, and for how many lines? And is anyone else > running a murder on Sun CoolThreads (Tx000, T5x20) server hardware? Which database format are you using for mailboxes.db? I found that skiplist was very slow for writes compared to Berkeley DB. However this push is only rarely done so it was still worth avoiding the hassle of Berkeley DB. Andy From garry at glendown.de Wed May 27 13:32:30 2009 From: garry at glendown.de (Garry) Date: Wed, 27 May 2009 19:32:30 +0200 Subject: Sieve: Vacation not working In-Reply-To: <20090527143544.GG5388@open-xchange.com> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> Message-ID: <4A1D792E.10004@glendown.de> Carsten Hoeger wrote: > On Wed, May 27, Garry wrote: > > >>> Also, the logfile created by this line: >>> [..] >>> doesn't show up right away either ... >>> >>> >> Actually, I just noticed that timsieved of course isn't even the process >> responsible for doing any filtering, but only for doing the back-end >> script stuff ... so I added the "-D" to the lmtpd line, which I _assume_ >> (please correct me if I'm wrong) is the process that actually should be >> doing the sieve checking and processing ... anyway, there was no sign >> that lmtpd attempted to do any sendmail interaction ... >> > > AFAIR the Mail headers must contain the addresses you specified in the > vacation rules. Did you check that? > Yes ... > Also keep in mind, that vacation mail is not sent, when sender and recipient > are the same. > No, tried sending from a multitude of different places, like GMX and GMail, my own servers, etc ... Can someone please clarify what process' job it is to generate the mail by calling sendmail? Is it lmtpd which I assumed? I really need to stop wasting time on looking at the wrong places and got to move on to more important work ... Tnx, -garry From morgan at orst.edu Wed May 27 13:53:01 2009 From: morgan at orst.edu (Andrew Morgan) Date: Wed, 27 May 2009 10:53:01 -0700 (PDT) Subject: Sieve: Vacation not working In-Reply-To: <4A1D792E.10004@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> Message-ID: On Wed, 27 May 2009, Garry wrote: > Can someone please clarify what process' job it is to generate the mail > by calling sendmail? Is it lmtpd which I assumed? I really need to stop > wasting time on looking at the wrong places and got to move on to more > important work ... lmtpd processes sieve scripts as messages are given to it, including sending vacation notices and reject emails. Andy From baconm at email.unc.edu Wed May 27 13:56:22 2009 From: baconm at email.unc.edu (Michael Bacon) Date: Wed, 27 May 2009 13:56:22 -0400 Subject: Painful performance on mupdate push (how long does yours take?) In-Reply-To: References: Message-ID: The first attempt was with skiplist, but I switched over to BDB to see if it would do any better. If you don't mind, how many mailboxes do you have, and how long does an initial push generally take, if you've had to do one recently? Thanks, Michael Bacon ITS Messaging UNC Chapel Hill --On May 27, 2009 9:21:36 AM -0700 Andrew Morgan wrote: > On Tue, 26 May 2009, Michael Bacon wrote: > >> We're in the last stages of getting off of our old single-server mail >> system into a murder environment, and we're currently at the point >> where the single old backend gets starts pushing its mb database to >> the mupdate server, so that we can move the main DNS pointer to the >> front-ends and start moving mailboxes over to other servers. >> >> Last Friday night, I tried that push for the first time, thinking it >> would take 10-20 minutes, tops (for an 850k line mailbox database, or >> about 75 MB). 3.5 hours later, it finally completed, and a subsequent >> ctl_mboxlist -m hung indefinitely, with neither side doing anything >> (as per truss). >> >> Since this was originally a push to a non-global Solaris zone >> connecting to a ZFS file system over the "local loopback" interface >> that Sun has for its zones, I tried to see if the problem went away by >> connecting to a vanilla Solaris install on UFS. Nope, still syncing >> on the order of 30-40k per minute. I tried shutting off the GSSAPI >> security layer (max SASL layer set to 0), same performance issue. >> Since all of this was on Sun CoolThreads hardware, I spent the last >> part of this afternoon trying to run it on an old school sparc box, >> but didn't get it running before I left for the day. >> >> Surely this isn't the kind of performance I should expect, right? For >> large sites, how long does an initial mboxlist push to the MUPDATE >> server usually take, and for how many lines? And is anyone else >> running a murder on Sun CoolThreads (Tx000, T5x20) server hardware? > > Which database format are you using for mailboxes.db? I found that > skiplist was very slow for writes compared to Berkeley DB. However this > push is only rarely done so it was still worth avoiding the hassle of > Berkeley DB. > > Andy From garry at glendown.de Wed May 27 15:44:44 2009 From: garry at glendown.de (Garry) Date: Wed, 27 May 2009 21:44:44 +0200 Subject: Sieve: Vacation not working (solved) In-Reply-To: <4A1D792E.10004@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> Message-ID: <4A1D982C.3070700@glendown.de> Well, found another post on this ... seems to be that depending on the way the MTA does the local delivery causes vacation (and only vacation) to work or not... Originally, I had this in my .mc file: define(`confLOCAL_MAILER', `cyrus')dnl ifdef(`CYRUS_MAILER_ARGS',, `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')') dnl MAILER(`cyrus')dnl After replacing this with: define(`confLOCAL_MAILER',`cyrusv2')dnl define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl MAILER(cyrusv2)dnl I finally got vacation replies from Cyrus ... -garry From dgottsc at emory.edu Wed May 27 15:54:33 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Wed, 27 May 2009 15:54:33 -0400 Subject: Sieve: Vacation not working (solved) In-Reply-To: <4A1D982C.3070700@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> <4A1D982C.3070700@glendown.de> Message-ID: Good news! I'm thinking that is the same issue I have. I will be trying it out today off hours, and report what I find. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Garry Sent: Wednesday, May 27, 2009 3:45 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Sieve: Vacation not working (solved) Well, found another post on this ... seems to be that depending on the way the MTA does the local delivery causes vacation (and only vacation) to work or not... Originally, I had this in my .mc file: define(`confLOCAL_MAILER', `cyrus')dnl ifdef(`CYRUS_MAILER_ARGS',, `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')') dnl MAILER(`cyrus')dnl After replacing this with: define(`confLOCAL_MAILER',`cyrusv2')dnl define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl MAILER(cyrusv2)dnl I finally got vacation replies from Cyrus ... -garry ---- 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 This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From morgan at orst.edu Wed May 27 16:00:13 2009 From: morgan at orst.edu (Andrew Morgan) Date: Wed, 27 May 2009 13:00:13 -0700 (PDT) Subject: Painful performance on mupdate push (how long does yours take?) In-Reply-To: References: Message-ID: On Wed, 27 May 2009, Michael Bacon wrote: > The first attempt was with skiplist, but I switched over to BDB to see if it > would do any better. If you don't mind, how many mailboxes do you have, and > how long does an initial push generally take, if you've had to do one > recently? We have about 170k mailboxes in total, split between 2 backends. The last time I had to do the initial push was several years ago when we converted our first standalone Cyrus server into a backend. There were probably fewer mailboxes at that time. I remember it taking around 30 minutes? My memory is kinda vague on this, sorry. Berkeley DB was quite a bit faster. Andy From richw at richw.org Wed May 27 16:44:23 2009 From: richw at richw.org (Rich Wales) Date: Wed, 27 May 2009 13:44:23 -0700 Subject: Can't connect to timsieved (2.3.14) In-Reply-To: <4A1C7D72.7080203@rde-richw-3.stanford.edu> References: <4A1C7043.9050405@rde-richw-3.stanford.edu> <4A1C7D72.7080203@rde-richw-3.stanford.edu> Message-ID: <4A1DA627.3080501@rde-richw-3.stanford.edu> I'm still having this problem, though it appears to be intermittent. I was able, just now, to do "sivtest -v localhost" on my Cyrus server, and authenticate, and issue a Managesieve command (listscripts) and get a valid reply. But "sieve-connect --debug localhost" still fails with "no line read, connection dropped?" right after the AUTHENTICATE command. And when I tried "sivtest -v localhost" again, it failed right after saying "Asking for capabilities again since they might have changed" -- sometimes spewing out some unprintable garbage before complaining of some sort of SASL problem -- sometimes simply saying "failure: prot layer failure". This worked fine before I upgraded to Cyrus 2.3.14. Is something known to be broken in 2.3.14? Has anyone else out there ever seen anything like this? What should I try next? I'm stuck here and would be very grateful for any help. -- Rich Wales / richw at richw.org / richw at stanford.edu Wikipedia: http://en.wikipedia.org/wiki/User:Richwales Facebook: http://www.new.facebook.com/profile.php?id=206680 From richw at richw.org Wed May 27 21:14:48 2009 From: richw at richw.org (Rich Wales) Date: Wed, 27 May 2009 18:14:48 -0700 Subject: Can't connect to timsieved (2.3.14) In-Reply-To: <4A1DA627.3080501@rde-richw-3.stanford.edu> References: <4A1C7043.9050405@rde-richw-3.stanford.edu> <4A1C7D72.7080203@rde-richw-3.stanford.edu> <4A1DA627.3080501@rde-richw-3.stanford.edu> Message-ID: <4A1DE588.10206@liberation.richw.org> I seem to have worked around my earlier problem. For some reason, the Cyrus::SIEVE::managesieve Perl package didn't get properly compiled/installed when I first built Cyrus 2.3.14. I remade and installed this package and the "sieveshell" script, and sieveshell works for me now. And, using sieveshell, I am able to contact my mail server and manipulate Sieve scripts on it. So, my original, immediate problem appears to be solved. Sorry it was such a bizarre problem that no one else out there seemed to have any idea what to say about it. The bug may, in fact, be in "sieve-connect", not in the Cyrus code. But I'm still suspicious of a situation where sieve-connect may have done something which caused a timsieved process to crash mysteriously -- something which no client should be able to do to a server process. But whatever . . . . -- Rich Wales / richw at richw.org / richw at stanford.edu Wikipedia: http://en.wikipedia.org/wiki/User:Richwales Facebook: http://www.new.facebook.com/profile.php?id=206680 From dgottsc at emory.edu Wed May 27 22:42:30 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Wed, 27 May 2009 22:42:30 -0400 Subject: Sieve: Vacation not working (solved) In-Reply-To: <4A1D982C.3070700@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> <4A1D982C.3070700@glendown.de> Message-ID: Well, I tried to enable this same feature this evening in sendmail, but ran into some problems. Forgive me as I am complete novice when it comes to enabling this feature in sendmail. I enabled this in my sendmail.cf, then got the following error: unknown mailer cyrusv2 I had a feeling this would happen, what exactly do I need to do to enable this mailer within sendmail? Thanks all. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu [mailto:info-cyrus-bounces+dgottsc=emory.edu at lists.andrew.cmu.edu] On Behalf Of Garry Sent: Wednesday, May 27, 2009 3:45 PM To: info-cyrus at lists.andrew.cmu.edu Subject: Re: Sieve: Vacation not working (solved) Well, found another post on this ... seems to be that depending on the way the MTA does the local delivery causes vacation (and only vacation) to work or not... Originally, I had this in my .mc file: define(`confLOCAL_MAILER', `cyrus')dnl ifdef(`CYRUS_MAILER_ARGS',, `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')') dnl MAILER(`cyrus')dnl After replacing this with: define(`confLOCAL_MAILER',`cyrusv2')dnl define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl MAILER(cyrusv2)dnl I finally got vacation replies from Cyrus ... -garry ---- 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 This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From Hagedorn at uni-koeln.de Thu May 28 04:29:16 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Thu, 28 May 2009 10:29:16 +0200 Subject: Sieve: Vacation not working (solved) In-Reply-To: References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> <4A1D982C.3070700@glendown.de> Message-ID: <25C20756D99B923FC1CA1C33@tyrion.rrz.uni-koeln.de> --On 27. Mai 2009 22:42:30 -0400 "Gottschalk, David" wrote: > Well, I tried to enable this same feature this evening in sendmail, but > ran into some problems. Forgive me as I am complete novice when it comes > to enabling this feature in sendmail. I enabled this in my sendmail.cf, You didn't actually edit the .cf file, did you? That's not how it works ... you need to edit the .mc and generate the .cf. > then got the following error: > > unknown mailer cyrusv2 -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090528/d7204a57/attachment.bin From simon.matter at invoca.ch Thu May 28 05:13:56 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 28 May 2009 11:13:56 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied Message-ID: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> Hi, I have a server which I upgraded recently from 2.3.13 to 2.3.14. Now I realized that sending mail to shared folders doesn't work anymore. I have verified the problem on a test box and it looks like this: May 28 11:01:49 install lmtpunix[15085]: accepted connection May 28 11:01:49 install lmtpunix[15085]: lmtp connection preauth'd as postman May 28 11:01:49 install lmtpunix[15085]: verify_user(system) failed: Permission denied May 28 11:01:49 install postfix/lmtp[15077]: 87D6F34018: to=<+system at localhost.corp.invoca.ch>, orig_to=<+system at localhost>, relay=install.corp.invoca.ch[/var/lib/imap/socket/lmtp], delay=0.12, delays=0.09/0.01/0/0.03, dsn=5.7.1, status=bounced (host install.corp.invoca.ch[/var/lib/imap/socket/lmtp] said: 550-You do not have permission to post a message to this mailbox. 550-Please contact the owner of this mailbox in order to submit 550-your message, or postmaster if you believe you 550-received this message in error. 550 5.7.1 Permission denied (in reply to RCPT TO command)) The mailbox has the following permissions: localhost.localdomain> lam system anonymous p anyone lrs I just downgraded to 2.3.13 and it works again, upgrading to 2.3.14 and it doesnt. Somehow there was a change from 2.3.13 to 2.3.14 which triggers the problem. I tried to identify which change it is but can't find it. Another interesting detail is that both servers where it doesn't work are RedHat EL4 on i386 while I have a server RedHat EL5 on x86_64 where it seems to work. Does anyone who knows the changes between 2.3.13 and 2.3.14 have an idea what could be the problem here? Thanks, Simon From garry at glendown.de Thu May 28 05:39:03 2009 From: garry at glendown.de (Garry) Date: Thu, 28 May 2009 11:39:03 +0200 Subject: Sieve: Vacation not working (solved) In-Reply-To: <25C20756D99B923FC1CA1C33@tyrion.rrz.uni-koeln.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> <4A1D982C.3070700@glendown.de> <25C20756D99B923FC1CA1C33@tyrion.rrz.uni-koeln.de> Message-ID: <4A1E5BB7.9030204@glendown.de> Sebastian Hagedorn wrote: > --On 27. Mai 2009 22:42:30 -0400 "Gottschalk, David" > wrote: > >> Well, I tried to enable this same feature this evening in sendmail, but >> ran into some problems. Forgive me as I am complete novice when it comes >> to enabling this feature in sendmail. I enabled this in my sendmail.cf, > > You didn't actually edit the .cf file, did you? That's not how it > works ... you need to edit the .mc and generate the .cf. He didn't, he put it in the .mc and m4'd it ... anyway, I suppose the cause is the rather old sendmail 8.12 he is running, which most likely doesn't have the appropriate files for cyrusv2 as a mailer yet ... I'm not sure if it will be sufficient to just add the appropriate config files, or if the cyrusv2-files require some additional functionality inside sendmail 8.13.x that might not be present in earlier versions ... -garry From Hagedorn at uni-koeln.de Thu May 28 06:06:44 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Thu, 28 May 2009 12:06:44 +0200 Subject: Sieve: Vacation not working (solved) In-Reply-To: <4A1E5BB7.9030204@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> <4A1D982C.3070700@glendown.de> <25C20756D99B923FC1CA1C33@tyrion.rrz.uni-koeln.de> <4A1E5BB7.9030204@glendown.de> Message-ID: --On 28. Mai 2009 11:39:03 +0200 Garry wrote: >> You didn't actually edit the .cf file, did you? That's not how it >> works ... you need to edit the .mc and generate the .cf. > He didn't, he put it in the .mc and m4'd it ... Wouldn't the m4 command have thrown an error in that case if it didn't know the cyrusv2 mailer? Unless you use the m4 files of a newer sendmail than the one you're actually running, that is. > anyway, I suppose the > cause is the rather old sendmail 8.12 he is running, which most likely > doesn't have the appropriate files for cyrusv2 as a mailer yet ... Actually it does, at least with 8.12.6 and higher. 8.12.2 doesn't seem to have it. -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090528/bab88bfe/attachment-0001.bin From simon.matter at invoca.ch Thu May 28 06:25:10 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 28 May 2009 12:25:10 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> > Hi, > > I have a server which I upgraded recently from 2.3.13 to 2.3.14. > Now I realized that sending mail to shared folders doesn't work anymore. > I have verified the problem on a test box and it looks like this: > > May 28 11:01:49 install lmtpunix[15085]: accepted connection > May 28 11:01:49 install lmtpunix[15085]: lmtp connection preauth'd as > postman > May 28 11:01:49 install lmtpunix[15085]: verify_user(system) failed: > Permission denied > May 28 11:01:49 install postfix/lmtp[15077]: 87D6F34018: > to=<+system at localhost.corp.invoca.ch>, orig_to=<+system at localhost>, > relay=install.corp.invoca.ch[/var/lib/imap/socket/lmtp], delay=0.12, > delays=0.09/0.01/0/0.03, dsn=5.7.1, status=bounced (host > install.corp.invoca.ch[/var/lib/imap/socket/lmtp] said: 550-You do not > have permission to post a message to this mailbox. 550-Please contact the > owner of this mailbox in order to submit 550-your message, or postmaster > if you believe you 550-received this message in error. 550 5.7.1 > Permission denied (in reply to RCPT TO command)) > > The mailbox has the following permissions: > > localhost.localdomain> lam system > anonymous p > anyone lrs > What fails with 2.3.14 is append_check() in verify_user(). Any ideas? Simon From nodens2099 at gmail.com Thu May 28 08:57:43 2009 From: nodens2099 at gmail.com (nodens2099) Date: Thu, 28 May 2009 14:57:43 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <4A1E8A47.4030506@gmail.com> Simon Matter a ?crit : >> The mailbox has the following permissions: >> >> localhost.localdomain> lam system >> anonymous p >> anyone lrs >> > > What fails with 2.3.14 is append_check() in verify_user(). > > Any ideas? > You need "anyone p" ("anyone lrsp" in your case) to deliver messages in a mailbox other than INBOX. Regards, -- Cl?ment Hermann (nodens) From brong at fastmail.fm Thu May 28 09:06:11 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Thu, 28 May 2009 23:06:11 +1000 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <20090528130611.GA18331@brong.net> On Thu, May 28, 2009 at 12:25:10PM +0200, Simon Matter wrote: > > Hi, > > > > I have a server which I upgraded recently from 2.3.13 to 2.3.14. > > Now I realized that sending mail to shared folders doesn't work anymore. > > I have verified the problem on a test box and it looks like this: > > > > May 28 11:01:49 install lmtpunix[15085]: accepted connection > > May 28 11:01:49 install lmtpunix[15085]: lmtp connection preauth'd as > > postman > > May 28 11:01:49 install lmtpunix[15085]: verify_user(system) failed: > > Permission denied > > May 28 11:01:49 install postfix/lmtp[15077]: 87D6F34018: > > to=<+system at localhost.corp.invoca.ch>, orig_to=<+system at localhost>, > > relay=install.corp.invoca.ch[/var/lib/imap/socket/lmtp], delay=0.12, > > delays=0.09/0.01/0/0.03, dsn=5.7.1, status=bounced (host > > install.corp.invoca.ch[/var/lib/imap/socket/lmtp] said: 550-You do not > > have permission to post a message to this mailbox. 550-Please contact the > > owner of this mailbox in order to submit 550-your message, or postmaster > > if you believe you 550-received this message in error. 550 5.7.1 > > Permission denied (in reply to RCPT TO command)) > > > > The mailbox has the following permissions: > > > > localhost.localdomain> lam system > > anonymous p > > anyone lrs > > > > What fails with 2.3.14 is append_check() in verify_user(). The only change that hits that area is a type conversion from long to quota_t. I'll try to recreate the bug here. Bron. From simon.matter at invoca.ch Thu May 28 09:19:38 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 28 May 2009 15:19:38 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <4A1E8A47.4030506@gmail.com> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> <4A1E8A47.4030506@gmail.com> Message-ID: > Simon Matter a ?crit : >>> The mailbox has the following permissions: >>> >>> localhost.localdomain> lam system >>> anonymous p >>> anyone lrs >>> >> >> What fails with 2.3.14 is append_check() in verify_user(). >> >> Any ideas? >> > > You need "anyone p" ("anyone lrsp" in your case) to deliver messages in > a mailbox other than INBOX. Hi, Thanks for your suggestion. Indeed what you say make things work. However, 'anonymous p' has always worked and still works with 2.3.13. However, it seems not to work on all 2.3.14. That's really interesting. Simon From simon.matter at invoca.ch Thu May 28 09:23:13 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 28 May 2009 15:23:13 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <20090528130611.GA18331@brong.net> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> <20090528130611.GA18331@brong.net> Message-ID: <70d00d73c9756a871f1860957a5c4dac.squirrel@webmail.bi.corp.invoca.ch> > On Thu, May 28, 2009 at 12:25:10PM +0200, Simon Matter wrote: >> > Hi, >> > >> > I have a server which I upgraded recently from 2.3.13 to 2.3.14. >> > Now I realized that sending mail to shared folders doesn't work >> anymore. >> > I have verified the problem on a test box and it looks like this: >> > >> > May 28 11:01:49 install lmtpunix[15085]: accepted connection >> > May 28 11:01:49 install lmtpunix[15085]: lmtp connection preauth'd as >> > postman >> > May 28 11:01:49 install lmtpunix[15085]: verify_user(system) failed: >> > Permission denied >> > May 28 11:01:49 install postfix/lmtp[15077]: 87D6F34018: >> > to=<+system at localhost.corp.invoca.ch>, orig_to=<+system at localhost>, >> > relay=install.corp.invoca.ch[/var/lib/imap/socket/lmtp], delay=0.12, >> > delays=0.09/0.01/0/0.03, dsn=5.7.1, status=bounced (host >> > install.corp.invoca.ch[/var/lib/imap/socket/lmtp] said: 550-You do not >> > have permission to post a message to this mailbox. 550-Please contact >> the >> > owner of this mailbox in order to submit 550-your message, or >> postmaster >> > if you believe you 550-received this message in error. 550 5.7.1 >> > Permission denied (in reply to RCPT TO command)) >> > >> > The mailbox has the following permissions: >> > >> > localhost.localdomain> lam system >> > anonymous p >> > anyone lrs >> > >> >> What fails with 2.3.14 is append_check() in verify_user(). > > The only change that hits that area is a type conversion from long > to quota_t. > > I'll try to recreate the bug here. Hi Bron, I tried to find out more but with no success. Here is what works and what not: x86_64 works OK: localhost.localdomain> lam system group:leitung lrswipkte simat lrswipcda gamat lrswipcda anonymous p i386 does NOT work: localhost.localdomain> lam system anonymous p anyone lrs i386 works OK: localhost.localdomain> lam system anyone lrsp Regards, Simon From brong at fastmail.fm Thu May 28 09:48:31 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Thu, 28 May 2009 23:48:31 +1000 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <20090528134831.GA25185@brong.net> On Thu, May 28, 2009 at 12:25:10PM +0200, Simon Matter wrote: > > Hi, > > > > I have a server which I upgraded recently from 2.3.13 to 2.3.14. > > Now I realized that sending mail to shared folders doesn't work anymore. > > I have verified the problem on a test box and it looks like this: > > > > May 28 11:01:49 install lmtpunix[15085]: accepted connection > > May 28 11:01:49 install lmtpunix[15085]: lmtp connection preauth'd as > > postman > > May 28 11:01:49 install lmtpunix[15085]: verify_user(system) failed: > > Permission denied > > May 28 11:01:49 install postfix/lmtp[15077]: 87D6F34018: > > to=<+system at localhost.corp.invoca.ch>, orig_to=<+system at localhost>, > > relay=install.corp.invoca.ch[/var/lib/imap/socket/lmtp], delay=0.12, > > delays=0.09/0.01/0/0.03, dsn=5.7.1, status=bounced (host > > install.corp.invoca.ch[/var/lib/imap/socket/lmtp] said: 550-You do not > > have permission to post a message to this mailbox. 550-Please contact the > > owner of this mailbox in order to submit 550-your message, or postmaster > > if you believe you 550-received this message in error. 550 5.7.1 > > Permission denied (in reply to RCPT TO command)) > > > > The mailbox has the following permissions: > > > > localhost.localdomain> lam system > > anonymous p > > anyone lrs > > > > What fails with 2.3.14 is append_check() in verify_user(). MAIL FROM: 250 2.1.0 ok RCPT TO: 250 2.1.5 ok With: postuser: bb In imapd.conf. That seems to be what the docs recommend. It looks like you're just using a naked "+mailbox at domain"? I'm a little confused. Can you show me the config and how it's supposed to work? Bron ( who hasn't ever used shared folders ) From brong at fastmail.fm Thu May 28 09:53:29 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Thu, 28 May 2009 23:53:29 +1000 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <70d00d73c9756a871f1860957a5c4dac.squirrel@webmail.bi.corp.invoca.ch> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> <20090528130611.GA18331@brong.net> <70d00d73c9756a871f1860957a5c4dac.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <20090528135329.GA25817@brong.net> On Thu, May 28, 2009 at 03:23:13PM +0200, Simon Matter wrote: > Hi Bron, > > I tried to find out more but with no success. Here is what works and what > not: > > x86_64 works OK: > localhost.localdomain> lam system > group:leitung lrswipkte > simat lrswipcda > gamat lrswipcda > anonymous p > > i386 does NOT work: > localhost.localdomain> lam system > anonymous p > anyone lrs > > i386 works OK: > localhost.localdomain> lam system > anyone lrsp Ooh. The difference being that the 'p' is on anyone. Looks like maybe LMTP isn't being considered "anonymous" on the middle host. Would fit with it looking like it thinks it's dealing with user "system" in your original error message. I'm suspecting the target address is being parsed differently somehow between the two releases. Bron. From dgottsc at emory.edu Thu May 28 10:08:03 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 28 May 2009 10:08:03 -0400 Subject: Sieve: Vacation not working (solved) In-Reply-To: <4A1E0259.4060207@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> <4A1D982C.3070700@glendown.de> <4A1E0012.90207@glendown.de> <4A1E0259.4060207@glendown.de> Message-ID: Gary, I actually have this file in my /usr/share/sendmail-cf/mailer folder already. Is there something special I have to do to make sendmail build this into the .cf file? I didn't think there was, but maybe I'm missing something. Thanks. David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: Garry Glendown [mailto:garry at glendown.de] Sent: Wednesday, May 27, 2009 11:18 PM To: Gottschalk, David Subject: Re: Sieve: Vacation not working (solved) Gottschalk, David wrote: > I put the lines in my sendmail.mc file then built the sendmail.cf file. > > I'm running a old version of Redhat. > > Sendmail version is 8.12.11. That could be the cause of the problem ... I reckon 8.12 doesn't have the cyrusv2 mailer config files yet ... if you have access to some newer systems, try whether you can copy the files from /usr/share/sendmail/mailer/cyrusv2.m4 (or similar) to your system and see if that gets it working ... The resulting .cf has these differences on my system: (SuSE Enterprise 10 w/ sendmail 8.13): 787c786 < R<@> $#cyrus $: <@> special case error msgs --- > R<@> $#cyrusv2 $: <@> special case error msgs 866,867c865,866 < R$=L < @ $=w . > $#cyrus $: @ $1 special local names < R$+ < @ $=w . > $#cyrus $: $1 regular local name --- > R$=L < @ $=w . > $#cyrusv2 $: @ $1 special local names > R$+ < @ $=w . > $#cyrusv2 $: $1 regular local name 889,890c888,889 < R$=L $#cyrus $: @ $1 special local names < R$+ $#cyrus $: $1 regular local names --- > R$=L $#cyrusv2 $: @ $1 special local names > R$+ $#cyrusv2 $: $1 regular local names 907,908c906,907 < R$+ + * $#cyrus $@ $&h $: $1 < R$+ + $* $#cyrus $@ + $2 $: $1 + * --- > R$+ + * $#cyrusv2 $@ $&h $: $1 > R$+ + $* $#cyrusv2 $@ + $2 $: $1 + * 921c920 < R< > < $+ > + $* $#cyrus $@ $2 $: @ $1 strip the extra + --- > R< > < $+ > + $* $#cyrusv2 $@ $2 $: @ $1 strip the extra + 975,976c974,975 < R< > $* < @ $* > $* $#cyrus $@ $1@$2 $: $1 < R< > $+ $#cyrus $@ $1 $: $1 --- > R< > $* < @ $* > $* $#cyrusv2 $@ $1@$2 $: $1 > R< > $+ $#cyrusv2 $@ $1 $: $1 982,983c981,982 < R< $+ > $* <@ $* > $* $#cyrus $@ $2@$3 $: $1 < R< $+ > $* $#cyrus $@ $2 $: $1 --- > R< $+ > $* <@ $* > $* $#cyrusv2 $@ $2@$3 $: $1 > R< $+ > $* $#cyrusv2 $@ $2 $: $1 1873,1877c1872,1874 < ################################################## < ### Cyrus Mailer specification ### < ################################################## < < ##### $Id: cyrus.m4,v 8.23 2001/11/12 23:11:34 ca Exp $ (Carnegie Mellon) ##### --- > ######################################### > ### Cyrus V2 Mailer specification ### > ######################################### 1878a1876 > ##### $Id: cyrusv2.m4,v 1.1 2002/06/01 21:14:57 ca Exp $ ##### 1880,1886c1878,1881 < Mcyrus, P=/usr/lib/cyrus/bin/deliver, F=lsDFMnPqAh5@/:|, S=EnvFromL, R=EnvToL/HdrToL, < U=cyrus:mail, T=DNS/RFC822/X-Unix, < A=deliver -e -f $f -m $h -- $u < < Mcyrusbb, P=/usr/lib/cyrus/bin/deliver, F=lsDFMnPu, S=EnvFromL, R=EnvToL/HdrToL, < U=cyrus:mail, T=DNS/RFC822/X-Unix, < A=deliver -e -m $u --- > Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m, > S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n, > T=DNS/RFC822/SMTP, > A=FILE /var/lib/imap/socket/lmtp This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From simon.matter at invoca.ch Thu May 28 10:09:47 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 28 May 2009 16:09:47 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <20090528135329.GA25817@brong.net> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> <20090528130611.GA18331@brong.net> <70d00d73c9756a871f1860957a5c4dac.squirrel@webmail.bi.corp.invoca.ch> <20090528135329.GA25817@brong.net> Message-ID: <07126418de7274faa2b2790da94b79a8.squirrel@webmail.bi.corp.invoca.ch> > On Thu, May 28, 2009 at 03:23:13PM +0200, Simon Matter wrote: >> Hi Bron, >> >> I tried to find out more but with no success. Here is what works and >> what >> not: >> >> x86_64 works OK: >> localhost.localdomain> lam system >> group:leitung lrswipkte >> simat lrswipcda >> gamat lrswipcda >> anonymous p >> >> i386 does NOT work: >> localhost.localdomain> lam system >> anonymous p >> anyone lrs >> >> i386 works OK: >> localhost.localdomain> lam system >> anyone lrsp > > Ooh. The difference being that the 'p' is on anyone. > > Looks like maybe LMTP isn't being considered "anonymous" on > the middle host. Would fit with it looking like it thinks > it's dealing with user "system" in your original error message. Well, from what I understand the call to verify_user() is done to check whether mailbox "system" exists. > > I'm suspecting the target address is being parsed differently > somehow between the two releases. So far I tried to insert some debug lines so I can see what the difference is. Note, i'm always using the same i386 box only difference is that I change the lmtpd binary to see where it does something different. So far I found the following: verify_user() is called the same way, at least the ACL string is the same then append_check() is called, which now calls mailbox_open_header(). Here, the mailbox struct gets filled but somehow myrights has a different value. Back in append_check() the lines below result in the permission denied: if ((m.myrights & aclcheck) != aclcheck) { r = (m.myrights & ACL_LOOKUP) ? IMAP_PERMISSION_DENIED : IMAP_MAILBOX_NONEXISTENT; With 2.3.13 we have aclcheck: 32 myrights: 39 With 2.3.14 we have aclcheck: 32 myrights: 7 There was either a change in permission calculation or it has something to do with data types, which could be the reason why the same version seems to do fine on 64bit but not on 32bit. Simon From simon.matter at invoca.ch Thu May 28 10:28:21 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 28 May 2009 16:28:21 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <20090528134831.GA25185@brong.net> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> <20090528134831.GA25185@brong.net> Message-ID: <400faa4ead5e2abef13ffa624aa9b1b9.squirrel@webmail.bi.corp.invoca.ch> > On Thu, May 28, 2009 at 12:25:10PM +0200, Simon Matter wrote: >> > Hi, >> > >> > I have a server which I upgraded recently from 2.3.13 to 2.3.14. >> > Now I realized that sending mail to shared folders doesn't work >> anymore. >> > I have verified the problem on a test box and it looks like this: >> > >> > May 28 11:01:49 install lmtpunix[15085]: accepted connection >> > May 28 11:01:49 install lmtpunix[15085]: lmtp connection preauth'd as >> > postman >> > May 28 11:01:49 install lmtpunix[15085]: verify_user(system) failed: >> > Permission denied >> > May 28 11:01:49 install postfix/lmtp[15077]: 87D6F34018: >> > to=<+system at localhost.corp.invoca.ch>, orig_to=<+system at localhost>, >> > relay=install.corp.invoca.ch[/var/lib/imap/socket/lmtp], delay=0.12, >> > delays=0.09/0.01/0/0.03, dsn=5.7.1, status=bounced (host >> > install.corp.invoca.ch[/var/lib/imap/socket/lmtp] said: 550-You do not >> > have permission to post a message to this mailbox. 550-Please contact >> the >> > owner of this mailbox in order to submit 550-your message, or >> postmaster >> > if you believe you 550-received this message in error. 550 5.7.1 >> > Permission denied (in reply to RCPT TO command)) >> > >> > The mailbox has the following permissions: >> > >> > localhost.localdomain> lam system >> > anonymous p >> > anyone lrs >> > >> >> What fails with 2.3.14 is append_check() in verify_user(). > > MAIL FROM: > 250 2.1.0 ok > RCPT TO: > 250 2.1.5 ok > > With: > > postuser: bb > > In imapd.conf. That seems to be what the docs recommend. It looks like > you're just using a naked "+mailbox at domain"? > > I'm a little confused. Can you show me the config and how it's supposed > to work? OK, I think the postuser can be empty but how you did it is correct. I have tested with postuser now and it's still the same. I have: [root at client140 ~]# cat /etc/imapd.conf configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt postuser: bb localhost.localdomain> lam * system: anonymous p anyone lrs And now I do: [simix at somehost simix]$ telnet client140 24 Trying 192.168.10.140... Connected to client140. Escape character is '^]'. 220 client140.bi.corp.invoca.ch Cyrus LMTP v2.3.14-Invoca-RPM-2.3.14-4 server ready MAIL FROM: 250 2.1.0 ok RCPT TO: 550-You do not have permission to post a message to this mailbox. 550-Please contact the owner of this mailbox in order to submit 550-your message, or postmaster if you believe you 550-received this message in error. 550 5.7.1 Permission denied As soon as I give p right to anyone it starts to work. But that was not the case until 2.3.14 and I don't think that's how it should be. Simon From dgottsc at emory.edu Thu May 28 10:46:21 2009 From: dgottsc at emory.edu (Gottschalk, David) Date: Thu, 28 May 2009 10:46:21 -0400 Subject: Sieve: Vacation not working (My issue resolved!!) In-Reply-To: <4A1E9CE6.6030209@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> <4A1D982C.3070700@glendown.de> <4A1E0012.90207@glendown.de> <4A1E0259.4060207@glendown.de> <4A1E9CE6.6030209@glendown.de> Message-ID: Good news! I was able to get it working. I had the lines in the wrong order, and that apparently caused sendmail to not recognize the mailer. Now, the vacation replies are working, and it appears sieve is working well. Thanks to everyone for their help! David Gottschalk UTS Email team david.gottschalk at emory.edu -----Original Message----- From: Garry [mailto:garry at glendown.de] Sent: Thursday, May 28, 2009 10:17 AM To: Gottschalk, David Subject: Re: Sieve: Vacation not working (solved) Gottschalk, David wrote: > Oh, one thing I forgot to mention. > > I got the unknown mailer error in a SMTP conversation after rebuilding the .cf file. I didn't get it when doing a make on the .mc file, or even when restarting sendmail. > Phew ... sounds weird ... normally, m4 barfs when there is something wrong or missing ... please note that I pulled th lines apart, having the first two well above any "MAILER" lines, and the MAILER(cyrusv2) at the end ... dunno if that might cause a problem with your setup ... This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). From lazara at ipt.br Thu May 28 16:16:35 2009 From: lazara at ipt.br (Lazara F. Adorno Martins) Date: Thu, 28 May 2009 17:16:35 -0300 Subject: Unable to remove folder - Solved References: <32316_1243352040_n4QFXw3R027252_4CE0B9E70E784C68B713605D4213429D@ad.ipt.br> Message-ID: <13681_1243541819_n4SKGvgX020041_AA6D51E7B53942FF83154AA54E4DF11C@ad.ipt.br> Thanks! ----- Original Message ----- From: Lazara F. Adorno Martins To: info-cyrus at lists.andrew.cmu.edu Sent: Tuesday, May 26, 2009 12:32 PM Subject: Unable to remove folder Hello, By mistake, when we created a user with dot, the user was created out of the cyrus structure "user/". The problem is: We can't remove "useredilxx/silva". When lm command: localhost.localdomain> lm user/zixx/Rascunhos (\HasNoChildren) user/zuxx (\HasChildren) user/zuxx/Enviados (\HasNoChildren) user/zuxx/Lixeira (\HasNoChildren) user/zuxx/Rascunhos (\HasNoChildren) useredilxx/silva (\HasNoChildren) localhost.localdomain> When we try to locate user, the structure is: /mail/spoolmail/cyrus/mail/s/useredilxx /mail/spoolmail/cyrus/mail/s/useredilxx/silva /mail/spoolmail/cyrus/mail/s/useredilxx/silva/cyrus.cache /mail/spoolmail/cyrus/mail/s/useredilxx/silva/cyrus.header /mail/spoolmail/cyrus/mail/s/useredilxx/silva/cyrus.index The folder useredilxx/silva appear for all user. Any ideas? Thanks in advance for your help. L?zara F. Adorno ------------------------------------------------------------------------------ ---- 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/20090528/f0f52836/attachment.html From simon.matter at invoca.ch Thu May 28 16:35:29 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Thu, 28 May 2009 22:35:29 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <400faa4ead5e2abef13ffa624aa9b1b9.squirrel@webmail.bi.corp.invoca.ch> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> <20090528134831.GA25185@brong.net> <400faa4ead5e2abef13ffa624aa9b1b9.squirrel@webmail.bi.corp.invoca.ch> Message-ID: >> On Thu, May 28, 2009 at 12:25:10PM +0200, Simon Matter wrote: >>> > Hi, >>> > >>> > I have a server which I upgraded recently from 2.3.13 to 2.3.14. >>> > Now I realized that sending mail to shared folders doesn't work >>> anymore. >>> > I have verified the problem on a test box and it looks like this: >>> > >>> > May 28 11:01:49 install lmtpunix[15085]: accepted connection >>> > May 28 11:01:49 install lmtpunix[15085]: lmtp connection preauth'd as >>> > postman >>> > May 28 11:01:49 install lmtpunix[15085]: verify_user(system) failed: >>> > Permission denied >>> > May 28 11:01:49 install postfix/lmtp[15077]: 87D6F34018: >>> > to=<+system at localhost.corp.invoca.ch>, orig_to=<+system at localhost>, >>> > relay=install.corp.invoca.ch[/var/lib/imap/socket/lmtp], delay=0.12, >>> > delays=0.09/0.01/0/0.03, dsn=5.7.1, status=bounced (host >>> > install.corp.invoca.ch[/var/lib/imap/socket/lmtp] said: 550-You do >>> not >>> > have permission to post a message to this mailbox. 550-Please contact >>> the >>> > owner of this mailbox in order to submit 550-your message, or >>> postmaster >>> > if you believe you 550-received this message in error. 550 5.7.1 >>> > Permission denied (in reply to RCPT TO command)) >>> > >>> > The mailbox has the following permissions: >>> > >>> > localhost.localdomain> lam system >>> > anonymous p >>> > anyone lrs >>> > >>> >>> What fails with 2.3.14 is append_check() in verify_user(). >> >> MAIL FROM: >> 250 2.1.0 ok >> RCPT TO: >> 250 2.1.5 ok >> >> With: >> >> postuser: bb >> >> In imapd.conf. That seems to be what the docs recommend. It looks like >> you're just using a naked "+mailbox at domain"? >> >> I'm a little confused. Can you show me the config and how it's supposed >> to work? > > OK, I think the postuser can be empty but how you did it is correct. > I have tested with postuser now and it's still the same. I have: > > [root at client140 ~]# cat /etc/imapd.conf > configdirectory: /var/lib/imap > partition-default: /var/spool/imap > admins: cyrus > sievedir: /var/lib/imap/sieve > sendmail: /usr/sbin/sendmail > hashimapspool: true > sasl_pwcheck_method: saslauthd > sasl_mech_list: PLAIN > tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem > tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem > tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt > postuser: bb > > localhost.localdomain> lam * > system: > anonymous p > anyone lrs > > And now I do: > > [simix at somehost simix]$ telnet client140 24 > Trying 192.168.10.140... > Connected to client140. > Escape character is '^]'. > 220 client140.bi.corp.invoca.ch Cyrus LMTP v2.3.14-Invoca-RPM-2.3.14-4 > server ready > MAIL FROM: > 250 2.1.0 ok > RCPT TO: > 550-You do not have permission to post a message to this mailbox. > 550-Please contact the owner of this mailbox in order to submit > 550-your message, or postmaster if you believe you > 550-received this message in error. > 550 5.7.1 Permission denied > > As soon as I give p right to anyone it starts to work. But that was not > the case until 2.3.14 and I don't think that's how it should be. I have installed 2.3.14 on two new boxes running RHEL5. One is i386 and one is x86_64. I can confirm that anonymous posting to a shared folder with 'anonymous p' rights works on the 64bit version but not on the 32bit version. So there must be a change between 2.3.13 and 2.3.14 which breaks something on 32bit systems but not on 64bit. Thanks, Simon From dbucherml at hsolutions.ch Thu May 28 16:48:55 2009 From: dbucherml at hsolutions.ch (Denis BUCHER) Date: Thu, 28 May 2009 22:48:55 +0200 Subject: Urgent help needed with cyrus administration Message-ID: <4A1EF8B7.6000307@hsolutions.ch> Hello everyone, I still cannot solve this very simple problem : how to set quota for a user in another domain ??? Any help would be greatly appreciated !!! I really don't understand how to access "other" (virtual) domains from cyradm : su - cyrus cyradm --user cyrus localhost lm I see all mailboxes from our main domain, for example : user.dbucherml.ML (\HasChildren) user.dbucherml.ML.Fournisseurs (\HasChildren) user.dbucherml.ML.Fournisseurs.Acer (\HasNoChildren) user.dbucherml.ML.Fournisseurs.Alltron (\HasNoChildren) user.dbucherml.ML.Fournisseurs.Microsoft (\HasChildren) user.dbucherml.ML.Fournisseurs.Microsoft.MSPRP (\HasNoChildren) As you can see I don't have any "@hsolutions.ch" or "@anything.else" I was reading that my cyrus user is maybe not a global admin ? But how to make it global, then ? Denis Denis Bucher -- Denis Bucher Horus Digital Solutions s?rl Each problem has a solution ___________________________________________________________________________ T?l. +41-22-8000625 Fax: +41-22-8000622 www.hsolutions.ch From dbucherml at hsolutions.ch Thu May 28 16:50:39 2009 From: dbucherml at hsolutions.ch (Denis BUCHER) Date: Thu, 28 May 2009 22:50:39 +0200 Subject: Problem with websieve and accents Message-ID: <4A1EF91F.2020908@hsolutions.ch> Hello, I am blocked with websieve.pl vacation/out-of-office because when users are entering accents the script fails with an error... Does anyone has a suggestion on how to make accents work ? Thanks a lot for any help... Denis From thomas.cataldo at linagora.com Thu May 28 18:27:27 2009 From: thomas.cataldo at linagora.com (Thomas Cataldo) Date: Fri, 29 May 2009 00:27:27 +0200 Subject: Cyrus APIs ? Message-ID: Hi, We are building webmail & groupware software using cyrus for the mail storage part. I'm wondering if any programming interface existed to extend cyrus parts ? Interesting things for us would be : - extending sieve (for exemple to implement "in my organisation" / "out of my organisation" vacation messages) - IMAP protocol extensions (most needed thing would be to "idle" on every folders, not just inbox) - custom authentification mechanism (for single sign-on purpose, because kerberos doesn't fit everywhere) From brong at fastmail.fm Thu May 28 20:58:55 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Fri, 29 May 2009 10:58:55 +1000 Subject: Cyrus APIs ? In-Reply-To: References: Message-ID: <20090529005855.GA6708@brong.net> On Fri, May 29, 2009 at 12:27:27AM +0200, Thomas Cataldo wrote: > Hi, > > We are building webmail & groupware software using cyrus for the mail > storage part. I'm wondering if any programming interface existed to > extend cyrus parts ? Yeah, it's called the C language. Compile your own. Personally I use git these days. Used to keep all the patches with quilt, and before that we just fiddled around in a CVS checkout and hoped nobody messed up. That's not so clever. Version control good. > Interesting things for us would be : > - extending sieve (for exemple to implement "in my organisation" / > "out of my organisation" vacation messages) That's just a matter of writing the correct sieve script. No extention needed. > - IMAP protocol extensions (most needed thing would be to "idle" on > every folders, not just inbox) Yeah, good luck with that one. It's a pretty major "protocol extention", and everything's very folder centric. It would be a rather large SMOP (small matter of programming) for this. > - custom authentification mechanism (for single sign-on purpose, > because kerberos doesn't fit everywhere) BYO saslauthd protocol daemon. We have one written in Perl that does all sorts of clever. Just put this in your imapd.conf sasl_pwcheck_method: saslauthd And have your daemon listen on a unix socket at: /var/state/saslauthd/mux You need to speak the saslauthd protocol, which is a packed string format. We parse it in Perl like this: my $LoginName = get_counted_string($Self->{server}{client}); my $Password = get_counted_string($Self->{server}{client}); my $Service = lc get_counted_string($Self->{server}{client}); my $Realm = get_counted_string($Self->{server}{client}); And return one of: use constant SASL_SUCC_RESP => pack("nA3", 2, "OK\000"); use constant SASL_FAIL_RESP => pack("nA3", 2, "NO\000"); (with this function - slightly ugly code, but it works) sub get_counted_string { my $fh = shift; my ($rd, $data); ($rd = sysread($fh, $data, 2) ) == 2 or die "Unable to read counted string size ($rd != 2) ($!)"; my $size = unpack("n", $data); $data = ''; $rd = 0; my $this_data = ''; my $rem_size = $size; while (my $this_rd = sysread($fh, $this_data, $rem_size)) { $rd += $this_rd; $rem_size -= $this_rd; $data .= $this_data; } die "Unable to read counted string data ($rd != $size) ($!)" unless ($rd == $size); return unpack("A$size", $data); } Bron. From brong at fastmail.fm Thu May 28 20:59:47 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Fri, 29 May 2009 10:59:47 +1000 Subject: Problem with websieve and accents In-Reply-To: <4A1EF91F.2020908@hsolutions.ch> References: <4A1EF91F.2020908@hsolutions.ch> Message-ID: <20090529005947.GB6708@brong.net> On Thu, May 28, 2009 at 10:50:39PM +0200, Denis BUCHER wrote: > Hello, > > I am blocked with websieve.pl vacation/out-of-office because when users > are entering accents the script fails with an error... > > Does anyone has a suggestion on how to make accents work ? Yes, but I haven't committed it to CVS yet. I'm working on full UTF8 support in sieve scripts. Bron ( sorry, that doesn't solve your immediate problem! ) From robm at fastmail.fm Thu May 28 21:55:11 2009 From: robm at fastmail.fm (Rob Mueller) Date: Fri, 29 May 2009 11:55:11 +1000 Subject: Problem with websieve and accents In-Reply-To: <20090529005947.GB6708@brong.net> References: <4A1EF91F.2020908@hsolutions.ch> <20090529005947.GB6708@brong.net> Message-ID: <66121184BF6341F59E87BCDC87AFA8AA@Atticus> >> I am blocked with websieve.pl vacation/out-of-office because when users >> are entering accents the script fails with an error... >> >> Does anyone has a suggestion on how to make accents work ? > > Yes, but I haven't committed it to CVS yet. I'm working on full > UTF8 support in sieve scripts. Well it depends where there are accents in the sieve script. I believe the current state of things (2.3.14) is: 1. In folder names - should work (you need to use the utf-8 version of the folder name, not the modified utf-7 version) 2. In vacation messages - should work 3. In header/body checks - needs Bron's fixes And a reminder, the script must be in utf-8 encoding. Rob From robm at fastmail.fm Thu May 28 21:57:06 2009 From: robm at fastmail.fm (Rob Mueller) Date: Fri, 29 May 2009 11:57:06 +1000 Subject: Cyrus APIs ? In-Reply-To: <20090529005855.GA6708@brong.net> References: <20090529005855.GA6708@brong.net> Message-ID: <5EE06DD7E6C44F30A42F2A72F8CBCCD1@Atticus> >> - IMAP protocol extensions (most needed thing would be to "idle" on >> every folders, not just inbox) > > Yeah, good luck with that one. It's a pretty major "protocol extention", > and everything's very folder centric. It would be a rather large SMOP > (small matter of programming) for this. If you have idled stupport, this shouldn't be too hard to implement. Basically the way idled currently works is that a process sends it a message about which mailbox it's interested in, and then idled sends it a USR1 sig if something changes on that mailbox. I think all you'd need to do is loop and send multiple mailbox names to idled, and it'll USR1 you when any of them change. Of course you then have to poll to find out which ones, which is a bit annoying, but would be fixable with a bit more work. Rob From garry at glendown.de Fri May 29 01:10:18 2009 From: garry at glendown.de (Garry Glendown) Date: Fri, 29 May 2009 07:10:18 +0200 Subject: Sieve: Vacation not working (solved) In-Reply-To: <4A1D982C.3070700@glendown.de> References: <4A1AFBA9.2060203@glendown.de> <4A1BEB0E.8020309@glendown.de> <1243351105.5710.29.camel@linux-m3mt> <4A1CEF01.4020703@glendown.de> <4A1D1676.4050402@glendown.de> <20090527143544.GG5388@open-xchange.com> <4A1D792E.10004@glendown.de> <4A1D982C.3070700@glendown.de> Message-ID: <4A1F6E3A.4040704@glendown.de> Garry wrote: > define(`confLOCAL_MAILER', `cyrus')dnl > ifdef(`CYRUS_MAILER_ARGS',, > `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')') > dnl MAILER(`cyrus')dnl Of course, that was MAILER(`cyrus')dnl Also, please note that the define/ifdef part was well above all the other MAILER lines, whereas the MAILER line was inserted as the last MAILER line, on both versions ... -garry From simon.matter at invoca.ch Fri May 29 04:12:32 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Fri, 29 May 2009 10:12:32 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> <20090528134831.GA25185@brong.net> <400faa4ead5e2abef13ffa624aa9b1b9.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> >>> On Thu, May 28, 2009 at 12:25:10PM +0200, Simon Matter wrote: >>>> > Hi, >>>> > >>>> > I have a server which I upgraded recently from 2.3.13 to 2.3.14. >>>> > Now I realized that sending mail to shared folders doesn't work >>>> anymore. >>>> > I have verified the problem on a test box and it looks like this: >>>> > >>>> > May 28 11:01:49 install lmtpunix[15085]: accepted connection >>>> > May 28 11:01:49 install lmtpunix[15085]: lmtp connection preauth'd >>>> as >>>> > postman >>>> > May 28 11:01:49 install lmtpunix[15085]: verify_user(system) failed: >>>> > Permission denied >>>> > May 28 11:01:49 install postfix/lmtp[15077]: 87D6F34018: >>>> > to=<+system at localhost.corp.invoca.ch>, orig_to=<+system at localhost>, >>>> > relay=install.corp.invoca.ch[/var/lib/imap/socket/lmtp], delay=0.12, >>>> > delays=0.09/0.01/0/0.03, dsn=5.7.1, status=bounced (host >>>> > install.corp.invoca.ch[/var/lib/imap/socket/lmtp] said: 550-You do >>>> not >>>> > have permission to post a message to this mailbox. 550-Please >>>> contact >>>> the >>>> > owner of this mailbox in order to submit 550-your message, or >>>> postmaster >>>> > if you believe you 550-received this message in error. 550 5.7.1 >>>> > Permission denied (in reply to RCPT TO command)) >>>> > >>>> > The mailbox has the following permissions: >>>> > >>>> > localhost.localdomain> lam system >>>> > anonymous p >>>> > anyone lrs >>>> > >>>> >>>> What fails with 2.3.14 is append_check() in verify_user(). >>> >>> MAIL FROM: >>> 250 2.1.0 ok >>> RCPT TO: >>> 250 2.1.5 ok >>> >>> With: >>> >>> postuser: bb >>> >>> In imapd.conf. That seems to be what the docs recommend. It looks >>> like >>> you're just using a naked "+mailbox at domain"? >>> >>> I'm a little confused. Can you show me the config and how it's >>> supposed >>> to work? >> >> OK, I think the postuser can be empty but how you did it is correct. >> I have tested with postuser now and it's still the same. I have: >> >> [root at client140 ~]# cat /etc/imapd.conf >> configdirectory: /var/lib/imap >> partition-default: /var/spool/imap >> admins: cyrus >> sievedir: /var/lib/imap/sieve >> sendmail: /usr/sbin/sendmail >> hashimapspool: true >> sasl_pwcheck_method: saslauthd >> sasl_mech_list: PLAIN >> tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem >> tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem >> tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt >> postuser: bb >> >> localhost.localdomain> lam * >> system: >> anonymous p >> anyone lrs >> >> And now I do: >> >> [simix at somehost simix]$ telnet client140 24 >> Trying 192.168.10.140... >> Connected to client140. >> Escape character is '^]'. >> 220 client140.bi.corp.invoca.ch Cyrus LMTP v2.3.14-Invoca-RPM-2.3.14-4 >> server ready >> MAIL FROM: >> 250 2.1.0 ok >> RCPT TO: >> 550-You do not have permission to post a message to this mailbox. >> 550-Please contact the owner of this mailbox in order to submit >> 550-your message, or postmaster if you believe you >> 550-received this message in error. >> 550 5.7.1 Permission denied >> >> As soon as I give p right to anyone it starts to work. But that was not >> the case until 2.3.14 and I don't think that's how it should be. > > I have installed 2.3.14 on two new boxes running RHEL5. One is i386 and > one is x86_64. > > I can confirm that anonymous posting to a shared folder with 'anonymous p' > rights works on the 64bit version but not on the 32bit version. > So there must be a change between 2.3.13 and 2.3.14 which breaks something > on 32bit systems but not on 64bit. Is there anybody around who can confirm this? Simon From Hagedorn at uni-koeln.de Fri May 29 04:29:50 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Fri, 29 May 2009 10:29:50 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> <20090528134831.GA25185@brong.net> <400faa4ead5e2abef13ffa624aa9b1b9.squirrel@webmail.bi.corp.invoca.ch> <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <52C7CE7D261D547A5498711F@tyrion.rrz.uni-koeln.de> --On 29. Mai 2009 10:12:32 +0200 Simon Matter wrote: >> I can confirm that anonymous posting to a shared folder with 'anonymous >> p' rights works on the 64bit version but not on the 32bit version. So >> there must be a change between 2.3.13 and 2.3.14 which breaks something >> on 32bit systems but not on 64bit. > > Is there anybody around who can confirm this? We've always used the 'anyone p' right for this purpose, that's why I didn't notice anything ... I just set up a mailbox to test this: cyrus.rrz.uni-koeln.de> lam posting anonymous lrsp anyone lrs Not surprisingly, the result is the same one you observed: it only works when 'anyone' has the 'p' right. (we're running a 32bit system) So where does it say that the 'anonymous p' right is *supposed* to work? The only reference I've been able to find is overview.html, and that isn't particularly clear. What's the harm in granting 'anyone p' instead? -- .:.Sebastian Hagedorn - RZKR-R1 (Geb?ude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universit?t zu K?ln / Cologne University - ? +49-221-478-5587.:. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090529/291169cb/attachment.bin From simon.matter at invoca.ch Fri May 29 04:48:59 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Fri, 29 May 2009 10:48:59 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <52C7CE7D261D547A5498711F@tyrion.rrz.uni-koeln.de> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch> <59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch> <20090528134831.GA25185@brong.net> <400faa4ead5e2abef13ffa624aa9b1b9.squirrel@webmail.bi.corp.invoca.ch> <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> <52C7CE7D261D547A5498711F@tyrion.rrz.uni-koeln.de> Message-ID: <6aa6c61d0c00d4ce08742e8da9c0bf93.squirrel@webmail.bi.corp.invoca.ch> > --On 29. Mai 2009 10:12:32 +0200 Simon Matter > wrote: > >>> I can confirm that anonymous posting to a shared folder with 'anonymous >>> p' rights works on the 64bit version but not on the 32bit version. So >>> there must be a change between 2.3.13 and 2.3.14 which breaks something >>> on 32bit systems but not on 64bit. >> >> Is there anybody around who can confirm this? > > We've always used the 'anyone p' right for this purpose, that's why I > didn't notice anything ... I just set up a mailbox to test this: > > cyrus.rrz.uni-koeln.de> lam posting > anonymous lrsp > anyone lrs > > Not surprisingly, the result is the same one you observed: it only works > when 'anyone' has the 'p' right. (we're running a 32bit system) > > So where does it say that the 'anonymous p' right is *supposed* to work? > The only reference I've been able to find is overview.html, and that isn't > particularly clear. What's the harm in granting 'anyone p' instead? Well, there are different reasons for me why this should be fixed: 1) It's a regression. It has worked for years and now it doesn't and it seems nobody really knows why and no change is documented anywhere (or I didn't find it). 2) It works on 64bit builds but not on 32bit builds. That's the reason why I didn't find it out for so long and clearly looks somehow broken to me. 3) ACL calculation is security sensitive and should really work as documented and as those who wrote the code intended it to work. The cyrus-imapd docs say: Access Rights lrsp The user can read the mailbox, and can post to it through the delivery system. Most delivery systems do not provide authentication, so the "p" right usually has meaning only for the "anonymous" user. "anonymous" and "anyone" With any authorization mechanism, two special identifiers are defined. The identifier "anonymous" refers to the anonymous, or unauthenticated user. The identifier "anyone" refers to all users, including the anonymous user. >From what I understand preauthed LMTP connections are considered "anonymous" and therefore the p right to post to a shared folder is enough. I don't remember all details but I think it is that with "anyone p" rights every user on the server (including preauthed LMTP) can post to the box, which may not be what you want. With only "anonymous p" rights, LMTP can post but not IMAP users as long as you do not allow anonymous IMAP. I think that's the point why "anonymous" exists. Regards, Simon From bawood at umich.edu Fri May 29 08:39:28 2009 From: bawood at umich.edu (Brian Awood) Date: Fri, 29 May 2009 08:39:28 -0400 Subject: Cyrus APIs ? In-Reply-To: References: Message-ID: <200905290839.28737.bawood@umich.edu> On Thursday 28 May 2009 @ 18:27, Thomas Cataldo wrote: > Hi, > > We are building webmail & groupware software using cyrus for the > mail storage part. I'm wondering if any programming interface > existed to extend cyrus parts ? > > Interesting things for us would be : > - extending sieve (for exemple to implement "in my organisation" > / "out of my organisation" vacation messages) > - IMAP protocol extensions (most needed thing would be to "idle" > on every folders, not just inbox) > - custom authentification mechanism (for single sign-on purpose, > because kerberos doesn't fit everywhere) We use Kerberos and single sign-on for webmail. Have you looked at CoSign? http://weblogin.org/ Brian From awilliam at whitemice.org Fri May 29 09:07:31 2009 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Fri, 29 May 2009 09:07:31 -0400 Subject: Cyrus APIs ? In-Reply-To: <20090529005855.GA6708@brong.net> References: <20090529005855.GA6708@brong.net> Message-ID: <1243602451.5423.15.camel@linux-m3mt> > > - IMAP protocol extensions (most needed thing would be to "idle" on > > every folders, not just inbox) > Yeah, good luck with that one. It's a pretty major "protocol extention", > and everything's very folder centric. It would be a rather large SMOP > (small matter of programming) for this. What are you trying to accomplish? Maybe just a notification of delivery of a message to a mailbox via a socket would be helpful (so a process could watch a socket at deal with notifying whatever client it determines needs to be pinged). We've been trying to figure out a way to do push-mobile for awhile and this is a hurdle. Funambol has a service for that but it polls mailboxes (and needs to sign on as each and every user to do so) which is a real pain [and pragmatically worthless, IMO]. You can sort of hack something together with SIEVE too. But nothing is particularly elegant (although the information below might be helpful). > > - custom authentification mechanism (for single sign-on purpose, > > because kerberos doesn't fit everywhere) > BYO saslauthd protocol daemon. We have one written in Perl that does > all sorts of clever. Just put this in your imapd.conf > sasl_pwcheck_method: saslauthd > And have your daemon listen on a unix socket at: > /var/state/saslauthd/mux > You need to speak the saslauthd protocol, which is a packed string > format. We parse it in Perl like this: Thanks, this is really great info. From brong at fastmail.fm Fri May 29 09:24:21 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Fri, 29 May 2009 23:24:21 +1000 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch><59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch><20090528134831.GA25185@brong.net><400faa4ead5e2abef13ffa624aa9b1b9.squirrel@webmail.bi.corp.invoca.ch> <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <1243603461.8762.1317815111@webmail.messagingengine.com> > Is there anybody around who can confirm this? I can repeat it on my 32bit machine with saslperld, but it seems an odd regression. The only thing I can see in the codepaths is that it does depend what authentication mechanism you're using - but everything seems to support anonymous. What patches are you applying? Bron. -- Bron Gondwana brong at fastmail.fm From brong at fastmail.fm Fri May 29 09:32:52 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Fri, 29 May 2009 23:32:52 +1000 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch><59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch><20090528134831.GA25185@brong.net><400faa4ead5e2abef13ffa624aa9b1b9.squirrel@webmail.bi.corp.invoca.ch> <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <1243603972.10491.1317817443@webmail.messagingengine.com> On Fri, 29 May 2009 10:12 +0200, "Simon Matter" wrote: > > I can confirm that anonymous posting to a shared folder with 'anonymous p' > > rights works on the 64bit version but not on the 32bit version. > > So there must be a change between 2.3.13 and 2.3.14 which breaks something > > on 32bit systems but not on 64bit. > > Is there anybody around who can confirm this? Oh - if you could add debugging statements to "mymemberof" in the various lib/auth_*.c files it would help narrow it down a lot. I'm particularly interested in what value the auth_state has (should be NULL) and if there's any weirdness going on with the ACLs meaning that the "anonymous" string isn't matching properly. -- Bron Gondwana brong at fastmail.fm From simon.matter at invoca.ch Fri May 29 10:51:58 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Fri, 29 May 2009 16:51:58 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <1243603972.10491.1317817443@webmail.messagingengine.com> References: <70b0d75947c36bd3ed80453f79c5529c.squirrel@webmail.bi.corp.invoca.ch><59a911f8514598e8ea84edc422754966.squirrel@webmail.bi.corp.invoca.ch><20090528134831.GA25185@brong.net><400faa4ead5e2abef13ffa624aa9b1b9.squirrel@webmail.bi.corp.invoca.ch> <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> <1243603972.10491.1317817443@webmail.messagingengine.com> Message-ID: > > > On Fri, 29 May 2009 10:12 +0200, "Simon Matter" > wrote: >> > I can confirm that anonymous posting to a shared folder with >> 'anonymous p' >> > rights works on the 64bit version but not on the 32bit version. >> > So there must be a change between 2.3.13 and 2.3.14 which breaks >> something >> > on 32bit systems but not on 64bit. >> >> Is there anybody around who can confirm this? > > Oh - if you could add debugging statements to "mymemberof" in the various > lib/auth_*.c > files it would help narrow it down a lot. I'm particularly interested in > what value the > auth_state has (should be NULL) and if there's any weirdness going on with > the ACLs > meaning that the "anonymous" string isn't matching properly. Hi Bron, In auth_unix.c/mymemberof() I have added the following line at the beginning of the function: syslog(LOG_ERR, "mymemberof() userid: %s, identifier: %s", auth_state->userid, identifier); Now I see the following difference: 2.3.13: May 29 16:47:42 client140 lmtp[16435]: mymemberof() userid: (null), identifier: anyone May 29 16:47:42 client140 lmtp[16435]: mymemberof() userid: (null), identifier: anonymous 2.3.14: May 29 16:44:42 client140 lmtp[16145]: mymemberof() userid: , identifier: anyone May 29 16:44:42 client140 lmtp[16145]: mymemberof() userid: , identifier: anonymous I think what you said should be NULL can be seen here in 2.3.13 but not in 2.3.14. What do you think? Simon From D.J.Mayo at bath.ac.uk Fri May 29 11:34:52 2009 From: D.J.Mayo at bath.ac.uk (David Mayo) Date: Fri, 29 May 2009 16:34:52 +0100 Subject: Mailboxes with group: ACLs crashing imapd on delivery Message-ID: <4A20009C.6090609@bath.ac.uk> Hi guys, I am upgrading our Cyrus installation from 2.2.12 to 2.3.14 and just started looking at ACLs. When I attempt to deliver to a mailbox with "group:" ACLs, LMTP crashes and will not deliver the message. Here's the ACLs for the mailbox: timaphost.bath.ac.uk> lam user.exim exim lrswipkxtecda ma9djm lrs group:exim lrs This is a grab of me doing an LMTP session to the frontend: 220 timaphost.bath.ac.uk Cyrus LMTP Murder v2.3.14 server ready LHLO timaphost.bath.ac.uk 250-timaphost.bath.ac.uk 250-8BITMIME 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-SIZE 250-STARTTLS 250-AUTH EXTERNAL 250 IGNOREQUOTA MAIL FROM:<> 250 2.1.0 ok RCPT TO: Connection to localhost closed by foreign host. Relevant imapd.log lines: May 29 15:57:53 sauber-z1.bath.ac.uk master[16505]: [ID 970914 mail.error] process 16674 exited, signaled to death by 11 May 29 15:57:53 sauber-z1.bath.ac.uk master[16505]: [ID 621917 mail.debug] service lmtp pid 16674 in BUSY state: terminated abnormally If I take the group:exim ACL off the mailbox, it delivers fine. The Unix group exists on the MUPDATE master and the backend. Relevant bits of imapd.conf: seenstate_db: skiplist duplicate_db: skiplist subscription_db: skiplist quota_db: skiplist sasl_pwcheck_method: saslauthd sasl_mech_list: plain gssapi allowanonymouslogin: no allowplaintext: yes auth_mech: unix We are using Cyrus-SASL/GSSAPI for authentication. We built imapd-2.2.12 with --with-auth=unix but configure-2.3.14 does not have this option so we've set the auth_mech option in imapd.conf as above. Do any other values need to be set in configure or imapd.conf for this to work? Can anyone suggest how to make this work and/or where to look for more information about why it's failing so horribly. Regards, Dave. David Mayo Networks/Systems Administrator University of Bath Computing Services From simon.matter at invoca.ch Fri May 29 12:08:16 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Fri, 29 May 2009 18:08:16 +0200 Subject: Mailboxes with group: ACLs crashing imapd on delivery In-Reply-To: <4A20009C.6090609@bath.ac.uk> References: <4A20009C.6090609@bath.ac.uk> Message-ID: > Hi guys, > > I am upgrading our Cyrus installation from 2.2.12 to 2.3.14 and just > started looking at ACLs. > > When I attempt to deliver to a mailbox with "group:" ACLs, LMTP crashes > and will not deliver the message. > > Here's the ACLs for the mailbox: > > timaphost.bath.ac.uk> lam user.exim > exim lrswipkxtecda > ma9djm lrs > group:exim lrs > > This is a grab of me doing an LMTP session to the frontend: > > 220 timaphost.bath.ac.uk Cyrus LMTP Murder v2.3.14 server ready > LHLO timaphost.bath.ac.uk > 250-timaphost.bath.ac.uk > 250-8BITMIME > 250-ENHANCEDSTATUSCODES > 250-PIPELINING > 250-SIZE > 250-STARTTLS > 250-AUTH EXTERNAL > 250 IGNOREQUOTA > MAIL FROM:<> > 250 2.1.0 ok > RCPT TO: > Connection to localhost closed by foreign host. > > Relevant imapd.log lines: > > May 29 15:57:53 sauber-z1.bath.ac.uk master[16505]: [ID 970914 > mail.error] process 16674 exited, signaled to death by 11 > May 29 15:57:53 sauber-z1.bath.ac.uk master[16505]: [ID 621917 > mail.debug] service lmtp pid 16674 in BUSY state: terminated abnormally > > If I take the group:exim ACL off the mailbox, it delivers fine. The Unix > group exists on the MUPDATE master and the backend. > > Relevant bits of imapd.conf: > > seenstate_db: skiplist > duplicate_db: skiplist > subscription_db: skiplist > quota_db: skiplist > sasl_pwcheck_method: saslauthd > sasl_mech_list: plain gssapi > allowanonymouslogin: no > allowplaintext: yes > auth_mech: unix > > We are using Cyrus-SASL/GSSAPI for authentication. We built imapd-2.2.12 > with --with-auth=unix but configure-2.3.14 does not have this option so > we've set the auth_mech option in imapd.conf as above. Do any other > values need to be set in configure or imapd.conf for this to work? > > Can anyone suggest how to make this work and/or where to look for more > information about why it's failing so horribly. Could you try 2.3.13? Would be very interesting to see whether it makes a difference. Simon From ae at dal.ca Fri May 29 13:47:51 2009 From: ae at dal.ca (Aidan Evans) Date: Fri, 29 May 2009 14:47:51 -0300 (ADT) Subject: service imap pid nnnn in BUSY state: terminated abnormally Message-ID: I am attempting to upgrade a Cyrus Murder from 2.3.12p2 to 2.3.14. The mupdate and backend servers are happy at 2.3.14, but on the frontends while I can login successfully, attempting to select a folder fails with messages like May 29 12:13:59 kil-imap-13 master[15558]: process 15584 exited, signaled to death by 11 May 29 12:13:59 kil-imap-13 master[15558]: service imap pid 15584 in BUSY state: terminated abnormally This is on Red Hat Linux 5 (2.6.18-128.1.6.el5PAE kernel). I have not found anything in the Cyrus mailing list archive that looks like this. A Google search did find a similar problem from just a couple of weeks ago with a Debian installation which was attributed to "packages sasl2-bin, libsasl2-2 and libsasl2-modules". I am using the Red Hat SASL RPMs, version 2.1.22-4 which appears to be the latest. This has worked so far, so I have not installed SASL from Cyrus itself. The Cyrus SASL 2.1.23 announcement only talks about a "potential" buffer overflow which suggests to me that the change there is not relevant Should I switch to Cyrus SASL? The mailbox database is skiplist, seen and subscription are flat, and quota is legacy; others are Berkeley. cyradm "version" is name : Cyrus IMAPD version : v2.3.14 2009/03/25 10:41:00 vendor : Project Cyrus support-url: http://cyrusimap.web.cmu.edu os : Linux os-version : 2.6.18-128.el5PAE environment: Built w/Cyrus SASL 2.1.22 Running w/Cyrus SASL 2.1.22 Built w/Sleepycat Software: Berkeley DB 4.3.29: (September 12, 2006) Running w/Sleepycat Software: Berkeley DB 4.3.29: (September 12, 2006) Built w/OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 Running w/OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 CMU Sieve 2.3 TCP Wrappers mmap = shared lock = fcntl nonblock = fcntl idle = poll Aidan Evans | Networks & Systems (902)494-3332 | Dalhousie University, Halifax, N.S., Canada From gombasg at sztaki.hu Fri May 29 14:02:51 2009 From: gombasg at sztaki.hu (Gabor Gombas) Date: Fri, 29 May 2009 20:02:51 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied Message-ID: <20090529180251.GA29082@boogie.lpds.sztaki.hu> Hi, I'm in the process of upgrading to 2.3.14 and looking at the gcc warnings resulted in this change: diff --git a/imap/lmtpengine.c b/imap/lmtpengine.c index 3df2911..36d53bc 100644 --- a/imap/lmtpengine.c +++ b/imap/lmtpengine.c @@ -802,7 +802,7 @@ static int savemsg(struct clientdata *cd, static int process_recipient(char *addr, struct namespace *namespace, int ignorequota, int (*verify_user)(const char *, const char *, - char *, long, + char *, quota_t, struct auth_state *), message_data_t *msg) { IMHO this can very well explain the difference between 32-bit and 64-bit behaviour, when sizeof(quota_t) != sizeof(long). I've not tested it yet though. Gabor -- --------------------------------------------------------- MTA SZTAKI Computer and Automation Research Institute Hungarian Academy of Sciences --------------------------------------------------------- From simon.matter at invoca.ch Fri May 29 14:50:18 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Fri, 29 May 2009 20:50:18 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <20090529180251.GA29082@boogie.lpds.sztaki.hu> References: <20090529180251.GA29082@boogie.lpds.sztaki.hu> Message-ID: <006fa0bc38e84155b75de10f3af82d2e.squirrel@webmail.bi.corp.invoca.ch> > Hi, > > I'm in the process of upgrading to 2.3.14 and looking at the gcc > warnings resulted in this change: > > diff --git a/imap/lmtpengine.c b/imap/lmtpengine.c > index 3df2911..36d53bc 100644 > --- a/imap/lmtpengine.c > +++ b/imap/lmtpengine.c > @@ -802,7 +802,7 @@ static int savemsg(struct clientdata *cd, > static int process_recipient(char *addr, struct namespace *namespace, > int ignorequota, > int (*verify_user)(const char *, const char *, > - char *, long, > + char *, quota_t, > struct auth_state *), > message_data_t *msg) > { > > IMHO this can very well explain the difference between 32-bit and 64-bit > behaviour, when sizeof(quota_t) != sizeof(long). I've not tested it yet > though. Hi Gabor, Thanks for looking at the GCC warning! I have verified it and that's exactly where it fails. That really explains why not all platforms were affected. Thanks, Simon From dave64 at andrew.cmu.edu Fri May 29 15:05:08 2009 From: dave64 at andrew.cmu.edu (Dave McMurtrie) Date: Fri, 29 May 2009 15:05:08 -0400 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <006fa0bc38e84155b75de10f3af82d2e.squirrel@webmail.bi.corp.invoca.ch> References: <20090529180251.GA29082@boogie.lpds.sztaki.hu> <006fa0bc38e84155b75de10f3af82d2e.squirrel@webmail.bi.corp.invoca.ch> Message-ID: <4A2031E4.2080403@andrew.cmu.edu> Simon Matter wrote: >> Hi, >> >> I'm in the process of upgrading to 2.3.14 and looking at the gcc >> warnings resulted in this change: >> >> diff --git a/imap/lmtpengine.c b/imap/lmtpengine.c >> index 3df2911..36d53bc 100644 >> --- a/imap/lmtpengine.c >> +++ b/imap/lmtpengine.c >> @@ -802,7 +802,7 @@ static int savemsg(struct clientdata *cd, >> static int process_recipient(char *addr, struct namespace *namespace, >> int ignorequota, >> int (*verify_user)(const char *, const char *, >> - char *, long, >> + char *, quota_t, >> struct auth_state *), >> message_data_t *msg) >> { >> >> IMHO this can very well explain the difference between 32-bit and 64-bit >> behaviour, when sizeof(quota_t) != sizeof(long). I've not tested it yet >> though. > > Hi Gabor, > > Thanks for looking at the GCC warning! I have verified it and that's > exactly where it fails. > That really explains why not all platforms were affected. I believe if you look at the cvs logs, this has already been patched. Sorry I didn't think to mention this earlier in the thread. Thanks, Dave -- Dave McMurtrie, SPE Email Systems Team Leader Carnegie Mellon University, Computing Services From simon.matter at invoca.ch Fri May 29 15:30:48 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Fri, 29 May 2009 21:30:48 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <4A2031E4.2080403@andrew.cmu.edu> References: <20090529180251.GA29082@boogie.lpds.sztaki.hu> <006fa0bc38e84155b75de10f3af82d2e.squirrel@webmail.bi.corp.invoca.ch> <4A2031E4.2080403@andrew.cmu.edu> Message-ID: > Simon Matter wrote: >>> Hi, >>> >>> I'm in the process of upgrading to 2.3.14 and looking at the gcc >>> warnings resulted in this change: >>> >>> diff --git a/imap/lmtpengine.c b/imap/lmtpengine.c >>> index 3df2911..36d53bc 100644 >>> --- a/imap/lmtpengine.c >>> +++ b/imap/lmtpengine.c >>> @@ -802,7 +802,7 @@ static int savemsg(struct clientdata *cd, >>> static int process_recipient(char *addr, struct namespace *namespace, >>> int ignorequota, >>> int (*verify_user)(const char *, const char *, >>> - char *, long, >>> + char *, quota_t, >>> struct auth_state *), >>> message_data_t *msg) >>> { >>> >>> IMHO this can very well explain the difference between 32-bit and >>> 64-bit >>> behaviour, when sizeof(quota_t) != sizeof(long). I've not tested it yet >>> though. >> >> Hi Gabor, >> >> Thanks for looking at the GCC warning! I have verified it and that's >> exactly where it fails. >> That really explains why not all platforms were affected. > > I believe if you look at the cvs logs, this has already been patched. > Sorry I didn't think to mention this earlier in the thread. Thanks, now I see it. Gabor, you may have a look at the patch here: http://github.com/brong/cyrus-imapd/commit/ec1bfcf6a1db9c86cbf55b9c25d7eb044dbbe51b#diff-0 Simon From dbucherml at hsolutions.ch Fri May 29 20:09:43 2009 From: dbucherml at hsolutions.ch (Denis BUCHER) Date: Sat, 30 May 2009 02:09:43 +0200 Subject: Problem with websieve and accents In-Reply-To: <66121184BF6341F59E87BCDC87AFA8AA@Atticus> References: <4A1EF91F.2020908@hsolutions.ch> <20090529005947.GB6708@brong.net> <66121184BF6341F59E87BCDC87AFA8AA@Atticus> Message-ID: <4A207947.2040008@hsolutions.ch> Hello, Rob Mueller a ?crit : > >>> I am blocked with websieve.pl vacation/out-of-office because when users >>> are entering accents the script fails with an error... >>> >>> Does anyone has a suggestion on how to make accents work ? >> >> Yes, but I haven't committed it to CVS yet. I'm working on full >> UTF8 support in sieve scripts. > > Well it depends where there are accents in the sieve script. I believe > the current state of things (2.3.14) is: > > 1. In folder names - should work (you need to use the utf-8 version of > the folder name, not the modified utf-7 version) > 2. In vacation messages - should work > 3. In header/body checks - needs Bron's fixes > > And a reminder, the script must be in utf-8 encoding. That's very interesting (I'm sure it will also help other people in the future) But in my case, vacation messages doesn't work : Message : > On vacation for the next week. > Actuellement en vacances, je vous r?pondrai ? mon retour... Gives error in websieve : > res=IMAP::Sieve [ putscript ]: couldn't save script defscript : NO {95} > Sieve vacation active > Script defscript active.. > Update successful... And on the server, the script that didn't worked is : > ##PSEUDO script start > #vacation&&1&&"test2007 at test.ch"&&On vacation for the next week.\nActuellement en vacances, je vous r351pondrai 340 mon retour...&&on > #mode&&basic But when triing to force websieve in utf 8 (change encoding in Firefox) it seems to work now (yesterday I tried without success, very strange) : > # Mail rules for user test2007 > # Created by Websieve version 0.63a > require ["fileinto","vacation"]; > > > vacation :days 1 :addresses ["test2007 at test.ch"] text: > Message automatique -- Autogenerated Message: > > On vacation for the next week. > Actuellement en vacances, je vous r??pondrai ? mon retour... > . > ; Therefore the problem seems solved now :-)) Thanks a lot for your explanations, it helped me try a little more in the right direction... Denis From dbucherml at hsolutions.ch Fri May 29 20:09:52 2009 From: dbucherml at hsolutions.ch (Denis BUCHER) Date: Sat, 30 May 2009 02:09:52 +0200 Subject: Were is quotas information stored Message-ID: <4A207950.7020801@hsolutions.ch> Hello everyone, As it seems impossible to access users accounts of many domains in cyradm, As it seems impossible to change the quota of a user in another domain, I would like to know where is stored the quotas for a specific user account ? For example I have user dbucherml at mydomain3.com, with path : /var/spool/imap/domain/m/mydomain3.com/d/user/dbucherml/ Where is the quota information stored, and how could I set unlimited quotas ? Thanks a lot for any help... From anthony-list at tibbs.ca Fri May 29 23:25:53 2009 From: anthony-list at tibbs.ca (Anthony Tibbs) Date: Fri, 29 May 2009 23:25:53 -0400 Subject: Cyrus APIs ? - detecting new messages in a folder In-Reply-To: <1243602451.5423.15.camel@linux-m3mt> References: <20090529005855.GA6708@brong.net> <1243602451.5423.15.camel@linux-m3mt> Message-ID: <4A20A741.3070202@tibbs.ca> This might seem like a really dumb question, but why can't you just monitor the log file for Delivered: lines and parse those (as they appear) to do the 'push'ing? I have a script that monitors this and gives me the datestamp, user/folder, and Message-ID domain on a running basis. Or am I missing something really obvious here? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090529/c00dd1fb/attachment-0001.html From simon.matter at invoca.ch Sat May 30 05:59:33 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Sat, 30 May 2009 11:59:33 +0200 Subject: Were is quotas information stored In-Reply-To: <4A207950.7020801@hsolutions.ch> References: <4A207950.7020801@hsolutions.ch> Message-ID: <7bcb6abfbc58cb46cd46b0621c906474.squirrel@webmail.bi.corp.invoca.ch> > Hello everyone, > > As it seems impossible to access users accounts of many domains in cyradm, > As it seems impossible to change the quota of a user in another domain, > > I would like to know where is stored the quotas for a specific user > account ? > > For example I have user dbucherml at mydomain3.com, with path : > /var/spool/imap/domain/m/mydomain3.com/d/user/dbucherml/ > > Where is the quota information stored, and how could I set unlimited > quotas ? That's not so easy to say because it depends on your configuration. In the default config you should find the quota flat databases somewhere under $CONFIGDIR/quota. While it's usually a bad idea to touch those files by hand you should be able to 1) shutdown cyrus-imapd 2) remove the users quota file 3) startup cyrus-imapd until you found out how to access quota the correct way to cyradm. Simon From brong at fastmail.fm Sat May 30 08:09:13 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Sat, 30 May 2009 22:09:13 +1000 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: References: <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> <1243603972.10491.1317817443@webmail.messagingengine.com> Message-ID: <20090530120913.GA30342@brong.net> On Fri, May 29, 2009 at 04:51:58PM +0200, Simon Matter wrote: > In auth_unix.c/mymemberof() I have added the following line at the > beginning of the function: > > syslog(LOG_ERR, "mymemberof() userid: %s, identifier: %s", > auth_state->userid, identifier); Yikes. Seriously? auth_state->userid huh? > Now I see the following difference: > > 2.3.13: > May 29 16:47:42 client140 lmtp[16435]: mymemberof() userid: (null), > identifier: anyone > May 29 16:47:42 client140 lmtp[16435]: mymemberof() userid: (null), > identifier: anonymous > > 2.3.14: > May 29 16:44:42 client140 lmtp[16145]: mymemberof() userid: , identifier: > anyone > May 29 16:44:42 client140 lmtp[16145]: mymemberof() userid: , identifier: > anonymous > > I think what you said should be NULL can be seen here in 2.3.13 but not in > 2.3.14. What do you think? I think it's surprising that you don't get a segfault dereferencing a NULL pointer for auth_state in the first place, in either of them. But it's even more odd that you're seeing differences with userid. It being "" (a pointer to a zero byte) is pretty bad. I'd better go back re-read the code. By the way, on my testbed running current 2.3.14 based code: RCPT TO:<+shared.foo> 250 2.1.5 ok # cyr slott02 dbtool show shared.foo shared.foo 0 default anyone lrs anonymous p This is 32 bit. When I debug it, I get a NULL pointer for auth_state at verify_user. Bron. From simon.matter at invoca.ch Sat May 30 08:21:31 2009 From: simon.matter at invoca.ch (Simon Matter) Date: Sat, 30 May 2009 14:21:31 +0200 Subject: 2.3.14: posting to shared mailbox results in 550 Permission denied In-Reply-To: <20090530120913.GA30342@brong.net> References: <662b52700d36068eca72d0726b9fa0df.squirrel@webmail.bi.corp.invoca.ch> <1243603972.10491.1317817443@webmail.messagingengine.com> <20090530120913.GA30342@brong.net> Message-ID: <10f67d2ebaddc8b9f71bc891a533ff88.squirrel@webmail.bi.corp.invoca.ch> > On Fri, May 29, 2009 at 04:51:58PM +0200, Simon Matter wrote: >> In auth_unix.c/mymemberof() I have added the following line at the >> beginning of the function: >> >> syslog(LOG_ERR, "mymemberof() userid: %s, identifier: %s", >> auth_state->userid, identifier); > > Yikes. Seriously? auth_state->userid huh? > >> Now I see the following difference: >> >> 2.3.13: >> May 29 16:47:42 client140 lmtp[16435]: mymemberof() userid: (null), >> identifier: anyone >> May 29 16:47:42 client140 lmtp[16435]: mymemberof() userid: (null), >> identifier: anonymous >> >> 2.3.14: >> May 29 16:44:42 client140 lmtp[16145]: mymemberof() userid: , >> identifier: >> anyone >> May 29 16:44:42 client140 lmtp[16145]: mymemberof() userid: , >> identifier: >> anonymous >> >> I think what you said should be NULL can be seen here in 2.3.13 but not >> in >> 2.3.14. What do you think? > > I think it's surprising that you don't get a segfault dereferencing a > NULL pointer for auth_state in the first place, in either of them. > But it's even more odd that you're seeing differences with userid. > It being "" (a pointer to a zero byte) is pretty bad. > > I'd better go back re-read the code. > > By the way, on my testbed running current 2.3.14 based code: > > RCPT TO:<+shared.foo> > 250 2.1.5 ok > > # cyr slott02 dbtool show shared.foo > shared.foo 0 default anyone lrs anonymous p > > This is 32 bit. > > When I debug it, I get a NULL pointer for auth_state at verify_user. Maybe it's a stupid question but doesn't the NULL mean anonymous? When you say 'current 2.3.14' do you mean current CVS/GIT? I think current CVS is fine as well as 2.3.13. CVS seems fixed by the path Gabor pointed out. At least I have added the patch from GIT to my RPM and will test it on different systems today. Simon From Hagedorn at uni-koeln.de Sun May 31 02:21:07 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Sun, 31 May 2009 08:21:07 +0200 Subject: Self-healing mailbox? Message-ID: Today I noticed the following in our Logwatch script's output for Cyrus (2.3.14): May 30 04:51:06 lvr13 cyr_expire[562]: IOERROR: reading cache record for user.aqg04: initial bogus offset 11091472 of 75256 for 6/10; mailbox needs a reconstruct May 30 04:51:06 lvr13 cyr_expire[562]: failure expiring user.aqg04: System I/O error That's the first time I've seen one of these new messages, but I'd read about them and wasn't surprised. I didn't reconstruct the mailbox immediately, though. And when I looked at today's log, I found: May 31 04:46:40 lvr13 cyr_expire[28829]: Expunged 7 messages from user.aqg04 What gives? Can I assume that the error from yesterday somehow healed itself? Or should I run reconstruct anyway? -- Sebastian Hagedorn - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10 Regionales Rechenzentrum (RRZK) Universit?t zu K?ln / Cologne University - Tel. +49-221-478-5587 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090531/156fdb14/attachment.bin From cvizitiu at gbif.org Sun May 31 03:27:41 2009 From: cvizitiu at gbif.org (Ciprian Marius Vizitiu (GBIF)) Date: Sun, 31 May 2009 09:27:41 +0200 Subject: Self-healing mailbox? In-Reply-To: References: Message-ID: <4A22316D.4010401@gbif.org> Sebastian Hagedorn wrote: > Today I noticed the following in our Logwatch script's output for > Cyrus (2.3.14): > > May 30 04:51:06 lvr13 cyr_expire[562]: failure expiring user.aqg04: > System I/O error > > May 31 04:46:40 lvr13 cyr_expire[28829]: Expunged 7 messages from > user.aqg04 > > What gives? Can I assume that the error from yesterday somehow healed > itself? Or should I run reconstruct anyway? I for one 'd worry more about that "System I/O error ". It can be that there was a storage error which didn't happen during a second attempt. From Hagedorn at uni-koeln.de Sun May 31 04:53:14 2009 From: Hagedorn at uni-koeln.de (Sebastian Hagedorn) Date: Sun, 31 May 2009 10:53:14 +0200 Subject: Self-healing mailbox? In-Reply-To: <4A22316D.4010401@gbif.org> References: <4A22316D.4010401@gbif.org> Message-ID: <139F629B628639B2FEE835AD@G5.local> -- "Ciprian Marius Vizitiu (GBIF)" is rumored to have mumbled on 31. Mai 2009 09:27:41 +0200 regarding Re: Self-healing mailbox?: >> What gives? Can I assume that the error from yesterday somehow healed >> itself? Or should I run reconstruct anyway? > > I for one 'd worry more about that "System I/O error ". It can be that > there was a storage error which didn't happen during a second attempt. I doubt it, because the same error occurred one day earlier: May 29 04:53:38 lvr13 cyr_expire[2602]: IOERROR: reading cache record for user.aqg04: initial bogus offset 11090136 of 32488 for 5/7; mailbox needs a reconstruct May 29 04:53:38 lvr13 cyr_expire[2602]: failure expiring user.aqg04: System I/O error I interpret the "System I/O error" to be the IOERROR from the line before, i.e. not actually an I/O error but rather a corrupt file. The error does not show on any of the previous days, nor does it show today. -- Sebastian Hagedorn - Postmaster - RZKR-R1 (Flachbau), Zimmer 18 Regionales Rechenzentrum (RRZK) Universit?t zu K?ln / Cologne University - Tel. +49-221-478-5587 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090531/f96674fe/attachment.bin From brong at fastmail.fm Sun May 31 08:41:52 2009 From: brong at fastmail.fm (Bron Gondwana) Date: Sun, 31 May 2009 22:41:52 +1000 Subject: Self-healing mailbox? In-Reply-To: <139F629B628639B2FEE835AD@G5.local> References: <4A22316D.4010401@gbif.org> <139F629B628639B2FEE835AD@G5.local> Message-ID: <20090531124152.GA28931@brong.net> On Sun, May 31, 2009 at 10:53:14AM +0200, Sebastian Hagedorn wrote: > -- "Ciprian Marius Vizitiu (GBIF)" is rumored to have >> I for one 'd worry more about that "System I/O error ". It can be that >> there was a storage error which didn't happen during a second attempt. Nah, it's called an "IOERROR", but it's just a "file didn't contain what I expected error". > I doubt it, because the same error occurred one day earlier: > > May 29 04:53:38 lvr13 cyr_expire[2602]: IOERROR: reading cache record for > user.aqg04: initial bogus offset 11090136 of 32488 for 5/7; mailbox needs > a reconstruct > May 29 04:53:38 lvr13 cyr_expire[2602]: failure expiring user.aqg04: > System I/O error > > I interpret the "System I/O error" to be the IOERROR from the line > before, i.e. not actually an I/O error but rather a corrupt file. The > error does not show on any of the previous days, nor does it show today. Sounds to me like it was copying the record to the cyrus.expunge.NEW file each time for the earlier days (and failing, so skipping the entire mailbox), but now the record has actually expired, so it doesn't need to copy the cache record to the cyrus.cache.NEW file, and hence never looks at it. Meaning: yes, it did heal itself! In my ideal world it would actually be self healing - if it failed for any reason to read a cache record it would map the message, create a new cache record, append it to the cyrus.cache file, update the index pointer, and keep right on going. (and next cyr_expire run, it would keep just the actually current cache records, so it would clean up over time) But - that's a lot of work, and I'm not there yet. Bron ( in fact, I haven't even committed my lazy cache work yet, though it's sitting around mostly complete in my git tree )