HylaFAX The world's most advanced open source fax server

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

[hylafax-users] attachments are zero bytes - problem with ubuntu / debian packages?



Hello everybody,

Having followed the list for several years, I've seen this question come up dozens of times, and I'm pretty sure the usual remedy is make sure metamail is installed and re-run faxsetup (so that the various mime-encoding variables in setup.cache get set properly - right?).

However doing that has not helped on this newly installed machine that I'm trying to set up. Here's what I've done (and re-done to make sure I didn't manually change some config file in a dumb way).


1. fresh install of xubuntu




2. update package list



3. I use apt-get to install hylyfax-server - this seems to inherently run faxsetup but with certain sections of it auto-answered by some scripting system
- relevant looking lines from the output (full output below):
...
Found Quoted-Printable encoder: qp-encode
...
[: 231: ==: unexpected operator




4. I re-ran faxsetup manually to see if it would get further - it didn't look any different, aside from allowing me to run faxaddmodem from within faxsetup



5. apt-get install metamail



6. faxsetup: the only apparent difference in the output is:
   Found Quoted-Printable encoder: /usr/bin/mimencode -q



7. I put this into /etc/hylafax/FaxDispatch (gets copied to /var/spool/hylafax/etc/FaxDispatch when /etc/init.d/hylafax restart is run)

NOTIFY_FAXMASTER=errors;
SENDTO=bob@xxxxxxxxxxx;
FILETYPE=pdf;



8. I use a different hylafax server to send myself a test fax. The e-mail comes in with (besides normal headers) only this:

--NextPart12759
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: Quoted-Printable

recvq/fax000000001.tif (ftp://johann:4559/recvq/fax000000001.tif):       =
                          =

         Sender: __
          Pages: 2
        Quality: Fine
           Size: North American Letter
       Received: 2007:09:30 14:30:22
Time To Receive: 0:26
    Signal Rate: 14400 bit/s
    Data Format: 2-D MR
  Error Correct: No
        CallID1: =

CallID2: =

    Received On: ttyS1
         CommID: 000000001 (ftp://johann:4559/log/c000000001)      =

--NextPart12759
Content-Type: application/pdf; name="fax000000001.pdf"
Content-Description: FAX Document
Content-Disposition: attachment; filename="fax000000001.pdf"
Content-Transfer-Encoding: base64

--NextPart12759--



9. If I manually try the faxrcvd command that I see in the incoming fax's log file:

root@johann:/var/spool/hylafax# bin/faxrcvd "recvq/fax000000001.tif" "ttyS1" "00
0000001" ""
Try `/usr/bin/uuencode --help' for more information.
root@johann:/var/spool/hylafax#




10. I tried uuencode --help and it says -m is for 64bit encoding. I tried changing all 3 lines in setup.cache that mention uuencode to uuencode -m, and sent another test fax (and/or re-run the faxrcvd command manually) but there is no difference, so I undid that -m change.



Has anyone seen anything similar and can suggest a fix?

Since I will have only rare access to this server, I thought I'd simplify things and work from packages instead of getting hylafax .tar.gz and installing from source.

The " 231 unexpected operator" is of course suspicious but I don't know what sub-process of the apt-get command that is part of, and googling that turned up only a few bsd topics that don't seem related.

Regards.

Martin



----------------------------------------------------------------------------


Here is the full output of all of the above steps (from #3 on):




root@johann:/home/martin# apt-get install hylafax-server
Reading package lists... Done
Building dependency tree Reading state information... Done
The following extra packages will be installed:
enscript hylafax-client liblockfile1 libpaper-utils libtiff-tools mailx
postfix sharutils
Suggested packages:
mgetty-viewfax hylafax-doc mgetty libtiff-opengl procmail postfix-mysql
postfix-pgsql postfix-ldap postfix-pcre sasl2-bin resolvconf postfix-cdb
Recommended packages:
metamail
The following NEW packages will be installed:
enscript hylafax-client hylafax-server liblockfile1 libpaper-utils
libtiff-tools mailx postfix sharutils
0 upgraded, 9 newly installed, 0 to remove and 84 not upgraded.
Need to get 1972kB/3235kB of archives.
After unpacking, 10.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Media change: please insert the disc labeled
'Xubuntu 7.04 _Feisty Fawn_ - Release i386 (20070415)'
in the drive '/cdrom/' and press enter


Get:1 http://ca.archive.ubuntu.com feisty/main libpaper-utils 1.1.21build1 [17.7
kB]
Get:2 http://ca.archive.ubuntu.com feisty/main enscript 1.6.4-11build1 [411kB]
Get:3 http://ca.archive.ubuntu.com feisty/universe hylafax-client 2:4.3.1-3 [383
kB]
Get:4 http://ca.archive.ubuntu.com feisty/main libtiff-tools 3.8.2-6 [171kB] Get:5 http://ca.archive.ubuntu.com feisty/main sharutils 1:4.2.1-15 [111kB] Get:6 http://ca.archive.ubuntu.com feisty/universe hylafax-server 2:4.3.1-3 [879
kB]
Fetched 1972kB in 6m33s (5011B/s) Preconfiguring packages ...
hostname: Unknown host
hostname: Unknown host
hostname: Unknown host
Selecting previously deselected package libpaper-utils.
(Reading database ... 80909 files and directories currently installed.)
Unpacking libpaper-utils (from .../libpaper-utils_1.1.21build1_i386.deb) ...
Selecting previously deselected package enscript.
Unpacking enscript (from .../enscript_1.6.4-11build1_i386.deb) ...
Setting up libpaper-utils (1.1.21build1) ...
Selecting previously deselected package hylafax-client.
(Reading database ... 81111 files and directories currently installed.)
Unpacking hylafax-client (from .../hylafax-client_2%3a4.3.1-3_i386.deb) ...
Selecting previously deselected package liblockfile1.
Unpacking liblockfile1 (from .../liblockfile1_1.06.1ubuntu1_i386.deb) ...
Selecting previously deselected package libtiff-tools.
Unpacking libtiff-tools (from .../libtiff-tools_3.8.2-6_i386.deb) ...
Selecting previously deselected package postfix.
Unpacking postfix (from .../postfix_2.3.8-2_i386.deb) ...
hostname: Unknown host
hostname: Unknown host
Selecting previously deselected package mailx.
Unpacking mailx (from .../mailx_8.1.2-0.20050715cvs-1ubuntu2_i386.deb) ...
Selecting previously deselected package sharutils.
Unpacking sharutils (from .../sharutils_1%3a4.2.1-15_i386.deb) ...
Selecting previously deselected package hylafax-server.
Unpacking hylafax-server (from .../hylafax-server_2%3a4.3.1-3_i386.deb) ...
Setting up enscript (1.6.4-11build1) ...


Setting up hylafax-client (4.3.1-3) ...

Creating config file /etc/hylafax/pagesizes with new version

Setting up liblockfile1 (1.06.1ubuntu1) ...
Setting up libtiff-tools (3.8.2-6) ...
Setting up postfix (2.3.8-2) ...
hostname: Unknown host
hostname: Unknown host
Adding group `postfix' (GID 119) ...
Done.
Adding system user `postfix' (UID 110) ...
Adding new user `postfix' (UID 110) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 120) ...
Done.
setting myhostname: johann.mydomain.ca
setting alias maps
setting alias database
changing /etc/mailname
setting myorigin
setting destinations: johann.mydomain.ca, localhost, localhost.localdomain, local
host
setting relayhost: smtp1.sympatico.ca
setting mynetworks: 127.0.0.0/8
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: loopback-only


Postfix is now set up with a default configuration.  If you need to make
changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
* Stopping Postfix Mail Transport Agent postfix [ OK ]
* Starting Postfix Mail Transport Agent postfix [ OK ]


Setting up mailx (8.1.2-0.20050715cvs-1ubuntu2) ...

Setting up sharutils (4.2.1-15) ...

Setting up hylafax-server (4.3.1-3) ...
Adding system user `faxmaster' (UID 111) ...
Adding new group `faxmaster' (GID 121) ...
Adding new user `faxmaster' (UID 111) with group `faxmaster' ...
Not creating home directory `/var/spool/hylafax'.

Setup program for HylaFAX (tm) 4.3.1.

Created for i686-pc-linux-gnu on Wed Dec 13 12:18:36 UTC 2006.

Found Quoted-Printable encoder: qp-encode
Checking system for proper server configuration.


Warning: /etc/hylafax/getty-link does not exist or is not an executable program!


The file:

/etc/hylafax/getty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/getty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.



Warning: /etc/hylafax/vgetty-link does not exist or is not an executable program
!


The file:

/etc/hylafax/vgetty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/vgetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.



Warning: /etc/hylafax/egetty-link does not exist or is not an executable program
!


The file:

/etc/hylafax/egetty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/egetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.


Make /var/spool/hylafax/bin/ps2fax a link to /var/spool/hylafax/bin/ps2fax.gs.


Make /var/spool/hylafax/bin/pdf2fax a link to /var/spool/hylafax/bin/pdf2fax.gs.


Update /var/spool/hylafax/status/any.info.

HylaFAX configuration parameters are:

       [1] Init script starts faxq:            yes
       [2] Init script starts hfaxd            yes
       [3] Start old protocol:                 no
       [4] Start paging protocol:              no
Are these ok [yes]?
Modem support functions written to /var/spool/hylafax/etc/setup.modem.
Configuration parameters written to /var/spool/hylafax/etc/setup.cache.

Restarting HylaFAX server processes.

You do not appear to have any modems configured for use.  Modems are
configured for use with HylaFAX with the faxaddmodem(8) command.
Do you want to run faxaddmodem to configure a modem [yes]?
Done verifying system setup.
Creating /etc/hylafax/setup.cache from /var/spool/hylafax/etc/setup.cache.
Creating /etc/hylafax/setup.modem from /var/spool/hylafax/etc/setup.modem.
/var/spool/hylafax
Hylafax is disabled, see /etc/default/hylafax
invoke-rc.d: initscript hylafax, action "stop" failed.

Setup program for HylaFAX (tm) 4.3.1.

Created for i686-pc-linux-gnu on Wed Dec 13 12:18:36 UTC 2006.

Reading cached parameters from /var/spool/hylafax/etc/setup.cache.

Found Quoted-Printable encoder: qp-encode
Checking system for proper server configuration.


Warning: /etc/hylafax/getty-link does not exist or is not an executable program!


The file:

/etc/hylafax/getty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/getty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.



Warning: /etc/hylafax/vgetty-link does not exist or is not an executable program
!


The file:

/etc/hylafax/vgetty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/vgetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.



Warning: /etc/hylafax/egetty-link does not exist or is not an executable program
!


The file:

/etc/hylafax/egetty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/egetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.


Make /var/spool/hylafax/bin/ps2fax a link to /var/spool/hylafax/bin/ps2fax.gs.


Make /var/spool/hylafax/bin/pdf2fax a link to /var/spool/hylafax/bin/pdf2fax.gs.


Update /var/spool/hylafax/status/any.info.

HylaFAX configuration parameters are:

       [1] Init script starts faxq:            yes
       [2] Init script starts hfaxd            yes
       [3] Start old protocol:                 no
       [4] Start paging protocol:              no
Are these ok [yes]?
Modem support functions written to /var/spool/hylafax/etc/setup.modem.
Configuration parameters written to /var/spool/hylafax/etc/setup.cache.

Restarting HylaFAX server processes.
Should I restart the HylaFAX server processes [yes]?
You do not appear to have any modems configured for use. Modems are
configured for use with HylaFAX with the faxaddmodem(8) command.
Do you want to run faxaddmodem to configure a modem [yes]?
Done verifying system setup.
Updating /etc/hylafax/setup.cache from /var/spool/hylafax/etc/setup.cache.
Updating /etc/hylafax/setup.modem from /var/spool/hylafax/etc/setup.modem.
/var/spool/hylafax
[: 231: ==: unexpected operator
* Stopping HylaFAX faxq [ OK ]
* Starting HylaFAX faxq [ OK ]


root@johann:/home/martin#








I re-ran faxsetup manually to see if it would get further:






root@johann:/var/spool/hylafax/etc# faxsetup

Setup program for HylaFAX (tm) 4.3.1.

Created for i686-pc-linux-gnu on Wed Dec 13 12:18:36 UTC 2006.

Reading cached parameters from /var/spool/hylafax/etc/setup.cache.

Found Quoted-Printable encoder: qp-encode
Checking system for proper server configuration.


Warning: /etc/hylafax/getty-link does not exist or is not an executable program!


The file:

/etc/hylafax/getty-link
does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/getty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.



Warning: /etc/hylafax/vgetty-link does not exist or is not an executable program
!


The file:

/etc/hylafax/vgetty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/vgetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.



Warning: /etc/hylafax/egetty-link does not exist or is not an executable program
!


The file:

/etc/hylafax/egetty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/egetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.


Make /var/spool/hylafax/bin/ps2fax a link to /var/spool/hylafax/bin/ps2fax.gs.


Make /var/spool/hylafax/bin/pdf2fax a link to /var/spool/hylafax/bin/pdf2fax.gs.


Update /var/spool/hylafax/status/any.info.

HylaFAX configuration parameters are:

       [1] Init script starts faxq:            yes
       [2] Init script starts hfaxd            yes
       [3] Start old protocol:                 no
       [4] Start paging protocol:              no
Are these ok [yes]?

Modem support functions written to /var/spool/hylafax/etc/setup.modem.
Configuration parameters written to /var/spool/hylafax/etc/setup.cache.
Restarting HylaFAX server processes.

You have a HylaFAX scheduler process running.  faxq will be
restarted shortly, as soon as some other work has been completed.
Can I terminate this faxq process (10062) [yes]?
Should I restart the HylaFAX server processes [yes]?

/etc/init.d/hylafax start
Not starting HylaFAX daemons since they are already running.

You do not appear to have any modems configured for use.  Modems are
configured for use with HylaFAX with the faxaddmodem(8) command.
Do you want to run faxaddmodem to configure a modem [yes]?
Serial port that modem is connected to [ttyS0]? ttyS1

Ok, time to setup a configuration file for the modem.  The manual
page config(5) may be useful during this process.  Also be aware
that at any time you can safely interrupt this procedure.

Reading scheduler config file /var/spool/hylafax/etc/config.

No existing configuration, let's do this from scratch.

Country code [1]?
Area code [415]? 416
Phone number of fax modem [+1.999.555.1212]? +1-416-555-1111
Local identification string (for TSI/CIG) ["NothingSetup"]? Laing
Long distance dialing prefix [1]?
International dialing prefix [011]?
Dial string rules file (relative to /var/spool/hylafax) [etc/dialrules]?
Tracing during normal server operation [1]?
Tracing during send and receive sessions [11]?
Protection mode for received facsimile [0600]? 644
Protection mode for session logs [0600]?
Protection mode for ttyS1 [0600]?
Rings to wait before answering [1]?
Modem speaker volume [off]?
Command line arguments to getty program ["-h %l dx_%s"]?
Pathname of TSI access control list file (relative to /var/spool/hylafax) [""]?
Pathname of Caller-ID access control list file (relative to /var/spool/hylafax)
[""]?
Tag line font file (relative to /var/spool/hylafax) [etc/lutRS18.pcf]?
Tag line format string ["From %%l|%c|Page %%P of %%T"]?
Time before purging a stale UUCP lock file (secs) [30]?
Hold UUCP lockfile during inbound data calls [Yes]?
Hold UUCP lockfile during inbound voice calls [Yes]?
Percent good lines to accept during copy quality checking [95]?
Max consecutive bad lines to accept during copy quality checking [5]?
Max number of pages to accept in a received facsimile [25]?
Syslog facility name for ServerTracing messages [daemon]?
Set UID to 0 to manipulate CLOCAL [""]?
Use available priority job scheduling mechanism [""]?


The non-default server configuration parameters are:

CountryCode:            1
AreaCode:               416
FAXNumber:              +1-416-555-1111
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules
SessionTracing:         11
RecvFileMode:           0644
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        Laing
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25

Are these ok [yes]? y

Now we are going to probe the tty port to figure out the type
of modem that is attached.  This takes a few seconds, so be patient.
Note that if you do not have the modem cabled to the port, or the
modem is turned off, this may hang (just go and cable up the modem
or turn it on, or whatever).
Probing for best speed to talk to modem: 38400 OK.

About fax classes:

The difference between fax classes has to do with how HylaFAX interacts
with the modem and the fax protocol features that are used when sending
or receiving faxes. One class isn't inherently better than another;
however, one probably will suit a user's needs better than others.
Class 1 relies on HylaFAX to perform the bulk of the fax protocol.
Class 2 relies on the modem to perform the bulk of the fax protocol.
Class 2.0 is similar to Class 2 but may include more features.
Class 1.0 is similar to Class 1 but may add V.34-fax capability.
Class 2.1 is similar to Class 2.0 but adds V.34-fax capability.
HylaFAX generally will have more features when using Class 1/1.0 than
when using most modems' Class 2 or Class 2.0 implementations. Generally
any problems encountered in Class 1/1.0 can be resolved by modifications
to HylaFAX, but usually any problems encountered in Class 2/2.0/2.1 will
require the modem manufacturer to resolve it.


If you're unsure and your modem supports it, use Class 1.

Hmm, this looks like a Class 1 modem.
Product code (ATI0) is "TP560 Data/Fax/Voice 56K Modem".
Other information (ATI3) is "TP560 Data/Fax/Voice 56K Modem".
DTE-DCE flow control scheme [default]?
Modem manufacturer is "Topic".
Modem model is "TP560".

Using prototype configuration file topic...

The modem configuration parameters are:

Class1PPMWaitCmd:       "<delay\0727>"
Class1TCFWaitCmd:       "<delay\0727>"
Class1EOPWaitCmd:       "<delay\0729>"
Class1SwitchingCmd:     "<delay\0727>"

Are these ok [yes]?

Creating new configuration file /var/spool/hylafax/etc/config.ttyS1...
Creating fifo /var/spool/hylafax/FIFO.ttyS1 for faxgetty... done.
Done setting up the modem configuration.

Checking /var/spool/hylafax/etc/config for consistency...
...some parameters are different.

The non-default scheduler parameters are:

CountryCode:            1
AreaCode:               416
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules

Are these ok [yes]?

Creating new configuration file /var/spool/hylafax/etc/config...
...saving current file as /var/spool/hylafax/etc/config.sav.

Don't forget to restart hylafax in order to run faxgetty on this new modem
line.
Creating /etc/hylafax/FaxDispatch from /var/spool/hylafax/etc/FaxDispatch.
Updating /etc/hylafax/config from /var/spool/hylafax/etc/config.
Creating /etc/hylafax/config.sav from /var/spool/hylafax/etc/config.sav.
Creating /etc/hylafax/config.ttyS1 from /var/spool/hylafax/etc/config.ttyS1.
Updating /etc/hylafax/setup.cache from /var/spool/hylafax/etc/setup.cache.
Updating /etc/hylafax/setup.modem from /var/spool/hylafax/etc/setup.modem.
/var/spool/hylafax/config
Do you want to run faxaddmodem to configure another modem [yes]? n

You do not appear to be using faxgetty to notify the HylaFAX scheduler
about new modems and/or their status.  This means that you must use the
faxmodem program to inform the new faxq process about the modems you
want to have scheduled by HylaFAX.  Beware that if you have modems that
require non-default capabilities specified to faxmodem then you should
read faxmodem(8) manual page and do this work yourself (since this
script is not intelligent enough to automatically figure out the modem
capabilities and supply the appropriate arguments).

Should I run faxmodem for each configured modem [yes]? n

Done verifying system setup.
/var/spool/hylafax
root@johann:/var/spool/hylafax/etc#






root@johann:/var/spool/hylafax/etc#
root@johann:/var/spool/hylafax/etc# ps -elf |grep fax
1 S uucp 10064 1 0 85 0 - 1132 - 14:09 ? 00:00:00 /usr/
sbin/hfaxd -i 4559
0 R root 10437 6193 0 78 0 - 720 - 14:16 pts/0 00:00:00 grep
fax
root@johann:/var/spool/hylafax/etc# ps -elf |grep fax
1 S uucp 10064 1 0 85 0 - 1132 - 14:09 ? 00:00:00 /usr/
sbin/hfaxd -i 4559
0 R root 10439 6193 0 78 0 - 720 - 14:16 pts/0 00:00:00 grep
fax
root@johann:/var/spool/hylafax/etc# /etc/init.d/hylafax restart
* Stopping HylaFAX faxq [ OK ]
* Starting HylaFAX faxq [ OK ]
root@johann:/var/spool/hylafax/etc#








root@johann:~# apt-get install metamail
Reading package lists... Done
Building dependency tree Reading state information... Done
The following NEW packages will be installed:
metamail
0 upgraded, 1 newly installed, 0 to remove and 84 not upgraded.
Need to get 154kB of archives.
After unpacking, 479kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com feisty/universe metamail 2.7-52 [154kB]
Fetched 154kB in 31s (4925B/s) Selecting previously deselected package metamail.
(Reading database ... 81824 files and directories currently installed.)
Unpacking metamail (from .../metamail_2.7-52_i386.deb) ...
Setting up metamail (2.7-52) ...









root@johann:~# faxsetup


Setup program for HylaFAX (tm) 4.3.1.

Created for i686-pc-linux-gnu on Wed Dec 13 12:18:36 UTC 2006.

Reading cached parameters from /var/spool/hylafax/etc/setup.cache.
Found Quoted-Printable encoder: /usr/bin/mimencode -q
Checking system for proper server configuration.


Warning: /etc/hylafax/getty-link does not exist or is not an executable program!


The file:

/etc/hylafax/getty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/getty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.



Warning: /etc/hylafax/vgetty-link does not exist or is not an executable program
!


The file:

/etc/hylafax/vgetty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/vgetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.



Warning: /etc/hylafax/egetty-link does not exist or is not an executable program
!


The file:

/etc/hylafax/egetty-link

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /etc/hylafax/egetty-link that points to your program
then you must reconfigure and rebuild HylaFAX from source code.


Make /var/spool/hylafax/bin/ps2fax a link to /var/spool/hylafax/bin/ps2fax.gs.


Make /var/spool/hylafax/bin/pdf2fax a link to /var/spool/hylafax/bin/pdf2fax.gs.


Update /var/spool/hylafax/status/any.info.
       HylaFAX configuration parameters are:

       [1] Init script starts faxq:            yes
       [2] Init script starts hfaxd            yes
       [3] Start old protocol:                 no
       [4] Start paging protocol:              no
Are these ok [yes]?

Modem support functions written to /var/spool/hylafax/etc/setup.modem.
Configuration parameters written to /var/spool/hylafax/etc/setup.cache.

Restarting HylaFAX server processes.

You have a HylaFAX scheduler process running.  faxq will be
restarted shortly, as soon as some other work has been completed.
Can I terminate this faxq process (11489) [yes]?
Should I restart the HylaFAX server processes [yes]?

/etc/init.d/hylafax start
Not starting HylaFAX daemons since they are already running.

Looks like you have some faxgetty processes running (PIDs are):

11499

It is usually a good idea to restart these processes after running
faxsetup; especially if have just installed new software.  If these
processes are being started by init(8) then sending each of them a
QUIT message with the faxquit command should cause them to be restarted.
Is it ok to send a QUIT command to each process [yes]?
/usr/sbin/faxquit ttyS1

Done verifying system setup.
Updating /etc/hylafax/setup.cache from /var/spool/hylafax/etc/setup.cache.
Updating /etc/hylafax/setup.modem from /var/spool/hylafax/etc/setup.modem.
/var/spool/hylafax
root@johann:~#







I put this into /etc/hylafax/FaxDispatch (gets copied to /var/spool/hylafax/etc/
FaxDispatch when /etc/init.d/hylafax restart is run)


NOTIFY_FAXMASTER=errors;
SENDTO=bob@xxxxxxxxxxx;
FILETYPE=pdf;







The e-mail comes in with (besides normal headers) only this:


--NextPart12759 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: Quoted-Printable

recvq/fax000000001.tif (ftp://johann:4559/recvq/fax000000001.tif):       =
                          =

         Sender: __
          Pages: 2
        Quality: Fine
           Size: North American Letter
       Received: 2007:09:30 14:30:22
Time To Receive: 0:26
    Signal Rate: 14400 bit/s
    Data Format: 2-D MR
  Error Correct: No
        CallID1: =

CallID2: =

    Received On: ttyS1
         CommID: 000000001 (ftp://johann:4559/log/c000000001)      =

--NextPart12759
Content-Type: application/pdf; name="fax000000001.pdf"
Content-Description: FAX Document
Content-Disposition: attachment; filename="fax000000001.pdf"
Content-Transfer-Encoding: base64

--NextPart12759--





If I manually try the faxrcvd command that I see in the incoming fax's log file:


root@johann:/var/spool/hylafax# bin/faxrcvd "recvq/fax000000001.tif" "ttyS1" "00
0000001" ""
Try `/usr/bin/uuencode --help' for more information.
root@johann:/var/spool/hylafax#





____________________ 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