SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


fixpostfixdatabaseolder
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

fixpostfixdatabaseolder [2013/04/20 11:25] (current)
sjoerd created
Line 1: Line 1:
 += Fix: Postfix: Database Older Than Source File
  
 +We got these error messages on a few of our postfix servers:
 +
 +<​code>​
 +warning: database /​etc/​postfix/​virtual.db is older than source file /​etc/​postfix/​virtual
 +
 +warning: database /​etc/​postfix/​transport.db is older than source file /​etc/​postfix/​transport
 +</​code>​
 +
 +These messages appear whenever one of these databases/​tables is changed.
 +\\
 += Transport Database
 +The optional transport table specifies a mapping from email addresses to message delivery transports and next-hop destinations. Message delivery transports such as local or smtp are defined in the master.cf file, and next-hop destinations are typically hosts or domain names.
 +
 += Virtual Database
 +The optional virtual alias table rewrites recipient addresses for all local, all virtual, and all remote mail destinations. This is unlike the aliases table which is used only for local delivery.
 +\\
 +The main applications of virtual aliasing are:
 +* To redirect mail for one address to one or more addresses.
 +* To implement virtual alias domains where all addresses are aliased to addresses in other domains.
 +
 += Solution
 +Issue these commands depending on the messages you get:
 +<​code>​
 +postmap /​etc/​postfix/​transport
 +postmap /​etc/​postfix/​virtual
 +</​code>​
 +
 +> Note: Although everyone suggests you should restart postfix after the command I didn't and the messages went away. If you need however to restart postfix you could do that like this:
 +<​code>​
 +service postfix restart
 +</​code>​
 +
 += Resources
 +http://​www.postfix.org/​virtual.5.html \\
 +http://​www.postfix.org/​transport.5.html \\
 +
 +{{tag>​fix email linux}}
fixpostfixdatabaseolder.txt ยท Last modified: 2013/04/20 11:25 by sjoerd