On Mon, Dec 13, 2004 at 10:10:08PM +1100, Adam Bogacki wrote:
I thought I should also include my cirrent /etc/procmailrc
and .forward file.
Adam Bogacki,
afb(_at_)paradise(_dot_)net(_dot_)nz
(1) My /home/adam/.forward file .......
#"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #adam"
|sh -c "IFS=' ' && exec /usr/bin/procmail -f-||exit 75 #adam"
I'm not entirely expert in this part, but it seems to me
you are invoking a subshell just so you can still be around
for the alternative "exit 75" statement should the exec
statement fail. But the whole point of an exec statement
is to save the tiny expense of spawning a shell when doing
so might be unnecessary. So you are spawning a shell in order
to be able to use the syntax that would normally avoid the
spawning of a shell. Doesn't make a lot of sense! It would
probably work (otherwise you'd have stopped getting any mail,
I guess); :-) but it's like my previous example of going out
the front door and around the block to get into your garage.
Since you want the fallback "exit 75", you are right, I think,
that "exec" won't be helpful. So how about just
|IFS=' ' && /usr/bin/procmail -f-||exit 75 #adam"
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/INBOX
See previous going-to-garage discussion from other poste.
LINEBUF=4096
VERBOSE=on
LOGFILE=$MAILDIR/.procmaillog
LOGABSTRACT=all
#SENDMAIL=/usr/sbin/sendmail
#Deletes duplicate messages
:0 Wh: msgid.lock
|$FORMAIL -D 8192 .msgid.cache
How many times are you going to check for dupes and set various
environment vars? You're doing it in /etc/procmailrc and in
$HOME/.procmailrc !
#Spamassassin
:0 fw
| /usr/bin/spamc
I'd recommend installing the spamd daemon rather than spawning
a brand new perl process for each email.
:0:
* ^X-Spam-Status: Yes
Trash
#Mailman reminders
:0:
* ^From: .*mailman-owner@
This recipe has no action!!!!!!!!!!!!!!!!!!!!!
Either you failed to copy it in, or there is a serious problem
if you copied everything in. You need an action.
Dallman
____________________________________________________________
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