Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 4914

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>mini-HOWTO install qmail with MH: Procmail</TITLE>
 <LINK HREF="Qmail+MH-8.html" REL=next>
 <LINK HREF="Qmail+MH-6.html" REL=previous>
 <LINK HREF="Qmail+MH.html#toc7" REL=contents>
</HEAD>
<BODY>
<A HREF="Qmail+MH-8.html">Next</A>
<A HREF="Qmail+MH-6.html">Previous</A>
<A HREF="Qmail+MH.html#toc7">Contents</A>
<HR>
<H2><A NAME="s7">7. Procmail</A></H2>

<P>
<P>The qmail FAQ gives this command:
<P>In &nbsp;/.qmail add the line 
<P>
<BLOCKQUOTE><CODE>
<PRE>
| preline procmail
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<P>Version 3.11pre7 has changed the default mail box variable. It used to
be in config.h. It is now in src/authenticate.c:
<P>
<BLOCKQUOTE><CODE>
<PRE>

#define MAILSPOOLHOME "/Mailbox"        /* watch the leading / */
                                        /* delivers to $HOME/Mailbox */
</PRE>
</CODE></BLOCKQUOTE>
<P>I have culled from comp.mail.mh ans comp.mail.misc some hints on a .procmailrc file. Thanks to everyone!
<P>
<BLOCKQUOTE><CODE>
<PRE>

# A SAMPLE .PROCMAILRC FILE FOR NOVICES
# Written by Catherine Hampton &lt;ariel@best.com>
# Version 1.1
# Updated 1/25/98
#
# Released to the Public Domain.
#
#
# SET VARIABLES

# Internal Variables
# the following have be modified by rdn 19980303

# Everyone says that the SHELL environment is essential
SHELL=/bin/sh               #Shell used to run procmail.  Be sure this points to
                            #your system's copy of sh.  DO NOT substitute a
                            #different shell unless you really know UNIX

LINEBUF=4096                #Needed to keep Procmail from choking on long
                            #"recipes", or instructions on what to do with
                            #particular kinds of email.

PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/mh:/usr/lib/mh:
                            #Path for your programs -- this is probably best
                            #left alone.

VERBOSE=off                 #Change this to "on" when you try a new recipe
                            #so that Procmail will log literally every step
                            #it takes.  DO NOT LEAVE IT ON, though, because
                            #it creates huge logfiles.

# Default Program &amp; file locations

MAILDIR=$HOME/Mail          #you'd better make sure this directory exists

DEFAULT=$HOME/Mailbox         #default incoming mailbox for shell2-5 users
                            #on Best Internet.  Substitute the correct
                            #setting for your system.


LOGFILE=$MAILDIR/procmail.log #Logs message disposition.  Recommended -- otherwise
                            #errors are emailed to you. :/

FORMAIL=/usr/bin/formail        #useful for autoreply recipes.  If you
                                #are not on Best Internet, modify this to
                                #your system's copy of formail.

SENDMAIL=/usr/sbin/sendmail    #useful for autoreply recipes.  If you are
                               #not on Best Internet, modify this to point
                               #to your system's copy of sendmail.
</PRE>
</CODE></BLOCKQUOTE>
<P>Procmail is an excellently documented program. Read the man pages for examples
on how to set up your .procmailrc file. 
<P>
<HR>
<A HREF="Qmail+MH-8.html">Next</A>
<A HREF="Qmail+MH-6.html">Previous</A>
<A HREF="Qmail+MH.html#toc7">Contents</A>
</BODY>
</HTML>