Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Thursday, 16 January 2014

Exim

Exim is a mail transfer agent (MTA) used on Unix-like operating systems. Exim is free software distributed under the terms of the GNU General Public License, and it aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail.

Usefull EXIM Commands.

Initial Check :

To show what EXIM is doing right now.
# exiwhat

To show number of messages in the queue.
# exim -bpc

To print list of messages in the queue (time queued, size, message-id, sender, recipient).
# exim -bp

Open the mail header of given message_Id.
# exim -Mvh <message_id>

Open the mail body of given message_Id.


# exim -Mvb <message_id>

View the Message log for the given Id.
# exim -Mvl <message_id>


Try to send the mail in the given Id.
# exim -M <message_id>

To forcefully send the entire mail queue.
# exim -qf

To forcefully send the entire mail queue.
# exim -qff

To edit the sender of a message
# exim -Mes <message-id> <address>

To remove a message from the queue
# exim -Mrm <message-id>

To freeze a message
# exim -Mf <message-id>
  
Filtering the Mails :

To print Summary of the mails.
# exim -bp | exiqsumm

To find the Frozen mails on the Mail Queue,
# exiqgrep -zc
or
# exim -bpr | grep frozen | wc -l

To remove frozen mails from the Queue,
# exiqgrep -zi | xargs exim -Mrm

To view the message Ids of the given domain name or E-mail address..
# exiqgrep -f <domain_name/e-mail> -i

To print message Ids recieved by the domain name or E-mail address.
# exiqgrep -r <domain_name/e-mail> -i

To remove the mails from a specific user,type
# exiqgrep -f <e-mail@domain> -i | xargs exim -Mrm

The following script will give the summary of mails in the mail queue.
# exim -bpr | exiqsumm -c | head

You will get a result as like follows,

Count  Volume  Oldest  Newest  Domain
 -----      ------      ------     ------       ------

  114   171KB     24h     28m  testdomain.com
   15    28KB       36h     7m    gmail.com
    5     10KB       34h     10h   test2domain.com
    4     8192        27h     4h     yourdomain.com
    4     75KB       7m      7m    server.domain.com
    3     6041        23h     42m  test123.com


You can find useful commands/scripts used in exim in the following link,


More Reference:

https://github.com/Exim/exim/wiki

http://www.exim.org/exim-html-current/doc/html/spec_html/ch-log_files.html

http://www.exim.org/exim-html-4.20/doc/html/spec_13.html#IX1148

http://www.grscripts.com/tweaking.html 

No comments:

Post a Comment