Answered by the Webhosting Experts

Hivelocity
Dedicated Servers

Bare Metal Computing
Tired of overpaying for outdated hardware or nonexistent technical support?

Click now and chat with our highly skilled account managers. Learn about Hivelocity's latest server deals or browse our bare metal servers by clicking the link below.

See the Hivelocity difference today!

Tags
...
...

Change queue lifetime for Qmail

This parameter can be changed in Qmail’s control directory. The default setting is to keep attempting to send an email for 7 days. The parameter value is seconds.

If you only wanted to keep emails for 4 days: 4 days * 24 hours * 60 minutes * 60 seconds would equal 345600.

[root@plesklinux control]# ls queuelifetime
ls: queuelifetime: No such file or directory
[root@plesklinux control]# ../bin/qmail-showctl | grep life
queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.
[root@plesklinux control]# echo 345600 > queuelifetime
[root@plesklinux control]# /etc/init.d/qmail restart
Starting qmail: [ OK ]
[root@plesklinux control]# ../bin/qmail-showctl | grep life
queuelifetime: Message lifetime in the queue is 345600 seconds.
[root@plesklinux control]#

Share

Facebook
Twitter
LinkedIn
Email
WhatsApp

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.