Well, it has been fun. The instructions were mostly good, a little outdated. One big problem I ran into was when uncommenting the lines in /etc/dovecot/conf.d/20-managesieve.conf I did not catch the trailing bracket for the service managesieve-login section which resulted in plugin errors in other conf’s.
I also had to additionally add sieve to the plugins line in /etc/dovecot/dovecot.conf in order to actually start the sieve plugin, now I can see dovecot listening on 4190 when I use netstat. My plugins line:
plugins = imap sieve
Since I am using Thunderbird as my client, I grabbed the sieve plugin v0.2.2 at addons.mozilla.org, but it would not connect. I ended up going to the addon home page and from there to the development builds at github (https://github.com/thsmi/sieve/blob/master/nightly/README.md) where I grabbed 0.2.3h which attempted to connect but I am now getting “Server terminated unexpectedly the connection, click on recconect to try again.”
Not too sure where to go from here. As far as I can tell, everything is running properly, dovecot is not generating any errors, and I see no connection attempts in mail.log, syslog, mail.err, procmail.log, auth.log, or thunderbirds error console.
Any ideas would be helpful if anybody can think of anything. It would be a most useful plugin if I can get it working.
[EDIT] I have found out that when I log into port 4190 with gnutls-cli, I get the following:
“IMPLEMENTATION” “Dovecot (Ubuntu) Pigeonhole”
“SIEVE” “fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave”
“NOTIFY” “mailto”
“SASL” “”
“STARTTLS”
“VERSION” “1.0”
OK “Dovecot (Ubuntu) ready.”
AUTHENTICATE “PLAIN”
NO (ALERT) “Plaintext authentication disabled.”
/etc/dovecot/dovecot.conf has the following setting:
auth default {
auth_mechanisms = plain login
}
Thunderbird mail can log in to email accounts without problem, but the sieve side is obviously having problems.
[EDIT 2] I have found that I can log in from localhost successfully and managesieve reports:
“SASL” “PLAIN LOGIN”
but if I log in from any other host managesieve reports:
“SASL” “”
and the login fails with the “Plaintext authentication disabled”.
The good news is that everything else seems to be good although I have not tested an actual script other than to put it on the server from the telnet login.
[FINAL EDIT} Everything was solved once I opened the port in the firewall. Works flawlessly, setting up rules now through thunderbird!