Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I am using FreeBSD 8.1 and just installed Alpine email client. I wonder if anybody knows how to setup Alpine to get mail from a Gmail account using IMAP.

share|improve this question

1 Answer 1

For clarity, I'm just going to give the directions in terms of what you should add to .pinerc. You can also set all of these setting using the configuration interface if you wish.

To get your mail via IMAP:


Include this to make sure you have access to all of the various gmail folders:

folder-collections=Gmail {}[]

I find this useful to mimic "archiving":

default-saved-msg-folder=[Gmail]/All Mail

To send mail via gmail, you need this in .pinerc:

Also, I find that these two settings improve performance a lot:


If you want alpine to remember your password for you, you can run this command in your home directory:

 touch .pine-passfile

The first time you use alpine after running this command, you will be asked whether you want to save your password for later use each time you enter one.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.