Re: qmail-queue

Andy Jackman <[email protected]> Fri, 14 Nov 2003 10:59:58 +0000
Newsgroups gmane.org.djb.miscellaneous
Message-ID <[email protected]>
You posted to the wrong list. Try [email protected]

> should /var/qmail/bin/qmail-queue be able to accept stuff VIA a pipe?
Yes, but it requires TWO descriptors, not just std input. This may work:

/var/qmail/bin/qmail-queue <SampleMessage.txt 1<env

where env contains the following (F is the letter F, T is the letter T,
\0 is the NUL char (ascii 0, '\0' etc)):
Fsender-addr\0Trecip-addr\0\0

Actually, unless you have a VERY good reason to do this it is much
simpler to use qmail-inject < SampleMessage.txt. Inject adds important
headers to your message. 

If this doesn't solve your problem, tell us what you are trying to
achieve - there may be a better way :)

Regards,
Andy