Alpine is an open-source reimplementation of Pine, a classic text-based email client that was very popular in the 1990s, by the same development team.
I am not using Alpine because of a sudden nostalgia for the 1990s. I use Alpine because I need to sometimes check my email while I am out on the road with my metered-bandwidth G3 internet connection. By using a text-only interface, I can read and send email using 1% of the bandwidth of a webmail interface.
Alpine does not come with CentOS 6 (the only included email client is Mutt, which I never cared for), but I have made an RPM of Alpine 2.00 which can be downloaded here:
rpm -i alpine-2.00-1.i686.rpm
To install this RPM on a 64-bit system, download alpine-2.00-1.src.rpm, then:
rpm -i alpine-2.00-1.src.rpm
rpmbuild -ba alpine-2.00.spec
This might take a couple of minutes while Alpine is compiled. Once done:
rpm -i alpine-2.00-1.x86_64.rpm
To verify Alpine has been installed, type in "alpine".
Most of these directions are adapted from these HOWTOs:
After doing that, since IMAP does not support two-factor authentication, I had to set up an application specific password, as described here:
Replace "username" with the actual Gmail account user name.
At this point, I could read, but not send email in Alpine. To set up the SMTP server so I could send email, I did the following:
I went to Main menu -> Setup -> Rules -> Roles ('MSRR'), added a role, which I gave the nickname 'Gmail' to. I then scrolled down to "Actions begin here", put in my Gmail name and email in the Set From field, so it looked like "My name <firstname.lastname@example.org>" (Replacing "my name" with my name and "username" with my Gmail username).
For "Use SMTP server", I put in a value like this:
Again, replacing "username" with my Gmail username.
I then went to the bottom, where it says "Compose Use", and put in the value "With confirmation".
For security reasons, I have set up things so I need to enter a password to read or send email; to change this requires recompiling Alpine.