Using the Auto BCC Feature to Create One-to-Many Recipient Aliases
Applies to HMS Version: 2.1+
The Auto BCC feature of the Hurricane MTA Server is not only useful for sending copies of specific messages to other addresses, but also for replacing specific recipient addresses or addresses matching a pattern with a predefined list of addresses, effectively creating a recipient alias. Currently this feature can only be configured through flat files.
The following should be considered before using this feature:
This feature is enabled and configured by adding a single line to the [Other] section of the general.config file found in an individual account's config directory. Please remember to reload the target account's configuration after making these changes in order for those changes to take effect.
Description: A ~*~ delimited list containing a regular expression, a pipe symbol, and a comma delimited list of addresses to add when the regular expression matches an existing recipient address. The original address will be removed.
Example: The following example contains two rules in order to show how to configure multiple Auto BCC rules.
Using the above example, any messages sent to @example.com directly will actually be BCC'd to firstname.lastname@example.org. The original recipient will not receive the message, so this rule acts like a message forwarder.
Also using the above example, messages sent to email@example.com will actually be BCC'd to firstname.lastname@example.org and email@example.com, so this rule acts like a mailing list alias. The replacements will not trigger further matches against the .*@example.com entry.
For more information about writing regular expressions, we recommend third-party resources such as the following:
The following Knowledge Base articles may also be of interest: