From 1a4fc70f0f3368365596047f425565fb67a99b51 Mon Sep 17 00:00:00 2001 From: Alan Hicks Date: Wed, 22 Aug 2012 01:12:39 -0400 Subject: Massive changes to chapter 16. - Removed pine section and replaced with png - Removed most configuration information for pine - Removed mutt section and replaced with png - Removed most configuration information for mutt including everything about fetchmail, formail, procmail, etc. This content belongs in a HOWTO somewhere, not in the Slack Book. - Replaced a lot of the ASCII Hex escape codes with their real ASCII character for readability. Only the < and > characters were kept as escape codes since they're specially interpreted by Docbook. --- chapter_16.xml | 435 ++++++--------------------------------------------------- 1 file changed, 39 insertions(+), 396 deletions(-) diff --git a/chapter_16.xml b/chapter_16.xml index cdb1b07..bec7d2c 100644 --- a/chapter_16.xml +++ b/chapter_16.xml @@ -518,130 +518,24 @@ command reference neatly located at the bottom of the screen. See for yourself: - - ALPINE 2.00 MAIN MENU Folder: INBOX No -Messages - - - ? HELP - Get help using Alpine - - C COMPOSE MESSAGE - Compose and send a message - - I MESSAGE INDEX - View messages in current folder - - L FOLDER LIST - Select a folder to view - - A ADDRESS BOOK - Update address book - - S SETUP - Configure Alpine Options - - Q QUIT - Leave the Alpine program - - - Copyright 2006-2008 University of Washington - [Folder "INBOX" opened with 0 messages] -? Help P PrevCmd R RelNotes -O OTHER CMDS > [ListFldrs] N NextCmd K KBLock - + + + Before configuring any mail client, you should check the documentation of your mail server to gather all of the pertinent information about what protocols and security measures your mail service uses. This will help you configure - pine correctly. - - - - To start configuring pine, you should be - able to enter the [S]ettings menu, and then the [C]onfig - screen. There are about a hundred different options, but the most - common and most important ones would be your Personal Name, Inbox - Path, and SMTP Server. - - - - Pine Settings - - - - Personal Name - - - - The name you wish people to see in the "From" field of your - emails. - - - - - - - Inbox Path - - - - - Your mail server. The server itself is often something like - mail.example.com (although it may not be; check with your - host to be sure), but if that server requires login information then you - may need to set it to something like bob@mail.example.com - or similar. - - - - - - SMTP Server - - - The server through which you will send your email; often this - is smtp.example.com or outgoing.example.com or some variation - on that theme. It often requires authentication, but you - should be prompted for this in - pine when sending mail. - - - - - - - A sample configuration might look a little something like this: - - - - Sample Pine Configuration - - - - Personal Name - Alan Hicks - - - SMTP Server - smtp.lizella.net - - - Inbox Path - {imap.lizella.net/user=alan@lizella.net}inbox - - - Warn if Blank Subject - X - - - Sort Key: Arrival - X - - - -
- - - And so on. Once you have it configured according to your mail - server's settings, you will be able to navigate the application from - the main menu. It's quite intuitive, with a persistent list of - keyboard shortcuts at the bottom of the screen. + pine correctly. By default, + pine will check for new e-mails delivered + to a mail service running on your computer. Unless you're actually + running such a mail service (many people do) this probably isn't + what you want. Fortunately configuring + pine is a straight forward process. + Simply enter the [S]etup menu and chose the [C]onfig option. You'll + be given an option to enter you name, mail path, SMTP server, and + many other options. @@ -658,37 +552,16 @@ isn't as user friendly as pine, but makes up for it with power. You won't find the user-friendly command reference at the bottom of the screen, mutt uses every last inch of real-estate for mail processing duty. It's feature support -is extensive: threaded displays are no problem for the mighty +is extensive - threaded displays are no problem for the mighty mixed-breed! You can configure mutt with a .muttrc file in your home directory. With all the many different possible configuration options, there's even a man page for that, muttrc(5). You might want to read up on it. - -3172 N Jan 17 Thomas Morper (2.8K) │ └─>Re: [Slackbuilds-users] Exim Sbo -3173 N Jan 17 TuxaneMedia (2.5K) └─>Re: [Slackbuilds-users] Exim Sbo -3174 N Jan 06 Uli Sch?fer (4.6K) [Slackbuilds-users] mrtg-2.15.2 breaks wi -3175 N Jan 06 Willy Sudiarto (4.0K) └─> -3176 N Jan 06 Audrius Ka??uka (3.9K) └─> -3177 N Jan 06 Niels Horn (4.4K) └─> -3178 N * Jan 09 King Beowulf (6.5K) [Slackbuilds-users] libreoffice (3.3.0rc -3179 N * Jan 09 Niels Horn (4.8K) └─>Re: [Slackbuilds-users] libreoffice (3 -3180 * Jan 09 Niels Horn ( 73) └─> -3181 N * Jan 09 King Beowulf (5.9K) └─> -3182 N Jan 10 Robby Workman (7.8K) [Slackbuilds-users] Updates - 20110110 -3183 N Jan 10 B Watson (3.6K) [Slackbuilds-users] Fwd: nted slackbuild -3184 N Jan 11 SlackBuilds@cat (2.5K) [Slackbuilds-users] /usr/share/ package s -3185 N Jan 11 Robby Workman (3.4K) └─> -3186 N Jan 12 SlackBuilds@cat (3.4K) └─> -3187 N Jan 11 Robby Workman (4.5K) └─> -3188 D Jan 12 Klaatu (3.5K) [Slackbuilds-users] LiVES updates -3189 N Jan 12 Robby Workman (2.3K) [Slackbuilds-users] Unavailability of mai -3190 N Jan 13 Mr. B-o-B (3.7K) └─> -3191 N Jan 13 Josiah Boothby (3.2K) [Slackbuilds-users] Ted's Word Processor -3192 N Jan 14 Adam Swift (7.4K) [Slackbuilds-users] Web submission failur -3193 N Jan 14 Rob McGee (3.5K) └─> - + + + Using mutt is unique because it is by @@ -702,252 +575,24 @@ for that, muttrc(5). You might want to read up on it. As is so often the case with robust console-based applications, the configuration options are myriad, and there is no "right" or "wrong" way of using mutt as long - as it does what you want it to do. Here is a simple example of a - system utilizing mutt, with a toolchain - consisting of: - - - - - - fetchmail to pull mail from your mail server - via POP3 - - - - - - procmail to sort the mail as needed. - - - - - - mutt to read, sort, and send email. - - - - - - Optionally, formail to re-format your mail if needed - (depending on your mail server settings) - - - - - - fetchmail is a simple application that exists - only to pull mail from mail servers and copy those email messages to - your local hard drive. The configuration is fairly simple: - - - - darkstar:~$ cat ~/.fetchmailrc -poll pop.example.com with proto pop3 - user "bob@example.com" there has password "secretpassword" is bdobbs here and wants mds "/usr/bin/procmail" - - - -Fetchmail Configuration Explained - - - poll - - - Defines the mail server to check - - - - - - with proto - - - Defines the protocol used; in this case, POP3. - - - - - - user - - - Your email username. Sometimes this is just the string in front - of the @ at symbol, othertimes it is your whole email address. - Again, see your provider's documentation to find out what - you should be using. - - - - - - there has password - - - - Your email password. This is entered as plaintext into your - config file, but since this is in your home directory, it is only - readable by you. For good measure though, it is safe to - chmod 0600 ~/.fetchmailrc - - - - - - is username here - - - Defines which user on your local computer this email account - actually belongs to. For instance, if my email account is - bob@example.com, but my username on my Slackware box - is bdobbs, then obviously there would be no way for - fetchmail to know who - bob@example.com is. This defines it. - - - - - - and wants mda "/usr/bin/procmail" - - - - Tells fetchmail what application will - be sorting the email once it is pulled from the mail server. - Procmail ships with Slackware, so this - will probably not change for you and is not dependent upon your - mail server whatsoever. - - - - - - - Now that fetchmail is configured, it will - successfully pull your email from the server. But what will your - computer do with all of that mail? This is the job of - procmail. + as it does what you want it to do. One thing to keep in mind if you + are considering using mutt for mail + handling is that its mail sending and receiving abilities are very + limited. mutt focuses solely on sorting, + reading, and composing mail messages in addition to other traditional + Mail User Agent duties. This is keeping in focus with the UNIX + philosophy of small tools that do one thing very well and which can + be combined (or "chained") with other tools to complete whatever + tasks are required. With this in mind, you'll likely need to setup + some external tool to receiving mail at a minimum. - - The settings for procmail can be stored - in ~/.procmailrc and is also fairly simple; for example: - - - - PATH=/usr/bin - MAILDIR=$HOME/Mail - DEFAULT=$MAILDIR/Inbox - LOGFILE=$MAILDIR/logs - - - - Now procmail is configured, so your mail - will be sent to the right place. There is much more you can do with - procmail so feel free to investigate its - many filtering functions (or "recipes") later, once you have - everything working. - - - - At this point, your email will be pulled from the server by - fetchmail and sorted on your local system - by way of procmail. All that's left to - do is to configure mutt so that it knows where to - find your email messages so that you can view them. - - - - Because mutt is such an extensible program, it's - a good idea to make a folder for its configuration file. Your - initial configuration will be frightfully simple, but if you ever - look for new configurations of mutt you might be happy to have a - whole folder to play around in. - - - - darkstar:~$ cat ~/.mutt/.muttrc - set realname="Bob Dobbs" - set from="bob@example.com" - set spoolfile=/home/bdobbs/Mail/Inbox - set mbox=/home/bdobbs/Mail/mbox - set record=/home/bdobbs/Mail/sent - set postponed=/home/bdobbs/Mail/postponed - set sort=reverse-date - set editor=emacs - set smtp_url="smtp://bob:secretpassword@smtp.example.com:465" - - - - In this sample configuration, the spoolfile - defines the incoming messages that you have not read yet (you - might recognize it as the end destination for - procmail), while mbox - defines where mail that you have read and responded to will be - stored. All other settings are self-explanatory, and all have been - drawn directly from the muttrc man page; refer to it for more options. - - - - - If your mail server delivers your email in a format that - mutt cannot understand, use the - formail mailbox converter, a part of the - procmail distribution. For example: - - - - darkstar:~$ formail -ds < ~/Mail/Inbox >> ~/Mail/Muttbox - - - - Rather than performing this conversion every time you check your - email, you might want to script it to happen automatically after - procmail is finished its job. - - - The commands used to navigate around in mutt are highly customizable but the defaults can be listed by typing ?. -
- Adding SSL Support - - - If your mail server supports SSL then you can and should use SSL - for better security. Most graphical clients have common SSL - certificates built into them; mutt does - not but it's trivial to configure. - - - - Download an SSL trust certificate (the most common set is from - Thawte) and place it in your Mutt or Mail folder, and list it - as a certificate_file in your - .muttrc file. If your mail server is not using - Thawte, then they may be using either another SSL certificate - authority or they may be their own certificate authority, but - if an unknown certificate is encountered, - mutt will prompt you to accept it (or - not). If you do accept it, the certificate can be saved into - this certificate file. - - - - To obtain the Thawte certificate: - - - - bash$ wget - http://www.thawte.com/roots/thawte_Premium_Server_CA.pem -P - ~/Mail/ - - -
-
@@ -967,8 +612,6 @@ client that isn't menu-driven? Thankfully - To launch mailx, type - mail at a shell prompt. mailx reads mail from your computer's mail spool and displays the usual combination of sender, subject, status, and size in a list, leaving the user at an interactive @@ -978,12 +621,12 @@ client that isn't menu-driven? Thankfully -root@darkstar:/home/bdobbs# mail -Heirloom mailx version 12.4 7/29/08. Type ? for help. -"/var/spool/mail/root": 2 messages 2 new ->N 1 To root Thu Mar 10 23:33 52/1902 Register with the Linux counter project - N 2 To root Thu Mar 10 23:35 321/15417 Welcome to Linux (Slackware 13.37)! -? +darkstar:~# mailx +Heirloom mailx version 12.4 7/29/08. Type ? for help. +"/var/spool/mail/root": 2 messages 2 new +>N 1 To root Thu Mar 10 23:33 52/1902 Register with the Linux counter project + N 2 To root Thu Mar 10 23:35 321/15417 Welcome to Linux (Slackware 13.37)! +?; @@ -996,7 +639,7 @@ Heirloom mailx version 12.4 7/29/08. Type ? for help. - To see a list of available commands, type ? at the + To see a list of available commands, enter ? at the mail prompt; using the commands provided, you can view the headers of mail in the spool, reply, delete, save, and many other common email tasks. @@ -1007,17 +650,17 @@ Heirloom mailx version 12.4 7/29/08. Type ? for help. scripting. For all of the options available for mailx, view its man page. A simple way to send an email to someone requires only the command itself and the - destination address: + destination address. - darkstar:~$ mail bob@example.com + darkstar:~$ mailx bob@example.com After the command has been issued, an interactive prompt appears for a subject line, the message body, and the end character (a single - dot on an otherwise empty line). + period on an otherwise empty line). @@ -1025,11 +668,11 @@ Heirloom mailx version 12.4 7/29/08. Type ? for help. intervention, however. Generally, it's safe to assume that any attribute you can define in the interactive shell for mailx can also be defined while scripting - it or using it as one non-interactive command: + it or using it as one non-interactive command. - darkstar:~$ mail -n -s "Test message" bob@example.com < ~/message.txt + darkstar:~$ mailx -n -s "Test message" bob@example.com < ~/message.txt @@ -1110,7 +753,7 @@ public FTP server, you'll want to use the "anonymous" username and simply enter your e-mail address (or a fake one) for the password. -darkstar:~# ftp ftp.osuosl.org +darkstar:~$ ftp ftp.osuosl.org Name (ftp.osuosl.org:alan): anonymous 331 Please specify the password. Password: secret -- cgit v1.2.3