FAXRCVD(8)
FAXRCVD(8) π
System Manager's Manual β yes bestie, it's a section 8 page, we're in sysadmin territory, put your hair up π
β¨ NAME β¨
faxrcvd β the HylaFAX notification script for received facsimile. It's the little guy that yells at you when a fax lands π
πΈ SYNOPSIS πΈ
/var/spool/hylafax/bin/faxrcvd qfile devid commid error-msg [ callid-1 [
callid-2 [ ... [ callid-n ] ] ] ]
π¦ DESCRIPTION π¦
Okay so bin/faxrcvd is the command script that the facsimile server runs every single time a facsimile comes in, no cap. The default script sends electronic mail to the FaxMaster user describing what's actually in the facsimile plus other useful deets, like how much time it took to receive the document. Iconic behaviour honestly.
The arguments are, in order:
qfileβ the pathname of the received TIFF file, relative to the root of the spooling hierarchy.devidβ the modem device the facsimile was received on.commidβ the communication identifier for the inbound call.error-msgβ an error message that is non-null if an error was encountered during the receive operation. (Non-null = something went wrong, bestie π)callidβ the value of various identification indicators from the call.
π NOTES π
This script can route facsimile directly to the intended recipient. Like, straight to their inbox. Main character energy fr.
To do this, create a shell script etc/FaxDispatch in the spooling area that sets SENDTO 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
esac
case "$DEVICE" in
ttyS1) SENDTO=john;; # all faxes received on ttyS1
ttyLT0) SENDTO=mary@home;; # all faxes received on ttyLT0
esac
case "$CIDNUMBER" in
435*) SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435
5059627777) SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF
esac
case "$SUBADDR" in
53) SENDTO=FaxMaster;; # without double-notification
roger) SENDTO=roger;; # possible text subaddressing
esac
β οΈ Note that you must match any embedded white space. The facsimile will be sent as a MIME-encoded PostScript document as default.
Now the variables you can play with, one by one:
CALLIDnβ is equivalent to the nth call identification parameter.CIDNAMEβ is equivalent toCALLID2above.CIDNUMBERβ is equivalent toCALLID1above.DEVICEβ is equivalent todeviceabove.FILETYPEβ controls the filetype of the image attachment. Current filetype options are`ps`,`tif`, and`pdf`. Multiple values may be specified by separating them with whitespace. In that case a separate attachment is created for each filetype. (So yes, you can absolutely have all three, go off β¨)FROMADDRβ controls the sender of the received fax notification. It is given as an e-mail address.MSGβ is equivalent toerror-msgabove.NOTIFY_FAXMASTERβ (an underscore_character is betweenNOTIFYandFAXMASTER, just so we're clear π ) indicates whether or not the HylaFAX administrator should be notified regarding incoming facsimile. Default is`always`. Also available are`never`, which means to never send any received facsimile notification, and`errors`, which means to send notification only if there were reception errors.SENDERβ is the received TSI of the fax sender.SENDTOβ controls the recipient of the received fax notification. It is given as an e-mail address, and it's value will be passed directly to the MTA for delivery as well as being inserted into the email. If you want to send to multiple receipients in separate messages set the variableSENDTO1...SENDTOnin addition toSENDTO.faxrcvdwill process additionalSENDTOnvariables starting at 1, and stopping at the first emptySENDTOnvariable it finds. The templates should continue to reference$SENDTO, andfaxrcvdwill make sure it gets set correctly as the template is processed for each one.SUBADDRβ the received subaddress value, communicated by the sender for post-reception routing purposes.TEMPLATEβ the template subdirectory to use when sending e-mails. HylaFAX ships with a base set of templates, and some direct translations. To use the German translated templates, setTEMPLATE=deinFaxDispatch. This is relative to the base template directory.
Other shell variables are available. Consult the faxrcvd script directly β it's giving mystery, it's giving read the source π«Ά
π FILES π
/var/spool/hylafaxβ spooling area/usr/sbin/faxinfoβ for printing information about the facsimile/usr/bin/fax2psβ for converting TIFF to PostScript/usr/lib/sendmailβ for delivering mail/var/spool/hylafax/etc/templates/β base directory for outgoing e-mail templates
π SEE ALSO π
faxd(8), hylafax-server(5), recvq(5)
And that's the whole page bestie, we ate and left no crumbs π This one's from the System Manager's Manual, dated May 28, 2001 β so yes, it's vintage, it's a classic, it's literally older than us and still faxing. Slay. πβ¨
π¦ where this page comes from
- debian bookworm: hylafax-server 3:6.0.7-5
- debian trixie: hylafax-server 3:6.0.7-11.1
- ubuntu noble: hylafax-server 3:6.0.7-7
- ubuntu questing: hylafax-server 3:6.0.7-13
- ubuntu resolute: hylafax-server 3:6.0.7-13build1
- ubuntu stonking: hylafax-server 3:6.0.7-13build1
- Copyright (c) 1993-1996 Sam Leffler
- Copyright (c) 1993-1996 Silicon Graphics, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms