问题
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