Important “qmail” commands and its log file location in Plesk server

Qmail and Postfix are the email servers in Plesk. Usually, Qmail is used as the email server. Here I am explaining some commands which will help you to troubleshoot any problem with Qmail.

1, Start Qmail service

# service qmail start

2, Stop qmail service

# service qmail stop

3, Qmail log location in Plesk server

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

4, To view the amount of messages currently in the queue

# /var/qmail/bin/qmail-qstat

5, To list out all messages in your outbound queue

# /var/qmail/bin/qmail-qread

6, Mailbox location in Plesk

# /var/qmail/mailnames

7, To read the entire contents of an email, including headers

# find /var/qmail/queue -name XXXX | xargs cat | less

XXXX – 8 digit ID specified in the /var/qmail/bin/qmail-qread command

That’s it 🙂


Related post:
Find out the spam mailing script’s location
Quick way to remove all frozen emails
Exim Log line flags
Exim command to find the mail that we have sent is completed or not
Check spamming on server having EXIM
Exim command to remove emails from mail queue for a specific Sender/Receiver – The “exiqgrep” usage
Important exim log file paths in WHM/cPanel & Directadmin
How to delete locked mails from mail queue

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

2 thoughts on “Important “qmail” commands and its log file location in Plesk server

  1. Thanks Arun. I’m follower of your website and great articles about exim and queue. Requesting similar tutorials for postfix.

Leave a Reply

Your email address will not be published. Required fields are marked *