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!

Webmail Logs

Discussion in 'E-mail Discussion' started by Shadyr, Apr 24, 2012.

  1. Shadyr

    Shadyr Registered

    Joined:
    Oct 16, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    Is there a way to get logs for webmail to display the actual source IP of the login? Or maybe another logfile contains this info? When I look at logs (/var/log/maillog) for webmail users, I just get this, which isn't very useful:

    maillog.1:Apr 18 20:15:30 web3 dovecot: imap-login: Login: user=<nnn@yyyyyy.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

    Since I'm pretty sure they aren't sitting on the console, I'd like to see where they are really coming from. In this case, an email account got phished and the owner wanted to know where the logins to it had originated.

    Thanks!
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You should be able to see the access in /usr/local/cpanel/logs/access_log as well during that timestamp. I see entries when I tried to log into webmail on port 2096 for my IP as well as the email account I was trying to use. A grep like this should work:

    Code:
    grep emailuser@domain.com /usr/local/cpanel/logs/access_log
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Shadyr

    Shadyr Registered

    Joined:
    Oct 16, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    Thank you, that got me the information I was looking for :)
     
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