Next: Reboot and shutdown commands
Up: Extra Configurations and Software
Previous: Printing
Contents
Email was a bit interesting since I had this working on my Red Hat box,
but really couldn't remember how. I modified my old .getmailrc based
on info
here,
and then needed to add a procmailrc which I found
here.
The getmail site has a way to set up a cron job, but I just run
getmail from the command line, as I don't get much volume on my home
account. Both of my files follow.
==========================================================================
procmailrc
# .procmailrc
# routes incoming mail to appropriate mailboxes
PATH=/usr/bin:/usr/local/bin
MAILDIR=$HOME/mail # all mailboxes are in .mailspool/
DEFAULT=/var/spool/mail/ddawson
LOGFILE=/dev/null
SHELL=/bin/sh
\hline
\hline
==========================================================================
getmailrc
#getmailrc
verbose = 0 # Print status messages to stdout
timeout = 120 # We're on a good network; time out POP3 connections
after 120 seconds
readall = 1 # Retrieve all messages
delete = 1 # Delete all messages from the server when we're done
message_log = ~/.getmail/log # Log retrieval and delivery here
[Earthlink Account]
server = mail.earthlink.net
username = ********
password = "*******"
postmaster = "|/usr/bin/procmail" # Deliver all mail to this durectory
====================================================================================
After setting both of these files up properly, running getmail
delivered mail from the earthlink server with no trouble. When you
use getmail to fetch you email, you will here an audible beep at the
delivery of each email, and if you are using the console or switch
back to it will see a brief text on each email. This
behavior is caused by the default /etc/profile which has the ``biff
y'' setting. You can alter this to ``biff n'' for the whole system,
or you can put the appropriate change in individual .bashrc or .cshrc
Next: Reboot and shutdown commands
Up: Extra Configurations and Software
Previous: Printing
Contents
Douglas Dawson
2004-03-31