Sorry,_message_has_wrong_owner._(#4.3.5)
I'm at the end of my rope here with this error. I've read every message in the archives pertaining to this problem, and none of the proposed solutions apply. When I send a new message, it gets written to /var/qmail/mess/* owned by root:qmail instead of qmailq:qmail despite these facts: * make check reports no anomalies. * bin/qmail-queue appears to have the correct permissions: -rws--x--x 1 qmailq qmail 20480 Jun 21 11:02 /var/qmail/bin/qmail-queue * I've completely re-installed qmail (and rm -rf /var/qmail) several times both from tarball and from the OpenBSD ports tree with the same result. Am I missing something? -- (TMDA - http://tmda.sourceforge.net/) (A qmail-based SPAM reduction system)
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
Jason R. Mastaler [EMAIL PROTECTED] wrote: When I send a new message, it gets written to /var/qmail/mess/* owned by root:qmail instead of qmailq:qmail despite these facts: * make check reports no anomalies. How did you install? Probably the UIDs you set up for qmail are incorrect, or have changed somehow. You said you re-installed, but did you delete the queue when you did so? Or is this message left over from a previous botched installation? You haven't given us any real information to go on. Read the archives for numerous suggestions on what information to include in your message, so that we have a better idea of what's going on. Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
torsdagen den 21 juni 2001 19:23 skrev Jason R. Mastaler: I'm at the end of my rope here with this error. I've read every message in the archives pertaining to this problem, and none of the proposed solutions apply. When I send a new message, it gets written to /var/qmail/mess/* owned by root:qmail instead of qmailq:qmail despite these facts: * make check reports no anomalies. * bin/qmail-queue appears to have the correct permissions: -rws--x--x 1 qmailq qmail 20480 Jun 21 11:02 /var/qmail/bin/qmail-queue * I've completely re-installed qmail (and rm -rf /var/qmail) several times both from tarball and from the OpenBSD ports tree with the same result. Am I missing something? I allways use a script that sets up the correct users to reduce lots of grief (I'm lazy), try it and recompile. Ehh, you probably should delete your qmail source tree and unpack it again from the tarball before recompiling..., I don't know... The attached file works on Linux Redhat/Mandrake. -- Regards // Oden Eriksson Kvikkjokk Networks add-qmail-users.sh
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
Charles Cazabon [EMAIL PROTECTED] writes: How did you install? At this point, just a very basic installation to reproduce the problem. # rm -rf /var/qmail # mkdir /var/qmail # gtar zxf /usr/ports/distfiles/qmail-1.03.tar.gz # cd qmail-1.03/ # make setup check # echo ccs.mastaler.com /var/qmail/control/me # cp /var/qmail/boot/home /var/qmail/rc # csh -cf '/var/qmail/rc ' # echo test | Mail -s test [EMAIL PROTECTED] ; tail -f /var/log/maillog Jun 21 12:23:50 ccs qmail: 993147830.543499 status: local 0/10 remote 0/20 Jun 21 12:24:10 ccs qmail: 993147850.804061 new msg 695245 Jun 21 12:24:10 ccs qmail: 993147850.804392 info msg 695245: bytes 230 from [EMAIL PROTECTED] qp 3292 uid 0 Jun 21 12:24:10 ccs qmail: 993147850.810201 starting delivery 1: msg 695245 to remote [EMAIL PROTECTED] Jun 21 12:24:10 ccs qmail: 993147850.810404 status: local 0/10 remote 1/20 Jun 21 12:24:10 ccs qmail: 993147850.810642 delivery 1: deferral: Sorry,_message_has_wrong_owner._(#4.3.5)/ Jun 21 12:24:10 ccs qmail: 993147850.810699 status: local 0/10 remote 0/20 # ls -l /var/qmail/queue/mess/1/695245 -rw-r--r-- 1 root qmail 230 Jun 21 12:24 /var/qmail/queue/mess/1/695245 Probably the UIDs you set up for qmail are incorrect, or have changed somehow. I don't think so. (from /etc/passwd) alias:*:17790:770:qmail:/var/qmail/alias:/sbin/nologin qmaild:*:17791:770:qmail:/var/qmail:/sbin/nologin qmaill:*:17792:770:qmail:/var/qmail:/sbin/nologin qmailp:*:17793:770:qmail:/var/qmail:/sbin/nologin qmailq:*:17794:769:qmail:/var/qmail:/sbin/nologin qmailr:*:17795:769:qmail:/var/qmail:/sbin/nologin qmails:*:17796:769:qmail:/var/qmail:/sbin/nologin (from /etc/group) qmail:*:769: nofiles:*:770: You said you re-installed, but did you delete the queue when you did so? Absolutely. The entire /var/qmail tree in fact. -- (TMDA - http://tmda.sourceforge.net/) (A qmail-based SPAM reduction system)
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
Hi, (from /etc/passwd) alias:*:17790:770:qmail:/var/qmail/alias:/sbin/nologin qmaild:*:17791:770:qmail:/var/qmail:/sbin/nologin qmaill:*:17792:770:qmail:/var/qmail:/sbin/nologin qmailp:*:17793:770:qmail:/var/qmail:/sbin/nologin qmailq:*:17794:769:qmail:/var/qmail:/sbin/nologin qmailr:*:17795:769:qmail:/var/qmail:/sbin/nologin qmails:*:17796:769:qmail:/var/qmail:/sbin/nologin (from /etc/group) qmail:*:769: nofiles:*:770: Absolutely. The entire /var/qmail tree in fact. after that try to start qmail, make ps aux|grep qmail to look if qmail is started properly. All the programms in the startscript should be started with different users. Make the different delivery-tests mentioned in lwq. Make the test with qmail-inject. Try to get the mail with pop3 (telnet-session). Regards, Ruprecht
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
Jason R. Mastaler [EMAIL PROTECTED] wrote: Charles Cazabon [EMAIL PROTECTED] writes: How did you install? At this point, just a very basic installation to reproduce the problem. [snip install details] Probably the UIDs you set up for qmail are incorrect, or have changed somehow. I don't think so. (from /etc/passwd) alias:*:17790:770:qmail:/var/qmail/alias:/sbin/nologin qmaild:*:17791:770:qmail:/var/qmail:/sbin/nologin qmaill:*:17792:770:qmail:/var/qmail:/sbin/nologin qmailp:*:17793:770:qmail:/var/qmail:/sbin/nologin qmailq:*:17794:769:qmail:/var/qmail:/sbin/nologin qmailr:*:17795:769:qmail:/var/qmail:/sbin/nologin qmails:*:17796:769:qmail:/var/qmail:/sbin/nologin (from /etc/group) qmail:*:769: nofiles:*:770: Looks okay at first glance. Okay, I'm out of ideas at this point. My next suggestion would be to strace qmail-queue (starting at qmail-inject if you like) to see what on earth happens to cause the file to be owned by root, even though qmail-queue is setuid qmailq. A thought occurs: no patches? You're not, by chance, using Bruce Guenter's QMAILQUEUE patch? Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
Charles Cazabon [EMAIL PROTECTED] writes: Okay, I'm out of ideas at this point. My next suggestion would be to strace qmail-queue (starting at qmail-inject if you like) to see what on earth happens to cause the file to be owned by root, even though qmail-queue is setuid qmailq. I might have to try this. This is strange because I didn't have this problem on a nearly identical system I built last week. The only difference is this one is running an OpenBSD 2.9 snapshot (2001-06-18) while the former 2.9-RELEASE. A thought occurs: no patches? You're not, by chance, using Bruce Guenter's QMAILQUEUE patch? No patches. -- (TMDA - http://tmda.sourceforge.net/) (A qmail-based SPAM reduction system)
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
Jason R. Mastaler [EMAIL PROTECTED] wrote: Okay, I'm out of ideas at this point. My next suggestion would be to strace qmail-queue (starting at qmail-inject if you like) to see what on earth happens to cause the file to be owned by root, even though qmail-queue is setuid qmailq. I might have to try this. This is strange because I didn't have this problem on a nearly identical system I built last week. The only difference is this one is running an OpenBSD 2.9 snapshot (2001-06-18) while the former 2.9-RELEASE. Possibly an OpenBSD bug, then -- I can't find mention of it in their changelog, but their changelog is a mess :). If you run qmail-inject as user root, the message ends up owned by root instead of qmailq. What if you inject the message as user fred? Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
On Thu, Jun 21, 2001 at 01:30:45PM -0600, Charles Cazabon wrote: Okay, I'm out of ideas at this point. My next suggestion would be to strace qmail-queue (starting at qmail-inject if you like) to see what on earth happens to cause the file to be owned by root, even though qmail-queue is setuid qmailq. Another thought: You aren't running an OpenBSD -current snapshot or self-compiled -current dated between 18 Jun 2001 07:28 -0600 and 19 Jun 2001 01:49 -0600 ? suid was broken for this period. -- * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de * * Roedingsmarkt 14, 20459 Hamburg, Germany * Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
On Thu, Jun 21, 2001 at 02:03:27PM -0600, Jason R. Mastaler wrote: difference is this one is running an OpenBSD 2.9 snapshot (2001-06-18) That's the problem as outlined in my other mail. Have a look at http://www.openbsd.org/cgi-bin/cvsweb/src/sys/kern/kern_exec.c Greetings Henning -- * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de * * Roedingsmarkt 14, 20459 Hamburg, Germany * Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
On Thu, Jun 21, 2001 at 02:19:41PM -0600, Charles Cazabon wrote: Jason R. Mastaler [EMAIL PROTECTED] wrote: I might have to try this. This is strange because I didn't have this problem on a nearly identical system I built last week. The only difference is this one is running an OpenBSD 2.9 snapshot (2001-06-18) while the former 2.9-RELEASE. Possibly an OpenBSD bug, then -- I can't find mention of it in their changelog, but their changelog is a mess :). Huh? time to learn using CVS... ;-)) It is in fact a bug in -current. That's why it is called -current. Production systems run -stable or -release. Just due to the quality of the commits -current works almost always as expected, but, after all, it is a _development version_. beta, or whatever you call development versions. -- * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de * * Roedingsmarkt 14, 20459 Hamburg, Germany * Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
Charles Cazabon [EMAIL PROTECTED] writes: If you run qmail-inject as user root, the message ends up owned by root instead of qmailq. What if you inject the message as user fred? It looks like a non-privileged user can't write to the queue at all: ccs:johndoe {8} echo test | Mail -s test [EMAIL PROTECTED] ccs:johndoe {9} qmail-inject: fatal: qq trouble creating files in queue (#4.3.0) -- (TMDA - http://tmda.sourceforge.net/) (A qmail-based SPAM reduction system)
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
Henning Brauer [EMAIL PROTECTED] writes: That's the problem as outlined in my other mail. Have a look at http://www.openbsd.org/cgi-bin/cvsweb/src/sys/kern/kern_exec.c Ouch, that's what I call bad luck. Anyway, thanks for the pointer. I'll upgrade my OS and I'm sure this problem will go away. Cheers. -- (TMDA - http://tmda.sourceforge.net/) (A qmail-based SPAM reduction system)
Re: Sorry,_message_has_wrong_owner._(#4.3.5)
Henning Brauer [EMAIL PROTECTED] writes: It is in fact a bug in -current. That's why it is called -current. Production systems run -stable or -release. Just due to the quality of the commits -current works almost always as expected, but, after all, it is a _development version_. beta, or whatever you call development versions. Right. It's just that support for the hardware I'm using was only available in -current, so I had little choice. Oh well. -- (TMDA - http://tmda.sourceforge.net/) (A qmail-based SPAM reduction system)
Sorry, _message_has_wrong_owner._(#4.3.5)
Iexecuted the following command (as a root): echo to: hah0569 | /var/qmail/bin/qmail-inject and got this error fromqmail-start... Sorry, _message_has_wrong_owner
Re: Sorry, _message_has_wrong_owner._(#4.3.5)
Hatem [EMAIL PROTECTED] wrote: I executed the following command (as a root): echo to: hah0569 | /var/qmail/bin/qmail-inject and got this error from qmail-start... Sorry, _message_has_wrong_owner Your queue appears to be corrupted. Did you fiddle with the queue by hand? You'll need to repair it -- you can do this by hand if you know the queue structure well enough, or use some of the helpful utilities linked to from www.qmail.org. Be sure to read the documentation for those utilities before trying to use them, or you could cause additional problems. Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Sorry,_message_has_wrong_owner._(#4.3.5)/
On Wed, Feb 23, 2000 at 10:49:49PM -0500, Mark E. Drummond wrote: Anyone tell me what that message means? I just installed qmail on a SPARC5 running solaris 7. This is the first time I have come across this error. a file in /var/qmail/queue/mess doesn't belong to the user qmailq. This is usually an installation problem, but could also be a sign of a security problem. You might find qmail-lint (see www.qmail.org) useful. Regards, Uwe