Thanks,Petr Novotny !!
I create new qmail users in 'MACHINE_2' before moving the files.
I check all qmail files.
[root@MACHINE_2 ]# ls -al /var/qmail/queue/lock
-rw------- 1 qmails qmail 0 Jan 8 12:32 sendmutex
-rw-r--r-- 1 qmailr qmail 1024 Jan 9 12:32 tcpto
prw--w--w- 1 qmails qmail 0 Jan 9 13:01 trigger
Every file is the right mode and owner that it should be.
Is it possible that qmail remeber the uid number ?
[root@MACHINE_1 ]# id qmaild
uid=519(qmaild) gid=503(nofiles) groups=503(nofiles)
[root@MACHINE_2 ]# id qmaild
uid=506(qmaild) gid=505(nofiles) groups=505(nofiles)
On 8 Mar 00, at 21:55, Petr Novotny wrote:
>On 8 Mar 00, at 21:45, Jason Huang wrote:
>
>> I moved all qmail files from 'MACHINE_1' to 'MACHINE_2' ( use 'tar
>> zxfv' command ) . The two machine are the same OS (Linux) , but
>> different qmail uid and gid.
>
>Don't. It won't ever work. You have to recompile qmail.
>
>> I had changed the start's sript about
>> uid and gid , but I still got the blow message . (I use tcpserver.)
>>
>> Mar 8 13:00:52 server58 qmail: 952491652.534995 alert: cannot start:
>> unable to open mutex Mar 8 13:06:20 server58 qmail: 952491980.571310
>> alert: cannot start: unable to open mutex
>
>[>root@saturnin smtp]# ls -l /var/qmail/queue/lock
>total 1
>- -rw------- 1 qmails qmail 0 May 13 1999 sendmutex
>- -rw-r--r-- 1 qmailr qmail 1024 Mar 8 14:57 tcpto
>prw--w--w- 1 qmails qmail 0 Mar 8 14:57 trigger>
>
>However, you need to recompile qmail with changed uids. No
>exception. qmail-send is running under a uid of qmails; it must be
>able to open the sendmutex file above...
>