Hi, I've got a rather complex Postfix setup and experiencing some issues with the handling of transport maps.
Short Story: Postfix replaces %u by 'user+ext' when querying my transport maps although it should use 'user' instead. I'd like to have a way to tell Postfix to use only the part before the recipient_delimiter in this query. Long Story: My setup uses vitual users stored in a MySQL database, recipient_delimiter=+ for VERP and some domains have users as well handled local as well as remote. Those domains are defined as relay_domains and a MySQL-fed transport map determines the suitable transport for each of those domains users. For local users the transport 'dovecot:' for local delivery with the dovecot lda is returned, for true remote users the appropriate next-hop in the form 'smtp:[nexthop]' is used. Everything went well so far until I've tried to implement VERP. Postfix does not try any other combination than 'user+ext' for the %u macro because my transport is special crafted to return a default value for non-existing users, i.e. it can never fail. I'd propose that postfix should provide another set of macros, smth. like %l and %e, for local_part and extenstion in if given a address like local_part+extens...@domain.tld. I know that this is a rather exotic setup but I'd humbly ask that postfix should support this type of setup. Perhaps I've missed something and there is a way to make Postfix to support this OOTB, but I doubt after reading (most of) the available documentation. -- Best Regards, Dominik Schulz