On Wed, Jun 18, 2014 at 12:00:03AM +0200, Uffe Jakobsen wrote: > >Sorry, that's not possible. The SMTP server will use whatever > >virtual(5) aliases it is configured with to validate input recipients. > > damn, qmail could do this stuff out-of-the-box. > > To me it would make sense to have virtual_routing_alias_maps that would be > evaluated after smtpd checks.
No, see below. > >>Can anyone come up with a way (configurtion) for smtpd to check for valid > >>recipients in a map - and keep it away from looking into virtual_alias_maps > >>while performing recipient validation ? > > > >Define virtual alias maps for smtpd(8) to look at a different set of > >tables than cleanup(8). > > By this I guess you mean compiling a home made postfix with the above > changes ? No, I mean a master.cf override: main.cf: smtpd_valias_maps = ... master.cf: smtp inet ... smtpd -o virtual_alias_maps=$smtpd_valias_maps Actual rewriting is done by cleanup(8). At this time, the Postfix SMTP server (aka smtpd(8)) *only* uses virtual_alias_maps for recipient validation, not for rewriting. Note this may change in some future release. -- Viktor.