• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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