HylaFAX The world's most advanced open source fax server |
Hi all, I have been using Hylafax+ for a while but I encountered this strange problem when I built a new Hylafax+ box in production. OS: Fedora Core 7 Hylafax: 5.1.7 (Install from source) Email: Sendmail Symptom: I was able to send email to fax using WORD, TIFF or TEXT attachment. However, PDF and HTML attachment just did ***not*** appear in the fax at all and there is no error message on the fax. The funny thing is that I was able to use the sendfax command on the linux command line to send a pdf document to fax, but not from email. Attached is the log when I sent a fax out using a PDF attachment (seems like for some reasons the PDF or HTML attachment are dropped before the fax was even sent). Any thoughts? ************************************************************************ **** # ls /usr/bin/gs /usr/bin/gs # ls /usr/local/bin/html2ps /usr/local/bin/html2ps # cat /usr/local/lib/fax/faxmail/application/pdf #! /bin/bash [...] GSRIP=gs . /var/spool/hylafax/etc/setup.cache $GSRIP -q -sPAPERSIZE=a4 -dBATCH -dNOPAUSE \ -sDEVICE=pswrite -sOutputFile=- "$1" exit # cat /usr/local/lib/fax/faxmail/text/html #! /bin/sh /usr/local/bin/html2ps -D $1 exit # cat /usr/local/lib/fax/faxmail/application/msword #! /bin/bash antiword -p a4 -m 8859-1.txt "$1" exit # cat /usr/local/lib/fax/faxmail/application/octet-stream #! /bin/bash [...] DISCARDMSG="DISCARDED application/octet-stream goes here" FILECMD=file . /var/spool/hylafax/etc/setup.cache if [ ! -x $FILECMD ]; then echo "$DISCARDMSG" | $LIBEXEC/textfmt -B exit fi MIMETYPE="`$FILECMD -bi "$1"`" case "$MIMETYPE" in "application/postscript") cat "$1";; "application/pdf") $LIBEXEC/faxmail/application/pdf "$1";; "image/tiff") $LIBEXEC/faxmail/image/tiff "$1";; "message/rfc822") cat "$1" | $LIBEXEC/textfmt -B;; text/*) cat "$1" | $LIBEXEC/textfmt -B;; *) echo "$DISCARDMSG" | $LIBEXEC/textfmt -B;; esac exit The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
Attachment:
c000000072
Description: c000000072