Is there something I can run from the command line that will let me query postfix (running locally)?
- if an address is in the virtual address file and,
- where the mail for that address is routed to.
Ex: If I have the email address of [email protected]. I want to ask postfix if that virtual alias exists and then see that it's mail get routed to [email protected]
Despite the name, this is a Postfix program. This will deliver an email to the caller's mail account that will give you the information about full address resolution. The command-line output is typically just:
postalias -q
will show you what the alias file has in it, as the previous responder said, but this may or may not be what actually happens;sendmail -bv
is more complete.How about postalias: