Introduction
Buying the hardware
There are plenty of modems you can buy but it's getting harder and harder to find a device capable of handling faxex in hardware and thus suitable for HylaFax. You should choose an external serial modem, this page will help you: http://www.hylafax.org/content/Handbook:Basic_Server_Configuration:Choos...Checking the modem connection
First thing to do is check that the modem works and talks with the computer you're using, let's install a communication program and check which serial ports are available:apt-get install cu dmesg | grep tty
ls -l /dev/ttyUSB1 nano /etc/group
In this example the modem is connected through an USB<->Serial adapter on /dev/ttyUSB1.
host% cu -l /dev/ttyUSB1 Connected at+fclass=? 0,1,2,1.0 OK ~[host]. Disconnected
Installing Hylafax
Let's install the package:apt-get install hylafax-serverfaxsetup
HylaFAX configuration parameters are: [1] Init script starts faxq: yes [2] Init script starts hfaxd yes [3] Start paging protocol: no Are these ok [yes]? yes
You have a HylaFAX scheduler process running. faxq will be restarted shortly, as soon as some other work has been completed. Can I terminate this faxq process (9826) [yes]? yes Should I restart the HylaFAX server processes [yes]? yes
faxaddmodem
Serial port that modem is connected to [ttyS0]? ttyUSB1
Country code [1]? 39 Area code [415]? 041 Phone number of fax modem [+1.999.555.1212]? +39.041.123456 Local identification string (for TSI/CIG) ["NothingSetup"]? "Customer Name" Long distance dialing prefix [1]? 0 International dialing prefix [011]? 00 Dial string rules file (relative to /var/spool/hylafax) [etc/dialrules]? Tracing during normal server operation [1]? Tracing during send and receive sessions [11]? Protection mode for received facsimile [0600]? Protection mode for session logs [0600]? Protection mode for ttyUSB1 [0600]? Rings to wait before answering [1]? 5 Modem speaker volume [off]? Command line arguments to getty program ["-h %l dx_%s"]? Pathname of TSI access control list file (relative to /var/spool/hylafax) [""]? Pathname of Caller-ID access control list file (relative to /var/spool/hylafax) [""]? Tag line font file (relative to /var/spool/hylafax) [etc/lutRS18.pcf]? Tag line format string ["From %%l|%c|Page %%P of %%T"]? "Da %%l|%c|Pagina %%P di %%T" Time before purging a stale UUCP lock file (secs) [30]? Hold UUCP lockfile during inbound data calls [Yes]? Hold UUCP lockfile during inbound voice calls [Yes]? Percent good lines to accept during copy quality checking [95]? Max consecutive bad lines to accept during copy quality checking [5]? Max number of pages to accept in a received facsimile [25]? Syslog facility name for ServerTracing messages [daemon]? Set UID to 0 to manipulate CLOCAL [""]? Use available priority job scheduling mechanism [""]?
This modem looks to have support for Class 1.0, 1 and 2. How should it be configured [1.0]? 1.0
Configuring and running Hylafax
After the modem configuration you should restart HylaFax:/etc/init.d/hylafax restart
user@host:~$ faxstat HylaFAX scheduler on host: Running Modem ttyUSB1 (+39.041.123456): Running and idle
Adding users
You can change the admin password with this command:faxadduser –a <newpassword>
faxadduser –p <password> <username>
Receiving fax and notification by mail
To receive fax by mail you'll just have to create a configuration file:nano /var/spool/hylafax/etc/FaxDispatch
TEMPLATE=it; FILETYPE=pdf; SENDTO="fax@example.com";
postconf alias_database
FaxMaster: fax@example.com
GUI Clients
Windows
# WPHF Reloaded is one of the best open source client for windows http://sourceforge.net/projects/wphf-reloaded/Linux
# This cross-platform client in Java is suitable for usage within a Linux Desktop Environment and it doesn't even need installation. http://sourceforge.net/projects/jhylafax/files/JHylaFAX/1.4.0/Mac OS X
Monitoring HylaFax
You should use the command faxstat which allows to see both the receive and sender queue.- Log in to post comments