UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

queue-fixを使ってqmailのqueueを修復する

queue-fixを使ってqmailのqueueを修復する


0.改訂履歴

  • 2006.03.02 新規作成

1.はじめに

 このドキュメントでは,qmailのqueueに問題が発生した場合に,queue-fixツールを使って復旧する手順を説明する.

 maillogファイル上に,warning: unable to stat mess/nn/nnnn等といったワーニングメッセージが,出力されているときに効果がある. このメッセージでは,queueの中に矛盾があるといった無いようで,メールの送受信や,一部メールが届かない等の問題が発生したときには,この障害が発生している可能性がある. また,この作業を行う場合には,qmailプロセスを停止させる必要がある.

 なお,使用しているOSは,RedHat Linux ES3上で稼働している.

2.エラーメッセージの確認

  • /var/log/maillogファイルを確認する.
  • ログファイル上に,次のようなワーニングメッセージが記録されていることが確認できる事がある.
10:50:08 neptune qmail: 11412.186740 new msg 2310804
10:50:08 neptune qmail: 11412.207965 info msg 2310804: bytes 513 from 
<anonymous@mx.ujp.jp> qp 14318 uid 701
10:50:08 neptune qmail: 11412.229010 delivery 1409175: success: did_0+1+0/
qp_14318/
10:50:08 neptune qmail: 11412.250244 status: local 0/10 remote 0/20
10:50:08 neptune qmail: 11412.271356 starting delivery 1409176: msg 2310804 to 
local adm@mx.ujp.jp
10:50:08 neptune qmail: 11412.292514 status: local 1/10 remote 0/20
10:50:08 neptune qmail: 11412.313581 end msg 2310807
10:50:08 neptune qmail: 11412.334886 warning: unable to stat mess/20/2310784
10:50:08 neptune qmail: 11412.355911 warning: unable to stat mess/21/2310785
10:50:08 neptune qmail: 11412.380036 warning: unable to stat mess/22/2310786
10:50:08 neptune qmail: 11412.404204 warning: unable to stat mess/0/2310787
10:50:08 neptune qmail: 11412.428335 warning: unable to stat mess/1/2310788
10:50:08 neptune qmail: 11412.452487 warning: unable to stat mess/2/2310789
10:50:08 neptune qmail: 11412.476627 warning: unable to stat mess/3/2310790
10:50:08 neptune qmail: 11412.500809 warning: unable to stat mess/4/2310791
10:50:08 neptune qmail: 11412.521932 warning: unable to stat mess/5/2310792
10:50:08 neptune qmail: 11412.542937 warning: unable to stat mess/6/2310793
10:50:08 neptune qmail: 11412.564168 warning: unable to stat mess/7/2310794
10:50:08 neptune qmail: 11412.585243 delivery 1409176: success: did_1+0+0/
10:50:08 neptune qmail: 11412.606449 status: local 0/10 remote 0/20
10:50:08 neptune qmail: 11412.627604 end msg 2310804
  • この場合queueに矛盾が発生していると言うことなので,復旧を行う.

3.モジュールの入手とインストール

  • サイトからqueue-fixをダウンロードする.
[root@neptune Download]# wget http://www.netmeridian.com/e-huss/queue-fix.tar.gz
--12:08:14--  http://www.netmeridian.com/e-huss/queue-fix.tar.gz
           => `queue-fix.tar.gz'
www.netmeridian.com をDNSに問いあわせています... 65.87.22.58
www.netmeridian.com[65.87.22.58]:80 に接続しています... 接続しました。

HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 18,486 [application/x-tar]

100%[================================================================>] 18

12:08:15 (60.59 KB/s) - `queue-fix.tar.gz' saved [18,486/18,486]

[root@neptune Download]#
  • アーカイブファイルを展開する.
[root@neptune Download]# tar xfz queue-fix.tar.gz 
[root@neptune Download]#
  • 展開された中身を確認する.
