On Tue, 13 Sep 2011 00:42:44 +0200 Aleksandar Lazic articulated: > 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?
This is what I use, and it works fine. The example is something I use for FreeBSD. Example address: user+f...@example.com This is my sieve recipe: if envelope :detail "To" "fbsd" {fileinto "FreeBSD"; stop;} I hope this helps. -- Jerry ✌ dovecot.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ Quidquid latine dictum sit, altum viditur. (Whatever is said in Latin sounds profound.)