postmap -q user@example.com /etc/postfix/virtual

Category: Mail Servers & Postfix

postmap -q user@example.com /etc/postfix/virtual

Query a Postfix lookup table

Looks up one key in a compiled map and prints the matching value, exiting zero on a hit. This is the fastest way to confirm a virtual, transport, or access rule was built correctly. Test with `postmap -q` before reloading Postfix.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.