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

Reject messages at the API & SMTP level when send limit is exceeded #2875

Open
adamcooke opened this issue Mar 12, 2024 · 4 comments
Open

Reject messages at the API & SMTP level when send limit is exceeded #2875

adamcooke opened this issue Mar 12, 2024 · 4 comments

Comments

@adamcooke
Copy link
Contributor

It should be possible for servers to electively choose whether messages should be 'accepted and held' or 'rejected' when a server's send limit has been exceeded.

At present, all messages will be accepted.

  • The SMTP server should fail to authenticate requests where the server's send limit has been exceeded.
  • It should also verify the limits at the end-of-data to verify that the limit hasn't been exceeded during the pipelining of multiple messages following authentication.
  • The API should return an error if the limit is reached.
@olegbliaher
Copy link

And while we're at it, add a monthly send limit, if possible :)

@sandrovenezuela
Copy link

I personally don't think returning an error via the API is a good idea.

I think one option could be "accept and delete" in addition to "accept and queue".

Amazon SES, for example, does this. Anything that exceeds the limit is deleted, but an error is never returned.

@adamcooke
Copy link
Contributor Author

I personally don't think returning an error via the API is a good idea.

This would be optional. You don't have to enable it.

@sandrovenezuela
Copy link

Perfect, I understand.

So I think the options could be "accepted and held" or "accept and delete" or "rejected". Do you think it is interesting?

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

No branches or pull requests

3 participants