A quick reference sheet for some useful postfix tools and general help. These have been tested using an AWS EC2 instance running Ubuntu 20.04 LTS.
website | www.postfix.org |
mailq | Inspect mail queue |
postmap | Use postmap to convert text file into a database file:postmap <infile> |
postmap query test | Use postmap to check that your MySQL query configuration is working as expectedpostmap -q [email protected] mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf |
postsuper | Use postsuper to delete deferred e-mails:postsuper -d ALL deferred |
logs | Postfix logs to these files:/var/log/mail.log and /var/log/mail.err |
config | Postfix configuration is stored in this directory:/etc/postfix |
show config | Show running config using postconf:postconf |
reload config | Gracefully reload configuration without restarting the daemon:systemctl reload postfix |