Applicable to:
- Plesk for Linux
Question
How to resend deferred emails in the mail queue?
Answer
-
Go to Tools & Settings > Scheduled Tasks > Add Task.
-
In the Command field, input:
# /usr/sbin/postsuper -r ALL
-
Click Run Now.
-
Connect to the Plesk server via SSH.
-
Resend all deferred emails in the queue:
# postsuper -r ALL
-
Connect to the Plesk server via SSH.
-
Resend an email in the queue using email ID:
# postqueue -i <ID>
-
Resend an email in the queue using a sender's domain name:
# postqueue -s example.com
To find an email ID or a sender's domain name, list all messages in the queue with the following command:
# postqueue -p
C67B97A0E42 2128 Sun Jun 8 17:00:41 mail@example.com john.doe@example.netwhere
-
C67B97A0E42 - an email ID
-
mail@example.com - a sender address
-
john.doe@example.net - a recipient address
-
Comments
6 comments
Hello
I send email by postsuper -r ALL but they back to queue after few second. it happens only for one Domain.
Hello Hamid,
It means there is an error sending messages and you need to look for its reason by reviewing /var/log/maillog
All of my email sending or receiving or deferred and is found in the mail queue. Spent hrs and hrs and tried everything but could not found a resolution.
Hi Mehmood Rajoka could you please check the exact error in /var/log/maillog: grep deferred /var/log/maillog or please open a support ticket so we can troubleshoot this: https://support.plesk.com/hc/en-us/articles/213608509-How-to-submit-a-request-to-Plesk-support-
Will it have any negative effects if I schedule this command to be run every hour?
why plesk doesnt have a button to resend from GUI not SSH?
Please sign in to leave a comment.