To list all files in current directory including dot files (hidden files or directories), as well as print permissions :
ls -laPostfix mailq
-
View the mail queue:
mailq
Or:
postqueue -p
Watch mailq activity:
watch -n1 mailq
We can save the mailqueue to a file:
mailq > file.txt
View message content of any mail in the queue:
(message ID is the alphanumeric ID seen when running mailq)
postcat -vq <message ID>
Flush mailq: In other words to process the mailq
postfix -f
Delete all mail in the queue:
postsuper -d ALL
Delete all messages the system has deferred for one reason or another, and plans on retrying:
postsuper -d ALL deferred