Thanks @rmehta.
Is it safe to assume that the current way forward would be the following for self hosted instances:
- Signup for Sparkpost.
- Configure the Setup->Email Accounts section in the following way:
2.1 Service field is left blank.(Is this correct?)
2.2 Enable Incoming (Configure the server details)
2.3 Enable Outgoing (Configure the server details)
On a separate issue with Gmail (Google Apps for me)
- I have noticed that the “Enable Incoming” gets unchecked on its own, for my current configuration with Gmail as the service after a while.
Heres the scheduler log output:
- Error 1
Method
receive.connect_pop
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 68, in connect_pop
self.pop = Timed_POP3_SSL(self.settings.host, timeout=frappe.conf.get(“pop_timeout”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 422, in init
self._super.init(self, *args, **kwargs)
File “/usr/lib/python2.7/poplib.py”, line 346, in init
for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM):
gaierror: [Errno -2] Name or service not known
Method
pull_from_email_account
- Error 2
Method
pull_from_email_account
{‘retry’: 0, ‘log’: <function log at 0x7fc3abed57d0>, ‘site’: u’site1.local’, ‘event’: u’all’, ‘method_name’: u’pull_from_email_account’, ‘method’: <function pull_from_email_account at 0x7fc3ac040500>, ‘user’: u’Administrator’, ‘kwargs’: {‘email_account’: u’Support’}, ‘async’: True, ‘job_name’: u’pull_from_email_account|Support’}
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 61, in execute_job
method(**kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 427, in pull_from_email_account
email_account.receive()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 202, in receive
raise Exception, frappe.as_json(exceptions)
Exception: [
“Traceback (most recent call last):\n File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 184, in receive\n communication = self.insert_communication(raw)\n File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 225, in insert_communication\n self.set_thread(communication, email)\n File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 330, in set_thread\n parent.insert(ignore_permissions=True)\n File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 213, in insert\n self._validate()\n File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 391, in _validate\n self._validate_length()\n File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 515, in _validate_length\n .format(reference, (df.label), max_length, value), frappe.CharacterLengthExceededError, title=(‘Value too big’))\n File "/home/frappe/frappe-bench/apps/frappe/frappe/init.py", line 299, in throw\n msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)\n File "/home/frappe/frappe-bench/apps/frappe/frappe/init.py", line 292, in msgprint\n _raise_exception()\n File "/home/frappe/frappe-bench/apps/frappe/frappe/init.py", line 265, in _raise_exception\n raise raise_exception, encode(msg)\nCharacterLengthExceededError: Issue ISS-00297: ‘Subject’ (Exclusive Research Fellowship Grants By Govt of India, Rs 8 Lakh\n Salary @ ITC, PhD Admissions Open @ IISER, Jobs @ Syngene, NISER, Chai\n Point, CUK, IISER + Much More) will get truncated, as max characters allowed is 140\n”
]
- Error 3
Method
email_account.receive
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 184, in receive
communication = self.insert_communication(raw)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 225, in insert_communication
self.set_thread(communication, email)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 330, in set_thread
parent.insert(ignore_permissions=True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 213, in insert
self._validate()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 391, in _validate
self._validate_length()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 515, in _validate_length
.format(reference, (df.label), max_length, value), frappe.CharacterLengthExceededError, title=(‘Value too big’))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 299, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 292, in msgprint
_raise_exception()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 265, in _raise_exception
raise raise_exception, encode(msg)
CharacterLengthExceededError: Issue ISS-00297: ‘Subject’ (Exclusive Research Fellowship Grants By Govt of India, Rs 8 Lakh
Salary @ ITC, PhD Admissions Open @ IISER, Jobs @ Syngene, NISER, Chai
Point, CUK, IISER + Much More) will get truncated, as max characters allowed is 140