• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How to emails from the queue after a few days

qualispace

Regular Pleskian
Hello,
I am running Qmail in a Red Hat ES 3.0 box. While checking the queue in the Qmail, I can see that there are lot of emails which are undelivered but still in the queue. Some of the emails are older than 7 days. I want to know how can I delete emails from the queue if they are older than a few days. For example, if an email is in the queue for 3 days or more, it should get deleted automatically. Kindly help me with this.
 
The default is approx. 7 days. If you want the mail to be dumped quicker, then create a file called queuelifetime in the /var/qmail/control folder and inside of it set the queue lifetime in seconds (4 days = 345600, for example).
 
Back
Top