lmtpd reporting faulty parse errors
Hi, I'm using cyrus 2.1.16 on Solaris 8 with sendmail delivering to unix sockets. I've had this experience before and more often when I was running 2.1.14 but every now and then lmtpd starts reporting these kind of errors with syntactically correct sieve scripts -- from my logs: Feb 15 04:26:00 host.cwi.nl lmtpd[28106]: [ID 358100 local6.info] sieve parse error for user: line 7: fileinto not required Feb 15 04:26:00 host.cwi.nl lmtpd[28106]: [ID 358100 local6.info] sieve parse error for user: line 12: fileinto not required [...] This goes on and on until some high line number is reached (and that's very odd because there aren't even that many lines in the user's sieve script: [...] Feb 15 04:26:00 host.cwi.nl lmtpd[28106]: [ID 358100 local6.info] sieve parse error for user: line 343: fileinto not required The annoying part, of course, is that the filtering for that particular user doesn't work and all mail goes to the inbox unfiltered. Did anyone experience this before? Does anybody have any idea why this is happening? TIA Henk. P.S. I'll include the relevant setup information below. - from sendmail.cf: Mcyrus, P=[IPC], F=lsDFMnPqA5@/:|SmXz, S=EnvFromL, R=EnvToL/HdrToL, U=cyrus:mail, T=DNS/RFC822/X-Unix, A=FILE /var/run/lmtp - from cyrus.conf: lmtpunix cmd="lmtpd" listen="/var/run/lmtp" prefork=1 - version output name : Cyrus IMAPD version: v2.1.16 2003/11/19 16:45:28 vendor : Project Cyrus support-url: http://asg.web.cmu.edu/cyrus os : SunOS os-version : 5.8 environment: Cyrus SASL 2.1.17 Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001) Built w/OpenSSL 0.9.7c 30 Sep 2003 Running w/OpenSSL 0.9.7c 30 Sep 2003 CMU Sieve 2.2 mmap = shared lock = fcntl nonblock = fcntl auth = unix idle = idled mailboxes.db = skiplist seen.db = skiplist subs.db = flat deliver.db = db3-nosync tls_sessions.db = db3-nosync -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: lmtpd reporting faulty parse errors
Simon, On Tue, Feb 17, 2004 at 08:24:29AM +1300, Simon Brady wrote: > On Mon, 16 Feb 2004 [EMAIL PROTECTED] wrote: > > > Feb 15 04:26:00 host.cwi.nl lmtpd[28106]: [ID 358100 local6.info] sieve parse > > error for user: line 7: fileinto not required > > [...] > > Did anyone experience this before? Does anybody have any idea why this > > is happening? > > If the script includes a fileinto action it needs to begin with the line > > require "fileinto"; > > This is because fileinto is an optional capability for Sieve > implementations (see RFC 3028 sections 2.10.5, 3.2 and 4.2). Admittedly > the error message is ambiguous to someone who doesn't already know the > special meaning being given to the verb "require": perhaps something like > > "require" statement missing for fileinto capability > > would be clearer? This is not what I'm talking about. I stated earlier that the scripts are syntactically correct. In addition to that -- all requirements are in the scripts! I suspect this is a bug and it's load and/or uptime related. Question remains: did anyone experience lmtpd reporting *faulty* sieve perse errors? Cheers -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: lmtpd reporting faulty parse errors
On Tue, Feb 17, 2004 at 08:49:49AM -0500, Ken Murchison wrote: > [EMAIL PROTECTED] wrote: > > > >This is not what I'm talking about. I stated earlier that the scripts > >are syntactically correct. In addition to that -- all requirements are > >in the scripts! > > > >I suspect this is a bug and it's load and/or uptime related. > >Question remains: did anyone experience lmtpd reporting *faulty* > >sieve perse errors? > > This is most likely caused by the Sieve lexer/parser not resetting its > state after a runtime failure (as mentioned in bug #1951). You can try > the patch attached to the bug, but I don't think it completely solves > the problem. I'll take a look at it. > The real solution to the problem is to upgrade to v2.2.3 which > precompiles the scripts into bytecode, thereby avoiding parsing scripts > in lmtpd. Great. Takes more work but probably more robust in the long run. Thanks a lot you guys. -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: DB4 Errors - not critical, but disturbing
Nikola, Nikola Milutinovic wrote: > Hi all. > > Running the following config. > > Digital UNIX 4.0D > OpenSSL 0.9.7g > Berkeley DB 4.2.52 patch2 > Cyrus SASL 2.1.20 > Cyrus IMAP 2.2.10 > > I usually get on my servers the following when the master runs ctl_cyrusdb: > > Dec 16 12:56:44 Uprava master[20477]: about to exec > /usr/opt/Cyrus-IMAP4-2.2.10/sbin/ctl_cyrusdb > Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: checkpointing cyrus databases > Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: archiving database file: > /var/opt/Cyrus-IMAP4-2.2.10/config/mailboxes.db > Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: archiving database file: > /var/opt/Cyrus-IMAP4-2.2.10/config/annotations.db > Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: DBERROR: error listing log > files: Permission denied > Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: DBERROR: archive > /var/opt/Cyrus-IMAP4-2.2.10/config/db: cyrusdb error > Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: DBERROR: error listing log > files: Permission denied > Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: DBERROR: archive > /var/opt/Cyrus-IMAP4-2.2.10/config/db: cyrusdb error > Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: done checkpointing cyrus > databases > > The server is running OK, I guess. This is the DB config from "imapd.conf": > > # > # Databases > # > berkeley_cachesize: 512 > berkeley_locks_max: 5 > berkeley_txns_max: 100 > annotation_db: skiplist > duplicate_db: berkeley-nosync > mboxlist_db:skiplist > quota_db: quotalegacy > # ptscache_db: berkeley > seenstate_db: skiplist > subscription_db:flat > tlscache_db:berkeley-nosync > > Running this on a running server produced no errors in the log: > > su cyrus -c "/usr/sbin/ctl_cyrusdb -c" > > log: > > Dec 17 00:22:46 Uprava ctl_cyrusdb[28161]: checkpointing cyrus databases > Dec 17 00:22:46 Uprava ctl_cyrusdb[28161]: archiving database file: > /var/opt/Cyrus-IMAP4-2.2.10/config/mailboxes.db > Dec 17 00:22:46 Uprava ctl_cyrusdb[28161]: archiving database file: > /var/opt/Cyrus-IMAP4-2.2.10/config/annotations.db > Dec 17 00:22:46 Uprava ctl_cyrusdb[28161]: removing log file: > /var/opt/Cyrus-IMAP4-2.2.10/config/db/log.35 > Dec 17 00:22:47 Uprava ctl_cyrusdb[28161]: archiving log file: > /var/opt/Cyrus-IMAP4-2.2.10/config/db/log.36 > Dec 17 00:22:47 Uprava ctl_cyrusdb[28161]: archiving log file: > /var/opt/Cyrus-IMAP4-2.2.10/config/db/log.36 > Dec 17 00:22:47 Uprava ctl_cyrusdb[28161]: done checkpointing cyrus > databases > > Any ideas? I realize this is an old post but since nobody followed up here goes... The errors occur during startup, right? Put a cd $configdirectory (the configdirectory in imap.conf) in the rc script. The cd $configdirectory is a workaround. master fails to chdir() to a safe directory before changing to the cyrus UID and spawning children. This only affects ctl_cyrusdb -c however, which complains that it cannot list logfiles upon checkpointing. > > Nix. Henk -- Henk Roose <[EMAIL PROTECTED]> CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) 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: Backup questions...
Nathanael, Nathanael D. Noblet wrote: > I know this has been asked a few times. I've gone over the questions, > but am wanting to make sure I fully understand some parts, to make sure > what I am doing is actually useful. > > I have a Cyrus installation (RHEL 4 rpm). It works, all setup etc. It > automatically creates a gz textfile of the mailboxlist files every day > etc. > > I would now like to create an offsite backup of the two directories I've > read need backing up. I've used rsync many a time for stuff like this so > figure I'll use it again. I don't want downtime to do the backup, so > need to know what kinds of problems can happen by running an rsync of > the spool directory. I'm rsyncing to another machine every day. The store is about 75 gigs and it takes about 2 to 2 1/2 hours on my hardware. Never had problems with it and already had to recover from a system crash a couple of times. > Obviously if the rsync takes anything but moments, there is a good > chance that it won't catch some of the mail. I'm okay with that. The > rsync will run each night, and if it isn't all there that's okay. > Missing a handful of emails is not a problem in our books. So if I have > the /var/lib/imap directory, which contains the berkeley dbs, and the > text version of the mailbox list. Plus a near recent copy of the spool > directories. I would be able to pretty much restore a copy roughly 24 > hours old in the case of a major failure. With crash recovery this is the best you can do and the fastest option you have. Be shure you sync everything including the sieve and config/user data. > Are these assumptions correct? Or not stopping the cyrus server will > make my spool directory grow a litter of kittens and make it impossible > to restore a functioning server albeit potentially missing a few > emails... Correct IMO. I moved the tls_sessions and the duplicate delivery databases out of the way before starting cyrus after succesful recovery. Henk -- Henk Roose CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sendmail 8.12.8 + procmail 3.22 + cyrus 2.1.12
On Thu, Mar 20, 2003 at 06:48:27PM -0600, Scott McDaniel wrote: > I am in the process of replacing a solaris 6 imap server to solaris 8. > I am trying to use the following software; however, I am still unable to > get incoming messages into the users' inbox. Any assistance you can > provide in helping me configure sendmail to send messages to procmail > and then get procmail to "deliver" to the cyrus box would be greatly > appreciated. [...] > What I think I ultimately want to do is remove all the cyrus references > in my sendmail.mc file and use procmail as the local delivery agent. > Unfortunately, I've been unable to come up with the magical sendmail.mc > file to make this work. > > If you could provide me examples of sendmail.mc files and/or > /etc/procmailrc recipes, that would be best. Try this in the sendmail.mc: define(`confLOCAL_MAILER',`cyrus')dnl define(`CYRUS_MAILER_PATH',`/path/to/bin/procmail') define(`CYRUS_MAILER_FLAGS', `A5@')dnl define(`CYRUS_MAILER_ARGS', `procmail -p /path/to/etc/cyrus/procmail.global CYRUSUSER=$u') MAILER(smtp) MAILER(cyrus) #!EOF And maybe this in the procmail.global: ## ## GLOBAL procmail recipes VERBOSE=on LOGFILE=/var/tmp/procmail.global.log ### ## Which rc files should we include #INCLUDERC="/path/to/etc/rc/$CYRUSUSER-lists.rc" #INCLUDERC="/path/to/etc/rc/$CYRUSUSER.rc" #INCLUDERC="/path/to/etc/rc/$CYRUSUSER-default.rc" ### ## Set Cyrus IMAP Variables DELIVER=/path/to/cyrus/bin/deliver SPAMASS=/path/to/spamassassin/bin/spamc :0fw |${SPAMASS} -u cyrus :0 |${DELIVER} -e -a $CYRUSUSER -m user.$CYRUSUSER #!EOF But, I would suggest kicking both procmail and deliver out and start thinking about delivering via LMTP, use sendmail with the milter API for spamtagging (which you didn't mention - I know - but couldn't resist ;) Delivery with LMTP would look like this in the sendmail.mc: define(`CYRUS_MAILER_PATH',`[IPC]') define(`CYRUS_MAILER_FLAGS', `A5@/:|SmXz')dnl define(`CYRUS_MAILER_ARGS', `FILE /var/run/lmtp') Done to a unix socket (lmtpunix cmd="lmtpd" listen="/var/run/lmtp" prefork=1) in the SERVICES part in your cyrus.conf. HTHHAND -- Henk Roose [EMAIL PROTECTED] Centre for Mathematics and Computer Science Kruislaan 413, 1098 SJ Amsterdam, The Netherlands Phone: +31 20 5929333 Fax: +31 20 5924199
Re: db4 backend alternative
Michael Sims wrote: > Denny Schierz wrote: > > Am Montag, den 22.11.2004, 22:51 + schrieb Mark Hannessen: > >> I am really wondering about this because I just can't seem to get > >> db4 to run stable. > > > > same problem here. I have to delete once a week all db's (but > > mailboxes.db). Otherwise i have timeouts and bouncing mails :-/ > > Seriously, why don't you guys switch to skiplist and avoid the whole Berkeley > DB > mess? I switched to skiplist for mailboxes.db, deliver.db, and the seen > databases > (on 2.1.x) about a year and a half ago and haven't had a problem since. > Berkeley DB Same here. Switched a year ago and not a worry in the world. The only difference is that I'm using deliver with db3-nosync (as with the tls_sessions) and the subscribed folders databases are flat files. The rest is all skiplist. > may perform better in some situations, but IMHO it's not worth the hassle it > brings. > YMMV... Regards -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- 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: Imap+Procmail
[EMAIL PROTECTED] wrote: > Hello Baltasar > Thx 4 Answer > Hmm now im little bit confused i did make a look into sendmail.cf and just > see a entry like > (it is standart install no custom local mailer m4 entrys) > this means procmail or? Yes this means you are using procmail as a local mailer. > so in fact its not possible procmail (nice filtering) + imap correct? But it *is* possible to use procmail to deliver to the imapserver. What you need to do is put all the filtering and spamassassin stuff before a final catch-all that does the delivery. Here's one way to do it: ## ## GLOBAL procmail recipes VERBOSE=on LOGFILE=/var/tmp/procmail.global.log ### ## Which rc files should we include #INCLUDERC="/usr/local/etc/cyrus/rc/$CYRUSUSER-lists.rc" #INCLUDERC="/usr/local/etc/cyrus/rc/$CYRUSUSER.rc" #INCLUDERC="/usr/local/etc/cyrus/rc/$CYRUSUSER-default.rc" ### ## Set Cyrus IMAP Variables DELIVER=/usr/local/cyrus/bin/deliver SPAMASS=/usr/local/spamfilter/bin/spamc :0fw |${SPAMASS} -u cyrus :0 |${DELIVER} -e -a $CYRUSUSER -m user.$CYRUSUSER > i know there spamassassin etc too...and i use them but combined its a good > way to filter messages with are "wantet" > > $Id: local_procmail.m4,v 8.22 2002/11/17 04:24:19 ca Exp $ # > Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, > S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, >A=procmail -Y -a $h -d $u IMO it's better to kick out deliver altogether, configure sendmail to use cyrus as your local mailer, deliver through lmtp and talk to SA through a milter, but that's a different chapter. HTH -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- 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: db4 backend alternative
ar and a half ago and > > >>> haven't had a problem since. Berkeley DB > > >> > > >>Same here. Switched a year ago and not a worry in the world. > > >>The only difference is that I'm using deliver with db3-nosync (as with > > >>the tls_sessions) and the subscribed folders databases are flat files. > > >>The rest is all skiplist. > > >> > > >>>may perform better in some situations, but IMHO it's not worth the > > >>> hassle it brings. YMMV... > > >> > > >>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 > --- > 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 Bye, Henk -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- 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: Debugging Sieve scripts
Kevin, Kevin M. Myer wrote: > Hello, > > I have a problem that periodically crops up, then usually goes away and I > never > get around to diagnosing the root cause of it. It seems to be triggered > whenever I set a vacation/out of office message. When I enable a vacation > message, messages that would normally be filed into folders start appearing in > my INBOX. It becomes annoying quickly when you come back and have to sort > through 300+ messages to find the things you want to see (other mail is list > mail and system log messages). Normally, disabling the vacation notification > solves the problem but this time it didn't. > > What I find even stranger is there appears to be no rhyme or reason for > letting > one message be filtered and another not. I'm getting a lot of virus > notifications for the latest version of the Bagle worm. The majority of these > are filed into my virus folder. A few end up in my INBOX. All should be > caught by the same sieve script but aren't. Same with list mail and system > log > messages. The bulk are filtered properly but a few sneak through into my > INBOX. The messages that come through appear to be identical in nature to the > messages that are filed. It appears as if Sieve gets periodicaly overwhelmed, > and just gives up on filtering for short periods of time. > > I haven't been able to rule out that there's a bug in the program that I use > to > generate the scripts (Ingo 1.0.1 from the Horde project). So I'm wondering if > there is a way I can take a message that made it by Sieve, and somehow run > Sieve in test mode, in much the same manner you can test ClamAV or > SpammAssassin on a message and have it report back what the results are for a > single message. I'd like to have it run through my sieve script, show me the > matches and then tell me what it would have done with the message. > > Short of there being a bug in the script itself, does anyone else have any > ideas > why Sieve behaves erratically, apparently triggered by turning vacation > notices > on, and then will eventually clear itself up? What do your logs say? Are there lmtpd errors present? I had a problem with the sieve lexer/parser not resetting its state after a runtime error (see bug #1951) in version 2.1.16. If you're using the 2.1 version check out the patch attached to the bug. > > Thanks, > Kevin > Bye, Henk -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Sieve and Cyrus Docs
Forrest Aldrich wrote: > Nothing like following-up to your own posts. > > The consensus of the private emails I've received is that some people > opt not to utilize Sieve, based upon the lack of documentation. One could start with reading RFC 3028, RFC 3431, RFC 3598, draft-showalter-sieve-vacation and draft-murchison-sieve-regex. Henk -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- 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: stuck vacation ghost message
Oliver, Oliver Sommer wrote: > Dear List, > > cyrus-imapd is the mail system I've been using successfully over the > last years but now I have a strange problem I cannot track down. > Probably it's a bug but I have no clue on where to start searching for > it. We use cyrus together with opengroupware.org ("ogo"). using a nice > web interface you can manage sieve stuff using ogo. the ogo server > connects the mail server using the sieve port, hence I consider it a > normal sieve client app. > > Now to my problem: it's about sieve and vacation. One of our users had > used an out-of-office notification. After the removal of the > notification everything seemed to be okay, but actually it wasn't: > > every now and then a user who is sending a mail to that specific account > gets his old vacation message. Many times we tried to get rid of it. I > scanned all the folders in the /var/sieve directory. we installed a new > vacation note and removed them - like everything you can do except for Install a new vacation and see what exactly changes on the cyrus box. Check 'sievedir' in imapd.conf and check for a 'default' softlink to a script in that location ($sievedir/f/foo/my.script). > reinstalling the mail server - with no luck at all. And it's not easy to > debug, because it doesn't send the vacation notice every time. just Because of the interval between repeat replies to the same sender. > sometimes. then it's gone for weeks, then it suddenly shows up - with > the old text. Are you sure there's no .forward with a unix vacation pipe in that specific account's home? Check that, also look for a .vacation.msg. > If anybody could give me a hint or something so look after - I would be > glad. this thing drives me totally crazy. I wonder: where is the > vacation notice actually stored if not in /var/sieve? It should be the 'sievedir' path in your imapd.conf > any help: totally appreciated. HTH Henk -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- 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: Restore mail from backup
Hamish wrote: > On Monday 11 April 2005 14:07, Dave McMurtrie wrote: > > Hamish wrote: > > > Hello everyone > > > I am having trouble restoring files from a backup, I have made the backup > > > just with rsync, so i have the contents of the > > > spool/domain/mydomain.com/user/myuser in the backup. It seems that the > > > user's mailbox has been deleted, so what I aim to do is create a new user > > > with the same name, copy the files from the backup, then run reconstruct > > > (please tell me if this is wrong) > > > I copy the files across, but in cyradm when `running reconstruct > > > user/[EMAIL PROTECTED] > > > gives Operating System Error. > > > Could someone point me in the right direction? > > > Thanks, > > > H > > > > The restored files are owned by root instead of your cyrus user? > > Thanks for the suggestion, but no they are owned by the cyrus user (I am > using > a kolab server, so the user is kolab-r). I have found that I cannot > reconstruct even a new mailbox, is this normal? AFAIK (running 2.1.18) you need to run reconstruct (as the cyrus user) as 'reconstruct -r user.myuser' The dot (.) is the hierarchy separator. The -r is for recursively. > How can I turn up logging to see what is happening? > Thanks, > Hinf Henk -- Henk Roose <[EMAIL PROTECTED]> CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) pgpH7hUn5T74R.pgp Description: PGP signature
Re: change default mailbox names
Michael King wrote: > Squirrelmail has a feature to create its special folders on first login. > That's probably what has happened, in this case. Michael is right. Look at the $trash_folder, $sent_folder, $draft_folder and $auto_create_special parameters in squirrel's config.php. Henk -- Henk Roose <[EMAIL PROTECTED]> CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Sieve
Marc G. Fournier wrote: > > > IMHO, the biggest thing missing from sieve is the ability to easily use > anti-spam software like Spamassassin ... but, not sure if I can consider The idea is to disable execution of arbitrary code. Sieve, unlike procmail or courier maildrop, does not allow users to call or pipe to other programs or scripts. You have requirements/extensions for that. Programs like amavis or spamassassin should be called or fed by an MTA. > that a failing of sieve itself, or the lmtp protocol ... there used to be > software with Spamassassin called spamcheck.py that acted as an lmtp > proxy, and altho I'm using it, it doesn't fully handle the error codes > that lmtp puts out ... > > Some sort of 'plug in' for either lmtp, or sieve itself, would be nice, > that allows for a 'clean' per user filtering ... amavisd is doing a > quasi-per-user, but as far as I can tell, it only parses/processes the > message once, so not 100% certain "which user" its basing its rules on ;( > > > > On Mon, 25 Apr 2005, Derrick J Brashear wrote: > > >On Mon, 25 Apr 2005, NM Public wrote: > > > >>* I use Tuffmail.com and they support the ManageSIEVE protocol. > >> I'd like to be able to update my Sieve greenlist (aka > >> whitelist) from Pine. E.g., In Pine I pipe a message to a > >> script and the script extracts the From: header and uses > >> ManageSIEVE to update my remote Sieve script. Where can I find > >> a ManageSIEVE script that will give me clues about how to do > >> this? I run Pine on Mac OS X, FreeBSD, and Debian Linux so a > >> Unix-type shell script would be great. BTW, I know how to > >> extract the address from the From: header because I've been > >> doing this for years for my Procmail recipes. > > > >You mean a script that uses the perl modules? We have one around which I > >just had some fun debugging (there's a debug in the "new protocol" support > >which we found Thursday, it will be fixed in 2.2.13). I'll find it. > > > > > >>* Is it possible for Sieve to use "include" files so I can > >> compartmentalize the various sections of my Sieve script? This > >> seems like it would be especially useful in ensuring that I > >> don't corrupt my entire Sieve script using the ManageSIEVE > >> script that I describe above. > > > >No (well, yes, but only starting in 2.3 versions) > > > >>* Are there Sieve syntax checking tools that will tell me if I > >> have specified exactly the right "require" items? > > > >I know of none. > > > >> If so, where > >> can I find them? Does it make much of difference if I specify > >> more than is needed. > > > >No > > > >>* I've read some Sieve examples on the Web and I don't understand > >> why some people use 'header :contains' when 'address :all > >> :comparator "i;ascii-casemap" :contains' seems to be more > >> correct. Why would someone use 'header' when they are looking > >> for an 'address'? Is this an example of cluelessness on the > >> part of the Sieve scripter or is there something I'm not > >> getting? > > > >Sieve is an evolving language. Some syntax didn't exist at the beginning. > > > >Of course, if you claim to prefer minimalism, why would you explicitly > >specify the default comparator? ;-) > > > >>* I've seen some recipes that have this: > >> > >> fileinto "foo" > >> stop; > >> > >> Is the 'stop;' redundant here? In procmail, delivery means stop > >> (unless the 'c' flag is used). What's the story in Sieve? > > > >It means no later rules will apply (so you won't have multiple copies > >filed) > >--- > >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 > > > > > > > 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 Henk -- Henk Roose <[EMAIL PROTECTED]> CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Cyrus IMAP migration
Dag-Erling Smørgrav wrote: > Tarjei Huse <[EMAIL PROTECTED]> writes: > > Hmm, how large is the volume here? You might get away with just > > migration using the imap protocol. > > A few gigabytes spread across ~200 folders. I could 'du -sk' to give > you an exact answer, but the Alpha's disks are *really* slow... You could try rsync (archive mode) from oldbox to newbox. Shutting down cyrus and after that do another archive-rsync. When all the data is on the new machine you can run reconstruct on the entire mailstore, fix quota's etc. > > DES > -- > Dag-Erling Smørgrav - [EMAIL PROTECTED] > > --- > 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 Henk -- Henk Roose <[EMAIL PROTECTED]> CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- 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: Converting deliver.db from berkely-nosync to skiplist
Brenden Conte wrote: > Using RPM version of 2.2.10 and Berkeley DB 4.1.25... > > We've run into problems the last few nights with corruption of the > duplicate delivery database (delivery.db). I tried disabling it, however > that caused processes to fail to communicate to the local lmtp sockets for > some reason. We do enjoy this feature, and disabling it was no the optimal > solution, so we would like to convert it to skiplist. Don't, you need fast lookups. When this file gets corrupted just move it out of the way between a stop and start. > Also, I noted in the man page that it also includes sieve in the > description for that option. I was unaware of any sieve database - where > is it (or is it old, left over from previous versions)? > > 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 Henk -- Henk Roose <[EMAIL PROTECTED]> CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) 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