question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Statistics for user account

See original GitHub issue

Despite of having installed the newest wildduck-haraka plugin with the 150message/hour quota fix, some of my user accounts get disabled:

Jun 12 09:44:05 mail haraka[1177]: [NOTICE] [94809DF0-873C-4139-9D3C-7F267772E370.3] 
  [core] sender <whoami@gmail.com> code=CONT msg=""
Jun 12 09:44:05 mail haraka[1177]: [INFO] [94809DF0-873C-4139-9D3C-7F267772E370.3] 
  [core]  hook=rcpt plugin=wildduck function=hook_rcpt params=<myuser@awesomeness.com> retval=DENYSOFT msg="[object Object]"
Jun 12 09:44:05 mail haraka[1177]: [NOTICE] [94809DF0-873C-4139-9D3C-7F267772E370.3] 
  [core] recipient <myuser@awesomeness.com> code=DENYSOFT msg="[object Object]" sender=whoami@gmail.com

Reading through the api documentation: https://api.wildduck.email/#api-Mailboxes-GetMailbox

There are no statistics or metric queries. Which is rather vital imho for debugging. So I would like to request a statistics for received and send messages for hour/day/month.

The API could simply extend the get user request:

GET https://api.wildduck.email/users/:id

and in the response have some additional fields:

"metrics": {
    "hourly": "142",
    "daily": "1230",
    "monthly: "15632",
    "lastUpdated: "2018-06-08T11:19:10.911Z"
 },

The issue (quote reached) is especially annoying, since it persists across reboots, and config file editing (/opt/haraka/plugins/wildduck/config/wildduck.yaml). (inside of redis-cli a flushall is required)

Any comments?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
andris9commented, Jun 14, 2018

Good idea, added this to latest commit - if a counter key value is modified for an user then the according counter in Redis is reset. So in your case if you change imapMaxUpload for an userthen the counter is reset to 0

0reactions
bunyevaczcommented, Jun 13, 2018

When I raise the upload limit (I hit the 10GiB/24h limit while importing), I also need to flush the redis database. (redis-cli flushall)

Would be nice if wildduck would update the relevant redis information.

curl -i -XPUT http://localhost:8080/users/5bxxxxxxxxx83   -H 'Content-type: application/json'   -d '{"imapMaxUpload": "104857883830"}'
Read more comments on GitHub >

github_iconTop Results From Across the Web

View User Statistics - Oracle Help Center
To view user statistics: After you sign in to the Oracle Content Management web application as an administrator, click Analytics in the navigation...
Read more >
Who Are You? A Statistical Approach to Measuring User ...
In this work, we perform the first public evaluation of a classification system for user authentication. In particular: (i) We develop a statistical...
Read more >
Login Statistics by User - EdApp
This article summarizes the features of the login statistics by user report, found under the 'Analytics' tab · Who has logged in to...
Read more >
Account Statistics - IceWarp
Account Statistics. This feature allows you to monitor the email usage of your users. This feature keeps a log of all sent and...
Read more >
Active Users - Analytics Help - Google Support
Sign in to Google Analytics. Navigate to your view. Open Reports. Select Audience > Active Users. Active Users data is available in all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found