#!/bin/sh # # mailfax - email to fax gateway for qmail. # # Original file from HylaFAX, updated for e-smith server. #---------------------------------------------------------- # 4 more information see: http://www.vangee.nl/sme/hylafax # # 1.) Install HylaFAX # 2.) In server-manager add a virtual domain named: fax # 3.) In server-manager add a user named: faxuser # 4.) Install this file as: /etc/hylafax/etc/mailfax # 5.) Add the following file to your system: # /etc/e-smith/templates-custom/var/qmail/control/virtualdomains/90aliases # 6.) Put this line in the file: # .fax:faxuser # 7.) Add the following file to your system: # /home/e-smith/files/users/faxuser/.qmail-default # 8.) Put this line in the file: # | /etc/hylafax/etc/mailfax # 9.) Execute: /sbin/e-smith/signal-event console-save # 10) Execute: service qmail restart TMPVAR=${SENDER//\`/} TMPVAR=${TMPVAR//\$\(/} SENDER=${TMPVAR//\)/} /usr/bin/faxmail -f Helvetica-Bold | /usr/bin/sendfax \ -f "$SENDER" \ -n -d "$EXT2@`/usr/bin/expr \"$HOST\" : '\(.*\)\.fax$'`"