The Canonical Lookup Table

The canonical lookup table is powerful; it rewrites the sender as well as the recipient address of incoming as well as outgoing mail. These addresses are not rewritten only in the header of your message but also in the envelope. Since it is rewritten in the envelope as well, this means no traces of the original sender are left. The canonical lookup table is processed by the cleanup daemon. To activate it, you need the following line in /etc/postfix/

canonical_maps = hash:/etc/postfix/canonical

In the canonical table, lines specify addresses or domain names that should be rewritten. In the second column of the canonical table, the e-mail address where the mail has to be routed to is specified. Listing 16-3 shows an example of this.

Listing 16-3. Example of the Canonical Lookup Table

[email protected] [email protected] [email protected]

You should be aware that the canonical lookup table works on both e-mail recipients and on senders. If you want to rewrite only recipient addresses, or only sender addresses, use recipient_canonical or sender_canonicalinstead.

Was this article helpful?

0 0

Post a comment