guillemus
guillemus

Reputation: 101

How to stop aws ses mail queue?

Due to a bug in our application, one of our testing servers started spamming mail orders to AWS SES. We believe that these mails have been put into a queue, as the mail receiver keeps getting around 1 - 2 mails per second, and is not stopping.

The SES console doesn't show real time sent mails, so we are still figuring out how many mails have been sent to the queue.

Is there a way to stop this behaviour? We use the same SES for the production application, and we fear we might runnout of mails to send. How can the "queue" be cancelled?

Upvotes: 0

Views: 2687

Answers (1)

Thrallix
Thrallix

Reputation: 731

AWS has a built-in queue purging function.
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_PurgeQueue.html

https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue/
?Action=PurgeQueue
&Expires=2020-12-12T22%3A52%3A43PST
&Version=2012-11-05
&AUTHPARAMS

Upvotes: 1

Related Questions