hylafax lenny vserver
HylaFAX
http://manpages.songshu.org/manpages/lenny/en/man5/hylafax-server.5.html
Hylafax runs very well in a Vserver, all that needs to be done extra compared to a “normal” install is to copy the /dev/ttyS0 so Hylafx can reach it from within the Vserver.
It is absolutely not needed to have Hylafax run in a Vserver but since this is a “low profile” setup for about a few dozen faxes a day and just as many users it does not need a dedicated box to run on, all you need is a cheap fax modem (in my case a a Emininet em5017) that i picked up for about 30,- Euro.
Off course you need a server to attach it to, i already have one anyway, but you could use any old box.
Add a nice front end like Avantfax, a printer and a scanner and you have a complete “small office” fax solution.
Vserver installation
newvserver --vsroot /VSERVERS --hostname fax --domain cipar.net --ip 192.168.1.10/24 --dist lenny --mirror http://192.168.1.12:3142/debian.apt-get.eu/debian --interface dummy0
vserver fax start vserver fax enter
Since i use a lot of different Vserver installs on a single box (network) i make use of an apt-cacher to prevent having to download a lot of things over and over again, otherwise just use your normal sources.
# nano /etc/apt/sources.list
deb http://192.168.1.12:3142/security.debian.org/ lenny/updates main contrib deb-src http://192.168.1.12:3142/security.debian.org/ lenny/updates main contrib deb http://192.168.1.12:3142/debian.apt-get.eu/debian/ lenny main contrib non-free
apt-get update && apt-get upgrade
HylaFAX
http://www.howtoforge.com/build-a-hylafax-server-with-avantfax-on-debian-etch
http://www.lucasmanual.com/mywiki/FaxServer
http://www.avantfax.com/install.php
Hylafax depends on a MTA so it will use Exim4 as the Debian default but i personally prefer to use Postfix so i install that one first.
apt-get install postfix
choose internet site
The system mail name, in my case i will go with the default fax.cipar.net since i use it on the local network only it does not really matter.
nano /etc/aliases
and add the following
root: randall@smydomain.com
newaliases
apt-get install hylafax-server
The following is only needed because we have this running within a Vserver, otherwise Hylafax can not contact the fax modem.
exit cp -a /dev/ttyS0 /VSERVERS/fax/dev/ttyS0 cp -aR /dev/null /VSERVERS/fax/var/spool/hylafax/dev vserver fax enter
faxsetup
This will ask for a lot of questions, i go for the defaults except when specified below.
# Country code [1]? 31 # Area code [415]? 10 # Phone number of fax modem [+1.999.555.1212]? +31.10.1234567 # Local identification string (for TSI/CIG) ["NothingSetup"]? fax.cipar.net # Long distance dialing prefix [1]? 0 # International dialing prefix [011]? 00 # Protection mode for received facsimile [0600]? 0644 # Protection mode for session logs [0600]? 0644 # Protection mode for ttyS0 [0600]? 0666 # Do you want to run faxaddmodem to configure another modem [yes]? no
Allow users from our subnet access to the fax service:
nano /etc/hylafax/hosts.hfaxd
on the bottom of the file
192\.168\.:::
exit vserver fax restart vserver fax enter
faxstat -a -s
should show something like this
HylaFAX scheduler on fax.cipar.net: Running Modem ttyS0 (+**.**.*******): Running and idle
Add a fax user. This will create a user named “user” with userID 101 and no password.
faxadduser -u 100 user
Add an administrator. This will create a user named admin with admin password :
faxadduser -a password -p password -u 100 admin
