Postfix - local files versus network databases

From LQWiki
Jump to navigation Jump to search

Postfix - Local files versus network databases

The examples in this text use table lookups from local files such as DBM or Berkeley DB. These are easy to debug with the postmap command:

   postmap -q info@example.com hash:/etc/postfix/virtual 

See the documentation in LDAP_README, MYSQL_README and README for how to replace local files by databases. The reader is strongly advised to make the system work with local files before migrating to network databases, and to use the postmap command to verify that network database lookups produce the exact same results as local file lookup.

   postmap -q info@example.com ldap:/etc/postfix/virtual.cf