Re: [Exim] Write to spool dir

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Sheldon Hearn
CC: Herman Cremer, Exim
Subject: Re: [Exim] Write to spool dir
On Tue, 3 Jul 2001, Sheldon Hearn wrote:

> > Is it possible, and if so,
> > what is the FORMAT and PERSMISSIONS, to write
> > a file to the spool DIR of the mail server,
> > so it can be delivered with exim, and not ColdFusion.
>
> You _don't_ want to do this. If you want to learn the hard way, the
> Exim manual (specification) discusses spool file formats in enough
> detail for you to figure out what you need by examining the contents of
> some live spool files.


If you have your hands on code that is capable of opening and writing
files, then surely you can write code that fires up a copy of

exim -t -oi

in a separate process, and writes the message down its standard input.
That is much the safest way to do it - let Exim sort its own spool files
out.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.