SMTP Mail FROM Address Not Working with Amazon SES

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

SMTP Mail FROM Address Not Working with Amazon SES

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
SMTP Mail FROM Address Not Working with Amazon SES
SMTP Mail FROM Address Not Working with Amazon SES
2022-09-19 14:10:41
Tags: #Mail Server #SMTP
Hardware Version:
Firmware Version: 5.5.6

When configuring the Mail Server settings for SMTP, there seems to be two problems that are happening.

 

First, it is attempting to send mail from the SMTP Username rather than the Sender Address. In most SMTP servers, this is not a problem because the SMTP username is usually the same e-mail address. However, when using Amazon SES (Simple Email Service), the SMTP username is not a valid email address, and a valid FROM address needs to be used. It seems as if the Sender Address setting in the Mail Server settings is not being used.

 

Relevant log snippet:

omada-controller  | DEBUG: setDebug: JavaMail version 1.6.2
omada-controller  | DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtps,com sun mail smtp SMTPSSLTransport,Oracle]
omada-controller  | DEBUG SMTP: useEhlo true, useAuth true
omada-controller  | DEBUG SMTP: trying to connect to host " ", port 465, isSSL true
omada-controller  | 220 email-smtp ESMTP SimpleEmailService-d-3RK86H1ZJ 6oWt16JzbGN01LMUdX07
omada-controller  | DEBUG SMTP: connected to host " ", port: 465
omada-controller  | EHLO omadaserver 
omada-controller  | 250-email-smtp
omada-controller  | 250-8BITMIME
omada-controller  | 250-AUTH PLAIN LOGIN
omada-controller  | 250 Ok
omada-controller  | DEBUG SMTP: Found extension "8BITMIME", arg ""
omada-controller  | DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
omada-controller  | DEBUG SMTP: Found extension "Ok", arg ""
omada-controller  | DEBUG SMTP: protocolConnect login, host= , user=AKIAXXXXXXXXXXXXW3ES, password=<non-null>
omada-controller  | DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2
omada-controller  | DEBUG SMTP: Using mechanism LOGIN
omada-controller  | DEBUG SMTP: AUTH LOGIN command trace suppressed
omada-controller  | DEBUG SMTP: AUTH LOGIN succeeded
omada-controller  | DEBUG SMTP: use8bit false
omada-controller  | MAIL FROM:<AKIAXXXXXXXXXXXXW3ES>
omada-controller  | 501 Invalid MAIL FROM address provided
omada-controller  | DEBUG SMTP: got response code 501, with response: 501 Invalid MAIL FROM address provided
omada-controller  |
omada-controller  | RSET
omada-controller  | 250 Ok

 

Second, sending a test message appears to succeed - it actually generates a "Successful" message, but the e-mail is not sent and the log shows the errors above.

  3      
  3      
#1
Options
4 Reply
Re:SMTP Mail FROM Address Not Working with Amazon SES
2022-09-20 07:00:31

 

jgardner-qha wrote

When configuring the Mail Server settings for SMTP, there seems to be two problems that are happening.

 

First, it is attempting to send mail from the SMTP Username rather than the Sender Address. In most SMTP servers, this is not a problem because the SMTP username is usually the same e-mail address. However, when using Amazon SES (Simple Email Service), the SMTP username is not a valid email address, and a valid FROM address needs to be used. It seems as if the Sender Address setting in the Mail Server settings is not being used.

 

Dear  @jgardner-qha 

 

Thank you so much for taking the time to report the issue to our community!

 

I've forwarded this issue to our D&R department and we are doing test on it. If I have any update I will let you know. 

Best Regards! >> Omada EAP Firmware Trial Available Here << >> Get the Latest Omada SDN Controller Releases Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#2
Options
Re:SMTP Mail FROM Address Not Working with Amazon SES
2022-12-07 17:14:10

  @Hank21 

I have the same problem. Is this still being worked on?

https://community.tp-link.com/en/business/forum/topic/590794?replyId=1157584

 

  0  
  0  
#3
Options
Re:SMTP Mail FROM Address Not Working with Amazon SES
2022-12-09 03:50:28

 

peter-bis wrote

  @Hank21 

I have the same problem. Is this still being worked on?

https://community.tp-link.com/en/business/forum/topic/590794?replyId=1157584

 

Dear @peter-bis 

 

D&R already address the problem but will need more time to solve it. 

Best Regards! >> Omada EAP Firmware Trial Available Here << >> Get the Latest Omada SDN Controller Releases Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#4
Options
Re:SMTP Mail FROM Address Not Working with Amazon SES
2022-12-13 11:37:25 - last edited 2022-12-13 11:38:38

Just to note that I am seeing this for two Omada controllers using google's smtp server.  It uses the username as the sender address for both rather what is in the sender address.

 

Surely this is a very easy fix - its likely just referring to the wrong field when building the message being sent.

  1  
  1  
#5
Options

Information

Helpful: 3

Views: 1060

Replies: 4

Tags

Related Articles