How to stop aws ses mail queue?

做~自己de王妃 提交于 2021-01-29 08:39:58

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/58229901/how-to-stop-aws-ses-mail-queue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!