[Dovecot] Dovecot + Sieve does not work
Hi,
On my Debian Squeeze server I installed Dovecot 1.2.16 from http://xi.rename-it.nl/debian/ and configured as follow:
dovecot -n
1.2.16: /etc/dovecot/dovecot.conf
OS: Linux 2.6.26-110209 i686 Debian 6.0 ext3
log_path: /var/log/dovecot.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap sieve disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login first_valid_uid: 100 mail_privileged_group: postfix mail_location: maildir:/home/virtual/%d/%n mbox_write_locks: fcntl dotlock imap_client_workarounds: outlook-idle lda: postmaster_address: postmaster@7girello.net mail_plugins: sieve log_path: /var/log/dovecot-deliver.log info_log_path: /var/log/dovecot-deliver.log auth default: mechanisms: plain login user: postfix passdb: driver: sql args: /etc/dovecot/dovecot-mysql.conf userdb: driver: sql args: /etc/dovecot/dovecot-mysql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: virtual group: virtual plugin: sieve: /home/virtual/%d/%n/.dovecot.sieve sieve_dir: /home/virtual/%d/%n/sieve/
After that in Roundcube 0.5.1 downloaded from http://roundcube.net/ I enabled the managesieve plugin but when I go to the filter page RC says that he cannot connect the server. I then realized that the port 4190 is not open and I cannot understand why.
In my dovecot.conf I have the section: protocol managesieve {
Specify an alternative address:port the daemon must listen on
(default: *:2000)
listen = localhost:4190 }
that is not shown in the output of 'dovecot -n'.
Did I missed something?
Thanks in advance
jimmi
Hi,
On Wed, 09 Mar 2011 14:33:56 +0100, Jimmi wrote:
The protocol is managesieve, not sieve. Look at http://wiki1.dovecot.org/ManageSieve/Configuration
Edit the config.inc.php from the managesieve roundcube plugin and change the managesieve_port. The default port is here also 2000.
Regards, Carsten
On Wed, Mar 09, 2011 at 03:08:00PM +0100, Uppenbrink wrote:
Quite some time ago IANA assigned tcp port 4190 for sieve (tcp and udp port 2000 is assaigned to cisco-sccp for yonks):
% egrep 'sieve|2000/tcp' /etc/services cisco-sccp 2000/tcp # Cisco SCCP sieve 4190/tcp # ManageSieve Protocol
Dennis
Citando Uppenbrink <info@uppenbrink.net>:
The protocol is managesieve, not sieve.
In fact I had this protocol specified at the beginning, and dovecot
was not starting with an error I could not understand. After that I
changed to sieve and it started smoothly. Now checking carrefully I
realized that another non-standard daemon was listening on the port
2000. I moved the latter to another port, changed back the protocol to
managesieve, and now works :)
Strange enough the protocol option works, and now managesieve is
listening on the port 4190. It means that at start Dovecot check the
availability of the port 2000 although a different port is specified?
However another problem comes: with roundcube I created a rule, that
was correctly stored in the user's sieve directory in roundcube.sieve
as follow:
require ["fileinto"];
rule:[MyMail]
if anyof (header :contains "From" "mymail") { fileinto "Mymail"; stop; }
and the emails coming from mymail domain simply disappear, leaving the
box Mymail empty.
I could not find anything strange in the logs: how t otrace the problem?
Thanks again :)
Jimmi
On Wed, 09 Mar 2011 16:55:51 +0100, Jimmi wrote:
Postfix uses not the dovecot deliver as the LDA? It is important that Dovecot deliver stores the mail in the mailboxes. Look at http://wiki.dovecot.org/LDA/Postfix
check the logs for something like this: dovecot: deliver(info): sieve: msgid=<20110309165551.15324os69xdf8ikg@posta.7girello.net>: stored mail into mailbox 'Dovecot' postfix/local[21898]: 4584431F2DEC: (delivered to command: /usr/lib/dovecot/deliver)
Regards, Carsten
Citando Uppenbrink <info@uppenbrink.net>:
Postfix uses not the dovecot deliver as the LDA? It is important
that Dovecot deliver stores the mail in the mailboxes.
Postfix use Dovecot, and is working nice since years :)
check the logs for something like this:
I may read only:
Mar 9 17:10:05 server postfix/pipe[14014]: 8081115DF79:
to=<MyAddress@MyDomain>, relay=dovecot, delay=0.28, delays=0.01
/0.02/0/0.25, dsn=2.0.0, status=sent (delivered via dovecot service)
Mar 9 17:10:05 server postfix/qmgr[2470]: 8081115DF79: removed
As all the other received mails. I'll try increasing the dovecot's
logging level.
Jimmi
I did nothing and now it works! Donno', sorry for the noise ;)
BTW, in the dovecot-deliver.log I found: Info: sieve: msgid=<OFAB04DF1A.DF5BAE30-ONC125784F.0026E8E2-C125784F.0026ECEB@XXX.XXX>: stored mail into mailbox 'Mymail'
jimmi
participants (3)
-
Dennis Guhl
-
Jimmi
-
Uppenbrink