Update: Multiple SMTP Accounts from the Console

This is a follow up for a previous post.

Before I committed myself to any particular MTA for the job, I continued the search for information. I stumbled across this HOWTO on Alpine Configuration (no longer available) which addressed my needs. It means things have changed a great deal from the old Pine application, more than I had realized. It means Alpine is designed to provide the full range of mail client functions, even if some of them are a little hard to find.

(Update: The HOWTO mentioned above has disappeared from the Net. I can only offer a quick-n-dirty version for those willing to edit their configuration file by hand: go here.)

Those instructions worked for my AT&T account, the biggest boondoggle of them all.

The only kicker was the need for repeatedly typing in the passwords for each account, once each session. I’m not interested in the security issues, since I allow no one to touch this laptop but me. Further, if other email clients can save and obscure passwords, how are they less vulnerable than Alpine? The answer was to recompile the version available for CentOS 5 from RPMForge. So I hunted down a mirror with the SRPM, and changed the SPEC file by adding one line:

--with-passfile=.alpine-passfile

just below the line which starts with ‘%configure \‘. Oh, and the rpmbuild -bb command failed to reveal I needed the tcl-devel package, and threw out an error because it couldn’t find tcl.h. Finally, to make sure this rebuilt version installed over the previous one as an upgrade, I changed the build number by making the line ‘Release: 1.rf‘ read ‘Release: 1.2.rf‘.

I ran ‘touch .alpine-passfile‘. Upon installing and running Alpine again, when I selected one of my roles for checking email, upon entering my password, it offered to save it for future use. That’s what I was looking for previously. Taking a quick look, it was indeed a hashed file.

This entry was posted in Uncategorized. Bookmark the permalink.

4 Responses to Update: Multiple SMTP Accounts from the Console

  1. Pingback: Taming the Beast: CentOS 6.2 and Inspiron 1525 Laptop « Do What's Right

  2. Thanks for this, I too am a fan of (re-)alpine and was just wondering how to do exactly this. BTW: Are you aware of archive.org? Check this out: http://web.archive.org/web/20090715171051/http://www.mediusrete.org/progs/calpine.html

    • Ed Hurst says:

      Thanks for the link. I checked a couple of times after updating this article and it never showed up on the Archive. Glad to see it’s there now.

  3. Pingback: The Spirit of Giving a Break | Do What's Right

Comments are closed.