Question
How to resend deferred emails in the mail queue?
Answer
Re-sending deferred emails via Plesk interface
-
In Plesk, go to Tools & Settings > Scheduled Tasks > Add Task.
-
In the Command field, input:
/usr/sbin/postsuper -r ALL
-
Click Run Now.
Re-sending deferred emails via a command-line interface
Re-sending a single deferred email:
Connect to the server via SSH.
Re-send an email in the queue using email ID:
postqueue -i <ID>
Re-send an email in the queue using the sender's domain name:
postqueue -s example.com
To find out an email ID or a domain name, list all the messages in the queue with the following command:
postqueue -p C67B97A0E42 2128 Sun Jun 8 17:00:41 mail@example.com john.doe@example.net
where
C67B97A0E42 - an email ID
mail@example.com - a sender address
john.doe@example.net - a recipient address
Re-sending all deferred emails in the queue:
postsuper -r ALL
|