On 2021-11-04 11:20, Viktor Dukhovni wrote:
# This only matches valid multi-label DNS names. What should
happen
# with invalid forms (e.g., <user@foo.-bar>, <user@-foo+bar.net>)?
#
if !/@other\.domain$/
/^(.*)@([a-z0-9](-*[a-z0-9]+)*)\.[a-z0-9]/ ${1}+${2}@other.domain
endif
This appears to do exactly what I am wanting, so thank you for that.
What is unclear, is if this is the correct way to handle the issue.
Should this be done with smtp_generic_map instead?
Thank you for taking the time to respond and providing a working
solution!