[Dovecot] Sieve envelope :detail "to" "extention" does not deliver to fileinto destination

Aleksandar Lazic al-dovecot at none.at
Tue Sep 13 01:42:44 EEST 2011


Dear Jerry,

On Mon 12.09.2011 14:22, Jerry wrote:
>On Mon, 12 Sep 2011 19:14:48 +0200
>Aleksandar Lazic articulated:
>
><snip>
>
>> dovecot   unix  -       n       n       -       -       pipe
>>    flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f
>> ${sender} -d ${user}@${nexthop} -a ${original_recipient}
>> #  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f
>> ${sender} -d ${user}@${nexthop} -m ${extension} -a
>> ${original_recipient}
>
>I use plus addressing and this is the entry in the master.cf file from
>Postfix:
>
>dovecot   unix  -       n       n       -       -       pipe
>  flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender}
>  -d ${user}@${nexthop} -a ${recipient}
>
>The "argv" could be different on your system; however the rest should
>be the same as mine I would assume. If you do make a change, you will
>have to restart Postfix for it to take effect.

thanks for your info.
I have changed the -a to recipient but nothing changed.

I have now changed the if statement to

###
if header :contains "Delivered-To" "pdnsusers" {
###

this works, but the best would be to be able to use

###
if envelope :contains :detail "to" "pdnsusers" {
###

Is there a command like 'print envelope' or something else to see what
variables and envelope deliver have?

Here is the log, maybe you can see more the I ;-)

###
Sep 13 00:33:18 lvps46-163-74-15 postfix/smtpd[6011]: connect from
localhost.localdomain[127.0.0.1]
Sep 13 00:33:52 lvps46-163-74-15 postfix/smtpd[6011]: B1EFE9FECC15:
client=localhost.localdomain[127.0.0.1]
Sep 13 00:34:12 lvps46-163-74-15 postfix/cleanup[5999]: B1EFE9FECC15:
message-id=<20110912223352.B1EFE9FECC15 at external.non
e.at>
Sep 13 00:34:12 lvps46-163-74-15 postfix/qmgr[22260]: B1EFE9FECC15:
from=<al at bitrace.net>, size=357, nrcpt=1 (queue active)
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda: Debug: Loading modules
from directory: /usr/lib/dovecot/modules
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda: Debug: Module loaded:
/usr/lib/dovecot/modules/lib15_notify_plugin.so
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda: Debug: Module loaded:
/usr/lib/dovecot/modules/lib20_mail_log_plugin.so
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda: Debug: Module loaded:
/usr/lib/dovecot/modules/lib90_sieve_plugin.so
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda: Debug: auth input:
al at none.at uid=5000 gid=5000 home=/var/vmail/none.at/al
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug:
Effective uid=5000, gid=5000, home=/var/vmail/none.at/al
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug:
maildir: root exists (/var/vmail/none.at/al/Maildir)
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug:
maildir++: root=/var/vmail/none.at/al/Maildir, index=, control=,
inbox=/var/vmail/none.at/al/Maildir, alt=
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug: none:
root=, index=, control=, inbox=, alt=
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug:
Destination address: al-pdnsusers at none.at (source: -a parameter)
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug: sieve:
using sieve path for user's script: /var/vmail/none.at/al/.dovecot.sieve
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug: sieve:
opening script /var/vmail/none.at/al/.dovecot.sieve
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug: sieve:
script binary /var/vmail/none.at/al/.dovecot.svbin successfully loaded
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug: sieve:
binary save: not saving binary /var/vmail/none.at/al/.dovecot.svbin,
because it is already stored
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): Debug: sieve:
executing script from /var/vmail/none.at/al/.dovecot.svbin
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): save:
box=INBOX, uid=61, msgid=<20110912223352.B1EFE9FECC15 at external.none.at>,
size=412
Sep 13 00:34:12 lvps46-163-74-15 dovecot: lda(al at none.at): sieve:
msgid=<20110912223352.B1EFE9FECC15 at external.none.at>: stored mail into
mailbox 'INBOX'
Sep 13 00:34:12 lvps46-163-74-15 postfix/pipe[6001]: B1EFE9FECC15:
to=<al-pdnsusers at none.at>, relay=dovecot, delay=28, delays=28/0/0/0.02,
dsn=2.0.0, status=sent (delivered via dovecot service)
Sep 13 00:34:12 lvps46-163-74-15 postfix/qmgr[22260]: B1EFE9FECC15:
removed
Sep 13 00:34:14 lvps46-163-74-15 postfix/smtpd[6011]: disconnect from
localhost.localdomain[127.0.0.1]
###



More information about the dovecot mailing list