Qmail commands and logs in Plesk Linux server

Plesk uses Qmail as mail server on a Linux server.

Here are some useful commands related to Qmail mail server.

Hope you find them informative and helpful ! 🙂

1) Start Qmail service

service qmail start

2) Stop Qmail service

service qmail stop

3) Status of Qmail service

service qmail status

4) Qmail log on Plesk server

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

5) To view the amount of messages currently in your outbound queue

/var/qmail/bin/qmail-qstat

6)To list out all messages in your outbound queue

/var/qmail/bin/qmail-qread

7) To read the entire contents of an email

Including headers, where NNNN is the 8 digit ID specified on the /var/qmail/bin/qmail-qread command

find /var/qmail/queue -name NNNN| xargs cat | less

8) To remove specific mails from mail queue

qmail-remove -r -p
qmail-remove -r -p xyz.com

This will remove all emails in queue with “xyz.com” in it
Note: It requires qmail-remove install on server

9) Mailbox location in Plesk

/var/qmail/mailnames/

If any feedback, queries are always welcome!

Share on Facebook0Share on Google+0Tweet about this on TwitterShare on StumbleUpon0Share on LinkedIn0Share on Tumblr0Pin on Pinterest0Email this to someonePrint this page

About Abhijit Sandhan

Abhijit Sandhan

Loves Linux, Blogging, Traveling, Hiking and sharing Knowledge!

2 comments

  1. this post help me to remove specific mails.. thanks 🙂

  2. need more explanation

Leave a Reply

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