Lost mail & mail spool file locks

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've noticed that I had an incoming mail message go missing, and am 
looking at possible ways to prevent it in the future. Pointers to what 
I've missed much appreciated.

I use fetchmail (in daemon mode) to pop mail from my mailserver as well as 
a couple of external servers. The mail is filtered via procmail and spam 
assassin, and delivered to /var/spool/mail/mfratoni. I then view the mail 
with kmail.

This morning, it appears that I checked the mail with kmail at exactly the 
same time as fetchmail was retrieving the mail. This appears to be a "Bad 
Thing" (tm) ;)

Here are a couple of log messages showing the message arrive:
Nov 11 07:22:38 paradox fetchmail[1386]: 1 message for user at 
pop.server.net (5840 octets).
Nov 11 07:22:38 paradox fetchmail[1386]: reading message 1 of 1 (5840 
octets)
Nov 11 07:22:39 paradox sendmail[26484]: gABCMcdd026484: 
from=<sender@server.net>, size=5806, class=0, nrcpts=1, 
msgid=<4.2.2.20021111071844.00a48b00@pop.server.net>, bodytype=8BITMIME, 
proto=ESMTP, daemon=MTA, relay=paradox [127.0.0.1]
Nov 11 07:22:39 paradox fetchmail[1386]:  flushed
Nov 11 07:22:40 paradox spamd[657]: connection from paradox [ 127.0.0.1 ] 
at port 39287
Nov 11 07:22:40 paradox spamd[26493]: info: setuid to mfratoni succeeded
Nov 11 07:22:40 paradox spamd[26493]: clean message (0.8/8.0) for 
mfratoni:500 in   0 seconds, 6065 bytes.
Nov 11 07:22:42 paradox sendmail[26489]: gABCMcdd026484: 
to=<mfratoni@localhost>, delay=00:00:03, xdelay=00:00:02, mailer=local, 
pri=35988, dsn=2.0.0, stat=Sent

So, the mail was retrieved, flushed from the server, passed to procmail 
and spamd, then delivered to the mail spool. Verified from the procmail 
log as well:
$ grep -A 2 "sender@server.net" procmail.log
- From sender@server.net  Mon Nov 11 07:22:40 2002
 Subject: Quick question
  Folder: /var/spool/mail/mfratoni

All of the mail fetched from other servers prior to this message was 
delivered and received. This particular message vanished, however. 
Looking through the logs, 6 messages were fetched, but only 5 were 
retrieved by kmail.

My best guess is that kmail read and deleted my local mail spool _while_ 
sendmail was writting the last message.

Does this seem plausible, and can it be prevented?

- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE90GXen/07WoAb/SsRAj6mAJ0U2sIYSsv3KtVnxYQKUWzc8+QptwCfbgUQ
IPMawy/6/uP98eJ2vB34MM4=
=iwqT
-----END PGP SIGNATURE-----



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux