Cleaning Exim Queue
Browsing system logs noticed that bots trying to send mass messages from the server.
Attempts obviously not successful, however, exim queue filled up with emails like 1eiI0H-000693-V0 Message is frozen.
Below a very simple way to clear the queue with the specified message.
We log in to our server, then issue the command:
1 | exim -bpu | grep frozen | awk {'print $3'} | xargs exim -Mrm |
Messages are deleted.
The log can be seen perfectly exim.
1 2 | cat /var/log/exim/main.log |
1 2 3 4 5 6 7 8 9 10 | 2018-02-05 07:32:41 1eiKoU-0008JS-2L Completed 2018-02-05 07:32:41 1eiNcf-0002Zd-7T removed by root 2018-02-05 07:32:41 1eiNcf-0002Zd-7T Completed 2018-02-05 07:32:41 1eiQQr-0004kf-C7 removed by root 2018-02-05 07:32:41 1eiQQr-0004kf-C7 Completed 2018-02-05 07:32:41 1eiTF3-0006wm-I7 removed by root 2018-02-05 07:32:41 1eiTF3-0006wm-I7 Completed 2018-02-05 07:32:41 1eiW3F-0000nM-N7 removed by root 2018-02-05 07:32:41 1eiW3F-0000nM-N7 Completed 2018-02-05 07:32:41 1eiYrR-0003FI-TW removed by root |