I want to delete part of mail in queue which more than one thousand. But i don't want to delete all.
any idea ?
I want to delete part of mail in queue which more than one thousand. But i don't want to delete all.
any idea ?
You could try this. http://www.configserver.com/cp/cmm.html
-Delete all emails of "from@domain.com" from the mailserver queue:
exim -bp | grep from@domain.com | awk '{ print $3 }' | grep -v "^$" | xargs exim -Mrm
-Delete all emails of "to@domain.com" from the mailserver queue:
exim -bp | grep to@domain.com | awk '{ print $4 }' | grep -v "^$" | xargs exim -Mrm
-To remove selective emails
grep user@domain.com /var/log/exim_mainlog | cut -d" " -f3 > list ; for ID in `cat list` ; do exim -Mrm $ID; done