I would find it quite useful to have a command, whereby either a designated sender or recipient address can be tested against the complete Postfix configuration, and have both the process and the result displayed. For example:

postcanonical [-r | -s] tar...@domain.com
using recipient_canonical_maps = hash:/etc/postfix/maps/canonical-maps
     mapping @domain.com to @domain2.com
using recipient_bcc_maps = hash:/etc/postfix/maps/recipient_bcc
    copying tar...@domain2.com to targ...@domain2.com, targ...@domain2.com
using transport_maps = hash:/etc/postfix/maps/transport
    using transport virtual to deliver

The above is a very rough draft - but something like this that exposes Postfix's thinking, instead of just trying to send/recieve a test message and reading the logs to see what happens - could be a very powerful tool for correctly configuring various map settings and diagnosing problems.
--
Daniel

Reply via email to