• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers

Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

Important EXIM Commands

Started by wRick, November 27, 2014, 11:24:34 AM

wRick

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

Important Exim Commands :

Here are few Important Exim Commands, which are used daily

01] To print the email queue.

   
Quoteroot@rick~]# exim -bpc

02] To remove a particular message

   
Quoteroot@rick~]# exim -Mrm message-id

03] Force delivery of single email

   
Quoteroot@rick~]# exim -M email-id

04] To remove all messages from the queue, enter:

   
Quoteroot@rick~]# exim -bp | exiqgrep -i | xargs exim -Mrm

05] Print what Exim is doing right now:

   
Quoteroot@rick~]#  exim -bp | exiqsumm

06] To delete all frozen mails

   
Quoteroot@rick~]# exiqgrep -z -i | xargs exim -Mrm

07] Freeze all queued mail from a given sender:

   
Quoteroot@rick~]#exiqgrep -i -f [email protected] | xargs exim -Mf

08] View a message's headers:

   
Quoteroot@rick~]# exim -Mvh [message-id]

09] Check all mails by username

   
Quoteroot@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.

   
Quoteroot@rick~]#exim -bp | exiqsumm | sort -n

11] Delete mails for particular domain which is largest email sender you got by previous step (10).

   
Quoteroot@rick~]#exiqgrep -i -r domainname.com | xargs exim -Mrm


Thank you for reading !!!

Contact details:
      Live Chat - Available at our website
      Email - [email protected]
   HostDens.com : Enjoy Unlimited Web Hosting | Beyond Your Expectation
   █ Reseller Hosting | VPS Servers (Linux) | Shared Hosting
   $1 Hosting | Affordable Shared Web Hosting Services​

hmb-willem

Very useful commands in exim management. Thank you for sharing.

onliveserver

Hello,

Exim is by default mail server in WHM/Cpanel, the mail use Exim to controlled all the task of mailing server.
There is some of command to perform task on exim server.
1. exim -bpc   to check no of mail in queue
2. exim -bp  to check the no of mails in queue and also their detail.
3. exim -qff  -v   forcefully send mail from queue.