Error (554, 'Transaction failed: Local address contains control or whitespace') on SES AWS

Hi friends,

I’m trying to fix a new error, after a huge help from @max_morais_dmm (Thanks a lot, Max!!).

Title
frappe.email.queue.flush
Error
(554, ‘Transaction failed: Local address contains control or whitespace’)
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py”, line 424, in send_one
smtpserver.sess.sendmail(email.sender, recipient.recipient, encode(message))
File “/usr/lib/python2.7/smtplib.py”, line 751, in sendmail
raise SMTPDataError(code, resp)
SMTPDataError: (554, ‘Transaction failed: Local address contains control or whitespace’)

My configs in ERPNext are ok (I guess…) (email domain using my domain, but using ses smtp, email account setted up, Amazon SES with verified e-mail, with sending enabled, SMTP configs ok (email-smtp.us-east-1.amazonaws.com)

Some of you have a hint of how to solve it?

Thanks a lot!!

1 Like

Faced this today, not with ERPNext. This is related to SES, we have to make sure that the From address follows correct syntax Eg: “From Name <email>”

1 Like