On Thu, Nov 3, 2011 at 4:03 PM, Daniel L. Miller <dmil...@amfes.com> wrote:
> We're now using a hosted fax service and receive our faxes via email to a
> dedicated address.  Is there a method via Postfix I can have these printed
> when received?  Or do I handle this via mda scripting (at the moment,
> Dovecot with Sieve).

You can update your master.cf to include a custom service:

pmail     unix  -       n       n       -       -       pipe
        user=printer argv=/usr/local/bin/script-to-parse-and-send-to-printer.pl

Then, in the transport file, indicate that certain email addresse(s)
should use the "pmail:" transport for delivery

So, your script becomes the LDA, and sends to the printer.  I'd
recommend splitting the mailstream to a backup mailbox first ;)

Reply via email to