Using the Auto BCC Feature to Copy All or Part of a Mail Stream
Applies to HMS Version: 2.1+
It can sometimes be useful to send copies of some or all messages being delivered through an account to one or more addresses. This functionality may be used for auditing purposes, data retention, message consumption, or many other reasons. The Hurricane MTA Server contains an Auto BCC feature that allows multiple such configurations. Each configuration checks for messages with matching recipients, where the matching can be against specific addresses, domains, or all mail. 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 that caused the match will not be removed.
Example: The following example contains two rules in order to show how to configure multiple Auto BCC rules:
In the above example, the addresses firstname.lastname@example.org and email@example.com will be BCC'd with any message sent to the @example.com domain. Additionally, firstname.lastname@example.org will be BCC'd with any message sent to the email@example.com address.
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: