KB Article #102446

Address Rewrite and Policy Application

Address Rewrite and Policy Application
This article was previously published as ID#29646


Summary:

EMF offers two options on a Directory user record to change addresses in a message:

  • Replace all email aliases with the public email address in all mail headers
  • Delivery Address

When rewriting addresses of a message with a user record, will EMF also apply other policies that might affect a newly rewritten recipient for the same message?

Example:

There is a user record under the ALL/INTERNAL Directory folder with the following settings:

Public Email Address = ExternalAccount@ExternalDomain.com
Email Alias = InternalAccount@MyDomain.com
Option Enabled: "Replace all email aliases with the public email address in all mail headers"
Delivery Address = (empty)

A messages is addressed to InternalAccount@MyDomain.com, and EMF will process the message through the policy engine and rewrite the To address header field in the message to the Public Email Address of ExternalAccount@ExternalDomain.com.

Are policies applied again for the new recipient?

Detailed Information:

When the policy engine changes an address, policies are not applied twice.

The first option listed above affects the RFC2822 header fields. The Delivery Address option affects the RFC2821 RCPT TO fields in the message envelope header (for more information about 2821 vs. 2822 addresses, please see related article Blocking email with a NULL From address on the right).

The policies are applied for the original address when using either option.

This article only applies when using user records to rewrite addresses. It does not apply to rewriting addresses in the EMF relay (see the EMF 6.0 and later Admin Guides for more details on using the EMF Relay Address Rewrite feature).

NOTE: when a user record contains multiple entries, such as Public Email Address, Aliases, or Delivery Address, EMF will treat all listed addresses as the same person. Meaning, all mail sent to or from those addresses are considered the same individual.

Resolution:

Policies are only applied once for the message whose addresses match any of the entries listed in the user record.