When I try to connect to my gmail account foo@gmail.com (password: foopassword), using the following setting:

(setq rmail-primary-inbox-list '("pop://foo:foopassword@pop.gmail.com:995"))

I get the following error:

movemail: mailbox `pop://foo@pop.gmail.com:995': cannot open: Name or service not known

And when I set the variable like this:

(setq rmail-primary-inbox-list '("pop://foo@gmail.com:foopassword@pop.gmail.com:995"))

I get the following:

movemail: mailbox `pop://foo@pop.gmail.com:995': cannot open: Name or service not known

So what do I need to connect to read my gmail messages using Rmail?


"Name or service not known" always means that a program tried to open a network connection, but the address of the destination is incorrect (it couldn't be resolved using DNS). Look in your email provider's help files or tech support for the correct address.

  • How would you connect to your email using Rmail, give me an example if you can please. Doesn't have to be gmail, any free mail server would do.
    – Bite Bytes
    Dec 5 '18 at 9:24
  • Which version of emacs? The movemail shipped with Emacs 26.1 does not enable pop by default. The easiest solution is probably to install Gnu Mailutils <mailutils.org>, which has a far more featureful movemail.
    – rpluim
    Dec 5 '18 at 12:32
  • @rpluim that's the one I'm using. and still doesn't work.
    – Bite Bytes
    Dec 6 '18 at 13:46
  • 1
    You're doing it right, but you have the wrong address. I don't know what address gmail uses, but "pop.gmail.com" is obviously the wrong one.
    – db48x
    Dec 9 '18 at 6:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.