postal icon indicating copy to clipboard operation
postal copied to clipboard

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

Open adamcooke opened this issue 1 year ago • 4 comments

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.

adamcooke avatar Mar 12 '24 22:03 adamcooke

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

olegbliaher avatar Mar 26 '24 15:03 olegbliaher

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.

sandrovenezuela avatar Apr 10 '24 19:04 sandrovenezuela

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.

adamcooke avatar Apr 10 '24 19:04 adamcooke

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?

sandrovenezuela avatar Apr 11 '24 18:04 sandrovenezuela