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!

Where are the logs keeps so I can see when a user check his pop email last?

Discussion in 'E-mail Discussion' started by BianchiDude, Oct 6, 2006.

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    166
    Where are the logs keeps so I can see when a user check his pop email last?
     
  2. sitekeeper

    sitekeeper Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    Troy, Mo
    To see live logins, you can use:
    tail -f /var/log/maillog

    To see the last 500 lines in the log:
    tail -500 /var/log/maillog
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    And to check when a specific user last checked their email:

    grep user@domain.com /var/log/maillog*

    (omit the '*' to make the command faster, but it will only check about the last 24 hours, so if it doesn't produce output, add the '*' back and try again).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Add a " | more " to the end of that to prevent hundreds upon hundreds of checks whizzing past if your users are like mine and check their email every .06 seconds. :D

    Code:
    grep user@domain.com /var/log/maillog* | more
    
    Now when the page fills hit the space bar to see the next page. Hit CTRL-C to escape back out to the command line.
     
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