There is a problem with both procmail delivered with Slack, dowloading
a new copy, recompile and install semms to solve 85% of the problems,
also this is happening when a dial-up user loose conexion in the middle
of a mail transfer, the following script (that came with pop3 daemon
source) launched by cron once at 15 min. will "expire" the poor file.
        Of course since then I moved for the new machines to IDS pop3 daemon(
see freshmeat.net) that don't exhibit such problems, but procmail issue
still have to be fixed.
        BTW. how do I install the dammed FP extensions to be used with BOTH
FP98 and FP2000 on a stock Apache 1.3.6 server, I'm process of losing
hair and a friend babbling trough M$ and friends install scripts that
semms to not be updated for 1.3.6.

        HTH and any help appreciated.

                        Mircea C. 
----------------------------- cut here---------
#!/bin/sh
##
## 8-1-97 Ian Kinner ([EMAIL PROTECTED])
##
## Simple sh script to remove stale files left in the in.pop3d tmp 
## directory, which cause DoS for POP3 users. Should be run by a contab
## every 15 minutes or so.
##

# Logfile to write deletions: (/dev/null valid)
LOGFILE=/var/log/flushpop_log

# in.pop3d tmp directory:
TMPDIR=/var/tmp/.pop

ls -l $TMPDIR | awk '{print $9}' >/tmp/.usrtmp
NUMBER=`wc -l /tmp/.usrtmp | awk '{print $1}'`

while [ $NUMBER -gt 1 ] 
do
USER=`head -$NUMBER /tmp/.usrtmp | tail -1`
ps aux | grep in.pop3d | grep $USER >/tmp/.poptmp
SIZE=`ls -l /tmp/.poptmp | awk '{print $5}'`
if [ $SIZE -eq 0 ] ; then
  echo `date` -- removed stale file for: $USER >> $LOGFILE
  rm -f $TMPDIR/$USER
fi
TMP=`expr $NUMBER - 1`
NUMBER=$TMP
done
rm -f /tmp/{.poptmp,.usrtmp}
------------------------------- cut here---


Jim Roland wrote:
> 
> I have a problem from time to time with users who check their email
> (usually with Outlook or it's derivatives, but it also happens with
> Pegasus) and find that they can't get in.  I check their acct by
> telnetting to port 110 and find an error "mail being read already", and it
> turns out to be a "flag" file in /var/tmp/.pop directory.  If I let it sit
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to