# Add more logging to email failures?

**URL:** https://meta.discourse.org/t/add-more-logging-to-email-failures/38370
**Category:** Feature
**Created:** [2016年一月23日 05:18 UTC](https://meta.discourse.org/t/add-more-logging-to-email-failures/38370 "2016-01-23T05:18:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [2016年一月23日 05:18 UTC](https://meta.discourse.org/t/add-more-logging-to-email-failures/38370/1 "2016-01-23T05:18:56Z")

</div>

I’m getting this in my logs sometimes.. and since POP email is working, I can’t guess what’s up.

> Job exception: getaddrinfo: No address associated with hostname

If we could get more details logged.. what server was being looked up, maybe which dns was consulted, and if all 5 errors happened at 1:50pm (see attached), it could make troubleshooting easier.

TIA

 ![](https://global.discourse-cdn.com/meta/original/3X/5/5/5507861bfb618cab535132ab792e07fff7c7936e.png)

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [2016年一月23日 07:48 UTC](https://meta.discourse.org/t/add-more-logging-to-email-failures/38370/2 "2016-01-23T07:48:13Z")

</div>

This is a DNS lookup / resolution error.

This is probably just a transient error (i.e. it will go away on it’s own).

To check you can resolve (`nslookup`) the mail directly at the command line for each of your DNS servers.

Another possible causes are:

- connection / availability of your DNS server at the time.
- DNS configuration issues with your POP3 provider.

The only real chance of a bug is if the wrong POP3 server name / address gets down to this level in the code - which seems unlikely if it’s working at other times.

It might be good to know what hostname it’s looking up, but unlikely to help.
