Access-Control-Allow-Origin: *

qmail-queue の修復

Logwatchのqmailから

?**Unmatched Entries**

?xxxxxxxxxx.xxxxxxxxx warning: trouble opening remote/0/xxxxxxxxxx; will try again later

のようなエラーが出てmaillogが巨大になっていた。

queue-fixで修復を試みた。

?

# wget?http://www.netmeridian.com/e-huss/queue-fix.tar.gz

# tar zxvf queue-fix.tar.gz

# cd queue-fix-1.4/

# make

エラーがでるので

?

# vi error.h

?

extern int errno;

#include <errno.h>

に変更

?

必ず

# make clean

を実行してから

# make

?

以下修復を実行

[root@xxxx?~]# cd queue-fix-1.4

[root@xxxx?queue-fix-1.4]# ./queue-fix -i /var/qmail/queue

It looks like some permissions are wrong, should I fix them? (Y/n)

Y

Changing ownership of [/var/qmail/queue/remote] to uid 507 gid 502

Changing permissions of [/var/qmail/queue/remote] to [700]

There are some stray files in /var/qmail/queue/info/20

Should I remove them? (Y/n)

Y

?

qmailのリスタート

# /etc/rc.d/init.d/qmail restart

巨大maillogを削除

# rm /var/log/maillog

# touch /var/log/maillog

# /etc/rc.d/init.d/syslog restart