Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to limit for all email > #1

Open
dzung042 opened this issue Aug 8, 2020 · 1 comment
Open

How to limit for all email > #1

dzung042 opened this issue Aug 8, 2020 · 1 comment

Comments

@dzung042
Copy link

dzung042 commented Aug 8, 2020

I want to limit all email, this code can limit ?

@nbari
Copy link
Owner

nbari commented Aug 9, 2020

You could use something like:

policyd-rate-limit -d mysql://root:test@tcp(localhost)/policyd -s /var/run/policy-rate-limit.sock cuser -l 3 -r 3600

that will create a policy of 3 emails in 1-hour cuser -l 3 -r 3600 for any user so later you could modify it if required per user.

Check the option for creating a user cuser:

SUBCOMMANDS:
    cuser    Create the user if not found, defaults: 100 messages per day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants