procmail
[Top] [All Lists]

Re: Bypassed locking ...

2001-06-08 01:43:05
On Fri, 8 Jun 2001, Philip Guenther wrote:

Something is wrong with this picture: procmail will not generate the
"Bypassed locking" message if the spool is writable by group and user.
Is /var/mail local to the machine that procmail is normally run on?

Yes.

Did any network 'burps' occur around the time indicated above?

No, even no warnings/errors in syslog.



The question is:
 would be of help if he puts at the end of his .procmailrc
line like:

:0:
/var/mail/kamil

That cannot help and, under some circumstances, it can be worse.

I only found (but some weeks later):

Jun  5 16:38:09 sun2 qpopper[21968]: [ID 702911 local0.notice]
Stats: kamil 0 0 0 0 n331vkj.biomed.cas.cz 147.231.40.1
12
Jun  5 16:49:19 sun2 qpopper[22219]: [ID 702911 local0.notice] I/O Error
from kamil at 147.231.40.112 (n331vkj.biomed.
cas.cz): [-1] 131 (Connection reset by peer); 0 (Error 0)
Jun  5 16:49:19 sun2 qpopper[22219]: [ID 702911 local0.notice] kamil at
n331vkj.biomed.cas.cz (147.231.40.112): -ERR POP
 EOF or I/O Error: 9 (Bad file number); 0 (Error 0)
Jun  5 16:49:19 sun2 qpopper[22219]: [ID 702911 local0.notice]
Stats: kamil 0 0 0 0 n331vkj.biomed.cas.cz 147.231.40.1
12
Jun  5 16:50:12 sun2 qpopper[22287]: [ID 702911 local0.notice]
Stats: kamil 0 0 0 0 n331vkj.biomed.cas.cz 147.231.40.1
12
Jun  5 16:59:54 sun2 qpopper[22484]: [ID 702911 local0.notice]
Stats: kamil 0 0 0 0 n331vkj.biomed.cas.cz 147.231.40.1
12

If the POP daemon isn't configured to use the same (kernel) locking
methods as procmail, or if none of those methods work between the machine
that procmail is run on the the machine that the POP daemon is run on,
then he can lose (and apparently has lost) email.


procmail v3.15.1 2001/01/08
Locking strategies:     dotlocking, fcntl(), lockf()
Default rcfile:         $HOME/.procmailrc
Your system mailbox:    /var/mail/xyz

The xyz is I hope current username - currently I'm logged in as a
different user, so I don't see what should the problematic user see.

This is exactly the email which got lost. I only worry about the queue number 
KAA22198:, which is used for 2 different e-mail transactions! But I saw it even 
in other cases in the logs.

May 21 10:56:28 sun2 sendmail[22198]: [ID 801593 mail.info] KAA22198: 
from=<xxx(_at_)yyy(_dot_)cz
, size=2074, class=0, pri=62074, nrcpts=2, 
msgid=<6ACB975FCCEBD311975000508B6B80BA0126
1769(_at_)MZE>, proto=ESMTP, relay=ns.mze.cz [193.85.170.40]
May 21 10:56:28 sun2 sendmail[22200]: [ID 801593 mail.info] KAA22198: 
to=<vyskocil(_at_)biom
ed.cas.cz>, delay=00:00:02, xdelay=00:00:00, mailer=local, relay=local, 
stat=Sent
May 21 10:56:28 sun2 sendmail[22200]: [ID 801593 mail.info] KAA22198: to="| 
IFS=' ' &&
/export/home/fgu/kamil/bin/procmail -a kamil -tf- || exit 75 #kamil", 
ctladdr=<kamil(_at_)bi
omed.cas.cz> (1440/201), delay=00:00:02, xdelay=00:00:00, mailer=prog, stat=Sent
May 21 10:56:29 sun2 sendmail[22228]: [ID 801593 mail.info] KAA22228: 
from=kamil, size=
181, class=0, pri=30181, nrcpts=1, 
msgid=<200105210856(_dot_)KAA22228(_at_)sun2(_dot_)biomed(_dot_)cas(_dot_)cz>, 
re
lay=kamil(_at_)localhost
May 21 10:56:32 sun2 sendmail[22232]: [ID 801593 mail.info] KAA22232: 
from=<spsc-owner@
pandora.cz>, size=88548, class=0, pri=118548, nrcpts=1, 
msgid=<694574(_at_)pandora(_dot_)cz>, body
type=8BITMIME, proto=ESMTP, relay=sarah.mobil.cz [195.70.151.45]
May 21 10:56:33 sun2 sendmail[22233]: [ID 801593 mail.info] KAA22232: 
to=<dsokol(_at_)biomed
.cas.cz>, delay=00:00:01, xdelay=00:00:00, mailer=local, relay=local, stat=Sent

I don't know how to find where stores qpopper the .lock files. I don't see
any in /var/mail or /tmp.

What about a solution, that he would add his e-mail address into .forward,
so that mail.local as LDA would save a copy of the email to his spoolfile
and he would us procmail just to forward some e-mails to mobile (i.e. he
would remove the "c" from his recipes)? ;)

If I'd know the name of a lockfile qpopper creates, would be of help
this:?

:0:/var/mail/.popper.kamil
{recipe}

TIA
-- 
Martin Mokrejs - PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
<mmokrejs(_at_)natur(_dot_)cuni(_dot_)cz> Faculty of Science, The Charles 
University


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>