E-mail Issues

Hello,

I keep getting errors in my Scheduler Log concerning email retrieval.  The email accounts are setup correctly since we are able to send and receive email, but I am concerned that emails are being lost since ERPNext deletes any email it attempts to retrieve even if it is unable to import into ERPNext.

Thanks
Josh

These are the most common errors-

Traceback (innermost last):
  File "app/startup/schedule_handlers.py", line 68, in run_fn
    fn()
  File "app/support/doctype/support_ticket/get_support_mails.py", line 62, in get_support_mails
    SupportMailbox()
  File "lib/webnotes/utils/email_lib/receive.py", line 115, in __init__
    self.get_messages()
  File "lib/webnotes/utils/email_lib/receive.py", line 148, in get_messages
    self.connect()
  File "lib/webnotes/utils/email_lib/receive.py", line 136, in connect
    self.pop = poplib.POP3(self.settings.host)
  File "/usr/lib/python2.7/poplib.py", line 83, in __init__
    self.sock = socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
 gaierror: [Errno -2] Name or service not known
----------------------------------------------------------------------------------------------------------------
Traceback (innermost last):
  File "app/startup/schedule_handlers.py", line 68, in run_fn
    fn()
  File "app/hr/doctype/job_applicant/get_job_applications.py", line 44, in get_job_applications
    JobsMailbox()
  File "lib/webnotes/utils/email_lib/receive.py", line 115, in __init__
    self.get_messages()
  File "lib/webnotes/utils/email_lib/receive.py", line 148, in get_messages
    self.connect()
  File "lib/webnotes/utils/email_lib/receive.py", line 136, in connect
    self.pop = poplib.POP3(self.settings.host)
  File "/usr/lib/python2.7/poplib.py", line 83, in __init__
    self.sock = socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
 gaierror: [Errno -2] Name or service not known
---------------------------------------------------------------------------------------------------------------
Traceback (innermost last):
  File "app/startup/schedule_handlers.py", line 68, in run_fn
    fn()
  File "app/selling/doctype/lead/get_leads.py", line 52, in get_leads
    SalesMailbox()
  File "lib/webnotes/utils/email_lib/receive.py", line 115, in __init__
    self.get_messages()
  File "lib/webnotes/utils/email_lib/receive.py", line 148, in get_messages
    self.connect()
  File "lib/webnotes/utils/email_lib/receive.py", line 136, in connect
    self.pop = poplib.POP3(self.settings.host)
  File "/usr/lib/python2.7/poplib.py", line 83, in __init__
    self.sock = socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
 gaierror: [Errno -2] Name or service not known



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
Hi Joshua,

It seems that your support email host is not reachable. Maybe there is a typo or your server’s DNS is not able to resolve the name. So it is not even connecting. Hence, ERPNext won’t delete emails in this case from your POP3 mailbox.

You will need to check the support email settings. 

Best,
Anand Doshi

On 12 November 2013 at 11:23:37 pm, Joshua Jach (jo...@gmail.com) wrote:

Hello,

I keep getting errors in my Scheduler Log concerning email retrieval.  The email accounts are setup correctly since we are able to send and receive email, but I am concerned that emails are being lost since ERPNext deletes any email it attempts to retrieve even if it is unable to import into ERPNext.

Thanks
Josh

These are the most common errors-

Traceback (innermost last):
  File "app/startup/schedule_handlers.py", line 68, in run_fn
    fn()
  File "app/support/doctype/support_ticket/get_support_mails.py", line 62, in get_support_mails
    SupportMailbox()
  File "lib/webnotes/utils/email_lib/receive.py", line 115, in __init__
    self.get_messages()
  File "lib/webnotes/utils/email_lib/receive.py", line 148, in get_messages
    self.connect()
  File "lib/webnotes/utils/email_lib/receive.py", line 136, in connect
    self.pop = poplib.POP3(self.settings.host)
  File "/usr/lib/python2.7/poplib.py", line 83, in __init__
    self.sock = socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
 gaierror: [Errno -2] Name or service not known
