Thanks, SBS.
I rewrote my /home/adam/.procmailrc from scratch and created a .forward
file based on your notes and man pages. See below.
#A SIMPLE $HOME/.procmailrc - designed to (hopefully) WORK.
LINEBUF=4096
PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
VERBOSE=on
MAILDIR=$HOME/Mail #make sure it exists
DEFAULT=$MAILDIR/mbox #optional
LOGFILE=$MAILDIR/from
FORMAIL=/usr/bin/formail
SENDMAIL=/usr/sbin/sendmail
#Nuke duplicate messages from people cross-posting to several
mailing-lists
#duplicates go into separate folder which has to be periodically emptied
#:0 Whc: msgid.lock
#| $FORMAIL -D 8192 msgid.cache
#:0 a:
#duplicates
#Create a backup cache of 200 most recent messages in case of
#mistakes (can change 200 to 20 or 400 or whatever ...)
:0 c
backup
:0 ic
| cd backup && rm -f dummy 'ls -t msg.* | sed -e 1,200d'
#Store mail from postmaster or mailer-daemon into file 'bounced'
#using file 'bounced.lock' as locallockfile
:0:
* ^FROM_MAILER
bounced
#Regenerate "From" lines to make sure they are valid
#:0 fhw
#|formail -I "From " -a "From"
#RECIPES
Unfortunately, none of the recipes seem to work ...
I'm a bit worried by the last few lines of your procdiag script.
adam(_at_)Tux:~$ sh ./procdiag.sh
# procdiag v20031105.1723
# procdiag run at Tue Jan 20 13:52:12 NZDT 2004
# general account information:
USER: adam (adam)
GROUPS: adam audio
SHELL: /bin/bash
MAIL: /var/mail/adam
hostname: Tux (Tux)
FQDN: Tux
HOME: /home/adam
# user info from /etc/passwd (password is masked):
adam:x:1000:1000:Adam Bogacki,,,:/home/adam:/bin/bash
# system identifiers (if discernible):
OSTYPE: linux-gnu
MACHTYPE: i386-pc-linux-gnu
UNAME: Linux Tux 2.4.18-bf2.4 #1 Sam M?r 30 00:56:06 CET 2002 i686
GNU/Linux
# The current shell path is (not to be confused with the MTA-defined
path):
PATH: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
# formail and procmail information (as per versions in the current path):
0755 1 root root 26260 Tue Nov 4 08:04:47 2003 /usr/bin/formail
formail v3.22 2001/09/10
6755 1 root mail 67496 Tue Nov 4 08:04:47 2003 /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/adam
# various procmail configuration elements:
ORGMAIL="/var/mail/adam"
SENDMAIL="/usr/sbin/sendmail"
SENDMAILFLAGS="-oi"
HOST="Tux"
PROCMAIL_VERSION="3.22"
LINEBUF="2048"
PATH="/home/adam/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 36280 Mon Oct 27 14:54:41 2003 /bin/sed
GNU sed version 4.0.7
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 Nov 12 19:44 /bin/sh -> bash
# sendmail program information (from procmail's $SENDMAIL):
4755 1 root root 733004 Sat Jan 10 02:08:18 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 /home/adam/.forward (if it exists)
"|IFS=' ' && p=/usr/bin/procmail && test -f $p && exec $p -Yf- || exit
75 #adam"
# An alternative .forward, not checked against the above, but merely
# offered here, is:
"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #adam"
# file permissions and ownership:
0644 1 adam adam 2818 Tue Jan 20 13:45:12 2004 /home/adam/.procmailrc
0704 1 root root 81 Tue Jan 20 08:40:16 2004 /home/adam/.forward
0755 92 adam adam 8192 Tue Jan 20 13:51:52 2004 /home/adam/
NOTE: There is no /etc/procmailrc file.
NOTE: There is no /etc/procmailrcs file.
0700 4 adam adam 4096 Tue Jan 20 00:12:44 2004 /home/adam/Mail/
0755 2 adam adam 4096 Mon Jan 19 23:11:19 2004 /home/adam/mail/
NOTE: There is no /home/adam/.procmail file.
0660 1 adam mail 0 Fri Jul 11 21:23:00 2003 /var/mail/adam
CAUTION: /var/mail/adam perms exceed 7755: curb back to 0640
2775 2 root mail 4096 Tue Jan 20 09:29:17 2004 /var/mail/
# procdiag report end
adam(_at_)Tux:~$
Could you explain their implication ?
Adam Bogacki,
afb(_at_)paradise(_dot_)net(_dot_)nz
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail