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.

Related Posts

Leave a Reply

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