You are not logged in.

#1 2015-06-10 13:48:18

Akronos
Member
Registered: 2012-09-16
Posts: 7

[SOLVED] Rouncube can't connect managesieve server

Hello,

I just see that I can't create anymore filters on roundcube. I have the error message:

Unable to connect to server

And in dovecot logs:

Jun 10 15:25:03 ***host name*** dovecot[10510]: managesieve(contact@***domain name***): Error: Couldn't load required plugin /usr/lib/dovecot/modules/lib90_sieve_plugin.so: Can't load plugin sieve_plugin: Plugin is intended to be used only by binaries: lda lmtp (we're managesieve)
Jun 10 15:25:03 ***host name*** dovecot[10510]: managesieve(contact@***domain name***): Error: Internal error occurred. Refer to server log for more information.

Here is my configurations files:

[***user***@***host name***: /etc/dovecot]$ doveconf -n
# 2.2.18: /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.8 (0c4ae064f307+)
# OS: Linux 3.10.23-xxxx-grs-ipv6-64 x86_64 Arch Linux ext4
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_@
auth_verbose = yes
auth_verbose_passwords = plain
login_greeting = Everything gonna be alright.
mail_debug = yes
mail_gid = 5003
mail_location = maildir:/var/mail/vhosts/%d/%n
mail_privileged_group = vmail
mail_uid = 5003
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 index ihave duplicate
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  sieve = file:/var/mail/vhosts/%d/%n/dovecot.sieve
  sieve_dir = /var/mail/vhosts/%d/%n/sieve
}
protocols = lmtp imap pop3 sieve
service auth-worker {
  user = vadmin
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
  unix_listener auth-userdb {
    mode = 0600
    user = vadmin
  }
  user = dovecot
}
service imap-login {
  inet_listener imap {
    port = 0
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
service pop3-login {
  inet_listener pop3 {
    port = 0
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
ssl = required
ssl_ca = </etc/httpd/conf/privkey.pem
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  args = uid=vadmin gid=vmail home=/var/mail/vhosts/%d/%n
  driver = static
}
verbose_ssl = yes
protocol lmtp {
  info_log_path = /var/log/dovecot-lmtp.log
  mail_plugins = sieve
  postmaster_address = postmaster@***domain name***
}
protocol sieve {
  mail_plugins = sieve
}

I thinks it's relative to

Can't load plugin sieve_plugin: Plugin is intended to be used only by binaries: lda lmtp (we're managesieve)

But I can't figure out... What I understand is:

Managesieve says: hey buddy, I want to look sieve_plugin but I can't because binarie allow lda and lmtp but not me (managesieve).

However, protocol sieve has access to mail_plugins, and it's impossible to rename the protocol to managesieve (it's deprecated and renamed by dovecot service)... If anyone got an idea...

[***user**@***host name***: /etc/dovecot]$ gnutls-cli --starttls -p 4190 *** net_ip ***
Processed 189 CA certificate(s).
Resolving '*** net_ip ***'...
Connecting to '*** net_ip ***'...

- Simple Client Mode:

"IMPLEMENTATION" "Dovecot Pigeonhole"
"SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate"
"NOTIFY" "mailto"
"SASL" "PLAIN LOGIN"
"STARTTLS"
"VERSION" "1.0"
OK "Everything gonna be alright."

Packages version:

Dovecot version: dovecot 2.2.18
Pigeonhole version: pigeonhole 0.4.8
RoundCubeMail verison: roundcubemail 1.1.2

Last edited by Akronos (2015-06-11 12:20:14)

Offline

#2 2015-06-11 12:19:53

Akronos
Member
Registered: 2012-09-16
Posts: 7

Re: [SOLVED] Rouncube can't connect managesieve server

Okey,

According to the Pigeonhole/ManageSieve documentation:

The only thing you need to do to activate the ManageSieve protocol support in Dovecot is to add sieve to the protocols= configuration line in your dovecot.conf

So, I remove sieve from the mail_plugins directive on lmtp, lda and sieve protocols section.

Everything's ok now.

Offline

Board footer

Powered by FluxBB