-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would want to use regex to do fancy masquerading #175
Comments
Sure, that does sound something that could be added. While it's not, you're free to create your own init script, mount it to |
Ah good insight! Forgot that :-( I'll take a look at it, meanwhile |
OK, I made it working. Here's what I did.
And then test. A message, originating from myuser@int.fake.stba is now actually sent to myuser@int.real.ca, which was the expected result. Even more, this could be a little more templated from Helm to make it a little more seemlessly accessible. Something, maybe, like pcre.map: "/([a-z]+)@int.fake.stba/ $1@int.real.ca", pcre.enabled: true, and pcre.filename: somefilename.pcre that could create the secret (or configMap) with the content, mount it to /etc/postfix/somefilename.pcre, and add smtp_generic_maps: pcre:/etc/postfix/somefilename.pcre to /etc/postfix/main.cf This would be the ultimate goal, but I can live without it :-) |
Latest image (currently in |
Hello. I'm looking at a way to replace anyuser@int.this.fake.domain with anyuser@this.real.domain.com
I know I can do this by using smtp_generic_maps, but I'd need to specify all "internal" senders, one by one to something decent externally.
I'd prefer using a regex to do so. And this can be done with postfix-pcre regex module. Documentation to do so is at: https://serverfault.com/questions/930819/postfix-smtp-generic-maps-with-regular-expression
Would be really nice to have that included (the package, at least)
The text was updated successfully, but these errors were encountered: