Quickly and easily finding the source of emails in Exim

Ever found yourself in the position where there are hundreds, or perhaps, thousands of emails sitting in your Exim queue? Fortunately, there's a quick and easy way to find where they're originating from! 

awk '$3 ~ /^cwd/{print $3}' /var/log/exim_mainlog | sort | uniq -c | sed "s|^ *||g" | sort -nr

The above command will provide an output such as the below:

240 cwd=/var/spool/exim
20 cwd=/home/user
7 cwd=/home/user2

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Running a ClamAV and Maldet scan on cPanel servers

You may be familiar with ClamAV and Maldet (aka Linux Malware Detect). They're widely known as...

What is mysqluserstore?

On cPanel servers, you may come across the process...

Installing the LiteSpeed WHM Plugin

If your server is running cPanel/WHM, simply execute the below commands via SSH (as root):wget...

Changing the timezone

If you're like us, you'll want your server's timezone to match your local time to make log...

Finding the largest files and directories

This nifty command allows you to built up a list of the largest files and...