AWS Amazon SES stops working unexpectedly

I can’t send mail with aws.amazon SES since Monday (30-10-2012) used to work fine and it stopped working. I got the following errors

A PHP Error was encountered Severity: User Warning Message: SimpleEmailService::getSendQuota(): Sender - RequestExpired: Request timestamp: Wed, 31 Oct 2012 11:50:32 UTC expired. It must be within 300 secs/ of server time. Request Id: e472fb5a-2351-11e2-8183-8138c6c456cf Filename: libraries/ses.php Line Number: 363 

But the same code works with a small one on another server. What a problem. Please help, I could not find a solution for this.

+4
source share
3 answers

As a quick suggestion, check the SES time by making an HTTP request to SES (for example, wget -S "https://email.us-east-1.amazonaws.com") and compare the time of your server. Update the server time (or use NTP if you have not already done so) and see if the problem itself has been resolved. Thanks @ cyberx86.

+5
source

As the experts suggested: -Britain (and, possibly, other countries) switched to winter time on the same day when your error started to occur, and the error says that the time is more than 300 seconds. I would vote for the root cause.

+2
source

The only reason I can think of is the time difference between the amazon mail server and your server.

Do the following

1) Get amazon mail server time

wget -S " https://email.us-east-1.amazonaws.com "

2) Get your server time

wget -S " http://yourdomain.com "

If there is a time difference of more than 300 seconds, change the server time 3) sudo date nnddhhmmyyyy.ss WHERE

  nn- month between 01 - 12 dd- day between 01 - 31 hh- hour between 01 - 12 mm- minute between 01 - 60 yyyy - year ss - Seconds between 01 - 60 
0
source

Source: https://habr.com/ru/post/1443226/


All Articles