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

Re: Another stupid question



On Fri, Mar 15, 2002 at 11:09:20PM -0500, tps@unslept.com wrote:
> YEEEELLLLLL! :)

I hear ya! :)

> I think my problem is in procmail.

Maybe these snippets will help.  First is from exim.conf.  The second is
from my .procmailrc, which works.  The procmail director is inbetween
the system_alias and userforward directors.


######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
#                       ORDER DOES NOT MATTER                        #
#     Only one appropriate transport is called for each delivery.    #
######################################################################

[snip]

# This transport is used for procmail

procmail_pipe:
  driver = pipe
  command = "/usr/bin/procmail -d ${local_part}"
  return_path_add
  delivery_date_add
  envelope_to_add
  check_string = "From "
  escape_string = ">From "
  user = $local_part
  group = mail

[snip]

######################################################################
#                      DIRECTORS CONFIGURATION                       #
#             Specifies how local addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#   A local address is passed to each in turn until it is accepted.  #
######################################################################

system_aliases:
[snip]

# This director runs procmail for users who have a .procmailrc file

procmail:
  driver = localuser
  transport = procmail_pipe
  require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
  no_verify

userforward:
[snip]


This is part of my .procmailrc.  There are two important thing.  Be sure
you are using procmail v3.14 or newer.  Prior versions didn't support
maildir.  And you need a trailing / to indicate a maildir-style folder.
If it is missing, procmail assumes an mbox-style folder.  Each maildir
folder needs a new, cur and tmp subdirs or procmail barfs.

SHELL=/bin/bash
LINEBUF=4096
PATH=/bin:/usr/bin:/usr/local/bin
VERBOSE=off
MAILDIR=$HOME/Mail
        # My inbox is $HOME/Maildir.  My sorted folders are in $HOME/Mail
LOGFILE=$HOME/.procmail_log
FORMAIL=/usr/bin/formail
SENDMAIL=/usr/sbin/sendmail
        # sendmail is a symlink to exim
DEFAULT=$HOME/Maildir/
	# If all the rules fails, the mail gets dumped in here.  Note
        # the trailing /
[snip]

# bugtraq - maildir folder
:0
* ^List-Id:.*bugtraq.list-id.securityfocus.com
IN.bugtraq/

# debian-isp list - maildir folder
:0
* ^X-Loop:.*debian-isp@lists.debian.org
IN.debian-isp/

# linux-kernel - mbox folder (no trailing /)
:0
* ^X-Mailing-List:.*linux-kernel@vger.kernel.org
IN.linux-kernel

[snip]

# Anything making it this far gets dump in the main mailbox.
:0
*
$DEFAULT


This should get you going, Tim.

         bob
-- 
 bob billson        email: reb@bhive.dhs.org          ham: kc2wz    /)
                           reb@elbnet.com             beekeeper  -8|||}
 "Níl aon tinteán mar do thinteán féin." --Dorothy    Linux geek    \)



Reply to: