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.

User last access

Discussion in 'E-mail Discussions' started by Arvy, Jan 15, 2008.

  1. Arvy

    Arvy Well-Known Member

    Joined:
    Oct 3, 2006
    Messages:
    92
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Twitter:
    Any ideas how to generate a report with all accounts in a server, with the date of last access? My users have several accounts and there are old accounts that no one is reading and still receiving spam, using lots of useless disk space.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Do you mean cPanel user or mail user?

    If cPanel user, you could base stats off: /usr/local/cpanel/logs/access_log. If mail user, you could base stats off /var/log/maillog
     
  3. Arvy

    Arvy Well-Known Member

    Joined:
    Oct 3, 2006
    Messages:
    92
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sorry, I mean email users. All emails in all accounts.
    Just to list the email acounts that arent in use anymore.

    Something like:

    Domain a.com
    -- a@a.com - last access 01/17/2008 11:33
    -- b@a.com - last access 01/13/2008 01:23
    (...)
    Domain b.com
    (...)

    Maybe this kind of information (reports of last access, mailbox size, percentual of usage) could be a very good new feature for cPanel next versions. Of course, for a unique report of all domains, not in a single domain. It's nerddy but useful for server admins specially looking for wasted disk space in a small hard disk.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Some of this information is already available in the cPanel interface, simply login and in the Mail section click on Email Accounts. You can view the disk usage and mail quota for all mail accounts in that hosting account.

    If you want overall stats for a hosting account, in the cPanel interface go to Files and click Disk Space Usage. At the top where it says Disk Usage Summary, the mail directory notes how much disk space is currently being consumed by email accounts. The pie chart will show you the percentage of the account's disk quota being used by any particular folder (such as mail for email).

    At this time, there is no easy way to determine when an account was last accessed by webmail, POP3, IMAP or SMTP. Analyzing the logs is currently the most reliable means by which to do this. Webmail interfaces will only display the date of the last time you logged in via webmail, not considering other methods of accessing that email accounts.

    You're welcome to make an official feature request for this at: http://bugzilla.cpanel.net
     
Loading...

Share This Page