Re: (socket error during connect ([Errno -2] Name or service not known))

Charles Cazabon <[email protected]> Wed, 26 May 2021 10:24:24 -0600
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
[email protected] <[email protected]> wrote:
> 
>  I have been using getmail for many years. Suddenly my configuration (ubuntu
>  18.04 + dovecot + getmail 5.5) stopped working.
[...]
> Licensed under the GNU GPL version 2. 
> SimpleIMAPRetriever: xxx @ xxxxxxxx.xx @ imap.xxxxxxxxx.xx: 143: getmailrc4: operation error
> 
> (socket error during connect ([Errno -2] Name or service not known)) 0

That is a DNS lookup error (or more rarely, a failure to look up a service
name).

Perhaps your mail provider has deprecated the imap.xxxxxxxxx.xx name in favour
of something else - we can't tell, because you mangled it.  This is exactly
why I encourage users to supply data with nothing obfuscated other than
passwords.

> Dovecot seems to work, in fact I view and open the old emails on the server,
> but it doesn't download the new ones

Dovecot doesn't need to look up the mail server name in DNS, and you might be
using a different hostname to connect to its web interface - we can't tell.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at:               http://pyropus.ca/software/
-----------------------------------------------------------------------