Queue management for postfix is done with the postsuper command, which you can use to delete mail in vareious scenario’s. #1 Remove specific mail Run the mailq command to list pending mail, en get the id, next you can delete a specific mail with: #2 Remove ALL mail #3 Remove all deferred (stalled) mail, without touching mail that has had no delivery attempts yet
Maildir is an e-mail spool format that keeps all mails in seperate files, and thus does not need file locking to maintain message integrity. All operations are atomic. A MailDir directory contacins thgree subdirectories: tmp, new and cur. The populair Courier IMAP/POP servers work with the MailDir format. Restart postfix to make the changes take effect.