faxqueue
sendfax fax spool queue control files
- Provided by: mgetty-fax (Version: 1.1.36-2ubuntu1)
- Source: mgetty
- Report a bug
sendfax fax spool queue control files
/var/spool/fax/outgoing/F*/JOB
The JOB files in the subdirectories of the outgoing fax spool directory, /var/spool/fax/outgoing build up a queue of faxes to be sent by faxrunq(1). They are created by faxspool(1), can be viewed with faxq(1), and be deleted by faxrm(1).
The format of the JOB file is as follows:
Each line consists of a leading keyword and associated data (rest of the line). Some are required, some others are optional. The currently implemented keywords are:
Starting with mgetty 1.1.29, the fax spool directory /var/spool/fax/outgoing is no longer world-writeable. It should be owned by the user 'uucp' and be mode 755. The faxrunq(1) and faxrunqd(1) programs should also be run under that user ID if possible.
If the fax spool directory is world- or group-writeable, there are a number of denial of service or file overwrite / file access attacks possible that it's very hard to guard against. So don't do this!
If the fax spool directory has the proper permissions, there are currently no known attacks against faxrunq/faxrunqd, even if they run as "root", but it's always more safe to run as untrusted user.
While a given JOB file is processed by faxrunq(1), it's locked against sending it multiple times by temporarily renaming it to JOB.locked, thus it may happen that a faxq(1) command doesn't show this job. ( faxrunqd(8) is a bit smarter and does the locking by creating a hard link).
When a job is successfully sent, it's not deleted but the JOB file is renamed to JOB.done. Because of this, you can still see old jobs with "faxq -o". You should regularly clean up the outgoing fax directory, removing old faxes. If you don't want this behaviour, edit the faxrunq(1) config file and enable the option delete-sent-jobs yes
When a job cannot be sent after several tries (excluding normal difficulties like the called number being busy or the modem being in use), the JOB file is renamed to JOB.suspended. To re-queue this job, call faxq -r -- this renames the JOB file back.