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

more problems with procmail



I compiled and installed fetchmail, as advised from the list, but I am
still having problems getting procmail to run.
I was using popclient to get mail using the following script, run as root.
--------------------------------------------------------------
#!/bin/sh
ORGMAIL=/var/spool/mail/root

popclient -3 -u blunier -o $ORGMAIL -P /etc/popclient mail.dataex.com

echo mail retrieved - sorting

if cd $HOME &&
   test -s $ORGMAIL &&
   lockfile -r0 -l3600 .newmail.lock 2>/dev/null
   then
   trap "rm -f .newmail.lock" 1 2 3 15
   umask 077
   lockfile -l3600 -ml
   cat $ORGMAIL >>.newmail &&
   cat /dev/null >$ORGMAIL
   lockfile -mu
   formail -s procmail -m /root/.procmail <.newmail &&
      rm -f .newmail
   rm -f .newmail.lock
fi
echo mail sorted
echo -e '\007'
exit 0
------------------------------------------------------------------
the /root/.procmail file is as follows
-----------------------------------------
PATH=/bin:/usr/bin
#DEFAULT=$/var/spool/mail/blunier
MAILDIR=/home/blunier/mail
DEFAULT=$MAILDIR/default
LOGFILE=$MAILDIR/logfile
DEBIAN_USER=$MAILDIR/debian-user
DEBIAN_ANNOUNCE=$MAILDIR/debian-announce
DEBIAN_CHANGES=$MAILDIR/debian-changes
MGETTY=$MAILDIR/mgetty
HUMOR=$MAILDIR/humor

:0
* ^TO.*xnet.com.*
! fred

:0 :
* ^TO.*debian-user.*
$DEBIAN_USER

:0 :
* ^TO.*debian-announce.*
$DEBIAN_ANNOUNCE

:0 :
* ^TO.*debian-changes.*
$DEBIAN_CHANGES
_____________________________________________________________
After I installed fetchmail, I copied /root/.procmail to
~blunier/.procmailrc.  I also added set ~blunier/.forward to
"|IFS=' '&&exec /usr/bin/procmail -f-||exit 75 #blunier"

The mail disapears never to be seen again.

I tried changing the .forward to "| sleep 100".  when I did a 
ps -aux, it shows that 'nobody' owns the process.  I guess that
procmail would also be running under 'nobody'.  Since nobody does not have
write access to the groups, would this be why mail is disapearing?
Should I change access permission to the mail directory/folders?
Is there something else that is screwed up in my setup?

Sorry for the long post
Mark W. Blunier



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: