Important EXIM Commands | HostDens.Com

EXIM is a message transfer agent (MTA) for hosts that are highly comfortable and running in Unix or Linux Operating system. Exim server is developed at the University of Cambridge. We can easily manage and configure in server . In this post have shared few executable commands as below


Here are few Important Exim Commands, which are used daily :

01] To print the email queue.

[email protected]~]# exim -bpc
-----------------------------------------------------
02] To remove a particular message

[email protected]~]# exim -Mrm message-id
-----------------------------------------------------
03] Force delivery of single email

[email protected]~]# exim -M email-id
-----------------------------------------------------
04] To remove all messages from the queue, enter:

exim -bp | exiqgrep -i | xargs exim -Mrm
-----------------------------------------------------
05] Print what Exim is doing right now:

[email protected]~]# exim -bp | exiqsumm
-----------------------------------------------------
06] To delete all frozen mails

[email protected]~]# exiqgrep -z -i | xargs exim -Mrm
-----------------------------------------------------
07] Freeze all queued mail from a given sender:

[email protected]~]#exiqgrep -i -f [email protected] | xargs exim -Mf
-----------------------------------------------------
08] View a message’s headers:

[email protected]~]# exim -Mvh [message-id]
-----------------------------------------------------
09] Check all mails by username

[email protected]~]# exigrep -u username /var/log/exim_mainlog
-----------------------------------------------------
10] Below command will display total number of emails send as well receive statistics per domain basis.

[email protected]~]#exim -bp | exiqsumm | sort -n
-----------------------------------------------------
11] Delete mails for particular domain which is largest email sender you got by previous step (10).

[email protected]~]#exiqgrep -i -r domainname.com | xargs exim -Mrm
-----------------------------------------------------

Thank you for reading !!!


HostDens.com : Enjoy Unlimited Web Hosting | Beyond Your Expectation
Reseller Hosting | VPS Servers (Linux) | Shared Hosting
$1 Hosting | Affordable Shared Web Hosting Services​