Re: Calendars Cyrus

2007-11-13 Thread Ulrich Spoerlein
On Tue, 13.11.2007 at 06:56:21 -0800, Nikola Milutinovic wrote:
  We use OpenGroupware - http://www.opengroupware.org
 
  Server is entirely Open Source;  Outlook plugin (MAPI provider) is
  commercial.
 
  Works very well with Cyrus; which is its intended IMAP server.
 
 
 Speaking of calendars,... What about Mozilla Sunbird/Lightning?
 
 They can speak to WebDAV enabled ICS calendar format. With a special
 extension, Google Calendar Provider (freely available from
 addons.mozilla.org), they can talk to Google Calendar.
 
 Has anyone seen a calendar server that will work with Cyrus and Sunbird?

We are using www.egroupware.org as Mail/Calendar/Contact-Frontend and it
has rudimentary ICS over HTTP support. I spoke to the main developer and
he says that ICS over HTTP is basically a very stupid idea (which I
concur). Other than the occasional glitch, it's working fine with
Sunbird/Lightning.

Anyway, progress is made on getting GroupDAV (or was it CalDAV?) working
with eGroupware, but it is still not there, though.

 Sunbird is really great and Lightning makes me NOT want to ever touch Outlook.

I prefer the KDE PIM suite Kontact over Mozilla's products any day. It
has tons of bugs, but also some very cool features which I would never
want to miss again.

Cheers,
Ulrich Spoerlein
-- 
It is better to remain silent and be thought a fool,
than to speak, and remove all doubt.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Shared folder filtering (probably a thousand times asked)

2007-09-10 Thread Ulrich Spoerlein
On Mon, 10.09.2007 at 16:01:12 +0200, Johannes Rußek wrote:
 beloved list,
 
 i'm so free to ask this question probably for the 1000st time: how can i
 manage sieve script for shared folders?
 i have a few shared folders where i would like to have cyrus filter the
 incoming mails with sieve scripts, but i couldn't figure out a way to do
 so yet.

upload a sieve script as your cyrus admin user. Let's call it foo. Then
login with cyradm and attach that script to the shared folder bar.
mboxcfg bar sieve foo

hth,
Ulrich Spoerlein
-- 
It is better to remain silent and be thought a fool,
than to speak, and remove all doubt.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Cyrus/Sieve- Global Filter?

2007-07-15 Thread Ulrich Spoerlein
On Sat, 14.07.2007 at 17:16:53 +0100, George Cooke wrote:
 I just wonder as a shot in the dark how do most mail admins define global 
 rules
 for filtering messages for every/user/certain groups of users, or is it up to
 the user to manage all filtering?

We have users that can hardly create their own mail filters, let alone
sieve filters. We therefore upload an initial sieve script into each
mailbox just after creation. It consists of only one rule: moving spam
into the Spam subfolder.

With the help of an expect(1) script this filter was initially uploaded
to all 150 accounts, or so.

It is so trivial, I'll attach it right here. You call it like this:
./sieve.expect cyrus cyrPASS uid host put foo.script foo activate
foo

#!/usr/local/bin/expect
# $Id: sieve.expect,v 1.1 2007/04/19 09:35:36 uspoerlein Exp $

set timeout 5

if {$argc5} {
  send_user usage: $argv0 auth pass user host cmd1 cmd2 ...\n
  exit
}

set auth [lindex $argv 0]
set pass [lindex $argv 1]
set user [lindex $argv 2]
set host [lindex $argv 3]

spawn sieveshell -u $user -a $auth $host

expect password: 
send $pass\n

for {set i 4} {$i$argc} {incr i} {
  set cmd [lindex $argv $i]
  expect  
  send $cmd\n
}

expect  
send quit\n
expect eof

Don't run this on a shell-server though, as your cyrus admin password
will be visible from ps(1) output. 

Cheers,
Ulrich Spoerlein
-- 
The trouble with the dictionary is you have to know how the word is
spelled before you can look it up to see how it is spelled.
-- Will Cuppy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Recommend how to move 31GB of mail to a new server

