Can anyone please help me configuring the Managesieve plugin.
RC 0.9-git is installed successfully.
Dovecot config
dovecot -n
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-27-virtual i686 Ubuntu 12.04 LTS
mail_location = maildir:~/Maildir
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 ihave
passdb {
driver = pam
}
plugin {
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
}
protocols = " imap sieve"
service managesieve-login {
inet_listener sieve {
port = 4190
}
service_count = 1
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
driver = passwd
}
protocol sieve {
managesieve_implementation_string = Dovecot Pigeonhole
}
Logs
[27-Jul-2012 16:05:43 +0200]: S: "IMPLEMENTATION" "Dovecot Pigeonhole"
[27-Jul-2012 16:05:43 +0200]: S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave"
[27-Jul-2012 16:05:43 +0200]: S: "NOTIFY" "mailto"
[27-Jul-2012 16:05:43 +0200]: S: "SASL" "PLAIN"
[27-Jul-2012 16:05:43 +0200]: S: "STARTTLS"
[27-Jul-2012 16:05:43 +0200]: S: "VERSION" "1.0"
[27-Jul-2012 16:05:43 +0200]: S: OK "Dovecot ready."
[27-Jul-2012 16:05:43 +0200]: C: CAPABILITY
I am able to create and change my filters, but they are just not effective.
looks like you are missing the config like to tell dovecot to use sieve............ check this http://wiki.dovecot.org/LDA/Sieve#Installation_and_configuration
Quote from: JohnDoh on July 28, 2012, 07:17:52 AM
looks like you are missing the config like to tell dovecot to use sieve............ check this http://wiki.dovecot.org/LDA/Sieve#Installation_and_configuration
Thanks for your help. I know it's a bit off topic, but I just don't get any further. It seems as if my logs tell me sieve works fine, but a simple rule to move a message to a folder test when the subject contains test still doesn't work.
I've been running around in circles, so hopefully you can point into the right direction.
mail mail 06:32:09 qmgr postfix/qmgr[2791]: ED13D388: removed
mail mail 06:32:09 local postfix/local[10131]: ED13D388: to=, relay=local, delay=0.8, delays=0.79/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver)
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): sieve: msgid=: stored mail into mailbox INBOX\'
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): Debug: sieve: executing script from /home/JOHNDaH/.dovecot.sieve
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): Debug: sieve: script /home/JOHNDaH/.dovecot.sieve successfully compiled
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): Debug: sieve: opening script /home/JOHNDaH/.dovecot.sieve
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): Debug: sieve: using sieve path for users script: /home/JOHNDaH/.dovecot.sieve
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): Debug: Destination address: [email protected] (source: user@hostname)
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): Debug: none: root=, index=, control=, inbox=, alt=
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): Debug: userdb lookup skipped, username taken from USER environment
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): Debug: maildir++: root=/home/JOHNDaH/Maildir, index=, control=, inbox=/home/JOHNDaH/Maildir, alt=
mail mail 06:32:09 dovecot dovecot: lda(JOHNDaH): Debug: Effective uid=1000, gid=1000, home=/home/JOHNDaH
mail mail 06:32:09 dovecot dovecot: lda: Debug: Module loaded: /usr/lib/dovecot/modules/lib90_sieve_plugin.so
mail mail 06:32:09 dovecot dovecot: lda: Debug: Loading modules from directory: /usr/lib/dovecot/modules
hi, i think you probably need to ask in the dovecot community not here for the best help
Quote from: JohnDoh on July 29, 2012, 04:34:14 AM
hi, i think you probably need to ask in the dovecot community not here for the best help
To cut a long story short: A search in the Dovecot Nable mailinglist came up with this: http://old.nabble.com/forum/ViewPost.jtp?post=34036464&framed=y
I had to put
require "mailbox";
At the beginning of the script, so:
require "mailbox";
require ["fileinto"];
# rule:[Test]
if false # header :contains "Subject" "test"
{
fileinto "Test";
stop;
}
Is this because of my dovecot/sieve config or should that part have been in the script in the first place?
As it is now, I will have to edit my sieve scripts manually in order to get them working. Do I need to change my configuration, or will this be change in the RC ManageSieve plugin?
After changing to Roundcube-Plugin-SieveRules-Managesieve the rules work without a problem.