Ok guys, thanks for clearing that up, I'll definitely go through sockets if
its the same speed, I guess I was making assumptions on the disk speed
being faster. I'll look at postfix's smtp code first since its probably
much better than what I have. I was looking at smtp_proto and smtp_connect
but smtp-source looks like a stand alone script, probably a better fit.

Thanks guys.


On Tue, Oct 15, 2013 at 8:29 PM, Wietse Venema <wie...@porcupine.org> wrote:

> Paul C:
> > Hey everyone, I'm about to write a script which would replace my existing
> > php mime class / injector in to one written in C. This is custom code so
> I
> > am not asking for direct help with it, but since its in C and will work
> > with postfix exclusively, there's one part of it that would be good to
> hear
> > options I have.
>
> Use SMTP. It will as fast as any other option that you may conceive of.
>
> > What I want it to do, is skip the first incoming smtp connection from my
> > script to postfix, and instead just take my full email message and write
> > the postfix format directly to the queue.to be sent outbound to the
> > destination.
>
> (Parallel) submission via SMTP will be as fast as writing directly
> to the queue, assuming a competent implementation.  Remember, the
> file system is the slowest component in the Postfix architecture.
>
>         Wietse
>

Reply via email to