Basic exim commands

1. REMOVE MAILS BY ID - /usr/sbin/exim -v -Mrm (MAIL ID HERE)

2. LIST QUEUED MAILS - 
/usr/sbin/exim -bp

3. LIST QUEUED MAILS COUNT - 
/usr/sbin/exim -bpc

4. REMOVE ALL MAILS - 
exiqgrep -i|xargs exim -Mrm

5. DELETE FROZEN MAILS - 
/usr/sbin/exim -bpr | grep '*** frozen ***' | awk '{print $3}' | xargs exim -Mrm

6. REMOVE <> MAILS FROM THE QUEUE - 
exim -bp | grep "<>"| awk '{system ("exim -Mrm "$3)}'

7. DELIVER FORCEFULLY EMAILS - 
/usr/sbin/exim -qff -v -C /etc/exim.conf &

8. FREEZE MAILS FROM SENDER - 
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf

9. REMOVE MAILS FROM SENDER - 
/usr/sbin/exiqgrep -i -f abc@example.com | xargs exim -Mrm

10. FORCE DELIVERY OF ONE MESSAGE - 
exim -M email-id

11. FORCE ANOTHER QUEUE RUN - 
exim -qf

12. FORCE ANOTHER QUEUE RUN AND ATTEMPT TO FLUSH THE FROZEN MESSAGE - 
exim -qff

13. VIEW THE MESSAGE LOGS
exim -Mvl messageID

14. VIEW BODY OF THE MESSAGE - 
exim -Mvb messageID

15. VIEW HEADER OF THE MESSAGE - 
exim -Mvh messageID

16. NUMBER OF MAILS IN THE QUEUE - 
exim -bpr | grep "<" | wc -l
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install AVG Antivirus scanner on Ubuntu?

AVG free is antivirus which protects from spyware as well malware. It is free to use for private...

How to setup a WordPress website on plain Centos server?

The following steps have been successfully tested on a plain centos server. Now lets start...

How to change the port number of Apache Web Server?

Default port to access the Apache is 80. Secure port for communicating with world for Apache is...

How to install Postfix on CentOS?

Postfix is an open-source Mail Transport Agent (MTA), which supports protocols like LDAP, SMTP...

How to install SOAP on CentOS?

Install SOAP on CentOS 1) Fire below command - yum install php-soap Output will be as follow...

Powered by WHMCompleteSolution