Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Basic Exim Commands

Exim is a Message transfer agent (MTA) for hosts that are very comfy and running under the Unix or Linux Operating system on dedicated servers.. Exim is among the most widely used message transmission agents (MTA). It is widely utilized on various platforms and is the default message transfer agent for the majority of cPanel servers.

Moreover, Exim is offered without charge to users under the GNU General Public License provisions. The detection of spam activity on servers is accomplished with the help of Exim. We can route the mail and set up the facilities for checking incoming mail by utilizing the Exim commands. A few minor adjustments have been made to Exim’s configuration.

The management of the usage of the Exim command is quite simple. It is simple to identify the users who are responsible for sending mail queues and bulk emails. Therefore, this article will discuss some of the more common Exim Commands and provide examples of their use.

Let’s get started!

List of Basic Exim Commands

The queue length can be determined by:
exim –bpc

Present a list of the messages currently in the queue:
exim -bop

A rundown of the messages now in the queue, including their count, volume, oldest and newest timestamps, as well as domains and totals:
exim -bp | exiqsumm

Demonstrate what Exim is doing at this very moment:
exiwhat

Show all of the Exim configuration options as follows:
exim –bP

Exiqgrep Commands

The grepping tool known as Exiqgrep is utilized in the process of searching for patterns within the mail queue. Exim –bp, cut, awk, grep, and wc-l are examples of complex combinations of flags and numerous sorting and pattern-matching operations that can be avoided with the assistance of the exiqgrep command.

Look through the queue for any messages sent by a certain sender:
exiqgrep -f [luser]@domain

Look through the queue for any messages addressed to a certain recipient domain:
exiqgrep -r [luser]@domain

Print messages that are older than the number of seconds that you specify:
exiqgrep -o 74000

Print only those messages that are more recent than the number of seconds that you specify:
exiqgrep -y 3600 […]

Print only the message-id that was found as a consequence of any of the two searches described above:
exiqgrep -i [-r | -f] …

Print a count of the messages that match any of the searches that were performed above:
exigrep -c

Start a queue run:
exim -q -v

Eliminate a message from the queue by doing the following:
exim -Mrm [ …]

Freeze message:
exim -Mf [ …]

Send out a message that says:
exim -Mt [ …]

Force delivery message:
exim -M [ …]

Deliver a message, but only in the event that the retry time has passed:
exim -Mc [ …]

Cause the message to fail and be returned with the error “cancelled by administrator”:
exim -Mg [ …]

Remove all frozen messages:
exiqgrep -z -i | xargs exim –Mrm

Erase all of the messages that are older than the specified number of days:
exiqgrep -o 432000 -i | xargs exim –Mrm

Hold all queued mail from a specific sender:
exiqgrep -i -f [email protected] | xargs exim –Mf

Print the message’s header, which includes the following:
exim -Mvh

Print the body of the message:
exim -Mvl

Add a recipient to a message:
exim -Mar [ …]

Modify the sender of a message by doing the following:
exim -Mes

Exim is a message transfer agent (MTA) that can be implemented on Unix machines that are connected to the Internet. It can be obtained without charge in accordance with the conditions of the GNU General Public License. It is designed in a manner comparable to Smail 3, although its facilities are more comprehensive. It is possible to route mail in various ways, and the capabilities for examining incoming mail are rather broad. There is a considerable lot of freedom in how mail can be routed. Although Exim’s configuration is very different from that of Sendmail’s, it is possible to install Exim in place of Sendmail.

Moreover, the Exim command line interface is very user-friendly. It is simple for us to clear out mail queues, and if a user is sending an unusually high volume of emails, we can quickly identify and clear out their account. Above, we mentioned all the Basic Exim Commands that you must know. Good Luck!

The post Basic Exim Commands appeared first on Blog - THCServers.com.



This post first appeared on Official THCServers.com, please read the originial post: here

Share the post

Basic Exim Commands

×

Subscribe to Official Thcservers.com

Get updates delivered right to your inbox!

Thank you for your subscription

×