Setting up mail account - non standard mail service

I’m trying to setup the email on our domain. But ERPNext doesnt send those emails.,.if I use a yahoo or google mail service, it works. How can I make the system use the mail server of our domain, instead of using one of the public services listed in ERPNext?

Do you see an error? ERPNext sends via SMTP, maybe you might have to whitelist it via your provider?

No errors (at least not in js console or in screen). Maybe I should check the logs…

I don’t choose a service in the setup page (yahoo or Google etc). That is correct, right?

Logs have this error - How do I fix it?

2016-02-11 17:48:58,670 New Exception collected with id: 2016-02-11 17:48:58.659979- site: site1.local form: {'action': u'Save', 'cmd': u'', 'doc': u'{"docstatus":0,"doctype":"Email Account","name":"New Email Account 1","__islocal":1,"__unsaved":1,"owner":"","service":"","attachment_limit":1,"unreplied_for_mins":30,"email_id":"","email_account_name":"Bills","password":"xxxxxx","enable_incoming":1,"email_server":"","append_to":"Issue","use_ssl":1,"default_incoming":0}'}

Traceback (innermost last):
File “/home/kirthi/frappe-bench/apps/frappe/frappe/”, line 69, in application
response = frappe.handler.handle()
File “/home/kirthi/frappe-bench/apps/frappe/frappe/”, line 20, in handle
File “/home/kirthi/frappe-bench/apps/frappe/frappe/”, line 37, in execute_cmd
ret =, **frappe.form_dict)
File “/home/kirthi/frappe-bench/apps/frappe/frappe/”, line 798, in call
return fn(*args, **newargs)
File “/home/kirthi/frappe-bench/apps/frappe/frappe/desk/form/”, line 18, in savedocs
File “/home/kirthi/frappe-bench/apps/frappe/frappe/model/”, line 231, in save
File “/home/kirthi/frappe-bench/apps/frappe/frappe/model/”, line 193, in insert
File “/home/kirthi/frappe-bench/apps/frappe/frappe/model/”, line 595, in run_before_save_methods
File “/home/kirthi/frappe-bench/apps/frappe/frappe/model/”, line 557, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/kirthi/frappe-bench/apps/frappe/frappe/model/”, line 712, in composer
return composed(self, method, *args, **kwargs)
File “/home/kirthi/frappe-bench/apps/frappe/frappe/model/”, line 695, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/kirthi/frappe-bench/apps/frappe/frappe/model/”, line 551, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/kirthi/frappe-bench/apps/frappe/frappe/email/doctype/email_account/”, line 55, in validate
File “/home/kirthi/frappe-bench/apps/frappe/frappe/email/doctype/email_account/”, line 118, in get_server
File “/home/kirthi/frappe-bench/apps/frappe/frappe/email/”, line 42, in connect
return self.connect_pop()
File “/home/kirthi/frappe-bench/apps/frappe/frappe/email/”, line 68, in connect_pop
self.pop = Timed_POP3_SSL(, timeout=frappe.conf.get(“pop_timeout”))
File “/home/kirthi/frappe-bench/apps/frappe/frappe/email/”, line 396, in init
self._super.init(self, *args, **kwargs)
File “/usr/lib/python2.7/”, line 358, in init
raise socket.error, msg
error: [Errno 111] Connection refused

Check your settings (esp. port)

Or you may have to whitelist from your vendor.

Where do I find these logs?

check this page you have all the settings you need :
Welcome to the IONOS Help Center - IONOS Help

and make @digiyam sure to change your password coz its shown in the error message.


I have my SMTP server settings and I didn’t post that original log with the password in it. I’m trying to figure out where the original poster found that log, because I can’t find anything like it on my installation (I’m pretty new to this framework).

I have checked port 993 is working by telnet. However I get the same issue -
pull_from_email_account - error: [Errno 111] Connection refused