From: rihad (no email)
Date: Tue Oct 20 2009 - 09:29:09 EDT
Wietse Venema wrote:
>>>> 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.
> You have three options as far as filtering goes:
> 1) While mail is received (http://www.postfix.org/SMTPD_PROXY_README.html)
> 2) After the mail is received (http://www.postfix.org/FILTER_README.html)
> 3) While mail is delivered (with local(8, a shell command in
> ~/.forward, or with pipe(8), a parametrized shell command).
Number 3) is the way to go. Does .forward work with virtual domains? If
not, then I guess we come back to pipe(8). All I need is to run a
command based on the RCPT TO (send SMS).