Página 1 de 2 12 ÚltimoÚltimo
+ Responder ao Tópico



  1. #1
    Saudações amigos estou instalando um servidor de fax (Hylafax) estou com diversos problemas, alguém ja configurou o hylafax..alguém pode me ajudar???

  2. #2
    Cyberfred
    qual eh o grilo...
    Já instalei Hylafax, deu uma dorzinha de cabeça para aprender a mexer com ele mas rolou de boa...



  3. #3
    Não estou conseguindo fazer ele mandar o email com anexo, acho que meu arquivo faxrecvd está com problemas..............Consigo enviar e receber o fax....

    Obrigado

  4. #4
    #! /bin/sh
    # $Id: faxrcvd.sh.in,v 1.9 2003/02/09 02:39:33 darren Exp $
    #
    # HylaFAX Facsimile Software
    #
    # Copyright (c) 1990-1996 Sam Leffler
    # Copyright (c) 1991-1996 Silicon Graphics, Inc.
    # HylaFAX is a trademark of Silicon Graphics
    #
    # Permission to use, copy, modify, distribute, and sell this software and
    # its documentation for any purpose is hereby granted without fee, provided
    # that (i) the above copyright notices and this permission notice appear in
    # all copies of the software and related documentation, and (ii) the names of
    # Sam Leffler and Silicon Graphics may not be used in any advertising or
    # publicity relating to the software without the specific, prior written
    # permission of Sam Leffler and Silicon Graphics.
    #
    # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
    # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
    # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
    #
    # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
    # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
    # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
    # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
    # OF THIS SOFTWARE.
    #

    #
    # faxrcvd file devID commID error-msg
    #
    if [ $# -lt 4 ]; then
    echo "Usage: $0 file devID commID error-msg CIDNumber CIDName "
    exit 1
    fi

    test -f etc/setup.cache || {
    SPOOL=`pwd`
    cat<<EOF

    FATAL ERROR: $SPOOL/etc/setup.cache is missing!

    The file $SPOOL/etc/setup.cache is not present. This
    probably means the machine has not been setup using the faxsetup(8C)
    command. Read the documentation on setting up HylaFAX before you
    startup a server system.

    EOF
    exit 1
    }
    . etc/setup.cache

    INFO=$SBIN/faxinfo
    FAX2PS=$TIFFBIN/fax2ps
    MIMENCODE=mimencode
    ENCODING=base64
    TIFF2PS=tiff2ps
    PS2PDF=ps2pdf
    TOADDR=FaxMaster
    TIFFINFO=tiffinfo
    NOTIFY_FAXMASTER=always
    FAX2PDF=fax2pdf
    tiffile=/var/spool/hylafax/recvq/
    pdffile=/var/spool/hylafax/recvq/


    #
    # Permit various types of attachment types: ps, tif, pdf
    # Note that non-ASCII filetypes require metamail.
    # pdf requires tiff2ps and ps2pdf
    #
    FILETYPE=pdf

    #
    # There is no good portable way to find out the fully qualified
    # domain name (FQDN) of the host or the TCP port for the hylafax
    # service so we fudge here. Folks may want to tailor this to
    # their needs; e.g. add a domain or use localhost so the loopback
    # interface is used.
    #
    HOSTNAME=`hostname` # XXX no good way to find FQDN
    PORT=4559 # XXX no good way to lookup service


    FILE="$1"
    DEVICE="$2"
    COMMID="$3"
    MSG="$4"
    CIDNUMBER="$5"
    CIDNAME="$6"
    FILE2=`echo $FILE |cut -c7-18`
    FILE3=`echo $FILE |cut -c7-14`
    FILENAME=`echo $FILE | $SED -e &acute;s/\.tiff//&acute; -e &acute;s/recvq\///&acute;`

    if [ -f $FILE2.pdf ]; then
    #
    # Check the sender&acute;s TSI and setup to dispatch
    # facsimile received from well-known senders.
    #
    SUBADDR="`$INFO $FILE2.pdf | $AWK -F: &acute;/SubAddr/ { print $2 }&acute; 2>/dev/null`"
    SENDER="`$INFO $FILE.pdf | $AWK -F: &acute;/Sender/ { print $2 }&acute; 2>/dev/null`"
    SENDTO=
    if [ -f etc/FaxDispatch ]; then
    . etc/FaxDispatch # NB: FaxDispatch sets SENDTO
    fi
    #
    # Don&acute;t send FaxMaster duplicates, and FaxMaster may not even
    # want a message at all, depending on NOTIFY_FAXMASTER.
    #
    case $NOTIFY_FAXMASTER$MSG in
    never*) NOTIFY_FAXMASTER=no;;
    errors) NOTIFY_FAXMASTER=no;;
    *) NOTIFY_FAXMASTER=yes;;
    esac
    if [ "$TOADDR" != "$SENDTO" -a "$NOTIFY_FAXMASTER" != "no" ]; then
    (echo "To: $TOADDR"
    echo "From: The HylaFAX Receive Agent <fax>"
    echo "Subject: Facsimile received from $SENDER";
    echo ""
    echo "$FILE2.pdf (ftp://$HOSTNAME:$PORT/$FILE2.pdf):"; $INFO -n $FILE2.pdf
    echo "ReceivedOn: $DEVICE"
    if [ "$MSG" ]; then
    echo ""
    echo "The full document was not received because:"
    echo ""
    echo " $MSG"
    echo ""
    echo " ---- Transcript of session follows ----"
    echo ""
    if [ -f log/c$COMMID ]; then
    $SED -e &acute;/-- data/d&acute; \
    -e &acute;/start.*timer/d&acute; -e &acute;/stop.*timer/d&acute; \
    log/c$COMMID
    elif [ -n "$COMMID" ]; then
    echo " No transcript available (CommID c$COMMID)."
    else
    echo " No transcript available."
    fi
    else
    echo " CommID: c$COMMID (ftp://$HOSTNAME:$PORT/log/c$COMMID)"
    fi
    if [ "$CIDNUMBER" ]; then
    echo " CIDNumber: $CIDNUMBER"
    fi
    if [ "$CIDNAME" ]; then
    echo " CIDName: $CIDNAME"
    fi
    if [ -n "$SENDTO" ]; then
    echo ""
    echo "The facsimile was automatically dispatched to: $SENDTO."
    fi
    ) | 2>&1 $SENDMAIL -ffax -oi $TOADDR
    fi
    if [ -n "$SENDTO" ]; then
    (MIMEBOUNDARY="NextPart$$"
    echo "Mime-Version: 1.0"
    echo "Content-Type: Multipart/Mixed; Boundary=\"$MIMEBOUNDARY\""
    echo "Content-Transfer-Encoding: 7bit"
    echo "To: $SENDTO"
    echo "From: The HylaFAX Receive Agent <fax>"
    echo "Subject: Facsimile received from $SENDER";
    echo ""
    echo "--$MIMEBOUNDARY"
    echo "Content-Type: text/plain; charset=us-ascii"
    echo "Content-Transfer-Encoding: 7bit"
    echo ""
    echo "$FILE (ftp://$HOSTNAME:$PORT/$FILE):"; $INFO -n $FILE
    echo "ReceivedOn: $DEVICE"
    if [ "$MSG" ]; then
    echo ""
    echo "The full document was not received because:"
    echo ""
    echo " $MSG"
    echo ""
    echo " ---- Transcript of session follows ----"
    echo ""
    if [ -f log/c$COMMID ]; then
    $SED -e &acute;/-- data/d&acute; \
    -e &acute;/start.*timer/d&acute; -e &acute;/stop.*timer/d&acute; \
    log/c$COMMID
    elif [ -n "$COMMID" ]; then
    echo " No transcript available (CommID c$COMMID)."
    else
    echo " No transcript available."
    fi
    else
    echo " CommID: c$COMMID (ftp://$HOSTNAME:$PORT/log/c$COMMID)"
    fi
    if [ "$CIDNUMBER" ]; then
    echo " CIDNumber: $CIDNUMBER"
    fi
    if [ "$CIDNAME" ]; then
    echo " CIDName: $CIDNAME"
    fi
    echo ""
    echo "--$MIMEBOUNDARY"
    if [ "$FILETYPE" = "tif" ]; then
    echo "Content-Type: image/tiff; name=\"$FILENAME.tif\""
    echo "Content-Description: FAX document"
    echo "Content-Transfer-Encoding: $ENCODING"
    echo "Content-Disposition: attachment; filename=\"$FILENAME.tif\""
    echo ""
    $MIMENCODE $FILE 2>/dev/null
    elif [ "$FILETYPE" = "pdf" ]; then
    echo "Content-Type: application/pdf; name=\"c$COMMID.pdf\""
    echo "Content-Description: FAX document"
    echo "Content-Transfer-Encoding: $ENCODING"
    echo "Content-Disposition: attachment; filename=\"c$COMMID.pdf\""
    echo ""
    GW=`$TIFFINFO $FILE | $GREP "Image Width" | \
    $SED &acute;s/.*Image Width: \([0-9]*\).*/\1/g&acute; | sort -n | $SED -n &acute;$p&acute;`
    GL=`$TIFFINFO $FILE | $GREP "Image Length" | \
    $SED &acute;s/.*Image Length: \([0-9]*\).*/\1/g&acute; | sort -n | $SED -n &acute;$p&acute;`
    RW=`$TIFFINFO $FILE | $GREP "Resolution" | \
    $SED &acute;s/.*Resolution: \([0-9]*\).*/\1/g&acute; | sort -n | $SED -n &acute;$p&acute;
    RW=`$TIFFINFO $FILE | $GREP "Resolution" | \
    $SED &acute;s/.*Resolution: \([0-9]*\).*/\1/g&acute; | sort -n | $SED -n &acute;$p&acute;`
    RL=`$TIFFINFO $FILE | $GREP "Resolution" | \
    $SED &acute;s/.*Resolution: [0-9]*, \([0-9]*\).*/\1/g&acute; | sort -n | $SED -n &acute;$p&acute;`
    $TIFF2PS -a -O $FILE.ps $FILE 2>/dev/null # fax2ps looks bad
    $PS2PDF -g$GW\x$GL -r$RW\x$RL $FILE.ps $FILE.pdf 2>/dev/null
    $MIMENCODE $FILE.pdf 2>/dev/null
    $RM -f $FILE.ps $FILE.pdf 2>/dev/null
    else # default as Postscript
    echo "Content-Type: application/postscript; name=\"$FILENAME.ps\""
    echo "Content-Description: FAX document"
    echo "Content-Transfer-Encoding: 7bit"
    echo "Content-Disposition: attachment; filename=\"$FILENAME.ps\""
    echo ""
    $FAX2PS $FILE 2>/dev/null

    fi
    echo ""
    echo "--$MIMEBOUNDARY--"
    ) | 2>&1 $SENDMAIL -ffax -oi $SENDTO
    fi
    else
    #
    # Generate notification mail for a failed attempt.
    #
    (echo "To: $TOADDR"
    echo "From: The HylaFAX Receive Agent <fax>"
    echo "Subject: facsimile not received"
    echo ""
    echo "An attempt to receive facsimile on $DEVICE failed because:"
    echo ""
    echo " $MSG"
    echo ""
    echo " ---- Transcript of session follows ----"
    echo ""
    if [ -f log/c$COMMID ]; then
    $SED -e &acute;/-- data/d&acute; \
    -e &acute;/start.*timer/d&acute; -e &acute;/stop.*timer/d&acute; \
    log/c$COMMID
    elif [ -n "$COMMID" ]; then
    echo " No transcript available (CommID c$COMMID)."
    else
    echo " No transcript available."
    fi
    ) | 2>&1 $SENDMAIL -ffax -oi $TOADDR
    fi
    cd $tiffile
    $FAX2PDF "$FILE2" "$FILE2.pdf"
    mv $FILE2.pdf $FILE3.pdf





  5. #5
    Me ajudem por favor!!!!!






Tópicos Similares

  1. Hylafax Server
    Por mvcandido no fórum Servidores de Rede
    Respostas: 0
    Último Post: 04-12-2006, 08:45
  2. Servidor de fax Hylafax
    Por phacam no fórum Servidores de Rede
    Respostas: 0
    Último Post: 19-07-2005, 08:24
  3. Hylafax no Kurumin
    Por voss no fórum Servidores de Rede
    Respostas: 0
    Último Post: 27-05-2004, 09:37
  4. Hylafax
    Por no fórum Servidores de Rede
    Respostas: 1
    Último Post: 15-03-2003, 21:16
  5. Hylafax
    Por no fórum Servidores de Rede
    Respostas: 2
    Último Post: 14-03-2003, 17:28

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L