----------------------------------------------------------------------------------------------------------------
Traceback (innermost last):
  File "app/startup/schedule_handlers.py", line 68, in run_fn
    fn()
  File "app/hr/doctype/job_applicant/get_job_applications.py", line 44, in get_job_applications
    JobsMailbox()
  File "lib/webnotes/utils/email_lib/receive.py", line 115, in __init__
    self.get_messages()
  File "lib/webnotes/utils/email_lib/receive.py", line 148, in get_messages
    self.connect()
  File "lib/webnotes/utils/email_lib/receive.py", line 136, in connect
    self.pop = poplib.POP3(self.settings.host)
  File "/usr/lib/python2.7/poplib.py", line 83, in __init__
    self.sock = socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
 gaierror: [Errno -2] Name or service not known
---------------------------------------------------------------------------------------------------------------
Traceback (innermost last):
  File "app/startup/schedule_handlers.py", line 68, in run_fn
    fn()
  File "app/selling/doctype/lead/get_leads.py", line 52, in get_leads
    SalesMailbox()
  File "lib/webnotes/utils/email_lib/receive.py", line 115, in __init__
    self.get_messages()
  File "lib/webnotes/utils/email_lib/receive.py", line 148, in get_messages
    self.connect()
  File "lib/webnotes/utils/email_lib/receive.py", line 136, in connect
    self.pop = poplib.POP3(self.settings.host)
  File "/usr/lib/python2.7/poplib.py", line 83, in __init__
    self.sock = socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
 gaierror: [Errno -2] Name or service not known

--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.

Hi Joshua,

You can investigate if there are DNS issues.

Install bind-utils.

dig -tmx youremailhost
and
dig -tmx youremailhost @8.8.8.8 # to query google public dns

On Tue, Nov 12, 2013 at 11:23 PM, Joshua Jach jo...@gmail.com wrote:

Hello,

I keep getting errors in my Scheduler Log concerning email retrieval. The
email accounts are setup correctly since we are able to send and receive
email, but I am concerned that emails are being lost since ERPNext deletes
any email it attempts to retrieve even if it is unable to import into
ERPNext.

Thanks
Josh

These are the most common errors-

Traceback (innermost last):
File “app/startup/schedule_handlers.py”, line 68, in run_fn
fn()
File “app/support/doctype/support_ticket/get_support_mails.py”, line 62,
in get_support_mails
SupportMailbox()
File “lib/webnotes/utils/email_lib/receive.py”, line 115, in init
self.get_messages()
File “lib/webnotes/utils/email_lib/receive.py”, line 148, in get_messages
self.connect()
File “lib/webnotes/utils/email_lib/receive.py”, line 136, in connect
self.pop = poplib.POP3(self.settings.host)
File “/usr/lib/python2.7/poplib.py”, line 83, in init
self.sock = socket.create_connection((host, port), timeout)
File “/usr/lib/python2.7/socket.py”, line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

Traceback (innermost last):
File “app/startup/schedule_handlers.py”, line 68, in run_fn
fn()
File “app/hr/doctype/job_applicant/get_job_applications.py”, line 44, in
get_job_applications
JobsMailbox()
File “lib/webnotes/utils/email_lib/receive.py”, line 115, in init
self.get_messages()
File “lib/webnotes/utils/email_lib/receive.py”, line 148, in get_messages
self.connect()
File “lib/webnotes/utils/email_lib/receive.py”, line 136, in connect
self.pop = poplib.POP3(self.settings.host)
File “/usr/lib/python2.7/poplib.py”, line 83, in init
self.sock = socket.create_connection((host, port), timeout)
File “/usr/lib/python2.7/socket.py”, line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

Traceback (innermost last):
File “app/startup/schedule_handlers.py”, line 68, in run_fn
fn()
File “app/selling/doctype/lead/get_leads.py”, line 52, in get_leads
SalesMailbox()
File “lib/webnotes/utils/email_lib/receive.py”, line 115, in init
self.get_messages()
File “lib/webnotes/utils/email_lib/receive.py”, line 148, in get_messages
self.connect()
File “lib/webnotes/utils/email_lib/receive.py”, line 136, in connect
self.pop = poplib.POP3(self.settings.host)
File “/usr/lib/python2.7/poplib.py”, line 83, in init
self.sock = socket.create_connection((host, port), timeout)
File “/usr/lib/python2.7/socket.py”, line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known


Note:

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much
    information as you can. Please see it from the point of view of the person
    receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send
    only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do
    not send images as attachments. Links are good. Same goes for any file you
    are going to send.

End of Note

You received this message because you are subscribed to the Google Groups
“ERPNext Developer Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Pratik Vyas
Ph: +919925239915
Google Profile : http://www.google.com/profiles/pdvyas