Saturday, October 23, 2010

Some Important Exim Commands

Queues information along with commands :-

1)**USE** Print a count of the messages in the queue- Quote:-

              root@localhost# exim -bpc

2)**USE** Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
Quote:-

             root@localhost# exim -bp
3)**USE** Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals)
Quote:-

              exim -bp | exiqsumm

4) **USE**Generate and display Exim stats from a logfile Quote:-

              eximstats /path/to/exim_mainlog
5)**USE** Generate and display Exim stats from a logfile, with less verbose output Quote:-

               eximstats -ne -nr -nt /path/to/exim_mainlog

6) **USE**Generate and display Exim stats from a logfile, for one particular day Quote:-

               fgrep 2007-02-16 /path/to/exim_mainlog | eximstats

7)**USE** Print what Exim is doing right now Quote:-

               exiwhat

8)**USE** How many Frozen mails on the queue :-

               exim -bpr | grep frozen | wc -l
9) **USE**To delete frozen emails Quote:-

               exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm

10) **USE** To deliver emails forcefully Quote:-

               exim -qff -v -C /etc/exim.conf &
11) **USE**To Flush all mail in  queue :-
               exim -qff

No comments:

Post a Comment