Contribute  :  Advanced Search  :  Directory  :  Forum  :  FAQ's  :  My Downloads  :  Links  :  Polls  
AFP548 Changing the world one server at a time.
Welcome to AFP548
Thursday, July 29 2010 @ 09:40 am MDT
   

Sieve on 10.4 Server

TipsAs you've probably realized.... Sieve needs a little help on Tiger.

I don't have a solution yet, but here's what's going on.

The bad news

1. It seems like timsieved won't authenticate. This is only partially correct. Timsieved doesn't advertise the authentication mechanisms that it supports correctly. As such most things won't connect to it.

However, you can login by hand, which gives us hope! I've rewritten the avelsieve libraries to handle this. I've also filed a bug with Apple on this. I'm happy to hand out the changes to avelsieve, but it's rather moot because.....

2. Timsieved is putting all of the scripts into /tmp. Not /tmp/sieve/userinitial/username. Just /tmp. So solve problem 1 and everyone gets the same scripts. Doh! Furthermore unless the scripts are in /usr/sieve Cyrus won't use them. So you can't even live with everyone having the same script.

i don't have a work around for this yet. I'm toying with recompiling timsieved from the Apple sources and we'll see what happens. I've also filed a bug on this.

And now the good news

1. Sieve scripts, if you had updated them to work on 10.3.9 as discussed in the forums, work on 10.4 no problems. Just make sure you have them in the right place and converted to binary.

2. Timsieved does authenticate against Open Directory. This is good news as it means once it gets fixed, you won't need any recompiled apps to work with this. Just configure and go.

Story Options

Advertising

Sieve on 10.4 Server | 35 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Sieve on 10.4 Server
Authored by: Anonymous on Saturday, May 14 2005 @ 12:47 pm MDT
On the upside, procmail works fine still :)
Sieve on 10.4 Server
Authored by: justyn.pride on Saturday, May 28 2005 @ 04:39 am MDT
Will the sieve article work on a fresh install of 10.4 server?
Sieve on 10.4 Server
Authored by: Anonymous on Saturday, June 18 2005 @ 03:13 pm MDT
On my 10.4 Server install, I don't even have a /usr/sieve directory. I just
switched to using Apples Server product. Guess I picked a bad time :-)

Thanks for your effort, Mac Troll. Please keep us posted, as I really need the
filtering right now. I just switched from procmail (Which I knew well) to Sieve
with 10.4 server. I have no clue as to how to do a "proper" sieve script install.
(But I will learn) None of the stuff I was doing seemed to work at all, so I was
glad to find this article.... If you can tell us how to get it working, it would be
great.

CKM
Sieve on 10.4 Server
Authored by: Peggaweng on Tuesday, June 28 2005 @ 03:35 am MDT
I really hope this one gets resolved soon... It is the only thing stopping me
making the move to 10.4 Server......
Sieve on 10.4 Server
Authored by: tytech on Friday, July 15 2005 @ 09:11 am MDT
Ok,
So reading through this and putting in laymans terms, on a fresh install of
10.4.2 server, the previously posted Sieve Installer for 10.3.x server will fail,
right?

Is there any hand-tweaking we can do to make it work besides going backwards
to 10.3.9 and updating to 10.4.x AFTER the Sieve installer solution?

Fun stuff, for sure...
-T
Sieve on 10.4 Server
Authored by: Anonymous on Monday, August 08 2005 @ 01:22 pm MDT
If you build it they will come!

I say:
- Give us the avelsieve modifications
- Tell us how to login into timsieved by hand (so we can tell users how to
make there own filters)
- Rebuild timsieved so that it dumps the scripts to the correct places, and
works with avelsieve in it's current config or your modified config.

BTW I have tried telnet -l username servername 2000 and I get a prompt
looking something like this:

Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.2.12-OS X 10.4.0"
"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress
relational comparator-i;ascii-numeric regex"
"STARTTLS"
OK

It seems like if you don't type -l username it does the same thing, is that
right?
Sieve on 10.4 Server
Authored by: Willem Lang on Thursday, March 23 2006 @ 10:20 am MST
Sieve still crashes....

We are running an Xserve with 10.4.5
Added the sieve to service
and after telnetting to localhost 2000 it starts crashing. See the log below. Ran Mailfbr and permissions fixes.....help.....

Anyone on this topic a clue where to look? willem@appleisp.nl

