Wietse Venema wrote:
rihad:
Geert Hendrickx wrote:
On Tue, Oct 20, 2009 at 02:04:15PM +0500, rihad wrote:
"The Postfix SMTP server has a number of built-in mechanisms to block or
accept mail at specific SMTP protocol stages."

But the mail could later be filtered etc., so it's a bit early for the
external program to run. I want it to run only if the delivery has been
guaranteed, like as the last content filter through pipe.  Nevermind the
body overhead. Possible?

You could replace the virtual(8) delivery agent by a program of your own,
by adding an entry in master.cf and pointing "virtual_transport" to it.

http://www.postfix.org/postconf.5.html#virtual_transport
http://www.postfix.org/master.5.html

Aha, and then if I'd like the original executable to do its work, _without_ having read the body, will exec'ing it be enough?

You MUST use one of Postfix's deliver programs in master.cf:

local, virtual, pipe, smtp.

The interface to the queue manager is not published and is subject
to change without notice. Programs that depend on Postfix internals
are unsupported and will break with the next release.


Bad. Then I guess content filtering (being last in the chain) is the only way to go for me.

Reply via email to