Can not send mail after update to v7

Method
frappe.email.queue.flush
Error
(535, ‘Authentication failed’)
Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/queue.py”, line 306, in send_one
smtpserver.sess.sendmail(email.sender, email.recipient, encode(email.message))
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 174, in sess
(self.password or “”).encode(‘utf-8’))
File “/usr/lib/python2.7/smtplib.py”, line 622, in login
raise SMTPAuthenticationError(code, resp)
ValidationError: (535, ‘Authentication failed’)

Password for email was saved as ‘****************’ in database after upgrade,updated password by query.now working fine.