2007-06-24 Thread Ulrich Spoerlein
On Sat, 23.06.2007 at 22:34:33 -0300, Patrick Boutilier wrote:
 Daniel O'Connor wrote:
  On Sunday 24 June 2007 07:37, Gary Mills wrote:
  For only 30 gigabytes, you might be better off just copying the files
  over, with IMAP down.  It could only take a few hours.  You can copy
  a sample from the live system to get an idea of the timing.
  
  You could rsync the mail spool while it is live, take it down and then 
  rsync again.
  
  That should save considerable time as I would imagine the vast majority 
  of email would be unchanged between the first  second copy.
 
 But unfortunately rsync will still have to scan each file to determine 
 what has changed, and that can chew up a lot of time.

Better than to speculate is to measure.
Time the rsync of the mailboxes to your new server. *Don't* shutdown
cyrus, but rsync right again. Measure the second run, too. This will
roughly be your expected downtime. I would be surprised if it is more
than 5-10 minutes.

You could also do: rsync (long time), rsync (short time), shutdown
cyrus, rsync (even shorter time).

hth
Ulrich Spoerlein
-- 
The trouble with the dictionary is you have to know how the word is
spelled before you can look it up to see how it is spelled.
-- Will Cuppy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: synchronization/backup mx

2007-05-15 Thread Ulrich Spoerlein
Torsten Schlabach wrote:
  you are searching for heartbeat and drbd
 
 But this will just provide the HA filesystem, won't it?
 
 Isn't there a technology available in Cyrus IMAPd which will replicate 
 changes to a mailbox 
 to two different servers?

Search for rolling replication. Though I failed to get it working
reliably ...

Ulrich Spoerlein
-- 
The trouble with the dictionary is you have to know how the word is
spelled before you can look it up to see how it is spelled.
-- Will Cuppy

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


How to include global sieve script for each user

2007-03-06 Thread Ulrich Spoerlein

Hi all,

I know this is a recurring topic here, but after hours of searching I
still can't get this to work.

I'm running Cyrus 2.3.7 on FreeBSD 6.2, I have added a global script like this:

sieveshell -u cyrus -a cyrus -e p spam.script spam localhost

Which results in the script showing up in sieve/global/spam.{bc,script}

Now I want to upload a user script, consisting of the following lines
(as per RFC)

require [include];
include :global spam;

Which results in an 'unsupported feature at line 1' error. I found
posts claiming that Cyrus does not advertise the include extension,
but works anyhow.

I also tried only the line include :global spam;, but then I get
line 1: include not required.

So what is the darn syntax, and why is cyrus documented so sparsely?

Thanks in advance!
Uli

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: How to include global sieve script for each user

2007-03-06 Thread Ulrich Spoerlein
Sebastian Hagedorn wrote:
 -- Ulrich Spoerlein [EMAIL PROTECTED] is rumored to have mumbled on 6. März 
 2007 
 From man imapd.conf:
 
   sieve_extensions: fileinto reject vacation  imapflags  notify envelope
   relational regex subaddress copy
Space-separated list of Sieve extensions allowed  to  be  used in
sieve scripts, enforced at submission by timsieved(8).  Any previ-
ously installed script will be unaffected by this option and will
continue  to  execute  regardless  of  the  extensions used. This
option has no effect on options that are disabled at compile time
(e.g. regex).
 
Allowed  values:  fileinto,  reject,  vacation, imapflags, notify,
include, envelope, body, relational, regex, subaddress, copy
 
 I.e. you have to explicitly enable include. Don't complain about missing 
 documentation when 
 you don't even bother to read it ...

Sigh,

since an unset sasl_mech_list has the meaning of all available I was
under the impression, that it would be the same with sieve_extension.

Thanks for the cluebat!

Ulrich Spoerlein
-- 
The trouble with the dictionary is you have to know how the word is
spelled before you can look it up to see how it is spelled.
-- Will Cuppy

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