Discussion:
[Dovecot] Problem with Sieve Vacation
Birger Schacht
2010-09-07 09:54:20 UTC
Permalink
Hi,

dovecot version 1.2.12 on freebsd 7.0 with dovecot-sieve-1.2+0.1.17

I have users in ldap and aliases in /etc/aliases and i use postfix.
There is an alias testuser at hostname for tuser at hostname. When tuser uses
sieve vacation and uses the :addresses options with his email address
(tuser at hostname), the response is also sent, if a mail to
testuser at hostname is sent.
in the postfix master.cf the line for deliver is
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f
${sender} -d ${recipient} -a ${original_recipient}

is this a bug, or do i have some quirks in my configuration?

birger
ps: not on this list, so please cc answers to me
- --
GPG: http://gpg-keyserver.de/pks/lookup?op=get&search=0x5DF89014F45C1912
GPG FP: 479E 1F02 12BD AA8A C4A9 0F19 5DF8 9014 F45C 1912
Timo Sirainen
2010-09-13 15:40:12 UTC
Permalink
Post by Birger Schacht
I have users in ldap and aliases in /etc/aliases and i use postfix.
There is an alias testuser at hostname for tuser at hostname. When tuser uses
sieve vacation and uses the :addresses options with his email address
(tuser at hostname), the response is also sent, if a mail to
testuser at hostname is sent.
in the postfix master.cf the line for deliver is
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f
${sender} -d ${recipient} -a ${original_recipient}
Looking at the code.. It checks To: Cc: Bcc: Resent-To: Recent-Cc: and
Resent-Bcc: headers. If either ${original_recipient} or any address
listed in :addresses is found from any of those headers, it's ok. So one
of those has to match in your system. (Have you checked if
${original_recipient} is tuser or testuser?)

BTW. Stephan, http://wiki2.dovecot.org/Pigeonhole/Sieve/Usage is more or
less out of date related to these rules.
Stephan Bosch
2010-09-13 16:58:05 UTC
Permalink
Post by Timo Sirainen
Looking at the code.. It checks To: Cc: Bcc: Resent-To: Recent-Cc: and
Resent-Bcc: headers. If either ${original_recipient} or any address
listed in :addresses is found from any of those headers, it's ok. So one
of those has to match in your system. (Have you checked if
${original_recipient} is tuser or testuser?)
BTW. Stephan, http://wiki2.dovecot.org/Pigeonhole/Sieve/Usage is more or
less out of date related to these rules.
Fixed.

Regards,

Stephan.
Birger Schacht
2010-09-14 10:05:28 UTC
Permalink
Post by Timo Sirainen
Looking at the code.. It checks To: Cc: Bcc: Resent-To: Recent-Cc: and
Resent-Bcc: headers. If either ${original_recipient} or any address
listed in :addresses is found from any of those headers, it's ok. So one
of those has to match in your system. (Have you checked if
${original_recipient} is tuser or testuser?)
Is it possible not to check for ${original_recipient}? If i understand
correctly, a user having multiple aliases sends a vacation message in
any case, whatever in :addresses is listed (if i use -a
${original_recipient} with deliver).
If i have an alias info at somehost and i list my email address in
:addresses i don't expect an autoresponce on a mail not sent to that
address.
Maybe it would help if i removed the -a ${original_recipient} argument,
but i need that so the vacation messages have the right From: header.

thank you,
Birger

Loading...