HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] capi4hylafax and Debian Sarge



Am 2004.11.03 15:21 schrieb(en) Hugo Wau:

/etc/default/hylafax should at least have these two lines:
############################################################
USE_FAXGETTY=yes
RUN_HYLAFAX=1
############################################################

Hello Hugo,


I think with capi4hylafax you should use USE_FAXGETTY=no. (At least I have it configured this way and I will get error messages from faxgetty if I enable it.

Add this line to the end of /etc/inittab:
############################################################
T5:23:respawn:/usr/bin/c2faxrecv
############################################################

On my system c2faxrecv is started by /etc/init.d/capi4hylafax, so I don't need an entry in inittab.


/var/spool/hylafax/etc/config.faxCAPI should at least have these
lines:
...

Maybe changing this file directly is no problem with older (stable) versions of hylafax-server.
With the current versions in testing or unstable you are supposed to edit files in /etc/hylafax and these will be copied automatically to / var/spool/hylafax/etc when hylafax-server is started.
If the start script detects that a file in /var/spool/hylafax is newer than it's sibling in /etc/hylafax it will complain and ask to report a bug.


Fax Forwarding by Email is not yet functional, but maybe somebody may find what's wrong.

nano /var/spool/hylafax/etc/FaxDispatch

The same remark as for config.faxCAPI: I think you should edit the copy in /etc/hylafax not in /var/spool/hylafax/etc


############################################################
FILETYPE=pdf;
SENDTO=sengle@xxxxxxxxxxxx@orthhof.de;

Do you really have this SENDTO value?
If yes this clearly explains why you don't get mail.
Try a single email address first.
Two (or more) addresses might be a problem because the same variable SENDTO is used both as argument for sendmail and for a To: header. I think sendmail needs the addresses separated with spaces and in the To: header addresses are separated with a comma (,) followed by whitespace.


If it does not work with two addresses as SENDTO you might use some generic address like SENDTO=faxuser and add an alias to /etc/aliases.
faxuser: user1@xxxxxxxxxx, user2@xxxxxxxxxx


MIMENCODE=bin/uuencode_it;
############################################################


nano /var/spool/hylafax/bin/uuencode_it
############################################################
#!/bin/sh
# /var/spool/hylafax/bin/uuencode_it
uuencode -m $1 $1 | grep -E -v "^begin|^====$" 2>/dev/null
############################################################

In the current (unstable and probably testing) version of hylafax- server you can force the faxrcvd script to use uuencode instead of base64-encode if you add
MIMENCODE=/dev/null
UUENCODE=/usr/bin/uuencode
to FaxDispatch. (MIMENCODE must be anything that is not executable and UUENCODE must be executable and a working uuencode program.)


This function in faxrcvd will do the encoding:
encode()
{
if [ -x "$MIMENCODE" ]; then
$MIMENCODE <$1 2>$ERRORSTO
elif [ -x "$UUENCODE" ]; then
if [ "$ENCODING" = "base64" ]; then
$UUENCODE -m $1 $1 | grep -E -v "^begin|^====$" 2>$ERRORSTO
else
$UUENCODE $1 $1 | grep -E -v "^begin|^====$" 2>$ERRORSTO
fi
else
# Do not use "-x" for backward compatibility; even if it fails
# this is last chance to encode data, so there's nothing to lose.
$MIMENCODE <$1 2>$ERRORSTO
fi
}


But why do you want to use "uuencode -m" instead of "base64-encode"? Does it not work on your system?

I think with current versions of hylafax-server it should work if you don't set MIMENCODE or UUENCODE in FaxDispatch.



If you have capi4hylafax configured to listen at two or more MSNs you may want to send the mail do different addresses depending on the MSN.
capi4hylafax calls faxrcvd with the MSN as additional command line argument number 7.
Add
MSN="$7"
after
CIDNAME="$6"
where all command line arguments are assigned to variables and use something like this in FaxDispatch:
case "$MSN" in
12345|12346) SENDTO='user1@xxxxxxxxxx' ;;
12347) SENDTO='user2@xxxxxxxxxx' ;;
esac




Bodo

____________________ 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@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions