[Dovecot] A little assistance with Sieve
cam at ellisonpsychology.ca
cam at ellisonpsychology.ca
Mon Apr 7 17:31:58 EEST 2008
> First of all, could you provide us with the output of 'dovecot -n' and,
> since you are talking ManageSieve manually to the server already, a
> listing of a protocol session (i.e. commands and responses)? And, if you
> enable mail_debug for the managesieve protocol, you will get messages in
> your logfile indicating where the sieve storage directory is located.
> This gives you the ability to check whether the scripts are actually
> stored as expected.
Output of dovecot -n:
# 1.0.13: /etc/dovecot/dovecot.conf
log_path(default): /var/log/dovecot/imaplog
log_path(imap): /var/log/dovecot/imaplog
log_path(managesieve): /var/log/dovecot/managesievelog
info_log_path(default): /var/log/dovecot/imaplog
info_log_path(imap): /var/log/dovecot/imaplog
info_log_path(managesieve): /var/log/dovecot/managesievelog
protocols: imap imaps managesieve
listen(default): *
listen(imap): *
listen(managesieve): *:2000
ssl_listen(default): *
ssl_listen(imap): *
ssl_listen(managesieve):
ssl_ca_file: /etc/openvpn/rsa/keys/ca.crt
ssl_cert_file: /etc/ssl/certs/server.crt
ssl_key_file: /etc/ssl/certs/server.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_access_groups: mail Debian-exim
default_mail_env: maildir:/var/mail/%u/Maildir
mail_location: maildir:/var/mail/%u/Maildir
mail_debug: yes
mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
sieve_storage(default):
sieve_storage(imap):
sieve_storage(managesieve): ~/sieve
sieve(default):
sieve(imap):
sieve(managesieve): ~/.dovecot.sieve
auth default:
debug: yes
passdb:
driver: pam
userdb:
driver: passwd
> About the relation with lda: the 'protocol managesieve' section is for
> the managesieve server and the 'protocol lda' section is for Dovecot's
> 'deliver' LDA. Deliver is what actually executes the Sieve script (using
> the Sieve plugin) and delivers the message accordingly. So, managesieve
> does not substitude the lda; it is run in addition to it.
OK. I've put that in.
Here's the latest managesieve session:
OK "Logged in."
CAPABILITY
"IMPLEMENTATION" "dovecot"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress
relational comparator-i;ascii-numeric regex"
OK "Capability completed."
PUTSCRIPT ".dovecot.sieve" {2049+}
LOGOUT
BYE "Server shutting down."
imap(root): Info: Server shutting down
imap(root): Error: sieve-storage:
o_stream_send_istream(/home/cam/sieve/tmp/.dovecot.sieve-1207578536.P26366Q0M617889.treehouse.sieve)
failed: Success
I got it to shut down with Ctrl-C
I do not understand the last message.
> Recently, I've started to write a wiki page for the managesieve daemon:
>
> http://wiki.dovecot.org/ManageSieve
That's where I went - very helpful indeed - and I copied what you have
there almost verbatim.
Here are the relevant bits of dovecot.conf:
protocol imap {
listen = *
ssl_listen = *
ssl_disable = no
login_executable = /usr/lib/dovecot/imap-login
mail_executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_plugin_dir = /usr/lib/dovecot/modules/imap
log_path = /var/log/dovecot/imaplog
info_log_path = /var/log/dovecot/imaplog
}
protocol lda {
postmaster_address = postmaster at ellisonpsychology.ca
sieve_global_path = /var/mail/.global.sieve
script_path = ~/.dovecot.sieve
mail_plugin_dir = /usr/lib/dovecot/modules/lda
mail_plugins = cmusieve
mail_debug = yes
log_path = /var/log/dovecot/deliverlog
info_log_path = /var/log/dovecot/deliverlog
}
protocol managesieve {
listen = *:2000
login_executable = /usr/lib/dovecot/managesieve-login
mail_executable = /usr/lib/dovecot/managesieve
sieve = ~/.dovecot.sieve
sieve_storage = ~/sieve
mail_debug = yes
log_path = /var/log/dovecot/managesievelog
info_log_path = /var/log/dovecot/managesievelog
}
Thank you very much for the help.
Cam
--
Cam Ellison, PhD RPsych (BC #01417)
Cam Ellison & Associates Ltd.
3446 Beach Avenue
Roberts Creek BC V0N 2W2
Phone 604.885.4806
Fax 694.885.4809
Cell 604.989.0635
More information about the dovecot
mailing list