wRick
11-29-2014, 10:29 AM
Important EXIM Commands | HostDens.Com (http://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.
root@Rick~]# exim -bpc
-----------------------------------------------------
02] To remove a particular message
root@Rick~]# exim -Mrm message-id
-----------------------------------------------------
03] Force delivery of single email
root@Rick~]# 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:
root@Rick~]# exim -bp | exiqsumm
-----------------------------------------------------
06] To delete all frozen mails
root@Rick~]# exiqgrep -z -i | xargs exim -Mrm
-----------------------------------------------------
07] Freeze all queued mail from a given sender:
root@Rick~]#exiqgrep -i -f [email protected] | xargs exim -Mf
-----------------------------------------------------
08] View a message’s headers:
root@Rick~]# exim -Mvh [message-id]
-----------------------------------------------------
09] Check all mails by username
root@Rick~]# exigrep -u username /var/log/exim_mainlog
-----------------------------------------------------
10] Below command will display total number of emails send as well receive statistics per domain basis.
root@Rick~]#exim -bp | exiqsumm | sort -n
-----------------------------------------------------
11] Delete mails for particular domain which is largest email sender you got by previous step (10).
root@Rick~]#exiqgrep -i -r domainname.com | xargs exim -Mrm
-----------------------------------------------------
Thank you for reading !!!
██ HostDens.com (http://hostdens.com) : Enjoy Unlimited Web Hosting | Beyond Your Expectation
██ Reseller Hosting (http://hostdens.com/cheap-linux-reseller-hosting.php) | VPS Servers (Linux) (http://hostdens.com/cheap-canada-vps-hosting.php) | Shared Hosting (http://hostdens.com/one-dollar-linux-web-hosting.php)
██ $1 Hosting | Affordable Shared Web Hosting Services
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.
root@Rick~]# exim -bpc
-----------------------------------------------------
02] To remove a particular message
root@Rick~]# exim -Mrm message-id
-----------------------------------------------------
03] Force delivery of single email
root@Rick~]# 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:
root@Rick~]# exim -bp | exiqsumm
-----------------------------------------------------
06] To delete all frozen mails
root@Rick~]# exiqgrep -z -i | xargs exim -Mrm
-----------------------------------------------------
07] Freeze all queued mail from a given sender:
root@Rick~]#exiqgrep -i -f [email protected] | xargs exim -Mf
-----------------------------------------------------
08] View a message’s headers:
root@Rick~]# exim -Mvh [message-id]
-----------------------------------------------------
09] Check all mails by username
root@Rick~]# exigrep -u username /var/log/exim_mainlog
-----------------------------------------------------
10] Below command will display total number of emails send as well receive statistics per domain basis.
root@Rick~]#exim -bp | exiqsumm | sort -n
-----------------------------------------------------
11] Delete mails for particular domain which is largest email sender you got by previous step (10).
root@Rick~]#exiqgrep -i -r domainname.com | xargs exim -Mrm
-----------------------------------------------------
Thank you for reading !!!
██ HostDens.com (http://hostdens.com) : Enjoy Unlimited Web Hosting | Beyond Your Expectation
██ Reseller Hosting (http://hostdens.com/cheap-linux-reseller-hosting.php) | VPS Servers (Linux) (http://hostdens.com/cheap-canada-vps-hosting.php) | Shared Hosting (http://hostdens.com/one-dollar-linux-web-hosting.php)
██ $1 Hosting | Affordable Shared Web Hosting Services