Alpine + Gmail Email / Gmail Email working in freeBSD How To Guide

First:
PKG install alpine
alpinesetup.PNG

Start Alpine within FreeBSD
Use S for setup
alpinesetup2.PNG

First Setup L for colletionlist after use C for config

apline2.PNG

add imap.gmail.com:993/ssl/user=youremail@gmail.com

hit ctl X and use an app password from your Gmail save it with your master password so your email is safe

This App Password from Google is special for 3rd party needs, it's a 16 digit long code that you will enter in place of your password to use without OAUTH

Some Directions from Google on how to create one if you need to:

"Create & use app passwords​

Important: To create an app password, you need 2-Step Verification on your Google Account.

If you use 2-Step-Verification and get a "password incorrect" error when you sign in, you can try to use an app password.

  1. Go to your Google Account.
  2. Select Security
  3. Under "Signing in to Google," select 2-Step Verification.
  4. At the bottom of the page, select App passwords.
  5. Enter a name that helps you remember where you’ll use the app password.
  6. Select Generate.
  7. To enter the app password, follow the instructions on your screen. The app password is the 16-character code that generates on your device.
  8. Select Done.
If you’ve set up 2-Step Verification but can’t find the option to add an app password, it might be because:

  • Your Google Account has 2-Step Verification set up only for security keys.
  • You’re logged into a work, school, or another organization account.
  • Your Google Account has Advanced Protection.
Tip: Usually, you’ll need to enter an app password once per app or device."


After you have created this add this password and Alpine uses the APP Password in place of your real one.

Now go into Alpine setup again and hit C

set smtp and imap as follows

smtp server = smtp.gmail.com:587/tls/user=youremail@gmail.com
inbox path = imap.gmail.com:993/ssl/user=youremail@gmail.com


Change your email too on top so it's not root charlie

hit enter for imap and use the default folder INBOX it will auto add it and { } to inbox path after you hit enter

Alpine3.PNG


Save this and quit Alpine

Now Restart Alpine with your new settings and magic you have email in FreeBSD in the command line application alpine
apline.PNG

YEAH You should now have Alpine working within FreeBSD without OAUTH for your Gmail account if you ever need to use it.

References:
https://www.linuxshelltips.com/alpine-gmail-imap-in-linux/ #change the password area to use Google's app password only difference to this.
https://support.google.com/accounts/answer/185833?hl=en #for how to create a app password
 
Back
Top