Re: question about sieve "discard"
Andreas Hasenack wrote: On Wed, Apr 27, 2005 at 09:37:55PM +0200, Goetz Babin-Ebell wrote: 4.5. Action discard Syntax: discard Discard is used to silently throw away the message. It does so by ^ simply canceling the implicit keep. If discard is used with other ^^^ ^ actions, the other actions still happen. Discard is compatible with all other actions. (For instance fileinto+discard is equivalent to fileinto.) What confused me a bit, and that's why I asked the list, was the "It does so by canceling the implicit keep." So if no other rule matched, then the message would be discarded, right? Correct. -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: intermittent mupdate failures.
On Wed, 27 Apr 2005, Darrell Fuhriman wrote: > In cyrus.conf on the frontend we have: > mupdate cmd="mupdate" listen=3905 prefork=3 > > and on the mupdate master, we have: > MUPDATE cmd="mupdate -m" listen=3905 prefork=3 mupdate is self-forking. Start just one. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
intermittent mupdate failures.
We are currently working on migrating our UW servers to Cyrus. We currently have one each mupdate master, frontend, and backend. We're migrating users using a slightly modified version of the imapsync script. What we're seeing is that sometimes, a user's mailbox is not properly propagated to the front end. The update comes from the backend to the mupdate master, but never goes from the master to the frontend. This is confirmed with network snoops, additionally the mailboxes.db on the master and the backend are correct, while mailboxes.db on the frontend is missing the entries. It seems to happen about 1/3 of the time, but I don't have enough evidence to really trust that number. In cyrus.conf on the frontend we have: mupdate cmd="mupdate" listen=3905 prefork=3 and on the mupdate master, we have: mupdate cmd="mupdate -m" listen=3905 prefork=3 Now, the (possible) ~1/3 failure rate with 3 mupdate daemons seems to be an "interesting" co-incidence. If we restart mupdate on the master, then, as would be expected the "missing" mailboxes correctly get sent to the frontend machine when it reconnects. Has anyone else seen this issue? As you might imagine, it's kind of holding up our migration. Darrell --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: question about sieve "discard"
On Wed, Apr 27, 2005 at 09:37:55PM +0200, Goetz Babin-Ebell wrote: > 4.5. Action discard > >Syntax: discard > >Discard is used to silently throw away the message. It does so by > ^ >simply canceling the implicit keep. If discard is used with other >^^^ ^ >actions, the other actions still happen. Discard is compatible with > >all other actions. (For instance fileinto+discard is equivalent to >fileinto.) What confused me a bit, and that's why I asked the list, was the "It does so by canceling the implicit keep." So if no other rule matched, then the message would be discarded, right? --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: question about sieve "discard"
Andreas Hasenack wrote: A friend of mine had these rules (cyrus-imapd-2.2.12): --8<--- if elsif elsif header :contains "From" "[EMAIL PROTECTED]" { discard; } if ... (script continues) --8<--- Note how the if/elsif structure is broken and a new if statement begins later on. That was a copy&paste error (the second "if" should have been "elsif" to continue the case-like structure). The interesting thing is that a message from "[EMAIL PROTECTED]" survived the discard. Is that because there should be a "stop;" after the discard action? It matched some other rule down the road in the second "if" structure. from RFC 3028: [...] 4.5. Action discard Syntax: discard Discard is used to silently throw away the message. It does so by ^ simply canceling the implicit keep. If discard is used with other ^^^ ^ actions, the other actions still happen. Discard is compatible with all other actions. (For instance fileinto+discard is equivalent to fileinto.) [...] Sieve processes the script, doing the actions set there. If at the end of the script the message was not filed into any mailbox, it is silently filed into the primary mailbox. And only this implicit last step (file it in the primary mailbox) is removed by the discard command. It does NOT have an implicit stop. Bye Goetz -- DMCA: The greed of the few outweighs the freedom of the many smime.p7s Description: S/MIME Cryptographic Signature
Re: question about sieve "discard"
--On Wednesday, April 27, 2005 15:46 -0300 Andreas Hasenack <[EMAIL PROTECTED]> wrote: Note how the if/elsif structure is broken and a new if statement begins later on. That was a copy&paste error (the second "if" should have been "elsif" to continue the case-like structure). The interesting thing is that a message from "[EMAIL PROTECTED]" survived the discard. Is that because there should be a "stop;" after the discard action? It matched some other rule down the road in the second "if" structure. Not sure if it relates or not but beware that what MS Outlook displays as 'from' and what's in the 'From' header can (and quite often are) different. There's a FAQ somewhere in the Mailman or http://list.org/ site that documents this and I've seen it as well. Not all versions behave like this though, but it *might* factor in. I'm pretty sure discard implies stop. --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
question about sieve "discard"
A friend of mine had these rules (cyrus-imapd-2.2.12): --8<--- if elsif elsif header :contains "From" "[EMAIL PROTECTED]" { discard; } if ... (script continues) --8<--- Note how the if/elsif structure is broken and a new if statement begins later on. That was a copy&paste error (the second "if" should have been "elsif" to continue the case-like structure). The interesting thing is that a message from "[EMAIL PROTECTED]" survived the discard. Is that because there should be a "stop;" after the discard action? It matched some other rule down the road in the second "if" structure. --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Migrate from stand-alone to murder
I have looked everywhere for documentation on this, and haven't found anything. My question is, of course, how easy is it to migrate from a standalone IMAP server to a murder cluster, and what would be involved in such a migration? Thanks, Brenden --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Auto-deleting messages
On Wed, Apr 27, 2005 at 10:56:50AM -0400, Ken Murchison wrote: > >man ipurge > > > >It doesn't work as well as I'd like it to, but it's a start. > > Actually, if you just want to delete based on age, cyr_expire using the > /vendor/cmu/cyrus-imapd/expire annotation gives you better control. Which (for completeness of this thread) can be set using cyradm: imap.server> mboxconfig Trash expire 5 imap.server> info Trash {Trash}: expire: 5 lastupdate: 27-Apr-2005 04:00:40 -0300 partition: default size: 0 squat: false imap.server> --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Message contains NUL characters ...
On Mon, 25 Apr 2005, John Fawcett wrote: On Mon, 25 Apr 2005, Michael Sims wrote: Sometimes I check what I'm discarding and only remember seeing spam. That could explain the upward trend in these messages (in line with the general increase in spam), although I've not seen that and have too small numbers to draw conclusions. Just as a follow up, I've had several reports from clients that attachments in webmail/horde are failing ... after checking the maillog while sending a test (so, not spam), I'm seeing the same thing being caused by Horde itself as well ... :( Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: [EMAIL PROTECTED] Yahoo!: yscrappy ICQ: 7615664 --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Auto-deleting messages
Sebastian Hagedorn wrote: Hi, --On 27. April 2005 1:17:12 Uhr -0400 Michael Spicyn <[EMAIL PROTECTED]> wrote: Can I somehow induce Cyrus to delete messages that are, lets say 3 month old? man ipurge It doesn't work as well as I'd like it to, but it's a start. Actually, if you just want to delete based on age, cyr_expire using the /vendor/cmu/cyrus-imapd/expire annotation gives you better control. -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Auxprop SQL & Virtual Domains
Hi, On Tue, 26 Apr 2005, Jesper K. Pedersen wrote: On Tue, 26 Apr 2005 15:29:34 +0100 (BST) Peter Muir <[EMAIL PROTECTED]> wrote: Hi, I'm using cyrus-imapd (version 2.2.12, cyrus-sasl version 2.1.20) with the sql auxprop plugin to connect to a mysql database. This works well. I would like to use the virtual domains feature of cyrus 2.2 with the 'userid' method but cannot find a way of passing the domain name supplied, it seems to only pass the username - i.e. if I log in as [EMAIL PROTECTED], then %u expands to peter. Can I a) get %u to expand to [EMAIL PROTECTED] or b) is there another variable that expands to splendid.co.uk TIA %r is your realm - that is for example your splendid.co.uk So use [EMAIL PROTECTED] to get your desired result Trying this the %r gets set to either the hostname of the machine or the value of 'servername: ' if it is set. This is with virtdomains: on defaultdomain: splendid.co.uk and watching the queries executed in the mysql log. I haven't set any of the realm parameters in the config file. I can post the whole config file if necessary, Regards --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Auto-deleting messages
Hi, --On 27. April 2005 1:17:12 Uhr -0400 Michael Spicyn <[EMAIL PROTECTED]> wrote: Can I somehow induce Cyrus to delete messages that are, lets say 3 month old? man ipurge It doesn't work as well as I'd like it to, but it's a start. Cheers, Sebastian Hagedorn -- Sebastian Hagedorn - RZKR-R1 (GebÃude 52), Zimmer 18 Zentrum fÃr angewandte Informatik - UniversitÃtsweiter Service RRZK UniversitÃt zu KÃln / Cologne University - Tel. +49-221-478-5587 pgp2gtpt3uSZ7.pgp Description: PGP signature