• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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