On Fri, 6 Aug 1999, Victor Tavares wrote:
>
> How do you do this with Qmail? Isn't that what Sendmail does?
>
>
> > Another way is to make an initial attempt to deliver the message
> > directly, before queueing it. Since some fairly large proportion of
> > messages go through on the first try (depends a lot on your address
> > mix, but 50% to 95%), queueing only the ones that fail of initial
> > delivery can also be a big win.
basically. assuming your mail message is in a file called mail-out.txt and
includes all of the necessary headers (To, From, Date, Subject, etc), and
you want to send it to [EMAIL PROTECTED] from [EMAIL PROTECTED]
qmail-remote example.com [EMAIL PROTECTED] [EMAIL PROTECTED] \
<mail-out.txt >reports.txt
you then parse reports.txt and decide if the deliverd failed -- if it
did then you invoke qmail-queue to put it in qmail-send's queue to get it
sent sometime later.
Obviously, from a perl script one uses a bi-directional pipe to
communicate with the sub-processes for efficiency, or one could have a
large number of processes doing things, which could give unlimited
concurrency (subject to memory...)
RjL