Created
March 30, 2017 04:05
-
-
Save rushipkar90/00f59dbb819deef59ef74ef50d97076f to your computer and use it in GitHub Desktop.
QMAIL-REMOVE installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOW TO INSTALL QMAIL-REMOVE ON LINUX PLESK? | |
Ref: http://www.datanethosting.com/kb/plesk-linux/how-to-install-qmail-remove-on-linux-plesk | |
First we will install Qmail-Remove on the server. Download the latest version through given below link. | |
Using following command | |
#wget http://www.linuxmagic.com/opensource/qmail/qmail-remove/qmail-remove-0.95.tar.gz | |
Now, you have file qmail-remove-0.95.tar.gz and extract this file using given below command. | |
#tar -zxvf qmail-remove-0.95.tar.gz | |
You must have this folder now. | |
qmail-remove-0.95 | |
cd qmail-remove-0.95 | |
#make | |
#make install | |
This will complete the installation. | |
So, now we have to create a directory called “yanked” in the qmail queue before we start using Qmail-Remove otherwise it will give some error. | |
#mkdir /var/qmail/queue/yanked | |
Using qmail-remove | |
Syntax | |
qmail-remove [options] | |
Available options | |
-e use extended POSIX regular expressions | |
-h, -? this help message | |
-i search case insensitively [default: case sensitive] | |
-n limit our search to the first bytes of each file | |
-p specify the pattern to search for | |
-q specify the base qmail queue dir [default: /var/qmail/queue] | |
-r actually remove files, without this we.ll only print them | |
-s specify your conf-split value if non-standard [default: 23] | |
-v increase verbosity (can be used more than once) | |
-y directory to put files yanked from the queue [default: /yanked] | |
-X modify timestamp on matching files, to make qmail expire mail is the number of seconds we want to move the file into | |
the past.specifying a value of 0 causes this to default to (604800) | |
-x modify timestamp on matching files, to make qmail expire mail is a date/time string in the format of output of the | |
.date. program. | |
Examples for qmail-remove | |
Before doing any thing related to qmail queue you need to stop the qmail service using the following command | |
#/etc/init.d/qmail stop | |
To delete mails from Que, | |
#qmail-remove -r -p | |
# qmail-remove -r -p gtre.ac.net | |
324001: yes | |
moved mess/0/324001 to yanked/324001.mess | |
moved remote/0/324001 to yanked/324001.remote | |
moved info/0/324001 to yanked/324001.info | |
324024: yes | |
moved mess/0/324024 to yanked/324024.mess | |
moved remote/0/324024 to yanked/324024.remote | |
moved info/0/324024 to yanked/324024.info | |
This will remove all emails in que with .gtre.ac.net. in it and place it in /var/qmail/queue/yanked folder. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment