#1 2017-11-21 05:10:22

robinsonjas
Member
Registered: 2017-11-15
Posts: 6

AWS SES issue w/ authentication

250 email-smtp.amazonaws.com
250-email-smtp.amazonaws.com
250-8BITMIME
250-SIZE 10485760
250-STARTTLS
250-AUTH PLAIN LOGIN
250 Ok
334 VXNlcm5hbWU6
334 UGFzc3dvcmQ6
535 Authentication Credentials Invalid
530 Authentication required
503 Error: need MAIL command
503 Error: need MAIL command
500 Error: command not implemented
500 Error: command not implemented
500 Error: command not implemented
500 Error: command not implemented
500 Error: command not implemented
500 Error: command not implemented
500 Error: bad syntax
501 Input line length is too long!


I'm testing w/ SES for sending mail alerts. I get the feeling the key generated by AWS is too long for the field.
I have tried multiple SES users and keys - all will fail when I know i have all the proper flags:

[root@mblesx01:/vmfs/volumes/e411d104-0adf4aab/xsi-dir] "/vmfs/volumes/e411d104-0adf4aab/xsi-dir/xsibackup" --backup-prog=onediff --options=no-500M-check --backup-point="/vmfs/volumes/backup/VMs/xsi" --b
ackup-type=custom --backup-vms="unifi" --mail-from=noc@xxx.com --mail-to=noc@xxx.com --smtp-srv=email-smtp.us-east-1.amazonaws.com --smtp-port=587 --smtp-usr=A-----------------B
4KA --smtp-pwd=z----------------------------------------------u --smtp-sec=TLS --test-mode=true

Please assist
Thank You

Offline

#2 2017-11-21 05:11:40

robinsonjas
Member
Registered: 2017-11-15
Posts: 6

Re: AWS SES issue w/ authentication

BTW - this is for 'Pro' registered user info@mbl-arch.com

Offline

#3 2017-11-21 10:54:15

admin
Administrator
Registered: 2017-04-21
Posts: 1,363

Re: AWS SES issue w/ authentication

When you say key, I guess you mean the password, right?
There is no limit in the length of the fields, they aren't cut down. Nevertheless you could run into this issue if:

- Your password is not double quoted
- Your password contains special characters that need to be escaped, even although it's double quoted

Offline

#4 2017-11-21 14:04:43

robinsonjas
Member
Registered: 2017-11-15
Posts: 6

Re: AWS SES issue w/ authentication

Hmm, thought I tried all that ...but will try again and report back.
So there's nothing to this message: "501 Input line length is too long!" from the error output?

Offline

#5 2017-11-21 14:59:32

roberto
Moderator
Registered: 2017-04-22
Posts: 49

Re: AWS SES issue w/ authentication

That's way below the error:

535 Authentication Credentials Invalid

It makes no sense to try to interpret a derived error message before actually fixing the primary one.

Last edited by roberto (2017-11-21 14:59:55)

Offline

#6 2017-11-21 15:37:14

robinsonjas
Member
Registered: 2017-11-15
Posts: 6

Re: AWS SES issue w/ authentication

@roberto - I hear what you are saying, but when I test thru an online relay tester (http://smtper.net) with the same credentials and settings it works fine.

I ran the test 2 times just now from CLI - double quoting the password and verifying the one special character in the password is escaped \
still fails

Offline

#7 2017-11-21 16:06:55

admin
Administrator
Registered: 2017-04-21
Posts: 1,363

Re: AWS SES issue w/ authentication

smtp.amazonaws.com needs to have the PIPELINING extension enabled, by what I see in the SMTP conversation, it probably doesn't. Fortunately you can use any other SMTP server that does, including: gmail.com, hotmail.com, yahoo.com, etc...

Offline

#8 2017-11-22 03:57:27

robinsonjas
Member
Registered: 2017-11-15
Posts: 6

Re: AWS SES issue w/ authentication

Implemented  a free GMAIL account for a noreply relay - works fine.
Thanks for the assistance

Offline

Board footer