[Dovecot] dovecot, sieve and vacation
Hi there !
Have a small problem with sieve and vacation: it seems to descard the vacation filter I created instead of sending back an email:
Mar 20 11:56:28 hostname dovecot: deliver(virtual_user): sieve: msgid=unspecified: discarding vacation response for message implicitly delivered to virtual_user@hostname
after searching a bit on the net, I stumbled on another (old) thread: http://www.mail-archive.com/dovecot@dovecot.org/msg25955.html
I'm not really sure it's the same problem, as I'm sending the mail from another host (via telnet, for testing purpose).
Other sieve rules (such as flagging, moving and so on) work fine. Only vacation is crapy.
Here's the roundcube generated rule: require ["vacation"];
if true { vacation :days 2 "on holidays!"; }
Any help welcome :)
Cheers,
C.
Informations: # 1.2.15: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-6-pve i686 Debian 6.0.4 simfs log_timestamp: %Y-%m-%d %H:%M:%S protocols: imaps pop3s managesieve listen(default): * listen(imap): * listen(pop3): * listen(managesieve): localhost:2000 ssl_cipher_list: ALL:!LOW:!SSLv2 login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login first_valid_uid: 8 mail_privileged_group: mail mail_uid: mail mail_gid: mail mail_location: maildir:/var/local/vmail/%n mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 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(pop3): /usr/lib/dovecot/modules/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve managesieve_logout_format(default): bytes=%i/%o managesieve_logout_format(imap): bytes=%i/%o managesieve_logout_format(pop3): bytes=%i/%o managesieve_logout_format(managesieve): bytes ( in=%i : out=%o ) lda: postmaster_address: foo@bar.com mail_plugins: sieve auth default: mechanisms: plain login user: mail passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf.ext userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf.ext socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: mail master: path: /var/run/dovecot/auth-master mode: 432 user: postfix group: mail plugin: home: /var/local/vmail/%u sieve: /var/local/vmail/%n/.dovecot.sieve sieve_dir: /var/local/vmail/%n/sieve sieve_extensions: +notify +imapflags
Op 3/20/2012 12:05 PM, Cedric Jeanneret schreef:
Hi there !
Have a small problem with sieve and vacation: it seems to descard the vacation filter I created instead of sending back an email:
Mar 20 11:56:28 hostname dovecot: deliver(virtual_user): sieve: msgid=unspecified: discarding vacation response for message implicitly delivered tovirtual_user@hostname
The vacation action will not send a response when the envelope-to address (in your case virtual_user@hostname) is not contained in the To: or Cc: headers of the message itself; the message needs to be explicitly addressed to the recipient. For the version you are using this needs to match the final recipient as passed to Dovecot. In newer versions of the Pigeonhole Sieve implementation the original SMTP envelope recipient (i.e. before local rewrites) can also be used instead. Alternatively, new versions allow disabling this behavior entirely, although this is not recommended.
Regards,
Stephan.
On Tue, 20 Mar 2012 15:16:21 +0100 Stephan Bosch stephan@rename-it.nl wrote:
Op 3/20/2012 12:05 PM, Cedric Jeanneret schreef:
Hi there !
Have a small problem with sieve and vacation: it seems to descard the vacation filter I created instead of sending back an email:
Mar 20 11:56:28 hostname dovecot: deliver(virtual_user): sieve: msgid=unspecified: discarding vacation response for message implicitly delivered tovirtual_user@hostname
The vacation action will not send a response when the envelope-to address (in your case virtual_user@hostname) is not contained in the To: or Cc: headers of the message itself; the message needs to be explicitly addressed to the recipient. For the version you are using this needs to match the final recipient as passed to Dovecot. In newer versions of the Pigeonhole Sieve implementation the original SMTP envelope recipient (i.e. before local rewrites) can also be used instead. Alternatively, new versions allow disabling this behavior entirely, although this is not recommended.
Regards,
Stephan.
Hello,
thanks for the hint. In fact, I have to add the address aliases in the rule, and it works. Not really cool, but it works like that :).
Cheers,
C.
participants (2)
-
Cedric Jeanneret
-
Stephan Bosch