Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Exim Command  (Read 3149 times)

0 Members and 1 Guest are viewing this topic.

Haripriya H

  • Guest
Exim Command
« on: October 28, 2013, 10:53:40 pm »
1 Print a count of the messages in the queue:
   ~~~~~~~~~~~~~~~~~~~~~~~
   root@localhost# exim -bpc
   ~~~~~~~~~~~~~~~~~~~~~~~
2 Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
   ~~~~~~~~~~~~~~~~~~~~~~~
   root@localhost# exim -bp
   ~~~~~~~~~~~~~~~~~~~~~~~
3 Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):
   ~~~~~~~~~~~~~~~~~~~~~~~
   root@localhost# exim -bp | exiqsumm
   ~~~~~~~~~~~~~~~~~~~~~~~
4 Print what Exim is doing right now:
   ~~~~~~~~~~~~~~~~~~~~~~~
   root@localhost# exiwhat
   ~~~~~~~~~~~~~~~~~~~~~~~
5 Display all of Exim’s configuration settings:
   ~~~~~~~~~~~~~~~~~~~~~~~
   root@localhost# exim -bP
   ~~~~~~~~~~~~~~~~~~~~~~~
6 Use -f to search the queue for messages from a specific sender:
   ~~~~~~~~~~~~~~~~~~~~~~~
   root@localhost# exiqgrep -f [luser]@domain
  ~~~~~~~~~~~~~~~~~~~~~~~
7 Use -r to search the queue for messages for a specific recipient/domain:
   ~~~~~~~~~~~~~~~~~~~~~~~
   root@localhost# exiqgrep -r [luser]@domain
   ~~~~~~~~~~~~~~~~~~~~~~~
8 Remove a message from the queue:
   ~~~~~~~~~~~~~~~~~~~~~~~
   root@localhost# exim -Mrm <message-id> [ <message-id> ... ]
   ~~~~~~~~~~~~~~~~~~~~~~~
9 Freeze a message:
  ~~~~~~~~~~~~~~~~~~~~~~~
  root@localhost# exim -Mf <message-id> [ <message-id> ... ]
  ~~~~~~~~~~~~~~~~~~~~~~~
10 View a message’s headers:
  ~~~~~~~~~~~~~~~~~~~~~~~
  root@localhost# exim -Mvh <message-id>
  ~~~~~~~~~~~~~~~~~~~~~~~
11 View a message’s body:
  ~~~~~~~~~~~~~~~~~~~~~~~
  root@localhost# exim -Mvb <message-id>
  ~~~~~~~~~~~~~~~~~~~~~~~
12 To remove the frozen mail fire
  ~~~~~~~~~~~~~~~~~~~~~~~
  exim -bpr | grep frozen | awk {‘print $3′} | xargs exim -Mrm
  ~~~~~~~~~~~~~~~~~~~~~~~


The above mentioned commands are used to trouble shoot emails on cpanel server.

Hope You Trouble Shoot Well   8)