postfix

postqueue -f – Flush the queue: attempt to deliver all queued mail
postqueue -i – Schedule immediate delivery of deferred mail with the specified queue ID
postqueue -p – Produce a traditional sendmail-style queue listing.
postqueue -s – Schedule immediate delivery of all mail that is queued for the named site
/etc/postfix/main.cf

postfix flush – to flush the mail queue
postfix -f – to flush the mail queue
mailq – To see mail queue
postsuper -d ALL – To remove all mail from the queue
postsuper -d ALL deferred – To remove all mails in the deferred queue
postsuper -r ALL –
postqueue -p check the mail queues
qshape active – will show you the number of emails being sent to each domain and how long they have been in the active queue
qshape deferred – will show you the same but for the deferred queue

postcat -q DA80E24A0A – view the email in the queue based on the ID
zgrep “email address” “maillog”

/usr/local/psa/var/log/maillog

Check if postfix can send emails

echo “Test mail from postfix” | mail -s “Test Postfix” admin@something.com

You can edit postfix here

/etc/postfix/main.cf
/etc/init.d/postfix reload