Re: [exim] can mail be sent by dropping mail files into exim…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Chris Lightfoot
Päiväys:  
Vastaanottaja: Zbigniew Szalbot
Kopio: exim-users
Aihe: Re: [exim] can mail be sent by dropping mail files into exim queue
On Thu, May 25, 2006 at 07:15:42PM +0200, Zbigniew Szalbot wrote:
> Hello,
>
> I have a question about sending mail through exim without using SMTP to connect to exim.
> That is I have a script that generates mail files on a disk (currently its format is in accordance
> with another MTA) and wonder if I could still use this script to send emails. The current MTA
> simply parses the files and sends them to end systems.
>
> If exim can send emails which are dumped into its queue, where do I find specification of the
> file format needed for such transaction to work?


You can (I presume) do this; the format is documented in
the spec, e.g. here,
    http://www.exim.org/exim-html-4.62/doc/html/spec_html/ch52.html
I think that to do this safely you need to write the -D
file, then write the -H file under a temporary name and
then rename it to its final name, but I'm sure somebody
will correct me if I'm wrong.


However, this sounds like a *really dumb* idea. Instead
why not write the trivial program (even in PHP) to pick up
files your script is already writing, and then submit them
to Exim using SMTP. That way lies less scope for error and
less pain and embarrassment if/when the format changes or
you change MTA.

--
``Zero completely messed up Roman mathematics by its absence.''
(Simon Singh)