Email account setup error

Hi All,

when I’m trying to setup a new email account using gmail (less secure connections are allowed) eventually I’m ending up with below error. Please advise how to resolve it.
Thanks in advance.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 256, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 290, in _save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 859, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1024, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1007, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 749, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 71, in validate
self.check_smtp()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 137, in check_smtp
server.sess
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 195, in sess
(self.password or “”).encode(‘utf-8’))
File “/usr/lib/python2.7/smtplib.py”, line 585, in login
raise SMTPException(“SMTP AUTH extension not supported by server.”)
SMTPException: SMTP AUTH extension not supported by server.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 939, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 256, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 290, in _save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 859, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1024, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1007, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 749, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 71, in validate
self.check_smtp()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 137, in check_smtp
server.sess
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 195, in sess
(self.password or “”).encode(‘utf-8’))
File “/usr/lib/python2.7/smtplib.py”, line 585, in login
raise SMTPException(“SMTP AUTH extension not supported by server.”)
SMTPException: SMTP AUTH extension not supported by server.

Have you checked this post:

What version are you running?

Hi lasalesi,

I’m running
ERPNext: v10.0.23 (master)
Frappe Framework: v10.0.25 (master)
Ubuntu 14.04 on AWS

Unfortunately, the topic you suggested did not help much as I’m not a developer. Can you suggest some other methods how to troubleshoot?

Thanks for helping.

Hi @lasalesi,
Please advise shall I update/upgrade ERPNext to solve the problem?

There seems to be an issue with the email configuration, less the vesion of ERPNext. To my knowledge, there are no relevant updates regarding SMTP. Still, updating is always a good idea, if only for the patches.

Is your configuration something like this:

Incoming mail (pop3): 	Server - pop.gmail.com 	Port - 995 	Requires SSL - Yes 		
Outgoing mail (smtp): 	Server - smtp.gmail.com 	Port - 587 	Requires SSL - Yes 	Requires TLS - Yes (if available) 	Requires authentication - Yes
Your login info 	Email address - you@gmail.com 	Password - ***** 	Await password - Yes