MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Dipak Bhoi on August 01, 2014, 07:04:20 PM

Title: Top 10 Helpful Exim Commands.
Post by: Dipak Bhoi on August 01, 2014, 07:04:20 PM
Hello guys,

Exim is a message transfer agent (MTA). Exim is free software. Its used for sending, routing and delivering emails. Exim has special features which can prevent the mass sending of emails.

Below are the commonly used commands.

1. Deliver message forcefull.

Quote#/usr/sbin/exim   -M   email-id

2. Force another queue to run

Quote#/usr/sbin/exim -qf

3. To View the log for the message.

Quote#/usr/sbin/exim  -Mvl   messageID

4. To View the body of the message.

Quote#/usr/sbin/exim  -Mvb  messageID

5. To View the header of the message.

Quote#/usr/sbin/exim  -Mvh  messageID

6. To Remove message without sending any error message.

Quote#/usr/sbin/exim -Mrm  messageID

7. To count number of emails in the queue.

Quote#/usr/sbin/exim -bp | grep "<" | wc -l

8. To check how many Frozen mails on the queue.

Quote#/usr/sbin/exim -bp | grep frozen | wc -l

9. For deleteing Frozen Messages.

Quote#/usr/sbin/exim -bp | grep frozen | awk {'print $3'} | xargs exim -Mrm

10.  To flush the exim queue.

Quote#exim -qff -v -C /etc/exim.conf


Enjoy !!