Reply-to address configuration
You can use configuration parameters in the email category to define reply-to addresses and control where email responses are directed based on your needs.
The default reply-to address is used to supply a reply-to address for any emails that have no specified reply-to address.
The proxy reply-to address is used to override any specified reply-to address. You can configure this with an exception pattern to validate whether any reply-to matches your set format. If the reply-to address matches your exception pattern, then the reply-to address stays as is. If not, the reply-to address is overridden by your specified proxy reply-to address. If no exception is defined, all reply-to addresses are also overridden by the proxy reply-to address.
For instances where both default reply-to and proxy reply-to are configured with different email addresses, you must specify an exception pattern that enables the default reply-to address. Without this exception, the reply-to address is overridden by the proxy reply-to address.
You can enable these features by configuring these parameters:
Component | Parameter name | Description |
---|---|---|
mail.reply.to.default | Specify a default reply-to address for all outbound emails that have no specified reply-to address. | |
mail.reply.to.proxy | Specify a proxy reply-to address to override any specified reply-to address. | |
mail.reply.to.proxy.exceptions |
Specify a regular expression that applies to non-proxy reply-to addresses to determine if a specific reply-to address is exempt from replacement by the reply-to address. To set up a regular expression, consult standard resources on Java regular expression syntax. |