[Dovecot] Sieve doesn't appear to be active
I'm hoping that this isn't something stupid and that I'm not wasting bandwidth here, but I'm stuck and don't know any further ways of debugging this. And most non-documentation, end-user created info I find is for 1.0 with cmusieve.
Running Dovecot 1.2.11 on Fedora Core 12. Added 'sieve' to 'mail_plugins'. Have enabled verbose logging with 'mail_debug = yes'. But I'm not seeing anything in the logs relating to sieve, and the sieve script I point to isn't being compiled (no .log file). Everything else works fine, this is a production system where I'm trying to add sieve support.
What steps can I take to troubleshoot?
Config files:
# dovecot -n
# 1.2.11: /etc/dovecot.conf # OS: Linux 2.6.31.6-166.fc12.i686.PAE i686 Fedora release 12 (Constantine) ext3 log_path: /var/log/dovecot/dovecot-err.log info_log_path: /var/log/dovecot/dovecot-info.log protocols: imap imaps pop3 pop3s managesieve ssl_cert_file: /etc/postfix/ssl/dovecot/certs/dovecot.pem ssl_key_file: /etc/postfix/ssl/dovecot/private/dovecot.pem disable_plaintext_auth: yes login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_executable(managesieve): /usr/libexec/dovecot/managesieve-login login_process_per_connection: no login_processes_count: 10 first_valid_gid: 5000 last_valid_gid: 5000 mail_uid: 5000 mail_gid: 5000 mail_location: maildir:/home/vmail/%d/%n/Maildir mail_debug: yes maildir_very_dirty_syncs: yes mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_executable(managesieve): /usr/libexec/dovecot/managesieve mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/managesieve lda: postmaster_address: postmaster@domain.com hostname: domain.com mail_plugins: sieve quota auth default: mechanisms: plain login apop user: nobody passdb: driver: sql args: /etc/postfix/dovecot.sql socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: vmail master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: /home/vmail/sieve-scripts/sieve.siv
/etc/postfix/dovecot.sql:
driver = mysql connect = host=/var/lib/mysql/mysql.sock dbname=postfix user=dovecot password=dovecot
user_query = SELECT concat('/home/vmail/', maildir) as home, concat('maildir:/home/vmail/', maildir) as mail, 5000 AS uid, 5000 AS gid, concat('maildir:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = '1'
password_query = SELECT username as user, password, concat('/home/vmail/', maildir) as userdb_home, concat('maildir:/home/vmail/', maildir) as userdb_mail, 5000 as userdb_uid, 5000 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1'
================= [root@sys ~]# cd /var/log/dovecot/ [root@sys dovecot]# grep -i sieve * dovecot-info.log:Jun 14 13:09:22 managesieve-login: Info: Disconnected (no auth attempts): rip=::1, lip=::1, secured
Only log entry from me telnetting to the managesieve port.
-- Darek
On 06/15/2010 05:01 PM Darek M wrote:
I'm hoping that this isn't something stupid and that I'm not wasting bandwidth here, but I'm stuck and don't know any further ways of debugging this. And most non-documentation, end-user created info I find is for 1.0 with cmusieve.
Running Dovecot 1.2.11 on Fedora Core 12. Added 'sieve' to 'mail_plugins'. Have enabled verbose logging with 'mail_debug = yes'. But I'm not seeing anything in the logs relating to sieve, and the sieve script I point to isn't being compiled (no .log file). Everything else works fine, this is a production system where I'm trying to add sieve support.
What steps can I take to troubleshoot? … # 1.2.11: /etc/dovecot.conf … lda: postmaster_address: postmaster@domain.com hostname: domain.com mail_plugins: sieve quota … path: /var/spool/postfix/private/auth … plugin: sieve: /home/vmail/sieve-scripts/sieve.siv … [root@sys ~]# cd /var/log/dovecot/ [root@sys dovecot]# grep -i sieve * dovecot-info.log:Jun 14 13:09:22 managesieve-login: Info: Disconnected (no auth attempts): rip=::1, lip=::1, secured
Only log entry from me telnetting to the managesieve port.
Hm, how are you delivering mails to the users' maildir? With Postfix's virtual? The Sieve plugin is designed for Dovecot's LDA (deliver). So you have to use dliver, in order to use the Sieve plugin. See also: http://wiki.dovecot.org/LDA/Postfix
Regards, Pascal
The trapper recommends today: decade.1016617@localdomain.org
On Tue, Jun 15, 2010 at 11:28 AM, Pascal Volk <user+dovecot@localhost.localdomain.org> wrote:
Hm, how are you delivering mails to the users' maildir? With Postfix's virtual? The Sieve plugin is designed for Dovecot's LDA (deliver). So you have to use dliver, in order to use the Sieve plugin. See also: http://wiki.dovecot.org/LDA/Postfix
Thanks for that. I had the dovecot transport but also Postfix's virtual in main.cf. A few changes and hair raising moments later (mainly leaving out virtual_domain_maps and watching a dozen loops per message) and sieve scripts were being recognized.
Thanks again!
- Darek
Regards, Pascal
participants (2)
-
Darek M
-
Pascal Volk