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] if your email notification does not work...



Hi Again,

I found that the sendmail command had nothing after the -t, so I stuck my
address there to see what it was actually trying to send.

This is the email I am now receiving:

Your  job to  was completed successfully.

       Dialogs:  (exchanges with remote device)
         Calls:  (total phone calls placed)
         Modem: 
Submitted From: 
         JobID: 
       GroupID: 
        CommID: c

Processing time was 1:13.

Andrew Xenides
Web Developer
EscapeNet 
465 South Road
Keswick SA 5035
T: (08) 8292 5200
F: (08) 8292 5299
E: andrew@xxxxxxxxxxxxxxxx
W: http://www.esc.net.au

 

> -----Original Message-----
> From: hylafax-users-bounce@xxxxxxxxxxx 
> [mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Andrew Xenides
> Sent: Friday, 18 March 2005 10:14 AM
> To: hylafax-users@xxxxxxxxxxx
> Subject: Re: [hylafax-users] if your email notification does 
> not work...
> 
> Hi,
> 
> When I run the sh -x notify command, I get this output to stdout
> 
> + [ 3 != 3 -a 3 != 4 ]
> + test -f etc/setup.cache
> + QFILE=doneq/q39
> + WHY=done
> + JTIME=1:13
> + NEXT=??:??
> + ENCODING=base64
> + MIMENCODE=mimencode
> + TTYCMD=tty
> + . etc/setup.cache
> + AWK=/usr/bin/nawk
> + BIN=/usr/local/bin
> + CAT=/bin/cat
> + CHGRP=/usr/bin/chgrp
> + CHMOD=/bin/chmod
> + CHOWN=/usr/sbin/chown
> + CP=/bin/cp
> + DPSRIP=/usr/local/sbin/ps2fax.exe
> + ECHO=/bin/echo
> + ENCODING=x-uuencode
> + FAXQ_SERVER=yes
> +
> FONTPATH=/usr/local/share/ghostscript/7.07/lib:/usr/local/shar
> e/ghostscript/
> fonts
> + FUSER=fuser
> + GREP=/usr/bin/grep
> + GSRIP=/usr/local/bin/gs
> + HFAXD_OLD_PROTOCOL=no
> + HFAXD_SERVER=yes
> + HFAXD_SNPP_SERVER=no
> + IMPRIP=/usr/lib/print/psrip
> + LIBDATA=/usr/local/lib/fax
> + LIBEXEC=/usr/local/sbin
> + LN=/bin/ln
> + MANDIR=/usr/local/man
> + MIMENCODE=base64-encode
> + MKFIFO=/usr/bin/mkfifo
> + MV=/bin/mv
> + PATH=/usr/sbin:/bin:/usr/bin:/etc:/usr/local/bin
> + PATHEGETTY=/bin/egetty
> + PATHGETTY=/usr/libexec/getty
> + PATHVGETTY=/bin/vgetty
> + PSPACKAGE=gs
> + RM=/bin/rm
> + SBIN=/usr/local/sbin
> + SCRIPT_SH=/bin/sh
> + SED=/usr/bin/sed
> + SENDMAIL=/usr/sbin/sendmail
> + SPOOL=/var/spool/hylafax
> + SYSVINIT=
> + TARGET=i386-unknown-freebsd5.3
> + TIFFBIN=/usr/local/bin
> + TTYCMD=/usr/bin/tty
> + UUCP_LOCKDIR=/var/spool/lock
> + UUCP_LOCKTYPE=ascii
> + UUENCODE=/usr/bin/b64encode
> + FILE=file
> + INFO=/usr/local/sbin/faxinfo
> + TIFFINFO=tiffinfo
> + FAX2PS=/usr/local/bin/fax2ps
> + TIFF2PS=tiff2ps
> + TIFF2PDF=bin/tiff2pdf
> + PS2PDF=ps2pdf
> + PDF2PS=pdf2ps
> + PS2FAX=bin/ps2fax
> + PDF2FAX=bin/pdf2fax
> + TOADDR=andrew@xxxxxxxxxxxxxxxx
> + FROMADDR=fax@xxxxxxxxxx
> + NOTIFY_FAXMASTER=yes
> + RETURNFILETYPE=
> + MIMEBOUNDARY=NextPart11686
> + RETURNTECHINFO=yes
> + RETURNTRANSCRIPT=no
> + /usr/bin/tty
> + /usr/bin/tty
> + ERRORSTO=/dev/ttyp0
> + parseQfile
> + /usr/bin/nawk -F:
>     function p(varname,val)
>     {
>         # print out variable name and value so we can eval it 
> in the shell
>         printf "%s=\"%s\"\n",varname,val
>     }
>     BEGIN {
>         nfiles = 0;
>         npins = 0;
>         pagewidth = 0;
>         pagelength = 0;
>         resolution = 0;
>         jobtype = "facsimile";
>         signalrate = "unknown";
>         dataformat = "unknown";
>         doneop = "default";
>         pagernum = "unknown";
>         commid = "";
>     }
>     /^jobid/    { p("jobid",$2); }
>     /^groupid/    { p("groupid", $2); }
>     /^state/    { p("state", $2+0); }
>     /^doneop/    { p("doneop", $2); }
>     /^number/    { p("number", $2); }
>     /^external/    { p("number", $2); }        # override 
> unprocessed number
>     /^sender/    { p("sender", $2); }
>     /^mailaddr/    { p("mailaddr", $2); }
>     /^owner/    { p("owner", $2); }
>     /^jobtag/    { jobtag = $0; sub("jobtag:", "", jobtag); 
> p("jobtag",
> jobtag)}
>     /^jobtype/    { p("jobtype", $2); }
>     # status needs to be used in the shell as faxstatus since 
> status is
> reserved word
>     /^status/    { status = $0; sub("status:", "", status);
>               if (status ~ /\\$/) {
>                   sub(/\\$/, "\\n", status);
>                   while (getline > 0) {
>                   status = status $0;
>                   gsub("*","",status);
>                   sub(/\\$/, "\\n", status);
>                   if ($0 !~ /\\$/)
>                       break;
>                   }
>               } p("faxstatus", status);
>             }
>     /^resolution/    { p("resolution", $2); }
>     /^npages/    { p("npages", $2); }
>     /^totpages/    { p("totpages", $2); }
>     /^dirnum/    { p("dirnum", $2); }
>     /^commid/    { p("commid", $2); }
>     /^ntries/    { p("ntries", $2); }
>     /^ndials/    { p("ndials", $2); }
>     /^pagewidth/    { p("pagewidth", $2); }
>     /^pagelength/    { p("pagelength", $2); }
>     /^signalrate/    { p("signalrate", $2); }
>     /^dataformat/    { p("dataformat", $2); }
>     /^modem/    { p("modem", $2); }
>     /^totdials/    { p("totdials", $2); }
>     /^tottries/    { p("tottries", $2); }
>     /^client/    { p("client", $2); }
>     /^[!]*post/    { p("files_"++nfiles, $4); }
>     /^[!]*tiff/    { p("files_"++nfiles, $4); }
>     /^[!]*pdf/    { p("files_"++nfiles, $4); }
>     /^[!]*pcl/    { p("files_"++nfiles, $4); }
>     /^page:/    { p("pins_"++npins, $4); }
>     /^data:/    { p("files_"++nfiles, $4); }
>     /^poll/        { p("poll", " -p"); }
>     END { p("nfiles", nfiles); p("npins", npins) }  doneq/q39
> /usr/bin/nawk: illegal primary in regular expression * at
>  source line number 37
>  context is
>                           >>>  gsub("*","",status) <<< ;
> + eval
> + setCustomValues
> + [ -f etc/FaxNotify ]
> + adjustNotifyFaxMaster
> + NOTIFY_FAXMASTER=yes
> + [ -z  ]
> + jobtag= job
> + [  = default ]
> + [  = pager ]
> + [ done = done ]
> + putHeaders  job  to  completed
> + putMimeSetup
> + echo MIME-Version: 1.0
> + echo Content-Type: Multipart/Mixed; Boundary="NextPart11686"
> + echo Content-Transfer-Encoding: 7bit
> + echo To:
> + echo Subject:  job  to  completed
> + putMimeTextHeader
> + echo
> + echo This is a multi-part message in MIME format.
> + echo
> + echo --NextPart11686
> + echo Content-Type: text/plain; charset=us-ascii
> + echo Content-Transfer-Encoding: 7bit
> + echo
> + printf Your  job to
> + /usr/sbin/sendmail -ffax@xxxxxxxxxx -oi -t
> + echo  was completed successfully.
> + echo
> + [  = facsimile ]
> + [ yes = yes ]
> + [  != 1 ]
> + printItem %s (exchanges with remote device) Dialogs
> + FMT=%s (exchanges with remote device)
> + TAG=Dialogs
> + VALUE=
> + printf %14s: %s (exchanges with remote device)\n Dialogs
> + [  != 1 ]
> + printItem %s (total phone calls placed) Calls
> + FMT=%s (total phone calls placed)
> + TAG=Calls
> + VALUE=
> + printf %14s: %s (total phone calls placed)\n Calls
> + [  != any ]
> + printItem %s Modem
> + FMT=%s
> + TAG=Modem
> + VALUE=
> + printf %14s: %s\n Modem
> + printItem %s Submitted From
> + FMT=%s
> + TAG=Submitted From
> + VALUE=
> + printf %14s: %s\n Submitted From
> + printItem %s JobID
> + FMT=%s
> + TAG=JobID
> + VALUE=
> + printf %14s: %s\n JobID
> + printItem %s GroupID
> + FMT=%s
> + TAG=GroupID
> + VALUE=
> + printf %14s: %s\n GroupID
> + printItem %s CommID c
> + FMT=%s
> + TAG=CommID
> + VALUE=c
> + printf %14s: %s\n CommID c
> + printf \nProcessing time was %s.\n 1:13
> + [ -n  -a no = yes ]
> + [ -n  ]
> + echo
> + echo --NextPart11686--
> + [ yes = yes ]
> + /usr/sbin/sendmail -ffax@xxxxxxxxxx -oi -t
> + [ -z  ]
> + jobtag= job
> + echo To: andrew@xxxxxxxxxxxxxxxx
> + echo Subject:  job  to  done
> + echo
> + COMFILE=log/c
> + [ -f log/c ]
> + printf     No transcript available
> + [ -n  ]
> + echo .
> 
> And then the /tmp/mylog file says
> 
> No recipient addresses found in header
> 
> So the only email I get is to the faxmaster saying job to done, no
> transcript available.
> 
> Any ideas
> 
> 
> 
> > -----Original Message-----
> > From: hylafax-users-bounce@xxxxxxxxxxx 
> > [mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Giulio Orsero
> > Sent: Thursday, 17 March 2005 1:39 AM
> > To: hylafax-users@xxxxxxxxxxx
> > Subject: [hylafax-users] if your email notification does not work...
> > 
> > Help yourself with the following:
> > 
> > 1) Look at the system log (in Linux this usually is 
> > /var/log/messages) for
> > the line(s) reporting the notification.
> > 
> > For sent faxes it's something like:
> > 
> > FaxQueuer[19442]: NOTIFY: bin/notify "doneq/q27191" "done" "1:13"
> > FaxQueuer[19442]: NOTIFY exit status: 0 (9601)
> > 
> > For received faxes, it's something like:
> > 
> > FaxGetty[19466]: RECV FAX: bin/faxrcvd 
> > "recvq/fax000000592.tif" "ttyS5"
> > "000038277" ""
> > 
> > If you don't see it, then there's something wrong with your 
> > config, or maybe
> > you actually didn't send/receive a fax.
> > 
> > 2) You see the above lines but you don't get email, you get 
> > broken email, or
> > similar, do the following:
> > 
> > as root, go into the HylaFAX spool dir, ie:
> > # cd /var/spool/hylafax
> > 
> > then execute the command line you read above adding "sh -x" at the
> > beginning:
> > 
> > # sh -x bin/notify "doneq/q27191" "done" "1:13"
> > or
> > # sh -x bin/notify "doneq/q27191" "done" "1:13" > /tmp/mylog 2>&1
> > # less /tmp/mylog
> > 
> > # sh -x bin/faxrcvd "recvq/fax000000592.tif" "ttyS5" "000038277" ""
> > 
> > Usually you'll see everything necessary to debug your 
> > problem; if this is
> > not the case then try posting the output to the list.
> > 
> > In HylaFAX versions older than 4.2.1 bin/notify was a wrapper 
> > for an awk
> > script, in that case you won't see much.
> > 
> > -- 
> > giulioo@xxxxxxxxx
> > 
> > ____________________ 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*
> > 
> > 
> 
> 
> ____________________ 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*
> 
> 


____________________ 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