Build a hylafax serve

These are the steps to build a hylafax server.

1. Build up your server hardware, preferably with RAID 5 (3 drives) plus 1 hotspare. Use a
3ware raid card, 8000 series is a good choice. Use an external modem connected to Com1
for best results (easy to setup)…
2. Boot using the Debian Net Install cd and when prompted to continue type “linux26”, this will
load the 2.6 kernel
3. Setup the partitions as follows (hylafax by default puts all faxes and temp files in /var, so we
want to give it a lot of space)
1. #1 primary 32mb ext2 /boot bootable-flag
2. #2 primary 1gb swap swap
3. #3 primary 20gb reiserfs /
4. #4 logical 20gb+ reiserfs /home
5. #5 logical 100gb+ reiserfs /var
4. Do a normal debian setup, don’t select any extra features, just what you need and no more…
5. Once it is installed login as root
6.type “apt-get install hylafax-server” to install hylafax
apt-get install hylafax-server hylafax-client
7.type “faxsetup” and follow all the prompts, use defaults for everything that you can,
customize as little as possible
1. modem should be ttyS0
2. use defaults
Protection mode for received fax – enter 0644
Protection mode for session logs – enter 0644
Protection mode for ttySx – enter 0666
8. Next we’ll set up HylaFAX to run automatically when you boot the system. Check the
configuration file:
9. nano /etc/default/hylafax
to make sure there’s no # character at the beginning of the line containing
RUN_HYLAFAX=1.
Exit the editor.
10. One last that item is to let HylaFAX know who is allowed to send faxes. You can use a
modified subnet address to let everyone on your network submit faxes to the server. Edit the
hosts.hfaxd file with the command:
11. nano /etc/hylafax/hosts.hfaxd
As an example, if your using a subnet address for your network of 192.168.10.0 enter the
following line into the hosts.hfaxd file:
192\.168\.10\.:::
Likewise, if your using a subnet address of 172.16.0.0 your hosts.hfaxd file entry would be:
172\.30\.:::
You can enter as “wide” of a network address or multiple narrower address entries as you’d like.
If you’d like to restrict access to specific users you can enter their individual IP addresses. When
done, save the file and exit the editor.

12. Once you’ve completed that part of the setup we have to create some users… this is how:
1.type “faxadduser -a [adminpass] -p [userpass] -u [uid] [username]
1. -a adminpass is a password you make up that allows the user to login with
admin privelages to the fax server, set it to whatever you like
2. -p userpass is the normal user password for the person logging in
3. -u uid is a # … FOR EXAMPLE: -u 10
4.HERE IS A SAMPLE USER THAT I SET UP “faxadduser -a adminpass -p
userpass -u 100 username” … That will create a user called “username”
with the user id of “100” and a password of “userpass” with admin
privelages accessible via “adminpass” Does this make sense?
13. Ok, now that we’ve got our server setup and our users entered lets reboot the server and go
over to our client machines… Oh yeah, its going to be important at this point that you either
have your NIC setup with a static IP or you have the same IP being assigned everytime via
DHCP…
To have hylafax save incoming faxes in pdf format (it will work to copy the whole selection into a
executable file and run the script):
cd /var/spool/hylafax/bin
wget http://www.hylafax.org/site2/howto/faxrcvd/faxrcvd-pdf
wget http://www.hylafax.org/site2/howto/faxrcvd/faxrcvd-mail-pdf
cp faxrcvd-pdf faxrcvd.original
cp faxrcvd-mail-pdf faxrcvd-mail-pdf.original
mv faxrcvd-pdf faxrcvd
mv faxrcvd-mail-pdf faxrcvd-mail
/etc/init.d/hylafax restart

Ref : http://files.yajhfc.de/doc/hylafax_setup_bc.pdf

About the Author

wpadmin

Leave a Reply

Your email address will not be published. Required fields are marked *