Mar 23 17:01:32 xserve sieve[28101]: DBERROR db4: fatal region error detected; run recovery
Mar 23 17:01:32 xserve sieve[28101]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Mar 23 17:01:33 xserve crashdump[28100]: crash report written to: /Library/Logs/CrashReporter/timsieved.crash.log
Mar 23 17:01:33 xserve crashdump[28102]: timsieved crashed
Mar 23 17:01:33 xserve crashdump[28102]: crash report written to: /Library/Logs/CrashReporter/timsieved.crash.log
Mar 23 17:01:44 xserve launchd: org.postfix.master: exited: Terminated
Mar 23 17:01:46 xserve master[28118]: process started
Mar 23 17:01:47 xserve ctl_cyrusdb[28119]: verifying cyrus databases
Mar 23 17:01:47 xserve ctl_cyrusdb[28119]: skiplist: recovered /var/imap/mailboxes.db (20 records, 3512 bytes) in 0 seconds
Mar 23 17:01:47 xserve ctl_cyrusdb[28119]: skiplist: recovered /var/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Mar 23 17:01:47 xserve ctl_cyrusdb[28119]: done verifying cyrus databases
Mar 23 17:01:47 xserve master[28118]: ready for work
Mar 23 17:01:47 xserve ctl_cyrusdb[28120]: checkpointing cyrus databases
Mar 23 17:01:47 xserve ctl_cyrusdb[28120]: done checkpointing cyrus databases
Mar 23 17:07:31 xserve sudo: root : TTY=unknown ; PWD=/ ; USER=cyrusimap ; COMMAND=/usr/bin/cyrus/bin/cyrus-quota -r
Mar 23 17:07:38 xserve sudo: root : TTY=unknown ; PWD=/ ; USER=cyrusimap ; COMMAND=/usr/bin/cyrus/bin/ctl_cyrusdb -r
Mar 23 17:07:39 xserve ctl_cyrusdb[28175]: verifying cyrus databases
Mar 23 17:07:39 xserve ctl_cyrusdb[28175]: skiplist: recovered /var/imap/mailboxes.db (20 records, 3512 bytes) in 0 seconds
Mar 23 17:07:39 xserve ctl_cyrusdb[28175]: skiplist: recovered /var/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Mar 23 17:07:39 xserve ctl_cyrusdb[28175]: done verifying cyrus databases
Mar 23 17:07:39 xserve sudo: root : TTY=unknown ; PWD=/ ; USER=cyrusimap ; COMMAND=/usr/bin/cyrus/bin/cyrus-quota -r
Mar 23 17:07:58 xserve sieve[28179]: DBERROR db4: fatal region error detected; run recovery
Mar 23 17:07:58 xserve sieve[28179]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Mar 23 17:07:58 xserve master[28118]: process 28179 exited, signaled to death by 10
Mar 23 17:07:58 xserve master[28118]: service sieve pid 28179 in READY state: terminated abnormally
Mar 23 17:07:58 xserve crashdump[28180]: timsieved crashed

