Hallo!

I want to change addresses like [email protected] to Name.Surname@domain.

It looks like job for sender_canonical_maps + masquerading, but it
doesn't work like I want because masquerading is applied _after_
canonical mappings.

I also know about other ways to do that but they looks like dirty hacks:
1) reflect all possible [email protected] in canonical maps
2) use regexp in canonical maps
3) use generic mappings
4) use masquerading on clients and canonical mappings on gateway

So I decided to patch "cleanup" to reorder masquerading and canonical
mappings (controlled by variable in main.cf) and now I have simple
configuration with fast canonical mappings (cdb) which look like
"login Name.Surname" and masquerade_domains=$mydomain.

But I still believe that I'm missing something and there is better way to this.

Reply via email to