Limit restore mail
Dear jsuto,
We are using piler as archival solution but we would like to limit restoring mail option to 5 mails per user per hour for security purpose. Please help to resolve this.
Thanks in Advance..!! Regards, Arun.
Comments (6)
-
repo owner -
reporter Dear jsuto, Sorry for assigning this as major bug I am unaware of this... I hope this option will hide only for that particular user if he exceeded and not for all.. please guide me how to set this.
-- regards arun
-
repo owner OK, I think it's ready to test. Upgrade to the master branch, and add the following to config-site.php:
config['MAX_RESTORE_PER_HOUR'] = 5;
-
reporter Dear jsuto,
Thanks for the solution.. I will do the same in our setup and update.
-
repo owner - changed status to resolved
No news is good news
-
reporter sorry janos.. I really forgot to update.. provided solution just simply worked fine...
Thanks a lot...!!! it helped me on time...!!
- Log in to comment
I'm not sure how it's a major bug. Anyway it can be done for regular users. I have something like to hide the bulk download button, and check the last 60 mins of audit records for the given user. If he has already restored 5 emails, then hide the restore link (and probably worth to hide the download link as well).
The only requirement is to enable auditing (turned on by default)