Yes, you do raise a good question. I had not thought about it, the "-f"
flag on rm would force a delete. Perhaps 5 minutes is too tight, however
users start to complain when they have their mail clients set every 5 to 10
minutes and see an error. I have not seen anyone complain about missing
message portions yet. You could probably increase the crontab interval if
it gets to be a problem.
"Never settle with words what you can settle with a flamethrower."
On Fri, 14 Jan 2000, Brian Cowan wrote:
> Date: Fri, 14 Jan 2000 07:16:56 -0800
> From: Brian Cowan <BCowan@expandable.com>
> To: 'Jim Roland' <email@example.com>, Xu Li Hua <firstname.lastname@example.org>
> Cc: email@example.com
> Subject: RE: Sendmail. How to disable the use of forbidden mark in /usr/tm
> I'll just toss a "what if" at you since I don't (yet) know the inner
> workings of in.pop3d: What if someone is downloading a LARGE message over a
> PPP connection? Does in.pop3d modify the file only after each successful
> message d/l? Or, does it keep "touch"ing the file to keep the d/t stamp up
> to date?
> If the former, this method can cause some serious problems. If the latter,
> this trick would work fine...
> -----Original Message-----
> From: Jim Roland [mailto:firstname.lastname@example.org]
> Sent: Thursday, January 13, 2000 9:11 AM
> To: Xu Li Hua
> Cc: email@example.com
> Subject: Re: Sendmail. How to disable the use of forbidden mark in
> /usr/tmp/.pop directory.
> It's usually a function of the in.pop3d daemon not timing out the session
> deleting the file. When someone downloads POP3 mail, when they login, a
> of their /var/spool/mail/username file is made to /var/tmp/.pop/username and
> they actually download from the "tmp" dir. This way, when a new message
> in, it does not create a file conflict (it's a "snapshot" of their file).
> I have had your problem happen to me frequently (pop3 sees the temp file
> already there and thinks that someone else is downloading from that
> What I did to resolve it was to put in a crontab event (login as root then
> a "crontab -e" command) and put in the following:
> # Delete stale mail-download locks from invalidly disconnected pop3
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * find /var/tmp/.pop/* -mmin
> 2> /dev/null | xargs rm -f
> (all of that should be on the same line)
> What is does is this:
> Every 5 minutes, every hour, every day, etc (I could have tried */5 I guess
> instead of listing each 5 minute interval)
> Find files in /var/pop/.tmp that have not been modified in the last 5
> (someone downloading POP3 mail will keep modifying this file), and delete
> if they have been idle for over 5 minutes. This is the "find
> -mmin +5 | xargs rm -f" part of the command above.
> The "2> /dev/null" was inserted to keep the root account from getting a mail
> message every 5 minutes when there is no file to clean out at that cycle.
> I hope this helps.
> Xu Li Hua wrote:
> > Hi Friends:
> > I have trouble in using Sendmail in Slackware Linux.
> > My username often appreared in the /usr/tmp/.pop directory.
> > Then I can't get my mail.
> > Why it happens? How can I disable this function?
> > Many thanks!
> > Xu Lihua
> Jim Roland
> Roland Internet Services
> Standard & Custom Web/Email Hosting Solutions
> ** Ask us about Frontpage 98 Server Extensions!
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to firstname.lastname@example.org
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to email@example.com
This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:30 EST