On Tue, 27 Apr 1999, Richard Shetron wrote:
> I've been reading the manpages for qmail and either I've missed something
> simple or done something stupid, I can'tget the vacation program to work.
>
> my .qmail file is:
>
> ./Maildir/
> |/usr/local/bin/vacation multics
>
> messages keep getting delivered over and over again and no vacation
> message is sent out. I've setup the .vacation.msg file and run vacation
> -I to init things.
If you are using a vacation designed to work with sendmail then it
will fail with qmail. There are 2 possible reasons for this:
1) using the .qmail file quoted above, vacation will be looking
for the UUCP style "From bob@somewhere" header, with qmail does
NOT pass to piped commands. Because vacation doesn't see the
header, it doesn't know who to respond to. qmail includes the
preline utility which inserts this header. So you .qmail file could
look like this
./Maildir/
| preline /usr/local/bin/vacation multics
2) The next problem is preline :) It expexts to pipe the entire
message through the specified command. Vacation closes standard
input after it has read the headers. If the size of the message is
larger than a standard I/O buffer, then preline will complain about
deferral: preline:_fatal:_unable_to_copy_input:_broken_pipe/
Therefore, you need a vacation program designed for qmail!
Fortunately there is one:
ftp://ftp.eserv.com.au/pub/tools/qmail/qmail-vacation-1.3.tar.gz
It requires perl 5 and uses a .qmail file exactly as you have quoted
above.
PS All of this is outline on the www.qmail.org web page.
If you are using my vacation program, send me more details - eg what
does the qmail log say.
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"