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

[Feature] More limits for emailaccount to prevent spam #4192

Open
jderoij opened this issue Dec 1, 2023 · 3 comments
Open

[Feature] More limits for emailaccount to prevent spam #4192

jderoij opened this issue Dec 1, 2023 · 3 comments
Labels
feature New feature or request

Comments

@jderoij
Copy link

jderoij commented Dec 1, 2023

Describe the feature or change in detail

I think is is nice to set more limits for emailaccounts to prevent SPAM. Now you can only set an hour limit. But for some accounts I would also like to set a daily limit and a recipient limit.

For exim4 you can do that with this line (I think):

recipients_max = 10
recipients_max_reject = true

and something like this to get two limits on sending mail:

acl_not_smtp:
deny message = Web site of $authenticated_id user is sending too much emails - rate overlimit = $sender_rate / $sender_rate_period
ratelimit = 20 / 1h / $authenticated_id

deny message = Web site of $authenticated_id user is sending too much emails - rate overlimit = $sender_rate / $sender_rate_period
ratelimit = 200 / 1d / $authenticated_id

I can help you with the PHP code for this feature, but my knowledge of Linux and Exim is limited

Would you like to sponsor this feature to have it implemented?

No

@jderoij jderoij added the feature New feature or request label Dec 1, 2023
@jaapmarcus
Copy link
Member

There is allready a limit of 200 mails an hour for email send via php / send mail

It should be easy to change that value to a lot less if needed / wanted

Changes in existing Exim config is a disaster...

@Aartsie
Copy link
Contributor

Aartsie commented Dec 4, 2023

I think when there is an section in the docs where this is explained and the instructions how to change this, it will be good for the most of us.

Because I think the amount of emails that the server may send is also dependent on the usage of the server.
You can already change the Exim config under server settings `/edit/server/exim4/'

@AysadKozanoglu
Copy link

@jaapmarcus your choice and solution is the correct right way. thank you

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

No branches or pull requests

4 participants