On Sun, Sep 15, 2013 at 07:15:47PM -0400, Tim Prepscius wrote:

> It would be great if the mail never touched disk.  I could guarantee
> the mail handler returns almost instantaneously.

Postfix always commits messages to disk before notifying the remote
SMTP client that the message has been accepted.

> To reiterate:
> Postfix would only do the protocol of receiving mail, mail would then
> be sent to a handler program I have written.

The closest you get to this is with smtpd_proxy_filter.  If your
Java progrram is modified to be a network listener that implements
SMTP (perhaps a custom plugin for "James"), Postfix can mediate
between the remote SMTP client (handling, TLS, SASL, access control,
a concurrency ceiling based on the number of configured smtpd(8)
processes, ...) and your SMTP service.

If you don't enable "speed_adjust" in:

        http://www.postfix.org/postconf.5.html#smtpd_proxy_options

Postfix will not write the message to disk (of course the O/S may
write memory pages containing message content to the swap device).

-- 
        Viktor.

Reply via email to