Hello.  I'm working on a little ARM server that runs Postfix.  On incoming
or outgoing email I want to trigger an animation on an attached ring of
LEDs.  My first attempt was to follow the approach here (content filter
re-injecting with sendmail) :

http://blog.thecodingmachine.com/content/triggering-php-script-when-your-postfix-server-receives-mail

*master.cf <http://master.cf>:*

lights     unix   -      n       n       -       -       pipe
  flags=F user=lights argv=/opt/lights/recvhook.js ${sender} ${size}
${recipient}
587       inet   n      -       -       -       -       smtpd
  -o syslog_name=postfix/lights -o content_filter=lights:dummy


*main.cf <http://main.cf>:*

milter_macro_daemon_name=ORIGINATING


It works, but I've noticed some ugly side effects.  Bounce messages are
screwy, for one.  What method should I use that will have minimal effect on
postfix operations?


Best regards,

Sherman Boyd

Reply via email to