Collapse

Announcement

Collapse
No announcement yet.

Commands to check mail queue / mail logs in Plesk.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Commands to check mail queue / mail logs in Plesk.

    1. List count and messages that are in mail queue:

    HTML Code:
      #postqueue -p
    2. To view the header and the body of the specific email :

    HTML Code:
      #postcat -q mail_id
      For example : #postcat -q C2E8B662167
    3. To check the mail logs:

    HTML Code:
     #less /usr/local/psa/var/log/maillog
    4. To check the mail logs for specific mail ID:

    HTML Code:
      #less /usr/local/psa/var/log/maillog | grep mail_id
    5.To check the count of specific email address:

    HTML Code:
      #mailq |grep info@example.com | wc -l
    6. To show the list of the specific email address:

    HTML Code:
      #mailq |grep info@example.com
    7. To remove the mail queue

    HTML Code:
      #postsuper -d ALL
    or

    HTML Code:
     # /usr/local/psa/admin/sbin/mailqueuemng
    Last edited by Sayali; 12-19-2019, 07:36 PM.
Working...
X