문제

My Exim mail queue was full of spam so I ran a custom grep command to search out spooled messages that contained the spam terms. Problem is, I didn't know that Exim breaks messages up into multiple files (one for header information, one for data, etc.) so my grep command deleted the data files while leaving the header files.

Does anyone know of a way I can easily find and delete messages in the queue that have a header file but no data file? Or another way to fix it?

도움이 되었습니까?

해결책

Find them:

exipick '$message_body_missing'

Find and delete them:

exipick -i '$message_body_missing' | xargs exim -Mrm

다른 팁

For lack of exipick,

cd /var/spool/exim/input
find -name "*-H" -exec sh -c 'H={}; if [ ! -e ${H%-*}-D ]; then rm $H; fi' \;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top