Since mail mostly “works” I use these below commands only very little and tend to forget them.
Luckily they were documented at [Wayback/Archive] Viewing email in Linux using postfix’s mailq and postcat | Jeff Geerling
Here are the most common commands I use when either developing or troubleshooting email in production:
mailq– print a list of all queued mailpostcat -vq [message-id]– print a particular message, by ID (you can see the ID along inmailq‘s output)postqueue -f– process the queued mail immediatelypostsuper -d ALL– delete ALL queued mail (use with caution—but handy if you have a mail send going awry!)
Via [Wayback/Archive] postfix process queue – Google Search two interesting answers (thanks [Wayback/A] Nicolas for asking):