[root@neptune Download]# cd queue-fix-1.4
[root@neptune queue-fix-1.4]# ls
CHANGES      error_str.c      open_excl.c      stralloc_cats.c
Makefile     error_temp.c     open_read.c      stralloc_copy.c
README       fifo.c           open_trunc.c     stralloc_eady.c
TARGETS      fifo.h           open_write.c     stralloc_opyb.c
alloc.c      find-systype.sh  queue-fix.c      stralloc_opys.c
alloc.h      fmt.h            readwrite.h      stralloc_pend.c
alloc_re.c   fmt_str.c        scan.h           subfd.h
byte.h       fmt_strn.c       scan_8long.c     subfderr.c
byte_chr.c   fmt_uint.c       scan_ulong.c     subfdin.c
byte_copy.c  fmt_uint0.c      str.h            subfdins.c
byte_cr.c    fmt_ulong.c      str_chr.c        subfdout.c
byte_diff.c  gen_alloc.h      str_cpy.c        subfdouts.c
byte_rchr.c  gen_allocdefs.h  str_diff.c       substdi.c
byte_zero.c  getln.c          str_diffn.c      substdio.c
conf-cc      getln.h          str_len.c        substdio.h
conf-ld      getln2.c         str_rchr.c       substdio_copy.c
direntry.h   make-compile.sh  str_start.c      substdo.c
direntry.h1  make-load.sh     stralloc.h       trycpp.c
direntry.h2  make-makelib.sh  stralloc_arts.c  trydrent.c
error.c      open.h           stralloc_cat.c   trymkffo.c
error.h      open_append.c    stralloc_catb.c  warn-auto.sh
[root@neptune queue-fix-1.4]# 
  • makeを行う.
