Hylafax
Hylafax
Sommaire
1. Installation
1. Xen / Virtualisation
2. Initial Configuration
2. Creating Users
5. Configuring Fax to Email
1. FaxDispatch
1. Linux
2. Windows
3. USB Modem
4. Adding a Dial Prefix
command
5. No Dial Tone
6. No carrier Detected
7. Modem Wedged
1. Archive Faxes
1. General
Installation
• Install the DebPkg: hylafax-server package
Xen / Virtualisation
Initial Configuration
run the faxsetup utility to begin configuring hylafax.
faxsetup
• When you press Enter, you'll see a lot of text fly by, as faxsetup
checks system settings.
• Assuming there were no errors, you will see a menu like the
following:
tc/setup.modem.
etc/setup.cache.
completed.
Can I terminate this faxq process (24932) [yes]?
t the default)
• The next few values have to do with file system permissions for
some created files. For a fax to email gateway, the defaults are
acceptable, but if you want to share files directly out of the fax queue
with a FTP or HTTP server, other permissions may be desirable.
• Continue entering values:
t 0600 otherwise
* Protection mode for ttySx - enter 0666 if sha
ring the modem, 0600 if you are using this modem only w
ith hylafax
5 to 3)
* Max number of pages to accept in a received f
ax (you may want to increase the default value of 25)
)
* Set UID to 0 to manipulate CLOCAL (accept def
ault)
* Use available priority job scheduling mechani
sm (accept default)
• You'll then be asked to confirm the values that you entered. Press
Enter to accept them.
• setupfaxmodem will now talk to the fax-modem to determine the best
speed to talk to it, and the fax classes that it supports.
• If this step fails, there is a likely a communication problem with
your modem. Examine possible remedies in the Common Errors
Section.
• Even if your modem supports both Class 1 and Class 2 you should
set it to Class 1 to ensure compatibility with all fax machines.
• You will then be asked for values specific to the modem. Just press
Enter to accept the default values as they are a result of the modem
query and the class you selected. You'll then be prompted to confirm
these values by pressing Enter.
• The non-default scheduler values will then be displayed followed by
a confirmation prompt.
• Make sure all these values are correct. If they are not, answer No
and correct any erroneous values.
• Note that you may want to increase the time value for "Timeout
when converting ?PostScript documents" if you fax long
documents.
• You can just press Enter to accept the default values.
• assuming all of the above went smoothly, faxaddmodem will now
return control to faxsetup, and you are done configuring your first
modem.
• Next we'll set up HylaFAX to run automatically when you boot the
system. Use your favorite text editor to examine the contents of the
/etc/default/hylafax configuration file.
• Make sure there's no # character at the beginning of the line
containing RUN_HYLAFAX=1.
Assuming the above steps went well, running /etc/init.d/hylafax restart
should result in hylafax listening to the modem for incoming faxes, and
allowing local command line fax sending.
To send a fax from the command line, run the following command:
assuming all went well, you should now have a fax waiting on you at the
phone number you entered.
Access Controls
To allow users on the local network access to the fax server, you can
use a subnet wide rule to let everyone use it, or select individual
addresses.
192\.168\.10\.:::
• Likewise, if your using a network containing addresses in the range
172.16.0.0, and your subnet is 255.255.0.0, your hosts.hfaxd file
entry would be:
172\.16\.:::
Creating Users
For each user on the network you want to print to your fax server, you
need a user on your system
adduser dept1
cat /etc/group
##
##
FILETYPE=tiff;
Please note that using filetypes other than tiff are allowed, but tiff is the
native language spoken by the fax system, and therefore requires the
least ammount of work to handle, on the fax server.
Router
exifax:
driver = manualroute
transport = exifax
route_list ="*.fax"
Transport
exifax:
driver = pipe
user = faxmaster
{1}{.}{$domain}}"
## and/or by device
FOLDER="/var/spool/hylafax/recvq/"
FULLPATH="${FOLDER}${FILENAME}.tif"
case "$DEVICE" in
ttyS14) /usr/bin/tiff2ps -w 8.5 -h 11 -a $FILE |lpr -
cd /var/www
ln -s /var/spool/hylafax/recvq fax
Linux
You can use Gfax or Kde Print Fax. You install it Gfax by:
apt-get update
apt-get install gfax
then i tried fax with PDF Converter and set the PDF Fol
hang.
Windows
• On windows you would use this Win print Hylafax software. You can
download it at http://winprinthylafax.sourceforge.net/
• ADMINISTRATION:Download program called WHFC which will tell
you the status of the hylafax servers.
1. US Robotics 56K External Fax Modem; 5686E (Does not come with
cable)
2. USRobotics Courier V.Everything External Fax Modem
3. Amigo AME-CA95, External V.92 DATA/FAX/TAM Modem
-(newegg.com)
USB Modem
Link that sells the USB modem (sorry it's in greek, I couldn't find any
other site for it): http://www.e-shop.gr/show_per.phtml?
id=PER.533709
The driver known to work with it is the 'slusb' SmartLink driver, see
slmodem.
Another one that works with the cdc_acm module, limited testing with
Hylafax, is the TRENDnet TFM-561U. Under Debian Squeeze this is
plug-and-play.
lsusb info:
well), Inc.
idVendor 0x0572 Conexant Systems (Rockwell)
, Inc.
idProduct 0x1329
ModemDialCmd: ATDT9,%s
• Pause: The comma (,) dial modifier causes the modem to pause
while dialing ATD9,17731231234
• Pause and wait for dial tone: The W causes most modems to wait for
a dial tone before dialing the number following it. ATDT 9 W
17731231234
• Final Modem Dial Command on the system could look like this:
ModemDialCmd: ATDT9,W%s
• 9 says dial 9; comma says wait; W says wait for dial tone; %s says
dial this number
• If you experience no dial tone in your logs try something like:
ModemDialCmd: ATX3DT8,,,%s
AT - picks up the phone, X3- disables dial tone check, DT tells it to use
tone, dial 8, then ",,," for wait, then the phone number.
• If you installed another serial pci card (2 port or 4 port), you can see
if it was detected by typing:
lspci -v
• As you can see the IRQ should be the same as the one specified in
dmesg.
• Install DebianPkg: setserial. This program will let you control serial
port better.
apt-get update
apt-get install setserial
• Then try:
setserial -g /dev/ttyS*
• If you don't see a ttyS#(ex. ttyS14) in /dev/ you will need to create
ttyS14 device.
ls /dev/ttyS*
MAKEDEV ttyS14
MAKEDEV ttyS15
• Now run setserial -g /dev/ttyS* again and you should see your new
serial ports.
• Plug in your modems and Run:
faxaddmodem
• Select the new ttyS and you are done setting up multiple fax
machines.
FaxNotify
RETURNFILETYPE=tiff;
Common Errors
• You can find hylafax specific error codes here: Hylafax Error
Codes
Minicom works, but faxaddmodem does not see a
modem
Class1SwitchingCmd: "<delay:7>"
• Switching to Class 1, and adding the "delay" will solve the problem.
• Run the faxaddmodem command again and add the delay.
No Dial Tone
• Adding dial string 9 then pause then number to config file solved the
problem
• See "PBX, Dial 9 before number" section and if you need more
details on options see
http://members.tripod.com/michaelgellis/modem.html
No carrier Detected
• Adding longer wait has solved the problem of no dial tone, but you
might still get the no carrier detected. Look into logs to determine if
this is the case in your setup. See if these are busy signal. For
some reason busy signal gets labeled as no carrier detected.
cat /var/spool/hylafax/log/xferfaxlog
Modem Wedged
After a month of good work (11,000 faxes) suddenly the modem become
wedged. Because USR modem doesn't have the un-wedged option as
the Mainpine modem, you have to tell hylafax to try to set it up more
then (default)2 times. Add this to your config.tty#
MaxSetupAttempts: 10
) were already
• You can list your pci cards by doing the following. This will show you
all pci cards. Look for the one that mentions serial
lspci -v
2 port:
02:00.0 Serial controller: NetMos Technology PCI 9835
Multi-I/O
Controller (rev 01) (prog-if 02 [16550])
4 port:
kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be
omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda1 ro 8250.nr_uarts=16
• Then
update-grub
• Reboot
to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
o Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet 8250.nr_uarts=16"
GRUB_CMDLINE_LINUX=""
• Then
update-grub
• Reboot
setserial -g /dev/ttyS*
• This will show you list of all serial ports addresses and corresponding
ttyS
• Mine looks like:
faxserver:/home/lucas# setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
• So now from lspci -v I know that first port on my 4 port serial card is
1010 which is ttyS1, second 1018 is ttyS2....etc
• Its really easy.
• The maximum number of the serial ports you can set the kernel boot
to is 16,if you need more, kernel 2.6.24 will have 32 as upper
limit.see Closed in linux-2.6/2.6.24~rc8-1~experimental.1: #440807:
increase CONFIG_SERIAL_8250_NR_UARTS (number of serial
ports): Debian Bug 440807.
Tools
Archive Faxes
• If you have a need to archive each fax by date, there is a script that
does just that.
http://www.hylafax.org/archive/2007-02/msg00399.php
• Download the archive.py file to some folder. I use /usr/local/bin/
• Edit a cron job:
crontab -e
• Now set up the time it will run. The extension it should use. And a
folder where the faxes are.
• Above line will run the program every day at 00:01 am. Change the
"/usr/local/bin/archive.py" to where you have downloaded the
program. Change "/var/spool/hylafax/recvq" to where your faxes are
located. Change "tif" to the extension you are using for storing your
faxes.
• If you just need to run it once. This command will do.
• To send multiple faxes, first you need to create a file that will have
fax numbers per one line. Type it or do a database query.
17731231234
13121231234
• If you need to add 1 in front of the number you could use vim to do it
with this code: press ESC
:%s/^/1/g
tchfaxnumbers.csv FILE2007NEWS.pdf
Maintenance
• To see a status of the fax service on the local machine, Type
faxstat -s
Restart Hylafax
/etc/init.d/hylafax restart
faxstat
• Type in the password(if it asks for one) and you should see
something similar to the following:
faxserver:~# faxstat
Password:
HylaFAX scheduler on localhost.localdomain: Running
to remove a sent fax from the queue, issue the following command:
faxrm jobid
You can also remove multiple faxes at once, like the following:
Don't do this:
Do:
• If you followed SystemPrinting, log into the cups software via the
http://localohost:631 and you can resume printing from there or see
the status of the printer.
Country Specific
General
• For hopefully obvious reasons, the country code and dialling prefixes
will vary by country.
CategoryModem | CategoryNetwork
HylaFax (dernière modification 2014-06-01 20:48:47)