[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what mailing system for me ?



On Sat, 27 Sep 2003 05:26:03 -0400 (EDT)
<kmark@pipeline.com> wrote:

| 
| 
| On Sat, 27 Sep 2003, mess-mate wrote:
| 
| <snip>
| > Thanks, I've installed fetchmail, mailfilter, procmail, sendmail and mutt.
| > Fetchmail download the mails from my ISP = ok, and put it in /var/mail/messmate.
| That is your mail spool file. Thats were it goes.
| 
| > I've created $HOME/Mail to put from procmail ? my mails.
| > How do I retrieve the mails from /var/mail/messmate to put them
| > in ~/Mail  ?
| > Thought it's automatically :(
| > mess-mate
| >
|  you need to create a /home/messmate/.procmailrc
| here is mine:
| -------------------------------------------------
| PATH=/usr/local/bin:/usr/bin:/bin
| MAILDIR=$HOME/mail      #where sorted mail goes
| DEFAULT=$HOME/mbox   #completely optional - mailbox of last resort
| LOGFILE=$MAILDIR/from   #recommended
| # this FIRST makes a backup copy
| # for debugging
| :0 c
| $MAILDIR/backup
| # put mail from nylxs-announce into mbox called
| # nylxs-announce
| :0
| * ^To:.*nylxs-announce@nylxs.com
| $MAILDIR/nylxs-announce
| #
| :0
| * ^From:.*news@oetrends.com
| $MAILDIR/oetrends
| #
| :0
| * ^From:.*jobs@jobmail.dice.com
| $MAILDIR/dice
| # hints for SWEN
| # checking email body (B)
| :0 B
| * ^Content-Type: application/X-msdownload
| $MAILDIR/virus
| #
| :0 B
| * ^Content-Type: audio/X-midi
| $MAILDIR/virus
| #
| :0 B
| * ^Content-Type: audio/X-wav
| $MAILDIR/virus
| # SPAM checking
| :0 B
| * ^.*penis
| $MAILDIR/spam
| #
| :0 B
| * ^.*cumulative path
| $MAILDIR/virus
| #
| :0 B
| * ^.*nigeria
| $MAILDIR/spam
| #
| :0 B
| * ^.*viagra
| $MAILDIR/spam
| :0 B
| * ^.*mortgage
| $MAILDIR/spam
| ----------------------------------
| PLEASE NOTE:
| if you make a directory, it will save as mail-dir
| if you dont make a directory, it will save as an mbox.
| Above is
| ---------------
| :0 B
| * ^.*mortgage
| $MAILDIR/spam
| ---------------
| if I create the directory /home/kevin/mail/spam, each message will be
| saved in the directory /home/kevin/mail/spam as a single mail-dir file. If
| I DO NOT create any directory /home/kevin/mail/spam, it will create an
| mbox FILE /home/kevin/mail/spam that will contain all messages.
| -Kevin
Thanks Kevin. I've created separate rc.* files in a $HOME/Procmail dir  like that : $HOME/Procmail/rc.subscriptions :
:0
* ^Resent-Sender.*debian-user@lists.debian.org
Debian/

:0
* ^To_aide@lea-linux.org
Lea/

:0
* ^Subject:.*
Inbox/

And my $HOME/.procmailrc :
# Next setting may be needed if a program, such as spamassassin or
# virussnag, is invoked from your procmailrc, but it should not be 
# needed for the simple sorting recipes in this step-by-step section.
# Details are in Check Your $SHELL and $PATH in Troubleshooting below.
## SHELL=/bin/sh

# Directory for storing procmail configuration and log files
# You can name this environment variable anything you like
# (for example PROCMAILDIR) or, if you prefer, don't set it
# (but then don't refer to it!)
PMDIR=$HOME/Procmail

# LOGFILE should be specified ASAP so everything below it is logged
# Put ## before LOGFILE if you want no logging (not recommended)
LOGFILE=$PMDIR/pmlog

# To insert a blank line between each message's log entry, 
# uncomment next two lines (this is helpful for debugging)
 LOG="
 "

# Set to yes when debugging; VERBOSE default is no
VERBOSE=yes

# Replace $HOME/Mail with your mailbox directory
# Mutt and elm use $HOME/Mail
# Pine uses $HOME/mail
# Netscape Messenger uses $HOME/nsmail
# Some NNTP clients, such as slrn & nn, use $HOME/News
# Mailboxes in maildir format are often put in $HOME/Maildir
#
# IMPORTANT: Upon reading an instruction that contains MAILDIR=,
#            Procmail does a chdir to $MAILDIR and
#            relative paths are relative to $MAILDIR
MAILDIR=$HOME/Mail       # Make sure this directory exists!

INCLUDERC=$PMDIR/rc.testing
INCLUDERC=$PMDIR/rc.subscriptions
INCLUDERC=$PMDIR/rc.worms

Found it in a tutorial.
So, When I compare with yours all seems ok, didn't ?
If it is, what is the command to place the messages in the MALDIR ?
When I give the command 'procmail', it hangs until a ^C.
mess-mate




Reply to: