supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* problems with QMAILQUEUE and reading stdin
@ 2006-05-29  1:58 George Georgalis
  2006-05-29  5:23 ` B S Srinidhi
  0 siblings, 1 reply; 10+ messages in thread
From: George Georgalis @ 2006-05-29  1:58 UTC (permalink / raw)


I'm dealing with a frustrating problem where my QMAILQUEUE program
is not working because it cannot read stdin.

2006-05-29_00:58:31.79998 tcpsvd: info: status 3/20
2006-05-29_00:58:31.80038 tcpsvd: info: pid 10614 from 204.152.190.11
2006-05-29_00:58:31.80098 tcpsvd: info: start 10614 sta.galis.org:69.31.23.138 ::204.152.190.11:51459 ./peers.cdb/0
2006-05-29_00:58:32.04704 /var/qmail/bin/prequeue: cannot open /dev/stdin: error 9
2006-05-29_00:58:32.15075 tcpsvd: info: end 10614 exit 0

This is the line from /var/qmail/bin/prequeue that's causing the
error:

tmp="$pq/`/usr/pkg/bin/safecat "$pq/tmp" "$pq" </dev/stdin`" || exit 71 # put message to disk, if possible

my dev file seems fine (and works on command line)

crw-rw-rw-  1 root  wheel  22, 0 Feb 12 14:02 /dev/stdin

and if I set QMAILQUEUE="/var/qmail/bin/qmail-queue" it works fine
too.

I've insured the directories safecat writes to are writable by
the prequeue program and I've even tried making prequeue SUID
qmaild, and even qmailq (with matching perms on its working dir).
(in the past my QMAILQUEUE program worked with mode 775, and qmaild
write perms on the working dir)

Help! what's missing here, why cannot I read stdin from _my_
QMAILQUEUE program yet qmail-queue has no problem running via
QMAILQUEUE=/var/qmail/bin/qmail-queue?

// George

-- 
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george@galis.org


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-05-29 20:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-29  1:58 problems with QMAILQUEUE and reading stdin George Georgalis
2006-05-29  5:23 ` B S Srinidhi
2006-05-29 12:11   ` Charlie Brady
2006-05-29 12:19     ` B S Srinidhi
2006-05-29 13:37       ` George Georgalis
2006-05-29 14:38         ` Charlie Brady
2006-05-29 15:49           ` George Georgalis
2006-05-29 15:56             ` Charlie Brady
2006-05-29 20:48             ` George Georgalis
2006-05-29 13:59       ` Charlie Brady

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).