HylaFAX The world's most advanced open source fax server |
I ran: # cat ~/email2 |faxmail -v -T
-d 12345 And the output is below. HEADER From
DFinnerty@xxxxxxxxxxxxxxxxx Wed May 19 11: 46:46 2010 HEADER Return-Path:
<DFinnerty@xxxxxxxxxxxxxxxxx> HEADER Received: from
mail.caseygrp.com (mail.caseygrp.com [172.16.0.27]) +HEADER Received: by
fax01 (8.13.8/8.13.8) with ESMTP id o4JFkjwn019232 +HEADER Received: for
<root@xxxxxxxxxxxxxxxxxxxx>; Wed, 19 May 2010 11:46:45 -0400 HEADER X-MimeOLE: Produced By
Microsoft Exchange V6.5 HEADER Content-class:
urn:content-classes:message HEADER MIME-Version: 1.0 HEADER Content-Type:
multipart/mixed; +HEADER Content-Type: boundary="----_=_NextPart_001_01CAF76A.7C1FB2C9" HEADER Subject: test HEADER Date: Wed, 19 May 2010
11:46:44 -0400 HEADER Message-ID:
<46A65876363E5F41B60FA29E52B3691AF6BE4B@xxxxxxxxxxxxxxxxxxxxxxxx> HEADER X-MS-Has-Attach: yes HEADER Thread-Topic: test HEADER Thread-Index:
Acr3Y/4sR1Zp0Ei1S1yAbTtY1Ver8Q== HEADER From: "David
Finnerty" <DFinnerty@xxxxxxxxxxxxxxxxx> HEADER To:
<root@xxxxxxxxxxxxxxxxxxxx> faxmail: This is a MIME message MIME part (line 21):
multipart/mixed charset=us-ascii encoding=7bit HEADER Content-Type: text/plain; +HEADER Content-Type: charset="iso-8859-1" HEADER
Content-Transfer-Encoding: quoted-printable MIME part (line 28): text/plain
charset=iso-8859-1 encoding=quoted-printable HEADER Content-Type:
application/msword; +HEADER Content-Type: name="todo.doc" HEADER
Content-Transfer-Encoding: base64 HEADER Content-Description:
todo.doc HEADER Content-Disposition:
attachment; +HEADER Content-Disposition: filename="todo.doc" MIME part (line 47):
application/msword charset=us-ascii encoding=base64 Trying localhost [2] (127.0.0.1)
at port 4559... Connected to
localhost.localdomain. 220 fax01 server (HylaFAX (tm)
Version 6.0.4) ready. -> USER root 230 User root logged in. match against (..., 512) rule: offset 0 string =
"%!" -- success (result postscript, rule "") match against (..., 512) rule: offset 0 string =
"%!" -- failed (comparison) rule: offset 0 long = 0x4d4d --
failed (comparison) rule: offset 0 long = 0x4949 --
failed (comparison) rule: offset 0 long = 0x1da --
failed (comparison) rule: offset 0 long = 0x1f1e --
failed (comparison) rule: offset 0 long = 0x1f9d --
failed (comparison) rule: offset 0 long = 0x506 --
failed (comparison) rule: offset 0 long = 0x5343 --
failed (comparison) rule: offset 0 long = 0xf702 --
failed (comparison) rule: offset 0 string =
"GIF" -- failed (comparison) rule: offset 0 tiff = 0x59a66a95
-- failed (comparison) rule: offset 0 string =
"%PDF" -- failed (comparison) rule: offset 0x840 string =
"MSWordDo" -- failed (offset past data) rule: offset 0x820 string =
"Microsoft Exel" -- failed (offset past data) rule: offset 0 string =
"pk" -- failed (comparison) rule: offset 0 long = 0xd0cf --
success (result postscript, rule "doc2ps %i %o") CONVERT "doc2ps
'/tmp//faxmail.RuMOgs/part.2' '/tmp//sndfaxx0zdRm'" May 19, 2010 12:17:37 PM
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
connect INFO: connected May 19, 2010 12:17:37 PM
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
disposing INFO: disconnected Exception in thread
"main" java.lang.IllegalArgumentException: unknown document format
for file: /tmp/faxmail.RuMOgs/part.2 at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.guessDocumentFormat(AbstractOpenOfficeDocumentConverter.java:121) at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:93) at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:74) at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:70) at
com.artofsolving.jodconverter.cli.ConvertDocument.convertOne(ConvertDocument.java:154) at
com.artofsolving.jodconverter.cli.ConvertDocument.main(ConvertDocument.java:139) Error: Couldn't open file
'/tmp//faxmail.RuMOgs/part.pdf' Apply DisplayNumber rules to
"12345" --> return result
"12345" COVER SHEET
"/usr/local/bin/faxcover -f 'David Finnerty' -M
'DFinnerty@xxxxxxxxxxxxxxxxx' -n '12345' -r 'test' -s 'default' -p '1'" -> FORM PS 200 Format set to PS. -> TYPE I 200 Type set to Image. SEND compressed data, 3995 bytes -> EPRT |1|127.0.0.1|48480| 200 EPRT command successful. -> MODE Z 200 Mode set to ZIP. -> STOT 150 FILE: /tmp/doc174.ps
(Opening new data connection). SEND 1536 bytes transmitted
(2.6x compression) 226 Transfer complete (FILE:
/tmp/doc174.ps). faxmail: unable to process
message: /tmp//sndfaxx0zdRm:
Can not open: No such file or directory. If I send text and an attached text
file it goes and becomes a fax. I have put doc and pdf
attachments and they failed. Any insight on this issue would
be great. From: hylafax-users-bounce@xxxxxxxxxxx
[mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of David Finnerty I am in the middle of getting faxmail set up to handle in
bound email to name@#######.fax.domain.com I am on hylafax 6.04 and I am running Centos 5.4 and have
sendmail configured to handle inbound and outbound mail. I have also done this step # mailfax - email to fax gateway for sendmail # # This file should be installed as /usr/local/lib/fax/mailfax # (or whatever is specified in the sendmail.cf file). # # Edit your sendmail configuration. Include the
following # mailer definition (or similar): # # Mfax, P=/usr/local/lib/fax/mailfax, F=DFMShu, M=100000, # A=mailfax $u $h $f # # add the following address rewriting rule to rule set 0: # # # forward FAX messages to HylaFAX software #
R$+<@$+.FAX> $#fax
$@ $2 $:
$1
user@xxxxxxxx # # and arrange things so that rule set 3 will not attempt a
host map lookup # on FAX addresses. If you are using the .cf file
generated by the # m4 macros as your starting point (as implemented in
sendmail 8.8.8), # this can be done by adding these lines: # # # Make FAX a pseudo domain, to avoid failed DNS lookups # CPFAX # And it work. If I send a plain text message to
the dave@xxxxxxxxxxxxxx it will
turn it into a fax and submit it to hylafax and send it. When I add an attachment it fails. If I do sendfax –d 123 file file file file That works. It identifies the file and converts it and
sends it to hylafax andit all works. I am not sure why sendfax can convert but faxmail cant. I am also not sure where to look or even if faxmail creates
a logfile. Any help is appreacited. -- Dave Finnerty, |