HylaFAX The world's most advanced open source fax server

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

[hylafax-users] faxmail screws up ps files



Alohá!

For some strange reason faxmail or hylafax itself seem to process certain ps files (converting themadding a blank page at the beginning) although they should just natively get piped through. Unfortunately I can't pinpoint what actually happens as there is not too much info in any of the files in /var/spool/hylafax/log

Inside a perl script faxmail is called:

open (MAIL, "|/usr/bin/faxmail -v -n -d $faxno2 > /tmp/faxjob$$ 2>&1") || die print "Can't open /usr/bin/faxmail -n -d $faxno!\n";

which should simply hand things over to hylafax. The -v option shouldn't have too much of an effect, removing it for testing purposes didn't change the output.

Strangely enough 'sendfax -n -d <number> <psfile>' is no problem, everything works fine. It's only that when a fax comes in via mail that it get's screwed up.

The syslog states:

May 15 13:02:45 localhost HylaFAX[16096]: servertracing = 0xfffff (line 56)
May 15 13:02:45 localhost HylaFAX[16096]: <--- 220 localhost.localdomain server (HylaFAX (tm) Version 4.2.1) ready.
May 15 13:02:45 localhost HylaFAX[16096]: HylaFAX INET connection from localhost.localdomain [127.0.0.1]
May 15 13:02:45 localhost HylaFAX[16096]: command: USER nobody
May 15 13:02:45 localhost HylaFAX[16096]: USER nobody
May 15 13:02:45 localhost HylaFAX[16096]: <--- 230 User nobody logged in.
May 15 13:02:45 localhost HylaFAX[16096]: FAX LOGIN FROM localhost.localdomain [127.0.0.1], nobody
May 15 13:02:45 localhost HylaFAX[16096]: command: TZONE LOCAL
May 15 13:02:45 localhost HylaFAX[16096]: TZONE LOCAL
May 15 13:02:45 localhost HylaFAX[16096]: <--- 200 Using time values in CET.
May 15 13:02:45 localhost HylaFAX[16096]: command: TYPE I
May 15 13:02:45 localhost HylaFAX[16096]: TYPE I
May 15 13:02:45 localhost HylaFAX[16096]: <--- 200 Type set to Image.
May 15 13:02:45 localhost HylaFAX[16096]: command: PORT 127,0,0,1,236,164
May 15 13:02:45 localhost HylaFAX[16096]: PORT 127.0.0.1;42220
May 15 13:02:45 localhost HylaFAX[16096]: <--- 200 PORT command successful.
May 15 13:02:45 localhost HylaFAX[16096]: command: MODE Z
May 15 13:02:45 localhost HylaFAX[16096]: MODE Z
May 15 13:02:45 localhost HylaFAX[16096]: <--- 200 Mode set to ZIP.
May 15 13:02:45 localhost HylaFAX[16096]: command: STOT
May 15 13:02:45 localhost HylaFAX[16096]: STOT
May 15 13:02:45 localhost HylaFAX[16096]: Filesystem has SysV-style file creation semantics.
May 15 13:02:45 localhost HylaFAX[16096]: <--- 150 FILE: /tmp/doc2433.ps (Opening new data connection).
May 15 13:02:45 localhost HylaFAX[16096]: <--- 226 Transfer complete (FILE: /tmp/doc2433.ps).
May 15 13:02:45 localhost HylaFAX[16096]: command: JNEW
May 15 13:02:45 localhost HylaFAX[16096]: <--- 200 New job created: jobid: 2429 groupid: 2429.
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM FROMUSER "faxadmin"
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 FROMUSER set to "faxadmin".
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM LASTTIME 000259
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 LASTTIME set to 000259.
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM MAXDIALS 12
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 MAXDIALS set to 12.
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM MAXTRIES 3
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 MAXTRIES set to 3.
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM SCHEDPRI 127
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 SCHEDPRI set to 127.
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM DIALSTRING "<faxnumber_removed>"
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 DIALSTRING set to "<faxnumber_removed>".
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM NOTIFYADDR "faxadmin@charon"
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 NOTIFYADDR set to "faxadmin@charon".
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM VRES 98
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 VRES set to 98.
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM PAGEWIDTH 209
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 PAGEWIDTH set to 209.
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM PAGELENGTH 296
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 PAGELENGTH set to 296.
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM NOTIFY "none"
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 NOTIFY set to "none".
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM PAGECHOP "default"
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 PAGECHOP set to "default".
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM CHOPTHRESHOLD 3
May 15 13:02:45 localhost HylaFAX[16096]: <--- 213 CHOPTHRESHOLD set to 3.
May 15 13:02:45 localhost HylaFAX[16096]: command: JPARM DOCUMENT /tmp/doc2433.ps
May 15 13:02:45 localhost HylaFAX[16096]: <--- 200 Added document /tmp/doc2433.ps as docq/doc2433.ps.2429.
May 15 13:02:45 localhost HylaFAX[16096]: command: JSUBM
May 15 13:02:45 localhost FaxQueuer[8554]: SUBMIT JOB 2429
May 15 13:02:45 localhost HylaFAX[16096]: <--- 200 Job 2429 submitted.
May 15 13:02:45 localhost postfix/local[16091]: 1B1805641AE: to=<fax@charon>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/perl /fax/hylafax.pl)
May 15 13:02:45 localhost postfix/qmgr[2076]: 1B1805641AE: removed
May 15 13:02:49 localhost postfix/smtpd[16087]: disconnect from localhost.localdomain[127.0.0.1]
May 15 13:02:49 localhost fetchmail[2955]: sleeping at Mon 15 May 2006 01:02:49 PM CEST
May 15 13:02:56 localhost kernel: capilib_new_ncci: kcapi: appl 3 ncci 0x10101 up
May 15 13:03:53 localhost kernel: kcapi: appl 3 ncci 0x10101 down
May 15 13:03:53 localhost kernel: kcapi: handle_message: applid 3 state released (LISTEN_CONF ID=003 #0x0000 LEN=0014
May 15 13:03:53 localhost kernel: Controller/PLCI/NCCI = 0x1
May 15 13:03:53 localhost kernel: Info = 0x0
May 15 13:03:53 localhost kernel: )


Grabbing the processed file from /var/spool/hylafax/docq then shows two files, the first containing zero pages and the second containing the actual fax.
Opening the second processed file with gsview produces the two error messages in the attachment (sorry, couldn't cut'n'paste that text for some reason)


Any ideas, any place I should look for logs or messages, any more info I can provide?

TIA

Martin

GIF image

GIF image




Project hosted by iFAX Solutions