Dedicated Server Forum

The Hivelocity Dedicated Server Discussion Forum is a place for Hivelocity clients to meet and chat about all things server. From server promotions to server issues, our technical staff, sales, billing, management and Upper management will be actively involved in these discussions. No question is too big or small, no topic is too stupid to be discussed here. We want all of our clients to feel like this is their home away from home on the net.


 
 
In order to get support you will need to enter your registration details:
 
Please enter your search criteria:
 
 

Dedicated Server Forums by Hivelocity Award winning Dedicated Server hosting > Miscellaneous > Mail Servers » How To : change queue lifetime for Qmail


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-05-2009, 01:27 PM
Administrator
 
Join Date: Jul 2009
Posts: 578
Default How To : 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]#
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:43 AM.