HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Email to fax solution for firewalled server



Chris Mason wrote:
> 
> My next problem is this.
> I want some people to be able to send an email to an address on my
> public server.

> What I need is a way to have procmail filter out the faxes, and deliver
> to the world via hylafax.
> 
> I am thinking some thing like:
> Fax sent to faxes@masonc.com
> Subject is 4971234
> 
> Procmail tests for
> :0:
> * ^TO: fax@masonc.com
> "| /usr/bin/sendfax -d TheFaxStringThatIDontKnowHowToExtract"
> 
> Any solutions?
 > 
 I don't think that you can use 'sendfax' as it expect ps/tiff files as
a parameter.

Do you have a mail to fax gateway already running ?
If yes use this to send the email to hylafax.
I suggest to use a perl script to extract 'Subject: 123456' and pass it
to the fax gateway. The perl script gives you also the ability to return
a error mail if no faxnumber are given in the subject. You also can
return a error mail like 'You are not allowed to use this fax gateway'.

Your Procmail filter could look likes this:
 :0:
 * ^TO: fax@masonc.com
 "| .../faxrelay.pl | .../sendmail

Wolfgang Käß

____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*




Project hosted by iFAX Solutions