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.

Webmail Logs

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

  1. Shadyr

    Shadyr Registered

    Joined:
    Oct 16, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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
     
  3. Shadyr

    Shadyr Registered

    Joined:
    Oct 16, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thank you, that got me the information I was looking for :)
     
Loading...

Share This Page