Book
- Basic setup of a SOHO server
- SoHo - Software repositories
- SoHo - Alias of loopback interface
- SoHo - IPtables configuration example
- SoHo - Webmin
- SoHo - DNS
- SoHo - VMWare
- SoHo - Windows
- SoHo - OpenVPN
- SoHo - Remote Desktop
- Nameserver on Windows XP forwarding to public DNS with private zones
- SoHO - NTP
- SoHo - SSH
- SoHo - Ubuntu prerequisites
- How to strengthen SSH
- Fixing Nessus complaints
- Java installation on RHEL 4
- Installing vsFTPd on CentOS
- How to setup CA (certificate authority)
- Installation of VIM X11 and archivers on RHEL 4 x86_64
- SoHo - MS & Open-Office
- User management
- CommuniGate Pro
- Backup
- Issue tracking for small groups
- Jabber setup and configuration
- Monitoring & Statistics
- Printing in SOHO
- Faxes in SOHO
- T38 Modem
- PostScript fonts for faxes
- Installing Brother MFU drivers on Ubuntu
- Installing Hylafax client on RHEL4 and Fedora
- Installing Hylafax server on RHEL4
- Installing Hylafax server on Ubuntu
- Integrating Hylafax with CUPS
- Integrating Hylafax with CommuniGate
- Managing Hylafax from Ubuntu client
- Sending and receiving faxes over internet (links)
- How to test faxing
- Drivers for Brother MFUs
- Brand new idea about faxing
- External faxing resources
- Antivirus & Antispam
- External SOHO References
- Supplementary SOHO procedures
Installing Hylafax server on RHEL4
in
- install RPMs
yum install a2ps
rpm -ivh hylafax-5.2.5-1.el4.rf.{i386,x86_64}.rpm- install PS fonts and:
yum install ghostscript ghostscript-fonts urw-fonts ln -s /usr/share/fonts/default/Type1 /usr/share/ghostscript/fonts
- link configuration directories:
/bin/cp -irpv /etc/hylafax/* /var/spool/hylafax/etc/ /bin/mv /etc/hylafax /etc/hylafax.orig ln -s /var/spool/hylafax/etc /etc/hylafax
- run faxsetup:
$ faxsetup Warning: /sbin/mgetty does not exist or is not an executable program! Warning: /sbin/vgetty does not exist or is not an executable program! Warning: /bin/egetty does not exist or is not an executable program! Setting Ghostscript font path in /etc/hylafax/hyla.conf. Make /var/spool/hylafax/bin/ps2fax a link to /var/spool/hylafax/bin/ps2fax.gs. Make /var/spool/hylafax/bin/pdf2fax a link to /var/spool/hylafax/bin/pdf2fax.gs. Should an entry be added for the FaxMaster to /etc/aliases [yes]? Enter Users to receive fax-related mail [root]? postmaster@ourdom.com 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]? Enter Modem support functions written to /var/spool/hylafax/etc/setup.modem. Configuration parameters written to /var/spool/hylafax/etc/setup.cache. Country code [1]? 7 Area code [000]? 495 Long distance dialing prefix [1]? 1 International dialing prefix [011]? 011 Dial string rules file (relative to /var/spool/hylafax) ["etc/dialrules"]? Enter Tracing during normal server operation [1]? Enter Default tracing during send and receive sessions [0xFFF]? Enter Continuation cover page (relative to /var/spool/hylafax) []? Enter Timeout when converting PostScript documents (secs) [180]? Enter Maximum number of concurrent jobs to a destination [1]? Enter Define a group of modems []? Enter Time of day restrictions for outbound jobs ["Any"]? Enter Timeout before purging a stale UUCP lock file (secs) [30]? Enter Max number of pages to permit in an outbound job [0xffffffff]? Enter Syslog facility name for ServerTracing messages [daemon]? Enter The non-default scheduler parameters are: CountryCode: 7 AreaCode: 495 Are these ok [yes]? Enter Creating new configuration file /var/spool/hylafax/etc/config... Should I restart the HylaFAX server processes [yes]? Enter Do you want to run faxaddmodem to configure a modem [yes]? no
- configure with t38modem:
cp /usr/share/doc/t38modem-0.8.0/config.ttyx /etc/hylafax/config.ttyx0faxmodem ttyx0
- configure /etc/inittab:
# Run hylafax on t38modem f3:2345:respawn:/usr/sbin/faxgetty ttyx0
- and tell init to reload:
telinit q
- enable hosts in /etc/hylafax/hosts.hfaxd:
^.*@127\.0\.0\.1$ ^.*@10\.20\..*\..*$ ^.*@192\.168\.92.\128$
(this means: any user from 10.20.x.x or 127.0.0.1 etc)
- Edit /etc/hylafax/hyla.conf client config:
Host: fax2.ourdom.com Port: 4559 Verbose: No TimeZone: local DialRules: "/etc/hylafax/dialrules" AutoCoverPage: No FontMap: /usr/share/fonts/type1/pscyr FontPath: /usr/share/fonts/type1/pscyr
- Prevent hfaxd problems with PAM and SSL in chroot-ed environment:
cp -a /dev/random /dev/urandom /var/spool/hylafax/dev mkdir /etc/hylafax/ssl cp -a /etc/pki/ldap/ourdom-ldap-ca.crt /etc/hylafax/ssl
- Create /etc/cron.monthly/hylafax:
#!/bin/sh
test -f /usr/sbin/xferfaxstats || exit 0
# Generate HylaFAX's monthly fax statistics
test -f /var/spool/hylafax/etc/xferfaxlog || exit 0
/usr/sbin/xferfaxstats -dest -since `date +%D -d'-1 month'` 2>&1
| mail -s "Monthly fax stats (fax2.ourdom.com) - by destination" faxmaster
/usr/sbin/xferfaxstats -send -since `date +%D -d'-1 month'` 2>&1
| mail -s "Monthly fax stats (fax2.ourdom.com) - by sender" faxmaster- Create /etc/cron.weekly/hylafax:
#!/bin/sh test -f /usr/sbin/faxcron || exit 0 test -f /usr/sbin/faxqclean || exit 0 test -f /var/spool/hylafax/etc/xferfaxlog || exit 0 # Rotate the HylaFAX logfile #savelog -c 5 /var/log/hylafax/hylafax.log >/dev/null # HylaFAX routine maintenance script faxcron -info 35 -log 35 -rcv 100 -tmp 15 -mode 664 | mail -n -s "fax cron job on fax2.ourdom.com" faxmaster # HylaFAX queue cleaner process (3024000s = 35 day) faxqclean -t -j 3024000 -a | mail -n -s "fax queue clean job on fax2.ourdom.com" faxmaster
- Configure mail address in /etc/hylafax/hfaxd.conf:
FaxContact: faxmaster@fax2.ourdom.com
Install russian notification templates in /etc/hylafax/templates/ru from ps-hylafax-templates-ru-v01.tgz(the older hylafax package uses a different templating system)- Configure notifications - same as above
- Restart:
chkconfig --add hylafax chkconfig hylafax on telinit q service hylafax restart
- try sending faxes back and forth
ssh fax1 sendfax -d 25678 /etc/hosts faxstat -dirs ssh fax2 sendfax -d 15678 /etc/hosts faxstat -dirs
Attachments
hylafax-5.2.5-1.el4_.rf_.i386.rpm 3.79 MB
hylafax-5.2.5-1.el4_.rf_.x86_64.rpm 1.92 MB
ps-hylafax-templates-ru-v01.tgz 2.84 KB

Comments
Post new comment