[Dovecot] MANAGESIEVE patch v8 for dovecot 1.0.7
Hello dovecot users,
I have updated the MANAGESIEVE patch to the latest stable version of dovecot (1.0.7). This new version also adds extra configuration settings to explicitly specify the location of the sieve storage and the active sieve script. Additionally, the README now more clearly explains the configuration of the daemon.
It currently won't compile with 1.1 due to significant changes in the master code. However, because 1.1 now approaches a stable release, the next version is going to be updated to version 1.1.
Change Log V8
- Fixed a few incompatibilities with 1.0.7 version. For instance, the "Logged in" message is now sent by the -login process and not by the managesieve daemon anymore. This caused a segfault every once in a while.
- Probably fixed the settings problem reported by Steffen Kaiser regarding login_dir. 'dovecot -n' now reports correct results, but testing will show whether the whole problem is solved.
- The managesieve daemon now accepts the sieve_storage and sieve configuration settings, so it is now possible to explicitly configure the location of the sieve storage and the active script respectively. The daemon still falls back to using the mail_location (MAIL) settings if nothing else is specified.
- The cyrus timsieved does not use the + character in string literals and many clients have adopted to this behaviour. The latest managesieve (08) advises to accept a missing + from clients. The server should not send any + characters as well. This behavior is now implemented on the server.
- Cleaned up sieve-storage.c: split up the sieve_storage_create function in various sub-functions for obtaining the various paths and directories.
- Forced manual intervention if rescueing a non-symlink file at the active script path fails somehow. Previously, this presented the admin with a log message that it had just eaten the script, which is not very nice.
- Restructured the README.managesieve file and added some more explanation with regard to the configuration of the daemon.
This patch still includes (yet another) instance of the CMU Sieve source, as explained in one of my previous e-mails (http://dovecot.org/list/dovecot/2006-July/015016.html).
The patch can be downloaded at:
http://sinas.rename-it.nl/~sirius/dovecot-1.0.7-MANAGESIEVE-v8.diff.gz
The README.managesieve is located in the root of the dovecot source tree after applying the patch.
Have fun testing the patch. Don't hesitate to notify me when there are problems.
Regards,
-- Stephan Bosch stephan@rename-it.nl IRC: Freenode, #dovecot, S[r]us
hi,
i just prepared a testcase rpm for it.
how do you enable ssl/tls support? how do you make sure that only ssl/tls is used for non secure sockets? (same policy as the dovecot imap config)
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Marcus Rueckert wrote:
hi,
i just prepared a testcase rpm for it.
how do you enable ssl/tls support? how do you make sure that only ssl/tls is used for non secure sockets? (same policy as the dovecot imap config)
As it is a protocol like imap and pop3 in dovecot and works the same way it uses the settings form dovecot.conf.
-- andreas
darix
-- http://www.cynapses.org/ - cybernetic synapses
Andreas Schneider schreef:
Marcus Rueckert wrote:
i just prepared a testcase rpm for it.
how do you enable ssl/tls support? how do you make sure that only ssl/tls is used for non secure sockets? (same policy as the dovecot imap config)
As it is a protocol like imap and pop3 in dovecot and works the same way it uses the settings form dovecot.conf.
I answered this one through IRC already, but for future reference I'll post it here as well. Like you said, the configuration of SSL/TLS is pretty much the same as the other two mail daemons. However, note that managesieve does explicitly not support an imaps/pop3s equivalent, so the use of STARTTLS is mandatory. The use of an SSL layer from the start of a session is not documented in the specification of managesieve, nor required/supported by any client I have seen so far. That's why I've left that functionality out, though implementing it would be trivial.
Marcus also noted that it would be wise to add the configuration of managesieve to the dovecot-example.conf in the patch. The next release will include this.
Regards,
Stephan.
Stephan Bosch wrote:
Hello dovecot users,
Hi Stephan,
Have fun testing the patch. Don't hesitate to notify me when there are problems.
I've configured horde today and if I try to access managesieve it segfaults.
dovecot-infolog: dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): Effective uid=150, gid=12, home=/srv/mail/homes/mail@cynapses.org/ dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): sieve-storage: using mail-data: maildir:/srv/mail/mail@cynapses.org/ dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): sieve-storage: using active sieve script path: ~/.dovecot.sieve dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): sieve-storage: using sieve script storage directory: /srv/mail/mail@cynapses.org//sieve dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): sieve-storage: relative path to sieve storage in active link: /srv/mail/mail@cynapses.org//sieve/ dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): Disconnected
messages: Nov 2 14:09:49 milliways kernel: managesieve-log[24857]: segfault at 0000000000000000 rip 0000000000000000 rsp 00007fffaf9e6398 error 14
How can I help to debug it?
-- andreas
-- http://www.cynapses.org/ - cybernetic synapses
On Fri, 2 Nov 2007, Andreas Schneider wrote:
Stephan Bosch wrote:
Hello dovecot users,
Hi Stephan,
Have fun testing the patch. Don't hesitate to notify me when there are problems.
I've configured horde today and if I try to access managesieve it segfaults.
dovecot-infolog: dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): Effective uid=150, gid=12, home=/srv/mail/homes/mail@cynapses.org/ dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): sieve-storage: using mail-data: maildir:/srv/mail/mail@cynapses.org/ dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): sieve-storage: using active sieve script path: ~/.dovecot.sieve dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): sieve-storage: using sieve script storage directory: /srv/mail/mail@cynapses.org//sieve dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): sieve-storage: relative path to sieve storage in active link: /srv/mail/mail@cynapses.org//sieve/ dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE(mail@cynapses.org): Disconnected
messages: Nov 2 14:09:49 milliways kernel: managesieve-log[24857]: segfault at 0000000000000000 rip 0000000000000000 rsp 00007fffaf9e6398 error 14
How can I help to debug it?
I guess you could attach gdb to the managesieve process. See http://wiki.dovecot.org/MainConfig?highlight=%28gdb%29 .
-- Asheesh.
-- To err is human, To purr feline. -- Robert Byrne
Asheesh Laroia schreef:
On Fri, 2 Nov 2007, Andreas Schneider wrote:
messages: Nov 2 14:09:49 milliways kernel: managesieve-log[24857]: segfault at 0000000000000000 rip 0000000000000000 rsp 00007fffaf9e6398 error 14
How can I help to debug it?
I guess you could attach gdb to the managesieve process. See http://wiki.dovecot.org/MainConfig?highlight=%28gdb%29 . We're working on that already. Turns out to be code-duplication-related again. Something has changed in the authentication handling. Should get an update tomorrow.
Regards,
Stephan.
participants (4)
-
Andreas Schneider
-
Asheesh Laroia
-
Marcus Rueckert
-
Stephan Bosch