Exim commands in linux
Exim : Exim is a mail transfer agent (MTA) used on Unix-like operating systems. its aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail.
Some Useful commands
count the messages in the queue
$ exim -bpc
send the message with id
$ exim -M id
Count how many frozen mails in the queue
$ exim -bpr | grep frozen | wc -l
Delete frozen mails in the queue
$ exim -bpr | grep frozen | awk {‘print $3′} | xargs exim -Mrm
deliver all emails forcefully
$ exim -qff -v -C /etc/exim.conf &
summary of messages in the queue
$ exim -bp | exiqsumm
Generate and display Exim stats from a logfile
$ eximstats /var/log/exim_mainlog
Generate and display Exim stats from a logfile, for one particular day
$ grep 2009-05-04 /var/log/exim_mainlog | eximstats












Leave your response!