![]() |
Indeed!-- and this page is where i got the fuel for developing this gateway. The big diffference is, that Lee used the body and the subject of the email for parsing sendfax information, something i did not wanted to. The following recipe leads to a faxgateway with this functionality: Send an email to your faxgateway-user faxgateway@yourserver.com that includes the faxnumber you want to send the fax to - this way: faxgateway+0031.23.456.7890@yourserver . The plus is a separation-mark, the faxnumber can include dots but no other separation marks. The cc field of your email is not used, the subject field will appear on the fax as a special subject line. The body of your email must hold the text for the fax. This will result in the following fax: --------- Header ------------------ To: <faxnumber from the emailaddress> From: <the original sender of the email as email address> Subject:<the subjectline from the email> Date: <the date and time of the faxprocessing> <the body contents of the email> -------- trailer -------------------- Recipe: 1. create a special user on your hylafax server, like "faxgateway". 2. create a .procmailrc containing the following rules: -<snip> $SED="wherever sed is" $FAXMAIL="wherever faxmail is" $SENDFAX="wherever sendfax is" # find out who send the mail: :0 * ^From:\/.* { FROM = "$MATCH" } # now send the mail if a faxnumber can be found in the address # sed strips the unwanted emailaddress from the To line # faxmail processes the email to a nice faxformat(ting) # sendmail processes the fax and returns a confirmation :0 * ^To:.*faxgateway\+\/[0-9.]+(@) * MATCH ?? ^^\/.*[^@] | cat - | \ $SED 's/\(^To: \)\(faxgateway+\)\([0-9.]*\)@.*$/\1\3/I' | \ $FAXMAIL | \ $SENDFAX -n -f "$FROM" -D -d $MATCH -<end of snip> 3. send email like: faxgateway+123.456789@yourserver.domain There is no security, so anyone around the net can use it, provided they know the address and syntax. It is easy to incorporate a check on trusted sender-adresses, and/or incorporate a password, and/or limit the faxnr to national numbers only, but i do not want to implement that unless i see it is being misused. regards, Ignace > -----Original Message----- > From: Nick Rout [SMTP:nick@taxlawyer.co.nz] > Sent: donderdag 19 oktober 2000 3:55 > To: ignace.suy@dutchtone.nl; hylafax-users@hylafax.org > Subject: Re: [hylafax-users] E-mail to fax gateway for Hylafax? > > The special mail address to send the faxes to is similar to this approach: > > http://www.hylafax.org/howto/clients/RelayFax.php > > > ----- Original Message ----- > From: <ignace.suy@dutchtone.nl> > To: <hylafax-users@hylafax.org> > Sent: Wednesday, Oct 18, 2000 9:08 PM > Subject: Re: [hylafax-users] E-mail to fax gateway for Hylafax? > > > > The mail to fax gateway described is limited to users that use the > sendmail > server as their first mail-gateway, usually only local users. > I hate altering the configuration of sendmail too and have been looking > for > a way to fax a mailmessage from anywhere on the net. Just this morning i > succeeded for the first time. > > It is based upon creating an faxgateway user on my server, who (using > procmail) accepts messages and uses faxmail to convert incoming messages > and > send them out as faxes. The transport of the faxnumber is the difficult > thing because i did not want to go throug laborous scripting and i wanted > to > make use of the default faxmail functionality that already defines a To, > From, Subject and date field taken directly from the incoming mail. > > I found that the following syntax is allowed througout the mailservers in > the world: > faxrelay+extrainfo@machine.domain.bla > where faxrelay is the faxgateway user on your server, the + is a > separation > symbol and the extrainfo can be used to hold a faxnumber. > > Give me another few days and i'll post the entire working description. > > -Ignace > ____________________ HylaFAX(tm) Users Mailing List _______________________ To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null