0
I maintain a exim4 as a mail server for multiple domains. To allow for a correct user lookup in my MDA (kopano-dagent), I rewrite the envelope-To-field of mails received for secondary domains to use my primary domain:
*@secondary1.domain "$1@primary.domain" T
*@secondary2.domain "$1@primary.domain" T
However, I already have all secondary domains defined in the named variable dc_other_hostnames
.
To avoid repeating myself when adding a new domain:
How can I match against any entry of a named variable in the source patter in exim4 rewrite statements?