Alpine
Jump to navigation
Jump to search
Installation
Install the Alpine Email Program from source:
sudo apt-get install libpam-dev libssl-dev libncurses-dev git clone https://repo.or.cz/alpine.git alpine-git cd alpine-git ./configure --prefix=/opt/alpine --disable-mouse --disable-keyboard-lock --without-krb5 \ --without-ldap --without-tcl --with-ssl --with-default-dead-letter-folder=.dead.letter make sudo make install
Configuration
We can configure alpine via the builtin SETUP or by editing .pinerc
.
SETUP
- start Alpine
- press S for
SETUP
, L forCOLLECTION LISTS
.- That way we can have more than one account, e.g. your local mbox, your imap inbox and so on
- press A for
ADD
, type in aNickname
- Servername:
mail.server.net/tls/novalidate-cert/user="alice"
- Path: while this depends on the namespace of your IMAP server, in many cases that will be
INBOX
- View: again, this depends on your IMAP server. I'll enter
*
, see the builtin help for details. - press
!^X
to save - press $ and then U to move your new collection to the top - we want to use it as our default inbox from now on
- press E to EXIT the COLLECTION LIST menu.
- press S, then C for CONFIG
- personal-name: John Doe
- smtp-server:
mail.server.net/tls/novalidate-cert/user="alice"
- inbox-path:
{mail.server.net/tls/novalidate-cert/user="alice"}INBOX
- default-fcc:
{mail.server.net/tls/novalidate-cert/user="alice"}INBOX.Sent
- postponed-folder:
{mail.server.net/tls/novalidate-cert/user="alice"}INBOX.Drafts
- specify a witty
signature-file
- I prefer enabling
single-column-folder-list
,enable-full-header-cmd
andno-enable-arrow-navigation-relaxed
- YMMV
.pinerc
Fire up your editor of choice and modify at least the following values:
personal-name=Alice P. inbox-path={mail.server.net/novalidate-cert/user="alice"}INBOX default-fcc={mail.server.net/novalidate-cert/user="alice"}INBOX.Sent postponed-folder={mail.server.net/tls/novalidate-cert/user="alice"}INBOX.Drafts folder-collections=mail.server.net {mail.server.net/tls/novalidate-cert/user="alice"}INBOX.[*], smtp-server=mail.server.net/novalidate-cert/user="alice"
SSL Notes
/novalidate-cert
is only needed, when using self-signed certs. While this might be needed in your case (certificates from one of the big CAs are expensive!), be sure to verify the certificate and its fingerprint at least once!
- If a PEM encoded CA-certifcate is available (ask your ISP!):
openssl s_client -connect mail.server.net:993 -CAfile CA-cert.pem openssl s_client -connect mail.server.net:993 openssl x509 -fingerprint -noout -in cert.pem # to print the fingerprint of cert.pem
- To verify the server's cert with the CA certificate (ask your ISP!):
openssl verify -CAfile CA-cert.pem server-cert.pem
Pine
Note: Pine has been discontinued in 2006![1]
$ sudo apt-get install libpam-dev libssl-dev libncurses-dev $ wget ftp://ftp.fu-berlin.de//unix/mail/pine/pine.tar.bz2 $ openssl md5 pine.tar.bz2 | grep 39ca07b3d305b4cd0d6aaf4585123275 MD5(pine.tar.bz2)= 39ca07b3d305b4cd0d6aaf4585123275
Unpack & build:
bzip2 -dc pine.tar.bz2 | tar -xf - cd pine-* ./build SSLDIR=/usr/lib/ssl SSLCERTS=/etc/ssl/certs SSLINCLUDE=/usr/include/openssl lnp # Linux, +PAM,SSL ./build SSLDIR=/usr/lib/ssl SSLCERTS=/etc/ssl/certs SSLINCLUDE=/usr/include/openssl gs5 # Solaris, +SSL ./build CC=/usr/sfw/bin/gcc SSLDIR=/usr/lib/ssl SSLINCLUDE=/usr/include/openssl # Solaris, +SSL, # gcc instead of SUNWspro
$ ldd bin/pine | grep -E 'pam|ssl|curs' libncurses.so.5 => /lib/libncurses.so.5 (0xb7f42000) libpam.so.0 => /lib/libpam.so.0 (0xb7f3a000) libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7ef7000) $ sudo cp bin/pine /usr/local/bin/ $ sudo chown root:root /usr/local/bin/pine
- Be sure to specify
./build
first, then pass the environment variables, then the target - order matters here! SSLDIR
is'openssl version -d
'SSLINCLUDE
andSSLCERTS
may vary from system to system :(SSLCERTS
is needed to verify the authenticity of the server's certificates
Bugs
NULL ice in paint_index_line: reg index
[2]