John Fawcett
2009-May-18 07:56 UTC
[Dovecot] LDA and postfix with recipient delimiter: documentation
Just a comment about the documentation for postfix integration when using receipient delimiter and delivery of user+foo at domain.ext to user at domain: http://wiki.dovecot.org/LDA/Postfix I had some issues to get this working, so thought I'd share my experience. Dovecot version 1.2.rc3. Postfix version postfix-2.7-20090511. I have no local (unix) mailboxes, everything is delivered to dovecot, so in postfix I have set mailbox_transport = dovecot. In this case the following syntax taken from the docs does not work: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} whereas the following does work: dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${domain} I think that ${domain} is always what is wanted and only when ${nexthop} happens to have the same value as ${domain} - for example when using a transport table entry like this: /etc/postfix/transport domain.ext dovecot: will the ${user}@${nexthop} form be deliverable. Can anyone see a reason for not using always ${user}@${domain} instead of ${user}@${nexthop}? John
Robert Schetterer
2009-May-18 08:26 UTC
[Dovecot] LDA and postfix with recipient delimiter: documentation
John Fawcett schrieb:> Just a comment about the documentation for postfix integration when > using receipient delimiter and delivery of user+foo at domain.ext to > user at domain: > > http://wiki.dovecot.org/LDA/Postfix > > I had some issues to get this working, so thought I'd share my > experience. Dovecot version 1.2.rc3. Postfix version > postfix-2.7-20090511. > > I have no local (unix) mailboxes, everything is delivered to dovecot, > so in postfix I have set mailbox_transport = dovecot. > In this case the following syntax taken from the docs > does not work: > > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} > > whereas the following does work: > > dovecot unix - n n - - pipe > flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${domain} > > I think that ${domain} is always what is wanted and only when > ${nexthop} happens to have the same value as ${domain} > - for example when using a transport table entry like this: > > /etc/postfix/transport > domain.ext dovecot: > > will the ${user}@${nexthop} form be deliverable. > Can anyone see a reason for not using always ${user}@${domain} > instead of ${user}@${nexthop}? > > > John > > > > > > > > > > > > >Hi John, just for info, in my test server i use dovecot_destination_recipient_limit = 1 virtual_transport = dovecot dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient} without any problems with users full domain layout but without local users and postfix 2.5.5 currently testing this ( but havent looked about unwanted sideeffects yet) dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/bin/spamc -e /usr/lib/dovecot/deliver -f ${sender} -d ${recipient} evantually i will use mailbox_command = procmail -a "$EXTENSION" vor having an archive with local users later -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
john.ml at erba.tv
2009-May-18 09:43 UTC
[Dovecot] LDA and postfix with recipient delimiter: documentation
> John Fawcett schrieb: >> Just a comment about the documentation for postfix integration when >> using receipient delimiter and delivery of user+foo at domain.ext to >> user at domain: >> >> http://wiki.dovecot.org/LDA/Postfix >> > Hi John, just for info, in my test server i use > > dovecot_destination_recipient_limit = 1 > virtual_transport = dovecot > > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} > -d ${recipient} >Hi Robert thanks for your reply. Ar you saying that this handles + addresses correctly (i.e. user+foo at domain.ext delivered to user at domain.ext)? thanks, John
Robert Schetterer
2009-May-18 11:09 UTC
[Dovecot] LDA and postfix with recipient delimiter: documentation
john.ml at erba.tv schrieb:>> John Fawcett schrieb: >>> Just a comment about the documentation for postfix integration when >>> using receipient delimiter and delivery of user+foo at domain.ext to >>> user at domain: >>> >>> http://wiki.dovecot.org/LDA/Postfix >>> >> Hi John, just for info, in my test server i use >> >> dovecot_destination_recipient_limit = 1 >> virtual_transport = dovecot >> >> dovecot unix - n n - - pipe >> flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} >> -d ${recipient} >> > Hi Robert > thanks for your reply. > Ar you saying that this handles + addresses correctly (i.e. > user+foo at domain.ext delivered to user at domain.ext)? > thanks, > John >Hi John, no i didnt wrote that, i only have user at domain.ext layout in use currently in my test servers -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
john.ml at erba.tv
2009-May-18 11:44 UTC
[Dovecot] LDA and postfix with recipient delimiter: documentation
> Hi John, > no i didnt wrote that, i only have user at domain.ext > layout in use currently in my test servers > > -- > Best Regards > > MfG Robert Schetterer > > Germany/Munich/Bavaria >Hi Robert I probably didn't make it clear. The problem with the published syntax is that it does not work for receipient delimiter and delivery to mailbox, except as far as I can see when next_hop is the same as domain, which is not always the case. I think that the documentation should report the syntax with ${domain} instead of ${next_hop}, unless there's something I'm missing, since this should always work. thanks again John
Timo Sirainen
2009-May-18 15:13 UTC
[Dovecot] LDA and postfix with recipient delimiter: documentation
On May 18, 2009, at 3:56 AM, John Fawcett wrote:> Can anyone see a reason for not using always ${user}@${domain} > instead of ${user}@${nexthop}?${domain} is a somewhat recent addition to Postfix. I guess the docs could say to use ${domain} instead of ${nexthop} if Postfix is newer than X (should look up what version added that).