You are not logged in.

#1 2011-10-13 17:48:03

geekinthesticks
Member
From: England
Registered: 2011-09-21
Posts: 143
Website

[Solved] Dovecot Sieve Not Working

I am moving my server from Ubuntu to Arch. On Ubuntu I had sieve working fine with Dovecot. However, in arch mail doesn't seem to be getting processed by sieve. Here are the relevant settings from my dovecot.conf:


protocol lda {
postmaster_address = ian@wilkesley.net
hostname = wilkesley.org
sendmail_path = /usr/sbin/sendmail
mail_plugins = $mail_plugins sieve
sieve_dir = ~/
}

plugin {
  sieve_global_path = /home/vmail/globalsieverc

}

I have a .dovecot-sieve in my home directory. I am not getting any errors in the logs or any entries .dovecot.sieve.log. So what am I doing wrong?

Last edited by geekinthesticks (2011-10-17 08:17:05)

Offline

#2 2011-10-13 21:55:09

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: [Solved] Dovecot Sieve Not Working

'pacman -Sy pigeonhole' and read http://wiki2.dovecot.org/Upgrading/2.0
Have fun.


1000

Offline

#3 2011-10-15 07:37:26

geekinthesticks
Member
From: England
Registered: 2011-09-21
Posts: 143
Website

Re: [Solved] Dovecot Sieve Not Working

Thanks I had already got pigeonhole installed. I have read the wiki several times and now have:

protocols = imap sieve

protocol lda {
postmaster_address = ian@wilkesley.net
hostname = wilkesley.org
sendmail_path = /usr/sbin/sendmail
mail_plugins = $mail_plugins sieve

}

protocol sieve {
# Nothing here because the defaults should be OK.


}

plugin {
  sieve = ~/.dovecot.sieve
  sieve_global_path = /home/vmail/globalsieverc
  sieve_dir = ~/
}

I have created the sieve dir in the virtual users folder. However sieve doesn't appear to be working.

I have tried logging in manually to see if sieve is running, but get the following error:

ian:~/ $ gnutls-cli --starttls -p 143 mail2.wilkesley.net                                                          [8:32:22]
Resolving 'mail2.wilkesley.net'...
Connecting to '127.0.0.1:143'...

- Simple Client Mode:

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
STARTTLS
STARTTLS BAD Error in IMAP command received by server.

According to the Dovecot wiki this should reply with the capabilities of my server, Note the server sends and receives mail OK using starttls.

Last edited by geekinthesticks (2011-10-15 07:49:35)

Offline

#4 2011-10-17 08:16:45

geekinthesticks
Member
From: England
Registered: 2011-09-21
Posts: 143
Website

Re: [Solved] Dovecot Sieve Not Working

Finally got this working. For the benefit of other people to test the capabilities of the sieve server you need to:


  ian:~/ $ gnutls-cli --starttls -p 4190 mail2.wilkesley.net                                                         [7:25:42]
Resolving 'mail2.wilkesley.net'...
Connecting to '127.0.0.1:4190'...

- 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 ihave"
"NOTIFY" "mailto"
"SASL" "PLAIN"
"STARTTLS"
"VERSION" "1.0"
OK "Dovecot ready."
STARTTLS
OK "Begin TLS negotiation now."


The final problem was that I was using postfix as the LDA, rather than Dovecot.

Offline

Board footer

Powered by FluxBB