Exim commands in linux

Written By smart| 7 July 2009| No Comment

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.

exim

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


Related Posts with Thumbnails

Share With Others

Leave your response!




Comment moderation is enabled. Your comment may take some time to appear.