Listing particular domains log entries
for i in `exiqgrep -if info@tknalla.com`; do grep $i /var/log/exim_mainlog; done > /usr/local/apache/htdocs/tknalla_com
To view it from your browser
http://tknalla.com/tknalla_com
To remove all the mail queues(forece delete)---Please make sure,if you really want to empty the mail queues
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
Summary
exim -bp | exiqsumm
remove all frozen messages
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm
removing bounced meails
exim -bpr |grep "<>"|awk {'print $3'} > t (or)
exim -bpr |grep " "|awk {'print $3'} > t
Don't forget to run this command
cat t |xargs exim -Mrm
Viewing log output with ID
grep -c
View the transact of message
exim -v -M msgid
Force delivery of one message
exim -M email-id
Force another queue run
exim -qf
Force another queue run and attempt to flush the frozen message
exim -qff
View the log for the message
exim -Mvl msgid
View the body of the message
exim -Mvb msgid
View the header of the message
exim -Mvh msgid
Remove message without sending any error message
exim -Mrm msgid
Giveup and fail message to bounce the message to the Sender
exim -Mg msgid
How much mail in the queue?
exim -bpr | grep "<" | wc -l How many Frozen mails in the queue
exim -bpr | grep frozen | wc -l
Deleteing Frozen Messages
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm
To find out, how many messages are there in the mail queue
exim -bpc
To check the mails in the queue
exim -bp
To force exim update
/scripts/eximup --force
Deliver forefully emails
exim -qff -v -C /etc/exim.conf &
Freeze mails from sender
exiqgrep -i -f (mail address here) | xargs exim -Mf
For more stuff
http://www.webhostingtalk.com/showthread.php?t=623960