Failed to lock /var/spool/mqueue.in/qfg65IWbm29468 with unexpected error[29482]: Bad file number

Chatchawan Dejitthirat chatchaw at CCWF.CC.UTEXAS.EDU
Fri Jul 5 21:53:00 IST 2002


1. Yes, there is only one mail scanner process

  bash-2.03# ps -ef |grep mail
    root 29210     1  0 12:48:16 ?        0:00 /usr/lib/sendmail -q15m
    root 29611     1  0 15:00:01 ?
0:00 /usr/local/bin/perl /opt/mailscanner/bin/mailscanner /opt/mailscanner/e
tc/mails
    root 29208     1  0 12:48:16 ?        0:00 /usr/lib/sendmail -bd -
ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mque

2. The strange thing is there is no process locking the file. And the file
is a test message which is small in size.

  bash-2.03# lsof qfg65Jgum29560
  bash-2.03# pwd
  /var/spool/mqueue.in
  bash-2.03# ls -l
  total 4
  -rw-------   1 root     other          6 Jul  5 14:43 dfg65Jgum29560
  -rw-------   1 root     other        541 Jul  5 14:43 qfg65Jgum29560
  bash-2.03# tail /var/log/syslog
  Jul  5 15:09:01 denali last message repeated 12 times
  Jul  5 15:15:31 denali mailscanner[29611]: Failed to
lock /var/spool/mqueue.in/qfg65Jgum29560 with unexpected error: Bad file
number
  Jul  5 15:15:31 denali last message repeated 13 times
  Jul  5 15:22:31 denali mailscanner[29611]: Failed to
lock /var/spool/mqueue.in/qfg65Jgum29560 with unexpected error: Bad file
number
  Jul  5 15:22:31 denali last message repeated 12 times
  Jul  5 15:29:01 denali mailscanner[29611]: Failed to
lock /var/spool/mqueue.in/qfg65Jgum29560 with unexpected error: Bad file
number
  Jul  5 15:29:01 denali last message repeated 12 times
  Jul  5 15:35:31 denali mailscanner[29611]: Failed to
lock /var/spool/mqueue.in/qfg65Jgum29560 with unexpected error: Bad file
number
  Jul  5 15:35:31 denali last message repeated 13 times
  Jul  5 15:42:31 denali mailscanner[29611]: Failed to
lock /var/spool/mqueue.in/qfg65Jgum29560 with unexpected error: Bad file
number

  bash-2.03# cat qfg65Jgum29560
  V4
  T1025898178
  K0
  N0
  P30021
  I0/4/27549
  $_piglet.cc.utexas.edu [128.83.42.61]
  $rSMTP
  $sdfs
  ${daemon_flags}
  ${if_addr}128.83.172.41
  Schatchaw at ccwf.cc.utexas.edu
  RPFD:chat
  H?P?Return-Path: <g>
  H??Received: from dfs (piglet.cc.utexas.edu [128.83.42.61])
         by denali.eco.utexas.edu (8.11.6+Sun/8.11.6) with SMTP id
g65Jgum29560
        for chat; Fri, 5 Jul 2002 14:42:58 -0500 (CDT)
  H?D?Date: Fri, 5 Jul 2002 14:42:58 -0500 (CDT)
  H?F?From: chatchaw at ccwf.cc.utexas.edu
  H?M?Message-Id: <200207051942.g65Jgum29560 at denali.eco.utexas.edu>
  H??Subject: test
  .

  bash-2.03# cat dfg65Jgum29560
  mdfsf




Thanks, Chatchawan Dejitthirat.



More information about the MailScanner mailing list