Mar 23 17:08:12 xserve sieve[28329]: DBERROR db4: fatal region error detected; run recovery
Mar 23 17:08:12 xserve sieve[28329]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Mar 23 17:08:12 xserve crashdump[28328]: crash report written to: /Library/Logs/CrashReporter/timsieved.crash.log
Mar 23 17:08:12 xserve master[28118]: process 28329 exited, signaled to death by 10
Mar 23 17:08:12 xserve master[28118]: service sieve pid 28329 in READY state: terminated abnormally
Mar 23 17:08:12 xserve crashdump[28330]: timsieved crashed
Mar 23 17:08:12 xserve sieve[28331]: DBERROR db4: fatal region error detected; run recovery
Mar 23 17:08:12 xserve sieve[28331]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Mar 23 17:08:12 xserve crashdump[28330]: crash report written to: /Library/Logs/CrashReporter/timsieved.crash.log
Mar 23 17:08:13 xserve crashdump[28332]: timsieved crashed
Mar 23 17:08:13 xserve crashdump[28332]: crash report written to: /Library/Logs/CrashReporter/timsieved.crash.log
Mar 23 17:08:20 xserve launchd: org.postfix.master: exited: Terminated
Mar 23 17:08:22 xserve master[28349]: process started
Mar 23 17:08:23 xserve ctl_cyrusdb[28350]: verifying cyrus databases
Mar 23 17:08:23 xserve ctl_cyrusdb[28350]: skiplist: recovered /var/imap/mailboxes.db (20 records, 3512 bytes) in 0 seconds
Mar 23 17:08:23 xserve ctl_cyrusdb[28350]: skiplist: recovered /var/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Mar 23 17:08:23 xserve ctl_cyrusdb[28350]: done verifying cyrus databases
Mar 23 17:08:23 xserve master[28349]: ready for work
Mar 23 17:08:23 xserve ctl_cyrusdb[28351]: checkpointing cyrus databases
Mar 23 17:08:23 xserve ctl_cyrusdb[28351]: done checkpointing cyrus databases
Mar 23 17:09:42 xserve sudo: root : TTY=unknown ; PWD=/ ; USER=cyrusimap ; COMMAND=/usr/bin/cyrus/bin/cyrus-quota -r
Mar 23 17:10:58 xserve sudo: root : TTY=unknown ; PWD=/ ; USER=cyrusimap ; COMMAND=/usr/bin/cyrus/bin/cyrus-quota -r
Mar 23 17:12:13 xserve sudo: root : TTY=unknown ; PWD=/ ; USER=cyrusimap ; COMMAND=/usr/bin/cyrus/bin/cyrus-quota -r
Mar 23 17:13:30 xserve sudo: root : TTY=unknown ; PWD=/ ; USER=cyrusimap ; COMMAND=/usr/bin/cyrus/bin/cyrus-quota -r
Mar 23 17:14:46 xserve sudo: root : TTY=unknown ; PWD=/ ; USER=cyrusimap ; COMMAND=/usr/bin/cyrus/bin/cyrus-quota -r
Mar 23 17:16:03 xserve sudo: root : TTY=unknown ; PWD=/ ; USER=cyrusimap ; COMMAND=/usr/bin/cyrus/bin/cyrus-quota -r

**********

Host Name: xserve
Date/Time: 2006-03-23 17:08:12.959 +0100
OS Version: 10.4.5 (Build 8H14)
Report Version: 4

Command: timsieved
Path: /usr/bin/cyrus/bin/timsieved
Parent: master [28118]

Version: ??? (???)

PID: 28331
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000000c

Thread 0 Crashed:
0 timsieved 0x00022018 prot_printf + 24 (prot.c:656)
1 timsieved 0x00004f64 fatal + 88 (timsieved.c:175)
2 timsieved 0x000173d0 mboxlist_init + 136 (mboxlist.c:2320)
3 timsieved 0x00004f88 service_init + 20 (timsieved.c:191)
4 timsieved 0x00002d3c main + 1096 (service.c:385)
5 timsieved 0x000021e0 _start + 392 (crt.c:267)
6 timsieved 0x00002054 start + 48

Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000000022018 srr1: 0x100000000000f030 vrsave: 0x0000000000000000
cr: 0x24000032 xer: 0x0000000020000000 lr: 0x0000000000022010 ctr: 0x000000009001ff14
r0: 0x0000000000004f64 r1: 0x00000000bffff0e0 r2: 0x000000000003b5b0 r3: 0x0000000000000000
r4: 0x0000000000031a74 r5: 0x0000000000034050 r6: 0x0000000000000000 r7: 0x0000000000000000
r8: 0x0000000000000000 r9: 0x000000000000004b r10: 0x0000000000000000 r11: 0x00000000a0006910
r12: 0x000000009001ff14 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
r16: 0x00000000bffffeec r17: 0x000000000000003c r18: 0x00000000000000fa r19: 0x0000000000042900
r20: 0x0000000000000000 r21: 0x0000000000000000 r22: 0x00000000a0011ae8 r23: 0x0000000000042900
r24: 0x00000000003001b0 r25: 0x0000000000000001 r26: 0x00000000003001e0 r27: 0x0000000000000001
r28: 0x00000000bffffee4 r29: 0x000000000004d660 r30: 0x000000000003a310 r31: 0x0000000000022010

Binary Images Description:
0x1000 - 0x39fff timsieved /usr/bin/cyrus/bin/timsieved
0x205000 - 0x299fff libdb-4.1.dylib /usr/lib/libdb-4.1.dylib
0x8fe00000 - 0x8fe54fff dyld 44.2 /usr/lib/dyld
0x90000000 - 0x901b3fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x9020b000 - 0x9020ffff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x919c4000 - 0x91a8cfff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x94cdc000 - 0x94cecfff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
0x94cf0000 - 0x94d1ffff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib