Bobby's Blog

Useful Exim Commands

Exim mail server

What is exim?

Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. It is freely available under the terms of the GNU General Public Licence. In style it is similar to Smail 3, but its facilities are more general. There is a great deal of flexibility in the way mail can be routed, and there are extensive facilities for checking incoming mail. Exim can be installed in place of Sendmail, although the configuration of Exim is quite different.

Source


Useful Exim Commands

Here’s how you could manage exim via your terminal.

– Check size of mail queue:

– Check messages in the queue:

– Get structured recap of the messages in the queue:

– Remove emails sent from domain.com:

– Remove emails sent to domain.com:

– Number of emails per email account:

– Check the exim log for emails generated from folders/scripts (cwd):

– Find any emails generated by a PHP script currently in the mail queue:

– Top 50 usage:

– IPs connected on port 25:

– “Nobody” spamming:

– Mail queue summary:

– Shows messages headers:

– Body of the message:

Hope that this helps 🙂

About the author

Bobby

Linux System Administrator