Delete Email Message Queue Directadmin

Perintah linux dibawah ini berfungsi untuk mengahpus data Mail Queue di Directadmin jika berisi banyak spam.

/usr/sbin/exim -bp | awk '/^ *[0-9]+[mhd]/{print "/usr/sbin/exim -Mrm " $3}' | sh

atau ini

/usr/sbin/exim -bp | /usr/sbin/exiqgrep -i | xargs /usr/sbin/exim -Mrm

atau menghapus berdasarkan waktu

contoh : hapus pesan antrian yang lebih dari 5 hari (86400 * 5 = 432000 seconds):

/usr/sbin/exiqgrep -o 432000 -i| xargs /usr/sbin/exim -Mrm

Selamat mencoba.

Leave a Reply

Your email address will not be published. Required fields are marked *

What is 11 + 15 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

 

Wordpress SEO Plugin by SEOPressor