Postfix Lookup Tables

September 14, 2008 Postfix Configuration

Lookup Tables are simple tables that allow Postfix to access configuration information that it needs. An example is when an organization would like to rewrite the email addresses so that they look different to outside clients. The parameter canonical_maps is the file that is used to make these changes and is used as a Lookup Table. In the example the organization wants to change the tsmith@example.org to tom.smith@example.org outside of the network. The file Lookup Table must be created like the example below:

# canonical mappings # tsmith@example.org tom.smith@example.org

It should be saved as /etc/postfix/canonical

Once you have saved the file you must run the postmap command:

postmap /etc/postfix/canonical

Now you can run a query on the mappings that you have set.

postmap -q tsmith@example.org /etc/postfix/canonical tom.smith@example.org


Copyright CyberMontana Inc. and Postfixmail.com
All rights reserved. Cannot be reproduced without written permission. Box 1262 Trout Creek, MT 59874

Tags: , ,

Comments are closed.