Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Guides Forum _ Hylafax server on Centos 3.9

Posted by: Robert83 Feb 26 2009, 05:04 AM

[I've used US Robotics 56K External Faxmodem , model : 5631 ]

This is a guide on howto setup a Hylafax server ( hylafax-4.4.4-1rhel3 ) on CentOS 3.9 .

Step 1 :

Download and burn a CentOS 3.9 ISO from www.centos.org , and install using minimal install .

Step 2 :

We upgrade the system and install hylafax

CODE
yum upgrade
cd /home
wget ftp://ftp.hylafax.org/binary/linux/redhat/RPMS/i386/hylafax-4.4.4-1rhel3.i386.rpm
yum install ghostscript mgetty-voice
rpm -Uvh hylafax-4.4.4-1rhel3.i386.rpm
ln -s /usr/share/fonts/default/ghostscript /usr/share/ghostscript/fonts
faxsetup


The first set of questions should be left at default .
Init script starts faxq [yes]
Init script starts hfaxd [yes]
Start old protocol [no]
Start paging protocol [no]

The question after this must be answered by you, country code, etc... regular stuff and is not hard .

Then after all questions are answered it will ask on which port the faxmodem is , my modem is on com1 that is ttyS0 on linux ( com 2 = ttyS1 and so on ) . You just enter ttyS0 for COM1 or
ttyS1 for Com2 .

After that it will ask the same questions (country code etc... ) for the modem just enter the details, then it will try and talk to the modem, it will allow you to either chose CLASS 1 or CLASS 2 for modem
you should leave it at default and use CLASS1 , after that it will complain about faxgetty not running and tells you that you should run faxmodem for all added modems select no here .

Now we need to make sure that faxgetty is running (so that we can recieve faxes)

modify your /etc/inittab like this

CODE
# Run faxgetty
s0:234:respawn:/usr/sbin/faxgetty ttyS0


Now we will possibly want all recieve faxes to be sent to our secretary , we need to edit /var/spool/hylafax/etc/FaxDiscpatch

CODE
SENDTO=secretary@mydomain.com;
FILETYPE=pdf;


this will send all incoming faxes via e-mail to our secretary with attached pdf .

Now we make sure hylafax will start each time the system is rebooted and run the following command :

CODE
chkconfig hylafax on


Now let us restart the server , and we are done setting up hylafax on the server , next comes the Windows client.

I reccomend using this client http://winprinthylafax.sourceforge.net/ here , I will not repeat the steps necesary to make it running, as you will see on that
webpage the instrutcions are very-very detailed with pictures present .

What I will tell you however is per client do set the Default notify. That way each user who sends a fax will recieve a mail about SUCCESS or FAILURE to his/her e-mail address .

In order to make this e-mail sending work, I've used postfix and just modified the following few lines in it .

/etc/postfix/main.cf

CODE
relayhost=192.168.10.5 # or any smtp server you are allowed to use , I have my own mail server .
myhostname = hylafax.mydomain.com
mydomain = hylafax.mydomain.com


This is all I've changed in postfix .

Using this setup clients can send faxes from their local pc just by printing, and they recieve a e-mail back about SUCCESS or FAILURE.
Recieved faxes are processed and forwarded via e-mail to secretary.

Sincerely
Robert B

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)