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.

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

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

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    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:
    6
    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
     
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    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).
     
  4. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    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