Skip to content

Instantly share code, notes, and snippets.

@lee2sman
Last active August 31, 2021 00:23
Show Gist options
  • Save lee2sman/a8629a4b8c4cfca24113184db393880e to your computer and use it in GitHub Desktop.
Save lee2sman/a8629a4b8c4cfca24113184db393880e to your computer and use it in GitHub Desktop.
A step by step tutorial to set up the Alpine client to work with Migadu email.

Set up Migadu-hosted email with the Alpine mail program

This is a tutorial to get Alpine command-line email software on your machine to send and receive email hosted through Migadu.

  1. Download Alpine. On Ubuntu sudo apt install alpine
  2. Open Alpine alpine and choose > Setup > L (collections). Then fill in Nickname Migadu or Mail, Server=imap.migadu.com:993/ssl/[email protected], path=mail/. Then Ctrl-X, save and E (and hit enter to confirm) to exit out.
  3. Open Setup > C (Config). Personal Name=Your Name, User Domain=youremaildomain.com, SMTP Server (for sending)=smtp.migadu.com:465/ssl/[email protected] , Inbox Path={imap.migadu.com:993/ssl/[email protected]}INBOX. Then Press E and enter (confirm) to save.
  4. Everything else you can use the default (which is usually <NO VALUE SET>). I'd quit Alpine (Q) and relaunch and check to see if it worked. By default it will prompt you for your password each time you launch. You can check your inbox afterwards by press I. Your config is stored in ~/.pinerc. If you want to forget your old config (for example, mine got stuck in a loading screen attempting to get my email setup before I figured out the above config and I couldn't Ctrl-C or Ctrl-D out of it so had to force quit the terminal) then you can rename your pinerc to something else like .pinerc.old and next time you launch alpine it should launch the config again or empty it out at least.
  5. Note that with this config each time you open alpine it will attempt to login and prompt you to type in your password. There are ways to store this password. When exited out of alpine run touch ~/.pine-passfile. The next time you launch Alpine and type in your password at the prompt it will ask if you want to save it to disk. Confirm and you now have an easy way to check your mail with alpine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment