On 2014-06-18 00:08, Viktor Dukhovni wrote:
On Wed, Jun 18, 2014 at 12:00:03AM +0200, Uffe Jakobsen wrote:
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.
Aha I see - what fantastic suggestion !!!
I just implemented a setup similar to your suggestion - and now postfix
works just the way that I was looking for.
Viktor - you just saved my day - and I just learned a little more about
postfix :-)
Thanks :-)
/Uffe