simplicix

Registered
Jul 1, 2013
3
0
1
cPanel Access Level
Root Administrator
Hi,

I need to get all the emails sent and received for a domain for a period of time.

I could get all the data via the Mail Delivery Reports from WHM, but I need to send those stats to the client.

I could do a huge copy paste, but I would lost formatting and it would be a pain to sort everything out.

I checked in cPanel and there's no module to get the same data from there.

So, I am wondering if I could do some command line to get results of the Mail Delivery Reports in plaintext?

I did try

cat /var/log/exim_mainlog | grep @domain.com > domain.com.txt

But it didn't load as many results as I can have in the Mail Delivery Report.

Please help,

Thanks,
Julien
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

The following option is potentially helpful for the information you want the client to obtain:

cPanel - Email Trace

Otherwise, you could try using the "exigrep" utility. EX:

Code:
exigrep domain.com /var/log/exim_mainlog*
Thank you.