[Dovecot] Sieve scripts not run
Hi
I have a dovecot/postfix mail server with virtual user and LDAP authentication but for some reason the sieve scripts in user's maildirs are not run. Here's my dovecot -n:
# 2.0.13: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.38-8-server x86_64 Ubuntu 11.04 auth_debug_passwords = yes auth_mechanisms = plain login auth_username_format = %Ln auth_verbose = yes base_dir = /var/run/dovecot/ first_valid_gid = 120 first_valid_uid = 111 hostname = mail.websovellukset.fi log_path = /var/log/dovecot.log login_greeting = Omnibyte Dovecot ready. mail_debug = yes mail_gid = vmail mail_location = /var/vmail/%n mail_uid = vmail maildir_stat_dirs = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size quota = maildir:User quota quota_rule = *:storage=2G quota_rule2 = Trash:storage=+200M sieve = /var/vmail/%n/dovecot.sieve sieve_dir = /var/vmail/%n/sieve } postmaster_address = postmaster@websovellukset.fi protocols = imap pop3 lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { group = postfix mode = 0600 user = postfix } user = $default_internal_user } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } process_min_avail = 0 service_count = 1 } service imap { process_limit = 1024 vsz_limit = 256 M } service managesieve-login { inet_listener sieve { port = 4190 } process_min_avail = 0 service_count = 1 vsz_limit = 64 M } ssl_cert =
I can telnet to the Managesieve server and it also works with Roundcube but whatever the sieve script contains, nothing happens. I've also looked into the logs but cannot find any errors related to this...
TIA Wexi
--
- Veikko "Wexi" Skurnik: +358(44)5288338 *
- wexi@wexin.net Wexi@IRCNet wexi79@skype *
- Rudolf Koivun tie 191 38250 Sastamala *
- "Kosminen balanssi ei saa järkkyä" *
Op 7-7-2011 10:30, Veikko "Wexi" Skurnik schreef:
I have a dovecot/postfix mail server with virtual user and LDAP authentication but for some reason the sieve scripts in user's maildirs are not run. Here's my dovecot -n: [...] I can telnet to the Managesieve server and it also works with Roundcube but whatever the sieve script contains, nothing happens. I've also looked into the logs but cannot find any errors related to this...
Are you using the Dovecot LDA or LMTP? Without one of those, Sieve scripts will not be applied.
http://wiki2.dovecot.org/LDA http://wiki2.dovecot.org/LMTP (you are at least running this one, but does postfix use it?)
If you are using LMTP, your config indicates that you have not enabled the sieve plugin for it. Then this is missing:
protocol lmtp { mail_plugins = "sieve" }
Regards,
Stephan.
On 7.7.2011 11:40, Stephan Bosch wrote:
Op 7-7-2011 10:30, Veikko "Wexi" Skurnik schreef:
I have a dovecot/postfix mail server with virtual user and LDAP authentication but for some reason the sieve scripts in user's maildirs are not run. Here's my dovecot -n: [...] I can telnet to the Managesieve server and it also works with Roundcube but whatever the sieve script contains, nothing happens. I've also looked into the logs but cannot find any errors related to this...
Are you using the Dovecot LDA or LMTP? Without one of those, Sieve scripts will not be applied.
http://wiki2.dovecot.org/LDA http://wiki2.dovecot.org/LMTP (you are at least running this one, but does postfix use it?)
If you are using LMTP, your config indicates that you have not enabled the sieve plugin for it. Then this is missing:
protocol lmtp { mail_plugins = "sieve" }
Hmm OK, turns out I wasn't using Dovecot's LDA but Postfix's. The attempt to switch to dovecot's LDA created another problem, now users cannot recieve email and the logs show an "user unknown" error. I believe it has something to do with the userdb lookups from LDAP, it's not matchin LDAP:s mail attribute to the username as the Postfix LDA did... Anyone have any experience with this problem? The passdb lookups work as I can log in an browse the mailboxes.
Wexi
--
- Veikko "Wexi" Skurnik: +358(44)5288338 *
- wexi@wexin.net Wexi@IRCNet wexi79@skype *
- Rudolf Koivun tie 191 38250 Sastamala *
- "Kosminen balanssi ei saa järkkyä" *
participants (2)
-
Stephan Bosch
-
Veikko "Wexi" Skurnik