跳至內容

Amazon SES bug or problem

0

i have one user gestordebens

and key AKIAxxz this working smtp in php

now i create other user maikonemails

and key AKIAyyz

this not working in smtp (phpmailer) is EXACLY same permission, all...

show this error

message: SERVER -> CLIENT: 535 Authentication Credentials Invalid Debug level 1; message: SMTP ERROR: Password command failed: 535 Authentication Credentials Invalid Debug level 4; message: SMTP Error: Could not authenticate.

but how is possible one old user working and one new user not working ?

i no have more idea how make

I use details the old user (user one) gestordebens WORKING phpmailer and send email

I use details the new user (user two) maikonemails show error phpmailer Credentials Invalid

and i take key, i try create new user and ALL new users i have same error in phpmailer.

i use EXACLY same permissions the first user gestordebens

my acct not is Sandbox mode

已提問 2 年前檢視次數 194 次

2 個答案
0

With SES you dont use the IAM access keys as the SMTP Username and Password. Even though when you create SES Credentials, it creates IAM Access keys and returns the already converted SES Credentials.

When creating SMTP Credentials in the SES console, ensure you are in the correct region.

All information can be located here https://docs.aws.amazon.com/ses/latest/dg/smtp-credentials.html

Obtaining SES SMTP credentials by converting existing AWS credentials https://docs.aws.amazon.com/ses/latest/dg/smtp-credentials.html#smtp-credentials-convert

Although you can generate SES SMTP credentials for any IAM user, AWS recommend that you create a separate IAM user when you generate your SMTP credentials.

專家

已回答 2 年前

專家

已審閱 2 年前

  • is this my problem... i use IAM key and not SES credentials... this solve my problem. tks ALL for help me

  • Would be helpful if you could re-accept the answer. Thanks

  • Hey Thiago, id appreciate it if you could accept this answer as the correct one. Gary

-3
已接受的答案

If you created 2 SES Users for sending email and getting "Credentials Invalid" error, you don't need to created accesskey and secretkey for another user you can use same accesskey and secretkey.

if the issue is still you may need to give AmazonSESFullAccess to SES Users whose credentials are not valid. Enter image description here

已回答 2 年前

  • This is not correct.

    You dont use IAM keys to authenticate with SES over SMTP and also, you dont assign ADMIN access to ses. The only access needed is

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": "ses:SendRawEmail",
                "Resource": "*"
            }
        ]
    }
    

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。