On Wed, 31 May 2000, Jean-Baptiste Jacquemard wrote:
> Hello,
> I have moved qmail-remote to qmail-remote.real
> I made a shell script named qmail-remote, with the same permissions
> which contains:
>
> #!/bin/sh
> exec /var/qmail/bin/qmail-remote.real "$*"
>
> But when I try to send a message, I got this from Mailer Daemon:
> <[EMAIL PROTECTED]>:
> Unable to run qmail-remote.
>
> Any idea?
Did you read the qmail-queue man page? qmail-queue behaves differently
to "traditional" programs in that it reads from BOTH file descriptor 0
AND file descriptor 1. You need to make use of the pipe() call to call
qmail-queue. A simple exec won't work.
Have a look at Jason Haar's scan4virus package, his perl program does
the correct thing.
I too have a simple perl qmail-queue wrapper. Let me tidy it up and
I'll post it to the list. It currently does nothing, but can be used
to do whatever wrapping you feel is appropriate (provided you can
write the code to do it).
Regards
Peter
----------
Peter Samuel [EMAIL PROTECTED]
Technical Consultant or at present:
eServ. Pty Ltd [EMAIL PROTECTED]
Phone: +61 2 9206 3410 Fax: +61 2 9281 1301
"If you kill all your unhappy customers, you'll only have happy ones left"