Qmail - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/qmail/ Dedicated Servers, Private Cloud & Colocation Mon, 18 Dec 2023 21:45:27 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 Change queue lifetime for Qmail https://www.hivelocity.net/kb/how-to-change-queue-lifetime-for-qmail/ https://www.hivelocity.net/kb/how-to-change-queue-lifetime-for-qmail/#respond Sat, 13 Nov 2010 06:19:53 +0000 https://kb.hivelocity.net/?p=891 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 …

Change queue lifetime for Qmail Read More »

The post Change queue lifetime for Qmail appeared first on Hivelocity Hosting.

]]>
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]#

The post Change queue lifetime for Qmail appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-change-queue-lifetime-for-qmail/feed/ 0
Manage the ‘qmail’ message queue using qmHandle https://www.hivelocity.net/kb/how-to-manage-the-qmail-message-queue-using-qmhandle/ Tue, 09 Nov 2010 14:07:19 +0000 https://kb.hivelocity.net/?p=657 Solution qmHandle, a perl script which gives you greater functionality – allows you to view and manage the ‘qmail’ message queue. It can be install by excuting the following commands cd /usr/bin wget -O – “https://easynews.dl.sourceforge.net/sourceforge/qmhandle/qmhandle-1.2.0.tar.gz” | tar xzf Following commands are useful to manage the queue # List emails by subject wise: qmHandle -l …

Manage the ‘qmail’ message queue using qmHandle Read More »

The post Manage the ‘qmail’ message queue using qmHandle appeared first on Hivelocity Hosting.

]]>
Solution

qmHandle, a perl script which gives you greater functionality – allows you to view and manage the ‘qmail’ message queue.

It can be install by excuting the following commands

cd /usr/bin

wget -O – “https://easynews.dl.sourceforge.net/sourceforge/qmhandle/qmhandle-1.2.0.tar.gz” | tar xzf

Following commands are useful to manage the queue

# List emails by subject wise:

qmHandle -l |awk ‘/Subject/ {print}’|sort | more

#qmHandle -tX ‘string’ ( delete all messages with matching headers, where string to match and X specifies:

‘f’ : Who the message is from,

‘t’ : Who the message is to; or,

‘s’ : What the message’s subject is

#qmHandle -M ( delete all msgs in the queue from MAILER-DAEMON@hostname)

# Forcefully send emails.
qmHandle -a

# List message queues
qmHandle -l

# delete all messages in the queue
qmHandle -D

# list local message queue
qmHandle -L

# list remote message queue
qmHandle -R

# display message number N
qmHandle -mN

# delete message number N
qmHandle -dN

# delete all messages that contain text as Subject
qmHandle -Stext

# delete all messages that contain text as From email address
qmHandle -Ftext

# delete all messages that contain text as To email address
qmHandle -Ttext

The post Manage the ‘qmail’ message queue using qmHandle appeared first on Hivelocity Hosting.

]]>