Saturday, May 26, 2012

Exim Commands

Debug a mail delivery:
 exim -bt -d email@address.com 
Retry message delivery:
 exim -M messageID
Force delivery of all message:
 exim -qf
Force delivery of all message and delete of frozen ones:
 exim -qff
Shows log delivery for a message:
 exim -Mvl messageID
Display message body:
 exim -Mvb messageID
Display message header:
 exim -Mvh messageID
Delete a message without warning:
 exim -Mrm messageID
Count messages in queue:
 exim -bpr | grep "<" | wc -l or exim -bpc
Display all messages from queue:
 exim -bp
Count frozen messages:
 exim -bpr | grep frozen | wc -l
Delete frozen messages:
 exim -bpr | grep frozen | awk '{print $3}' | xargs exim -Mrm
 
P.s. You can get some more cool tips from exim cheatsheet 

No comments:

Post a Comment