On Mon, 21 Feb 2000, Henri J. Schlereth wrote:
> > On Mon, 21 Feb 2000, Henri J. Schlereth wrote:
> >
> > > The program that fails is vacation v1.2.1 originally from Eric
> > > Allman now maintained by Sean Rima.
> > >
> > > The perl version is v1.1.0 and is from Igor S. Livshits. both are
> > > available from www.freshmeat.net.
> > >
> > > I put the first one in before going on "vacation" and it failed
> > > and havent tried the second one yet as I want to fix the original.
> >
> > The problem you're having is almost certainly to do with vacation
> > closing STDIN before preline has finished with STDOUT.
> >
> > Also, when describing your problem, please include output from the
> > qmail logs. That way we can understand what "failed" means rather than
> > have to resort to guess work.
>
> Sorry, but I havent tested this against qmail yet so I dont have
> any logs to present. That is why I was originally working on
> the root issue because I wanted to trap the mailer-daemon errors
> and whatever logs get created.
> I have only tested with failures against postfix and sendmail,
> that is why I was going to throw qmail in the test and wanted
> to know if anyone else had tried this. After all, why re-invent
> the wheel. The qmail-vacation program may very well do the trick
> but will not tell me why/if the other one failed.
Fair enough. However, you'll find that you'll get better help from the
qmail list people (myself included) if you define things such as
"failed". Without details that could be anything from
- causes the machine to catch on fire
- something in between
- does nothing
Anyway, if you _do_ install qmail, be careful about using programs
through preline. From www.qmail.org
If you use qmail's preline utility, remember that preline expects
to pipe the entire mail message through the specified program. If
the specified program closes standard input before preline has
finished, preline will exit with a transient failure and you'll see
the following error in your logs:
deferral:
preline:_fatal:_unable_to_copy_input:_broken_pipe/
You'll see this problem if you try to use the sendmail version of
vacation. Use Peter's vacation program instead. [ Peter Samuel]
My qmail-vaction program does not need preline, but if you choose a
vacation program that does need preline (to provide the UUCP style
header) then use the 'cat > /dev/null' trick I posted before.
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"