Rick van Rein: > Hi, > > > Perhaps with smtp_generic_maps, but not with canonical > > maps > > Which raises something I've wondered before: > > why is it that the generic_maps cannot be separately > setup for header/envelope, and for sender/recipient, like > can be done with canonical_maps?
I am not convinced that is a good fit for smtp_generic_maps (or for canonical_maps). Designing a general-purpose system for context-dependent rewriting is hard, and using it may be even harder. > I've been struggling with > this in the past, and ended up renaming everything upon > entry and casting it back through the virtual table, but Indeed. Use smtp_generic_maps to convert X into a globally-valid address, and use virtual_alias_maps to deliver that address to X. X may be a fantasy domain or a real address. Wietse