Geert Hendrickx wrote:
On Wed, Oct 21, 2009 at 11:04:44AM +0500, rihad wrote:
in the myprog shell script, after it has done its job, how to pass
control to virtual(8)? Something like echo "OK virtual"? You're
talking to a postfix newbie facing too close a deadline, please bear
with me ;-)


You can't.  Postfix has a limited set of documented interfaces between
Postfix internal processes and external processes.  "pipe" is one of
them, "virtual" is not.  Once postfix hands off the mail to "pipe", it's
in your hands.


In your case (SMS notifications) however, I would keep things simple
and not try to integrate it so tightly into the delivery process, but
just fork your incoming mails to two transports: "virtual" for actual
delivery (handled by Postfix) and your own transport for the SMS
notifications.  You can do this with virtual aliases:

f...@yourdomain.net     f...@yourdomain.net f...@sms.yourdomain.net
b...@yourdomain.net     b...@yourdomain.net b...@sms.yourdomain.net
...


This is so repetitive. All our alias maps are in mysql, and there's an app behind them which isn't under my control, so... Can I rewrite whole domains? Like this:


@yourdomain.net         @yourdomain.net @sms.yourdomain.net

Reply via email to