[root@neptune queue-fix-1.4]# make
( cat warn-auto.sh; ¥
echo CC=¥'`head -1 conf-cc`¥'; ¥
echo LD=¥'`head -1 conf-ld`¥' ¥
) > auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
chmod 755 make-load
cat auto-ccld.sh find-systype.sh > find-systype
chmod 755 find-systype
./find-systype > systype
( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
chmod 755 load
cat auto-ccld.sh make-compile.sh > make-compile
chmod 755 make-compile
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > ¥
compile
chmod 755 compile
( ./compile trydrent.c >/dev/null 2>&1 ¥
&& cat direntry.h2 || cat direntry.h1 ) > direntry.h
rm -f trydrent.o
( ( ./compile trymkffo.c && ./load trymkffo ) >/dev/null ¥
2>&1 ¥
&& echo ¥#define HASMKFIFO 1 || exit 0 ) > hasmkffo.h
rm -f trymkffo.o trymkffo
./compile queue-fix.c
./compile fifo.c
cat auto-ccld.sh make-makelib.sh > make-makelib
chmod 755 make-makelib
( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > ¥
makelib
chmod 755 makelib
./compile fmt_str.c
./compile fmt_strn.c
./compile fmt_uint.c
./compile fmt_uint0.c
./compile fmt_ulong.c
./compile scan_ulong.c
./compile scan_8long.c
./makelib fs.a fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o ¥
fmt_ulong.o scan_ulong.o scan_8long.o
./compile stralloc_eady.c
./compile stralloc_pend.c
./compile stralloc_copy.c
./compile stralloc_opys.c
./compile stralloc_opyb.c
./compile stralloc_cat.c
./compile stralloc_cats.c
./compile stralloc_catb.c
./compile stralloc_arts.c
./makelib stralloc.a stralloc_eady.o stralloc_pend.o ¥
stralloc_copy.o stralloc_opys.o stralloc_opyb.o ¥
stralloc_cat.o stralloc_cats.o stralloc_catb.o ¥
stralloc_arts.o
./compile getln.c
./compile getln2.c
./makelib getln.a getln.o getln2.o
./compile open_append.c
./compile open_excl.c
./compile open_read.c
./compile open_trunc.c
./compile open_write.c
./makelib open.a open_append.o open_excl.o open_read.o ¥
open_trunc.o open_write.o
./compile error.c
./compile error_str.c
./compile error_temp.c
./makelib error.a error.o error_str.o error_temp.o
./compile substdio.c
./compile substdi.c
./compile substdo.c
./compile subfderr.c
./compile subfdout.c
./compile subfdouts.c
./compile subfdin.c
./compile subfdins.c
./compile substdio_copy.c
./makelib substdio.a substdio.o substdi.o substdo.o ¥
subfderr.o subfdout.o subfdouts.o subfdin.o subfdins.o ¥
substdio_copy.o
./compile alloc.c
./compile alloc_re.c
./makelib alloc.a alloc.o alloc_re.o
./compile str_len.c
./compile str_diff.c
./compile str_diffn.c
./compile str_cpy.c
./compile str_chr.c
./compile str_rchr.c
./compile str_start.c
./compile byte_chr.c
./compile byte_rchr.c
./compile byte_diff.c
./compile byte_copy.c
./compile byte_cr.c
./compile byte_zero.c
./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o ¥
str_chr.o str_rchr.o str_start.o byte_chr.o byte_rchr.o ¥
byte_diff.o byte_copy.o byte_cr.o byte_zero.o
./load queue-fix fifo.o fs.a stralloc.a getln.a open.a error.a ¥
substdio.a alloc.a str.a
queue-fix.o(.text+0x194): In function `check_item':
: undefined reference to `errno'
queue-fix.o(.text+0x411): In function `check_item':
: undefined reference to `errno'
queue-fix.o(.text+0x653): In function `check_item':
: undefined reference to `errno'
queue-fix.o(.text+0xc62): In function `rename_mess':
: undefined reference to `errno'
substdio.a(substdi.o)(.text+0x2c): In function `oneread':
: undefined reference to `errno'
substdio.a(substdo.o)(.text+0x43): more undefined references to `errno' follow
collect2: ld はステータス 1 で終了しました
make: *** [queue-fix] エラー 1
  • makeでエラーが発生している.
  • error.hファイルを次のように修正する.
変更前
#ifndef ERROR_H
#define ERROR_H

extern int errno;

extern int error_intr;
extern int error_nomem;
extern int error_noent;
変更後
#ifndef ERROR_H
#define ERROR_H

#include <errno.h>

extern int error_intr;
extern int error_nomem;
extern int error_noent;
  • 修正後,再度makeを行う.
[root@neptune queue-fix-1.4]# make clean
rm -f `cat TARGETS`
[root@neptune queue-fix-1.4]# make 
( cat warn-auto.sh; ¥
echo CC=¥'`head -1 conf-cc`¥'; ¥
echo LD=¥'`head -1 conf-ld`¥' ¥
) > auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
chmod 755 make-load
cat auto-ccld.sh find-systype.sh > find-systype
chmod 755 find-systype
./find-systype > systype
( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
chmod 755 load
cat auto-ccld.sh make-compile.sh > make-compile
chmod 755 make-compile
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > ¥
compile
chmod 755 compile
( ./compile trydrent.c >/dev/null 2>&1 ¥
&& cat direntry.h2 || cat direntry.h1 ) > direntry.h
rm -f trydrent.o
( ( ./compile trymkffo.c && ./load trymkffo ) >/dev/null ¥
2>&1 ¥
&& echo ¥#define HASMKFIFO 1 || exit 0 ) > hasmkffo.h
rm -f trymkffo.o trymkffo
./compile queue-fix.c
./compile fifo.c
cat auto-ccld.sh make-makelib.sh > make-makelib
chmod 755 make-makelib
( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > ¥
makelib
chmod 755 makelib
./compile fmt_str.c
./compile fmt_strn.c
./compile fmt_uint.c
./compile fmt_uint0.c
./compile fmt_ulong.c
./compile scan_ulong.c
./compile scan_8long.c
./makelib fs.a fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o ¥
fmt_ulong.o scan_ulong.o scan_8long.o
./compile stralloc_eady.c
./compile stralloc_pend.c
./compile stralloc_copy.c
./compile stralloc_opys.c
./compile stralloc_opyb.c
./compile stralloc_cat.c
./compile stralloc_cats.c
./compile stralloc_catb.c
./compile stralloc_arts.c
./makelib stralloc.a stralloc_eady.o stralloc_pend.o ¥
stralloc_copy.o stralloc_opys.o stralloc_opyb.o ¥
stralloc_cat.o stralloc_cats.o stralloc_catb.o ¥
stralloc_arts.o
./compile getln.c
./compile getln2.c
./makelib getln.a getln.o getln2.o
./compile open_append.c
./compile open_excl.c
./compile open_read.c
./compile open_trunc.c
./compile open_write.c
./makelib open.a open_append.o open_excl.o open_read.o ¥
open_trunc.o open_write.o
./compile error.c
./compile error_str.c
./compile error_temp.c
./makelib error.a error.o error_str.o error_temp.o
./compile substdio.c
./compile substdi.c
./compile substdo.c
./compile subfderr.c
./compile subfdout.c
./compile subfdouts.c
./compile subfdin.c
./compile subfdins.c
./compile substdio_copy.c
./makelib substdio.a substdio.o substdi.o substdo.o ¥
subfderr.o subfdout.o subfdouts.o subfdin.o subfdins.o ¥
substdio_copy.o
./compile alloc.c
./compile alloc_re.c
./makelib alloc.a alloc.o alloc_re.o
./compile str_len.c
./compile str_diff.c
./compile str_diffn.c
./compile str_cpy.c
./compile str_chr.c
./compile str_rchr.c
./compile str_start.c
./compile byte_chr.c
./compile byte_rchr.c
./compile byte_diff.c
./compile byte_copy.c
./compile byte_cr.c
./compile byte_zero.c
./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o ¥
str_chr.o str_rchr.o str_start.o byte_chr.o byte_rchr.o ¥
byte_diff.o byte_copy.o byte_cr.o byte_zero.o
./load queue-fix fifo.o fs.a stralloc.a getln.a open.a error.a ¥
substdio.a alloc.a str.a
[root@neptune queue-fix-1.4]#  
  • コンパイル完了.

4.修復処理を実行

  • queue-fixを実行するためには,qmailを停止する必要がある.
  • qmailが稼働しているか確認する.
[root@neptune queue-fix-1.4]# ps -ef | grep qmail-send
qmails    1685     1  0  2005 ?        00:24:20 qmail-send
[root@neptune queue-fix-1.4]#
  • killコマンドで停止する.
  • queue-fixコマンドには,qmailのqueueディレクトリを指定して実行する.
[root@neptune queue-fix-1.4]# ./queue-fix -i /var/qmail/queue
It looks like some permissions are wrong, should I fix them? (Y/n)
  • 何通かのメールの権限に不具合があるので,復旧させるか?と問い合わせられているので,yを入力する.
It looks like some permissions are wrong, should I fix them? (Y/n)
y
Changing permissions of [/var/qmail/queue/info] to [700]
Changing ownership of [/var/qmail/queue/info/0] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/0] to [700]
Changing ownership of [/var/qmail/queue/info/1] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/1] to [700]
Changing ownership of [/var/qmail/queue/info/2] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/2] to [700]
Changing ownership of [/var/qmail/queue/info/3] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/3] to [700]
Changing ownership of [/var/qmail/queue/info/4] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/4] to [700]
Changing ownership of [/var/qmail/queue/info/5] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/5] to [700]
Changing ownership of [/var/qmail/queue/info/6] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/6] to [700]
Changing ownership of [/var/qmail/queue/info/7] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/7] to [700]
Changing ownership of [/var/qmail/queue/info/8] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/8] to [700]
Changing ownership of [/var/qmail/queue/info/9] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/9] to [700]
Changing ownership of [/var/qmail/queue/info/10] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/10] to [700]
Changing ownership of [/var/qmail/queue/info/11] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/11] to [700]
Changing ownership of [/var/qmail/queue/info/12] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/12] to [700]
Changing ownership of [/var/qmail/queue/info/13] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/13] to [700]
Changing ownership of [/var/qmail/queue/info/14] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/14] to [700]
Changing ownership of [/var/qmail/queue/info/15] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/15] to [700]
Changing ownership of [/var/qmail/queue/info/16] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/16] to [700]
Changing ownership of [/var/qmail/queue/info/17] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/17] to [700]
Changing ownership of [/var/qmail/queue/info/18] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/18] to [700]
Changing ownership of [/var/qmail/queue/info/19] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/19] to [700]
Changing ownership of [/var/qmail/queue/info/20] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/20] to [700]
Changing ownership of [/var/qmail/queue/info/21] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/21] to [700]
Changing ownership of [/var/qmail/queue/info/22] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/info/22] to [700]
Changing permissions of [/var/qmail/queue/mess] to [750]
Changing permissions of [/var/qmail/queue/mess/0] to [750]
Changing permissions of [/var/qmail/queue/mess/1] to [750]
Changing permissions of [/var/qmail/queue/mess/2] to [750]
Changing permissions of [/var/qmail/queue/mess/3] to [750]
Changing permissions of [/var/qmail/queue/mess/4] to [750]
Changing permissions of [/var/qmail/queue/mess/5] to [750]
Changing permissions of [/var/qmail/queue/mess/6] to [750]
Changing permissions of [/var/qmail/queue/mess/7] to [750]
Changing permissions of [/var/qmail/queue/mess/8] to [750]
Changing permissions of [/var/qmail/queue/mess/9] to [750]
Changing permissions of [/var/qmail/queue/mess/10] to [750]
Changing permissions of [/var/qmail/queue/mess/11] to [750]
Changing permissions of [/var/qmail/queue/mess/12] to [750]
Changing permissions of [/var/qmail/queue/mess/13] to [750]
Changing permissions of [/var/qmail/queue/mess/14] to [750]
Changing permissions of [/var/qmail/queue/mess/15] to [750]
Changing permissions of [/var/qmail/queue/mess/16] to [750]
Changing permissions of [/var/qmail/queue/mess/17] to [750]
Changing permissions of [/var/qmail/queue/mess/18] to [750]
Changing permissions of [/var/qmail/queue/mess/19] to [750]
Changing permissions of [/var/qmail/queue/mess/20] to [750]
Changing permissions of [/var/qmail/queue/mess/21] to [750]
Changing permissions of [/var/qmail/queue/mess/22] to [750]
Changing permissions of [/var/qmail/queue/remote] to [700]
Changing ownership of [/var/qmail/queue/remote/0] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/0] to [700]
Changing ownership of [/var/qmail/queue/remote/1] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/1] to [700]
Changing ownership of [/var/qmail/queue/remote/2] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/2] to [700]
Changing ownership of [/var/qmail/queue/remote/3] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/3] to [700]
Changing ownership of [/var/qmail/queue/remote/4] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/4] to [700]
Changing ownership of [/var/qmail/queue/remote/5] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/5] to [700]
Changing ownership of [/var/qmail/queue/remote/6] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/6] to [700]
Changing ownership of [/var/qmail/queue/remote/7] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/7] to [700]
Changing ownership of [/var/qmail/queue/remote/8] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/8] to [700]
Changing ownership of [/var/qmail/queue/remote/9] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/9] to [700]
Changing ownership of [/var/qmail/queue/remote/10] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/10] to [700]
Changing ownership of [/var/qmail/queue/remote/11] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/11] to [700]
Changing ownership of [/var/qmail/queue/remote/12] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/12] to [700]
Changing ownership of [/var/qmail/queue/remote/13] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/13] to [700]
Changing ownership of [/var/qmail/queue/remote/14] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/14] to [700]
Changing ownership of [/var/qmail/queue/remote/15] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/15] to [700]
Changing ownership of [/var/qmail/queue/remote/16] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/16] to [700]
Changing ownership of [/var/qmail/queue/remote/17] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/17] to [700]
Changing ownership of [/var/qmail/queue/remote/18] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/18] to [700]
Changing ownership of [/var/qmail/queue/remote/19] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/19] to [700]
Changing ownership of [/var/qmail/queue/remote/20] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/20] to [700]
Changing ownership of [/var/qmail/queue/remote/21] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/21] to [700]
Changing ownership of [/var/qmail/queue/remote/22] to uid 713 gid 710
Changing permissions of [/var/qmail/queue/remote/22] to [700]
Changing permissions of [/var/qmail/queue/todo/2310784] to [644]
Changing permissions of [/var/qmail/queue/todo/2310785] to [644]
Changing permissions of [/var/qmail/queue/todo/2310786] to [644]
Changing permissions of [/var/qmail/queue/todo/2310787] to [644]
Changing permissions of [/var/qmail/queue/todo/2310788] to [644]
Changing permissions of [/var/qmail/queue/todo/2310789] to [644]
Changing permissions of [/var/qmail/queue/todo/2310790] to [644]
Changing permissions of [/var/qmail/queue/todo/2310791] to [644]
Changing permissions of [/var/qmail/queue/todo/2310792] to [644]
Changing permissions of [/var/qmail/queue/todo/2310793] to [644]
Changing permissions of [/var/qmail/queue/todo/2310794] to [644]
Changing permissions of [/var/qmail/queue/intd] to [700]
Changing permissions of [/var/qmail/queue/intd/0] to [644]
Changing permissions of [/var/qmail/queue/intd/1] to [644]
Changing permissions of [/var/qmail/queue/intd/2] to [644]
Changing permissions of [/var/qmail/queue/intd/3] to [644]
Changing permissions of [/var/qmail/queue/intd/4] to [644]
Changing permissions of [/var/qmail/queue/intd/5] to [644]
Changing permissions of [/var/qmail/queue/intd/6] to [644]
Changing permissions of [/var/qmail/queue/intd/7] to [644]
Changing permissions of [/var/qmail/queue/intd/8] to [644]
Changing permissions of [/var/qmail/queue/intd/9] to [644]
Changing permissions of [/var/qmail/queue/intd/10] to [644]
Changing permissions of [/var/qmail/queue/intd/11] to [644]
Changing permissions of [/var/qmail/queue/intd/12] to [644]
Changing permissions of [/var/qmail/queue/intd/13] to [644]
Changing permissions of [/var/qmail/queue/intd/14] to [644]
Changing permissions of [/var/qmail/queue/intd/15] to [644]
Changing permissions of [/var/qmail/queue/intd/16] to [644]
Changing permissions of [/var/qmail/queue/intd/17] to [644]
Changing permissions of [/var/qmail/queue/intd/18] to [644]
Changing permissions of [/var/qmail/queue/intd/19] to [644]
Changing permissions of [/var/qmail/queue/intd/20] to [644]
Changing permissions of [/var/qmail/queue/intd/21] to [644]
Changing permissions of [/var/qmail/queue/intd/22] to [644]
There are some stray files in /var/qmail/queue/todo
Should I remove them? (Y/n)
  • パーミッションが変更されたようである.
  • ちなみに,このサーバでは,UID 713はqmails,gid 710はqmailである.
  • また,/var/qmail/queue/todoに変な状態のファイルがあるそうなので,これを消すか否か.
  • 今回は,すっかり消す方法をとった.
Should I remove them? (Y/n)
y
Unlinking [/var/qmail/queue/todo/2310784]
Unlinking [/var/qmail/queue/todo/2310785]
Unlinking [/var/qmail/queue/todo/2310786]
Unlinking [/var/qmail/queue/todo/2310787]
Unlinking [/var/qmail/queue/todo/2310788]
Unlinking [/var/qmail/queue/todo/2310789]
Unlinking [/var/qmail/queue/todo/2310790]
Unlinking [/var/qmail/queue/todo/2310791]
Unlinking [/var/qmail/queue/todo/2310792]
Unlinking [/var/qmail/queue/todo/2310793]
Unlinking [/var/qmail/queue/todo/2310794]
Unlinking [/var/qmail/queue/intd/0]
Failed while checking directory structure.
Make sure the given queue exists and you have permission to access it.

Exiting...

[root@neptune queue-fix-1.4]# 
  • todoディレクトリ以下をチェックしている際に,パーミッション関連の不具合があった模様.
  • 一応,これで終了.
  • 念のためにもう一度実行.
[root@neptune queue-fix-1.4]# ./queue-fix -i /var/qmail/queue
There are some stray files in /var/qmail/queue/intd
Should I remove them? (Y/n)
y
Unlinking [/var/qmail/queue/intd/0]
Failed while checking directory structure.
Make sure the given queue exists and you have permission to access it.

Exiting...

[root@neptune queue-fix-1.4]# 
  • 最後に権限のエラーが出ているようであるが,これは無視できるようである.
  • この後,qmailを起動させることで,処理が終了となる.


広告スペース
Google