Topic: Important EXIM Commands (Read 3215 times)

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.

Quote

root@rick~]# exim -bpc

02] To remove a particular message

Quote

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

03] Force delivery of single email

Quote

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

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

Quote

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

05] Print what Exim is doing right now:

Quote

root@rick~]# exim -bp | exiqsumm

06] To delete all frozen mails

Quote

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

07] Freeze all queued mail from a given sender:

Quote

root@rick~]#exiqgrep -i -f luser@example.tld | xargs exim -Mf

08] View a message’s headers:

Quote

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

09] Check all mails by username

Quote

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.

Quote

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

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

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 queue2. exim -bp to check the no of mails in queue and also their detail.3. exim -qff -v forcefully send mail from queue.