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

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

2 Responses

  1. Gopinadh says:

    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 *