* Manoj Srivastava <@> [2016-01-21 10:15]:

[snip]

Just eyeballing the code seems to indicate that something did go seriously wrong; and perl just died at the defined line, since there should be no way to not have another diagnostic line after determining the name of the emergency mailbox file, whether or not the emergency dump worked, unless perl had died. If that si the case, the problem is now fixed, though I am left feeling very uneasy about what went wrong in the first place.

In an afterthought, I think that my mail loss came from the fact that Perl died, before mailagent could dump the message somewhere. I guess that this is essentially what you wrote about. Hence, I agree with you that the problem is now fixed.

However, I was still intrigued by those lines in my log file:

   16/01/20 19:17:43 mailagent[178656]: NOTICE not saved, leaving in mailbox
   16/01/20 19:17:43 mailagent[178656]: WARNING using /home/rafael/mbox.rafael 
for mailbox

The mailbox should be instead /var/spool/mail/rafael, since this is the value of the $mailfile variable, defined in /usr/bin/mailagent. I found where the problem comes from and proposed a patch for it in Bug#812308.

Best,

Rafael

Reply via email to