Section: Maintenance Commands (8C)
Updated: May 28, 2001
Return to Main Contents
faxrcvd - HylaFAX notification script for received facsimile
is the command script invoked by the facsimile server whenever
a facsimile is received.
The default script sends electronic mail to the
user describing the content of the facsimile and other useful information
such as the time spent receiving the document.
The arguments are:
the pathname of the received
file relative to the root of the spooling hierarchy.
the modem device on which the facsimile was received.
the communication identifier for the inbound call.
an error message that is non-null if an error was encountered
during the receive operation.
the value of
This script can route facsimile directly to the intended receipient.
To do this create a shell script
in the spooling area that sets
to the receiver's electronic mail address. For example,
case "$SENDER" in
*1*510*526*1212*) SENDTO=sam;; # Sam's test rig in Berkeley
*1*415*390*1212*) SENDTO=raster@asd;; # 7L Xerox room, used for scanning
*5107811212) SENDTO=peebles@mti;; # stuff from home
case "$DEVICE" in
ttyS1) SENDTO=john;; # all faxes received on ttyS1
ttyLT0) SENDTO=mary@home;; # all faxes received on ttyLT0
case "$CIDNUMBER" in
435*) SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435
5059627777) SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF
Note that you must match any embedded white space.
The facsimile will be sent as a MIME-encoded PostScript document
as default. The attachment filetype is controlled by the
shell variable, and can be controlled as shown above. Current
filetype options are ``ps'', ``tif'', and ``pdf''.
Consult the shell script for details.
/var/spool/hylafax spooling area
/usr/sbin/faxinfo for printing information about the facsimile
/usr/bin/fax2ps for converting TIFF to PostScript
/usr/sbin/sendmail for delivering mail
- SEE ALSO
This document was created by
using the manual pages.
Time: 09:07:24 GMT, June 23, 2001