![]() |
Hello mailinglist, when my hylafax receives faxes i get no eMail (not to FaxMaster and not to user in etc/FaxDispatch). Im running hylafax in version 4.1.2-2 (Debian SID) + capi4hylafax on a Pentium III/800 Computer. The /var/log/hylafax/capi4hylafax contains: May 19 23:22:03.84: [11279]: c2faxrecv - INFO: Fax received and calling '/var/spool/fax/bin/faxrcvd "/var/spool/hylafax/recvq/fax00004.tif" "faxCAPI" "00000007" ""'. May 19 23:22:03.91: [11279]: c2faxrecv - INFO: Connection is droped with reason 0x3490 (Normal call clearing). May 19 23:22:03.91: [11279]: c2faxrecv - INFO: SESSION END May 19 23:22:05.57: [11279]: c2faxrecv - INFO: SESSION BEGIN 00000008 +49.821.666635 May 19 23:22:05.57: [11279]: c2faxrecv - INFO: Incoming analog call from 821666635 to 666635. May 19 23:22:15.26: [11279]: c2faxrecv - INFO: Connection established. May 19 23:22:15.26: [11279]: c2faxrecv - INFO: StationID = +49 821 666635 May 19 23:22:15.26: [11279]: c2faxrecv - INFO: BaudRate = 9600 May 19 23:22:15.26: [11279]: c2faxrecv - INFO: Flags = HighRes May 19 23:22:15.26: [11279]: c2faxrecv - INFO: Write fax to file /var/spool/hylafax/recvq/fax00005.tif. May 19 23:22:26.65: [11279]: c2faxrecv - INFO: Page 1 was received. - Last Page! May 19 23:22:29.35: [11279]: c2faxrecv - INFO: Fax received and calling '/var/spool/fax/bin/faxrcvd "/var/spool/hylafax/recvq/fax00005.tif" "faxCAPI" "00000008" ""'. The faxrcvd-script is in /var/spool/hylafax/bin (as default). But a symbolic link form /var/spool/fax to /var/spool/hylafax is not the solution. The faxrcvd-script is not changed. What is wrong in my installation? Gerhard P. S. Here my /var/spool/hylafax/faxrcvd: if [ $# != 6 ]; 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 TIFF2PS=tiff2ps PS2PDF=ps2pdf TOADDR=FaxMaster # # Permit various types of attachment types: ps, tif, pdf # Note that non-ASCII filetypes require metamail. # pdf requires tiff2ps and ps2pdf # FILETYPE=ps # # 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" FILENAME=`echo $FILE | $SED -e 's/\.tif//' -e 's/recvq\///'` if [ -f $FILE ]; then # # Check the sender's TSI and setup to dispatch # facsimile received from well-known senders. # SENDER="`$INFO $FILE | $AWK -F: '/Sender/ { print $2 }' 2>/dev/null`" SENDTO= if [ -f etc/FaxDispatch ]; then . etc/FaxDispatch # NB: FaxDispatch sets SENDTO fi if [ "$TOADDR" != "$SENDTO" ]; then # don't send FaxMaster duplicate (echo "To: $TOADDR" echo "From: The HylaFAX Receive Agent <fax>" echo "Subject: Facsimile received from $SENDER"; 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 '/-- data/d' \ -e '/start.*timer/d' -e '/stop.*timer/d' \ 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" echo "" fi if [ "$CIDNAME" ]; then echo " CIDName: $CIDNAME" echo "" 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 '/-- data/d' \ -e '/start.*timer/d' -e '/stop.*timer/d' \ 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" echo "" fi if [ "$CIDNAME" ]; then echo " CIDName: $CIDNAME" echo "" 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: base64" 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: base64" echo "Content-Disposition: attachment; filename=\"c$COMMID.pdf\"" echo "" $TIFF2PS -a -O $FILE.ps $FILE 2>/dev/null # fax2ps looks bad $PS2PDF $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 '/-- data/d' \ -e '/start.*timer/d' -e '/stop.*timer/d' \ 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 Here my /var/spool/hylafax/etc/FaxDispatch: FILETYPE=pdf; case "$SENDER" in # send all faxes from XX to lala *49*821*666635*) SENDTO=gerhard@gustav.duck;; # send all the remainig to FaxMaster *) SENDTO=FaxMaster; esac ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null