On 2021-11-04 12:17, Jaroslaw Rafa wrote:
Dnia  4.11.2021 o godz. 10:52:03 sru...@gemneye.org pisze:
I am trying to re-write sender email address n...@host.some.domain
to be name+host@other.domain.

Is this only one particular some.domain or are there different domains?
Because if there's only one domain, I would suggest to include some.domain
literally in your regular expression, then it won't match again on the
already transformed address, which does not contain some.domain.

I was originally doing this with smtp_generic_maps, but for every server it meant including a unique generic_map file for every server (using literal name as you suggested). For deploying this to thousands of servers, and as you guessed it, different domains, this was not optimal. So I was trying to come up with a more generic solution that could be applied to all servers without modification.

Reply via email to