Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mail Delivery Reports

Discussion in 'E-mail Discussion' started by simplicix, Jan 7, 2014.

  1. simplicix

    simplicix Registered

    Joined:
    Jul 1, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,183
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. simplicix

    simplicix Registered

    Joined:
    Jul 1, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    That worked like a charm.

    Thanks a lot!
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice