procmail
[Top] [All Lists]

Re: 'Folder: bounced '

2004-12-20 20:38:35
Thanks Ruud.

        I've put DROPPRIVS at the top of both
/etc/procmailrc and $HOME/.procmailrc and
tried both 
 LOGFILE=$MAILDIR/system-procmailrc.log
 and
  LOGFILE=$MAILDIR/user-procmailrc.log
.. but could not find those log files in Maildir
(I think I'm confusing a file and a variable).

I reverted to previous use, namely 

DROPPRIVS=yes
VERBOSE=ON
LINEBUF=4096
MAILDIR = "$HOME/Mail"
DEFAULT = "$MAILDIR/.Inbox/"
LOGFILE=$MAILDIR/.procmaillog
#LOGFILE=$MAILDIR/system-procmailrc.log
LOGABSTRACT=all
#SENDMAIL=/usr/sbin/sendmail

and

DROPPRIVS=yes
VERBOSE=on
LINEBUF=4096
MAILDIR = "$HOME/Mail"   #make sure it exists
DEFAULT = "$MAILDIR/.Inbox/"
#PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
LOCKFILE=$HOME/.lockmail
LOGFILE=$HOME/procmail.log
#LOGFILE=$HOME/user-procmailrc.log
LOGABSTRACT=all

but could only find /home/adam/procmail.log
still giving me an entry from 'Sat Dec 11 .. 2004'

From root(_at_)paradise(_dot_)net(_dot_)nz  Sat Dec 11 14:57:42 2004
 Subject: Anacron job 'cron.daily' on Tux
   Folder:  cd backup && rm -f dummy 'ls -t msg.* | sed -e 1,200d'
   1368
   procmail: Match on
   "(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From
   
)([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mail(er)?|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)?|s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>
   ][^<)]*(\(.*\).*)?)?$([^>]|$))"
   procmail: Locking "bounced.lock"
   procmail: Assigning "LASTFOLDER=bounced"
   procmail: Opening "bounced"
   procmail: Acquiring kernel-lock
   procmail: Unlocking "bounced.lock"
   procmail: Notified comsat: "adam(_at_)241260:/home/adam/Maildir/bounced"
   From root(_at_)paradise(_dot_)net(_dot_)nz  Sat Dec 11 14:57:42 2004
    Subject: Anacron job 'cron.daily' on Tux
      Folder: bounced                                                   

I though it might be constructive to add the output of 
/home/adam/procdiag.sh (below) in the hope that
I can get procmail working properly again.

Ruud asked if I have both $HOME/Maildir and $HOME/Mail
.. the answer is yes, having tried both in the past.

Adam Bogacki,
afb(_at_)paradise(_dot_)net(_dot_)nz

Tux:/home/adam# ./procdiag.sh
# procdiag v20031105.1723
# procdiag run at Tue Dec 21 16:20:38 EST 2004

# general account information:
USER: root (root)
GROUPS: root
SHELL: /bin/bash
MAIL:
hostname: tux (Tux)
FQDN: tux.paradise.net.nz
HOME: /root

# user info from /etc/passwd (password is masked):
root:x:0:0:root:/root:/bin/bash

# system identifiers (if discernible):
OSTYPE: linux-gnu
MACHTYPE: i386-pc-linux-gnu
UNAME: Linux Tux 2.6.5-1-686 #5 Fri Apr 30 20:26:13 EST 2004 i686
GNU/Linux

# The current shell path is (not to be confused with the MTA-defined
# path):
PATH:
/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin

# formail and procmail information (as per versions in the current
# path):
0755  1 root     root       26260 Fri Dec  3 05:51:27 2004
/usr/bin/formail
formail v3.22 2001/09/10

6755  1 root     mail       67496 Fri Dec  3 05:51:27 2004
/usr/bin/procmail
procmail v3.22 2001/09/10
Default rcfile:         $HOME/.procmailrc
        It may be writable by your primary group
        Your system mailbox:    /var/mail/root

        # various procmail configuration elements:
        ORGMAIL="/var/mail/root"
        SENDMAIL="/usr/sbin/sendmail"
        SENDMAILFLAGS="-oi"
        HOST="Tux"
        PROCMAIL_VERSION="3.22"
        LINEBUF="2048"
        PATH="/root/bin:/usr/local/bin:/usr/bin:/bin"
        SHELL="/bin/bash"
        SHELLMETAS="&|<>~;?*["

        # usage banner from grep
        Usage: grep [OPTION]... PATTERN [FILE]...
        Try `grep --help' for more information.

        # sed version or other identifier
        0755  1 root     root       41048 Wed Dec  1 11:28:55 2004
        /bin/sed
        GNU sed version 4.1.2
        Copyright (C) 2003 Free Software Foundation, Inc.
        This is free software; see the source for copying conditions.
        There is NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A
        PARTICULAR PURPOSE,
        to the extent permitted by law.

        # sh info (intended to show whether sh is sh or a symlink to
        # another shell)
        lrwxrwxrwx  1 root root 4 Dec 20 13:42 /bin/sh -> bash

        # sendmail program information (from procmail's $SENDMAIL):
        4755  1 root     root      644472 Wed Dec  8 00:01:21 2004
        /usr/sbin/sendmail
        exim: malformed debug_selector setting: + or - expected but
        found "0"

        # Determining Mlocal via sendmail diagnostic invocation
        exim: malformed debug_selector setting: + or - expected but
        found "0.15"
        NOTE: procmail doesn't appear to be the LDA

        # contents of /root/.forward (if it exists)
        NOTE: no /root/.forward

        # file permissions and ownership:
        NOTE: There is no /root/.procmailrc file.
        NOTE: There is no /root/.forward file.
        0755 61 root     root        3072 Tue Dec 21 16:14:09 2004
        /root/
        0644  1 root     root        1987 Mon Dec 20 14:23:52 2004
        /etc/procmailrc
        NOTE: There is no /etc/procmailrcs file.
        0700  2 root     root        1024 Sat Dec 18 19:32:57 2004
        /root/Mail/
        NOTE: There is no /root/mail file.
        NOTE: There is no /root/.procmail file.
        0600  1 root     mail           0 Fri Nov 28 19:28:25 2003
        /var/mail/root
        2775  2 root     mail        4096 Tue Dec 21 15:48:04 2004
        /var/mail/

        # procdiag report end
        Tux:/home/adam#



On Sat, 18 Dec 2004 or thereabouts Ruud wrote ...

Message: 1
Date: Sat, 18 Dec 2004 13:11:55 +0100
From: "Ruud H.G. van Tol" <rvtol(_at_)isolution(_dot_)nl>
Subject: Re: 'Folder: bounced '
To: "[procmail]" <procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
Message-ID: <065e01c4e4fa$c61ef110$0a01a8c0(_at_)isolution(_dot_)nl>
Content-Type: text/plain; charset=iso-8859-1

Toen wij Adam Bogacki kietelden, kwam er dit uit:

/etc/procmailrc puts its log in $MAILDIR

What do you mean by that? 

If you let /etc/procmailrc create $HOME/.procmaillog 
(see below) before DROPPRIVS, then the user's 
.procmailrc will have problems writing to it. 

You could put something like this in /etc/procmailrc
  LOGFILE=$MAILDIR/system-procmailrc.log
and something like this in ~/.procmailrc
  LOGFILE=$MAILDIR/user-procmailrc.log
(but stick to your current names if they are 
already different)


MAILDIR = $HOME/Mail
DEFAULT = "$HOME/Maildir/.Inbox/"

Do you actually have a '~/Mail/' and 
a '~/Maildir/' ?

ITYM:
  MAILDIR = "$HOME/Mail"
  DEFAULT = "$MAILDIR/.Inbox/"


-- 
Grtz, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>