Postfix Cheat Sheet
Queue handling and statistics
http://www.tech-g.com/2012/07/15/inspecting-postfixs-email-queue/
https://www.howtoforge.com/postfix-monitoring-with-mailgraph-and-pflogsumm-on-debian-lenny
List mail queue
- mailq or postqueue -p
View message details
- postcat -vq 6E8E14029B
Process the queue
- postfix flush
Delete deferred mails from queue
- postsuper -d ALL deferred
Very cool statistics
- pflogsumm /var/log/mail.log | more
Rewrite sender adress
- vi /etc/postfix/main.cf
-
sender_canonical_maps = hash:/etc/postfix/sender_canonical
-
- vi /etc/postfix/sender_canonical
-
user1@myserver.fqdn fantasy@example.com
- #user1 sends now as fantasy@example.com
-
- postmap /etc/postfix/sender_canonical
- service postfix restart