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

Was this answer helpful?

 Print this Article

Also Read

How to install FFMPEG CentOS?

ffmpeg is the most popular opensource video streaming software and its being used on many...

How to install Postfix on CentOS?

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

How to fix Amazon S3-RequestTimeTooSkewed?

If you have configured a Amazon S3 backup server under cPanl backup configuration to upload...

How to perform the Linux Sever Hardening?

1. Check the hostname is setup or not - hostname 2. Check the IP address is assigned to hostname...

How to get files and folders from a remote server using FTP?

Let's make a quick start by looking at the various commands to get files and folders from a...

Powered by WHMCompleteSolution