The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mail Delivery Reports

Discussion in 'E-mail Discussions' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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