<div>Hi,</div>
<div> I'm trying to create fax server with asterisk and spandsp. My situation is: now I can get faxes from fax machines and send tiff files attachments to users  email boxes. But now want to create that I can get email (I'm using Postfix mail server) and send to fax machine. Dilemma is that I'm newbie in mail systems. I don't know how to do some actions (to run a script) when email has been received. I have found information how can hylafax and postfix work:
</div>
<div><em> /etc/postfix/master.cf:<br>        fax       unix  -       n       n       -       1       pipe<br>            flags= user=fax argv=/usr/bin/faxmail -d -n ${user}<br><br>    /etc/postfix/transport:<br>        fax.your.domain
   fax:localhost<br><br>    /etc/postfix/main.cf:<br>        transport_maps = hash:/etc/postfix/transport<br>        fax_destination_recipient_limit = 1</em></div>
<div><em></em> </div>
<div>So I want to ask, does somebody setuped spandsp and postfix and how to get attacments? If "YES", can you give me some advices how to create this!</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div> </div>