[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hylafax
Subject:    Re: [hylafax-users] if your email notification does not work...
From:       "Andrew Xenides" <andrew () staff ! esc ! net ! au>
Date:       2005-04-19 23:54:40
Message-ID: 20050419235741.1A7C561C2B8 () sr-gw ! esc ! net ! au
[Download RAW message or body]

it just looks as if the user that runs the notify from send fax doesnt have
permission to execute sendmail
 

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

 


  _____  

From: hylafax-users-bounce@hylafax.org
[mailto:hylafax-users-bounce@hylafax.org] On Behalf Of Gary Lucy
Sent: Tuesday, 19 April 2005 10:15 PM
To: Andrew Xenides
Cc: hylafax-users@hylafax.org
Subject: Re: [hylafax-users] if your email notification does not work...


No, go.  I had thought of that.  It is owned by user UUCP and group is UUCP
and has the permissions as 755.  Any other suggestions would be great.  When
I pipe the output to a log file instead using steps 1 - 4 suggested by
Giulio as seen below, I get a the following error:

bin/notify: line 842: /usr/sbin/sendmail: Permission denied
cat: write error: Broken pipe

1)

add the following as the 2nd line of bin/notify



set -x

exec 1> /tmp/notify.log 2>&1



2)

do sendfax -D .....



3) 

wait for "notify" log in /var/log/messages



4)

Look at /tmp/notify.log, particularly for differences between this file and

the /tmp/mylog created manually.


Andrew Xenides wrote: 

Hi Gary



I had the exact same problem last week. Somehow my notify script became

owned by root (probably from editing it and making backups etc) 



Change it back to the same as the other bin files and you should be fine.

Also make sures its chmodded as 755



Regards



Andrew Xenides

Web Developer

EscapeNet 

465 South Road

Keswick SA 5035

T: (08) 8292 5200

F: (08) 8292 5299

E: andrew@staff.esc.net.au

W: http://www.esc.net.au



 



  

-----Original Message-----

From: hylafax-users-bounce@hylafax.org 

[mailto:hylafax-users-bounce@hylafax.org] On Behalf Of Gary Lucy

Sent: Monday, 18 April 2005 11:58 PM

To: hylafax-users@hylafax.org

Subject: Re: [hylafax-users] if your email notification does 

not work...



I can't seem to get the notification to send e-mail.



I have used the sh -x notify command and get all of the expected

output, both to the screen as well as in an e-mail.  So 

manually running

the notify script works perfectly.  When it is called from 

sendfax with

the following command

sendfax -n -D -d 1234567 somefile

the fax sends perfectly, but I do not get any notification.

I am running Redhat Enterprise 3 using

sendmail 8.13 and Hylafax version 4.2.1



Any suggestions greatly appreciated.



QUOTE FROM LIST FOLLOWS

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)



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





____________________ 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@hylafax.org < /dev/null

  *To learn about commercial HylaFAX(tm) support, mail 

sales@ifax.com.*







    







____________________ 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@hylafax.org < /dev/null

  *To learn about commercial HylaFAX(tm) support, mail sales@ifax.com.*

  


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=346135323-19042005><FONT face=Arial 
color=#0000ff size=2>it just looks as if the user that runs the notify from send 
fax doesnt have permission to execute sendmail</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<P class=MsoNormal align=left><STRONG><B><FONT face=Arial color=navy 
size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-no-proof: yes">Andrew 
Xenides<BR></SPAN></FONT></B></STRONG><STRONG><B><FONT face=Arial color=navy 
size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-no-proof: yes">Web 
Developer<BR></SPAN></FONT></B></STRONG><STRONG><B><FONT face=Arial color=navy 
size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-no-proof: yes">EscapeNet \
 <BR></SPAN></FONT></B></STRONG><?xml:namespace prefix = st1 ns = 
"urn:schemas-microsoft-com:office:smarttags" /><st1:Street><st1:address 
style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: \
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"><STRONG><B><FONT  \
face=Arial color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial; mso-no-proof: yes">465  South 
Road<BR></SPAN></FONT></B></STRONG></st1:address></st1:Street><STRONG><B><FONT 
face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-no-proof: yes">Keswick 
SA 5035<BR></SPAN></FONT></B></STRONG><STRONG><B><FONT face=Arial color=navy 
size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-no-proof: yes">T: 
(08) 8292 5200<BR></SPAN></FONT></B></STRONG><STRONG><B><FONT face=Arial 
color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-no-proof: yes">F: 
(08) 8292 5299<BR></SPAN></FONT></B></STRONG><STRONG><B><FONT face=Arial 
color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-no-proof: yes">E: 
<A 
href="mailto:andrew@staff.esc.net.au">andrew@staff.esc.net.au</A><BR></SPAN></FONT></B></STRONG><STRONG><B><FONT \
 face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-no-proof: yes">W: 
http://www.esc.net.au</SPAN></FONT></B></STRONG></P>
<DIV>&nbsp;</DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px">  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> hylafax-users-bounce@hylafax.org 
  [mailto:hylafax-users-bounce@hylafax.org] <B>On Behalf Of </B>Gary 
  Lucy<BR><B>Sent:</B> Tuesday, 19 April 2005 10:15 PM<BR><B>To:</B> Andrew 
  Xenides<BR><B>Cc:</B> hylafax-users@hylafax.org<BR><B>Subject:</B> Re: 
  [hylafax-users] if your email notification does not 
  work...<BR></FONT><BR></DIV>
  <DIV></DIV>No, go.&nbsp; I had thought of that.&nbsp; It is owned by user UUCP 
  and group is UUCP and has the permissions as 755.&nbsp; Any other suggestions 
  would be great.&nbsp; When I pipe the output to a log file instead using steps 
  1 - 4 suggested by Giulio as seen below, I get a the following 
  error:<BR><BR>bin/notify: line 842: /usr/sbin/sendmail: Permission 
  denied<BR>cat: write error: Broken pipe<BR><PRE wrap="">1)
add the following as the 2nd line of bin/notify

set -x
exec 1&gt; /tmp/notify.log 2&gt;&amp;1

2)
do sendfax -D .....

3) 
wait for "notify" log in /var/log/messages

4)
Look at /tmp/notify.log, particularly for differences between this file and
the /tmp/mylog created manually.</PRE><BR><BR>Andrew Xenides wrote: 
  <BLOCKQUOTE cite=mid20050418234850.A549B61C2C3@sr-gw.esc.net.au type="cite"><PRE \
wrap="">Hi Gary

I had the exact same problem last week. Somehow my notify script became
owned by root (probably from editing it and making backups etc) 

Change it back to the same as the other bin files and you should be fine.
Also make sures its chmodded as 755

Regards

Andrew Xenides
Web Developer
EscapeNet 
465 South Road
Keswick SA 5035
T: (08) 8292 5200
F: (08) 8292 5299
E: <A class=moz-txt-link-abbreviated \
                href="mailto:andrew@staff.esc.net.au">andrew@staff.esc.net.au</A>
W: <A class=moz-txt-link-freetext \
href="http://www.esc.net.au">http://www.esc.net.au</A>

 

  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">-----Original Message-----
From: <A class=moz-txt-link-abbreviated \
href="mailto:hylafax-users-bounce@hylafax.org">hylafax-users-bounce@hylafax.org</A>  \
[<A class=moz-txt-link-freetext \
href="mailto:hylafax-users-bounce@hylafax.org">mailto:hylafax-users-bounce@hylafax.org</A>] \
                On Behalf Of Gary Lucy
Sent: Monday, 18 April 2005 11:58 PM
To: <A class=moz-txt-link-abbreviated \
                href="mailto:hylafax-users@hylafax.org">hylafax-users@hylafax.org</A>
Subject: Re: [hylafax-users] if your email notification does 
not work...

I can't seem to get the notification to send e-mail.

I have used the sh -x notify command and get all of the expected
output, both to the screen as well as in an e-mail.  So 
manually running
the notify script works perfectly.  When it is called from 
sendfax with
the following command
sendfax -n -D -d 1234567 somefile
the fax sends perfectly, but I do not get any notification.
I am running Redhat Enterprise 3 using
sendmail 8.13 and Hylafax version 4.2.1

Any suggestions greatly appreciated.

QUOTE FROM LIST FOLLOWS
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)

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" &gt; /tmp/mylog 2&gt;&amp;1
# less /tmp/mylog


____________________ HylaFAX(tm) Users Mailing List 
_______________________
  To subscribe/unsubscribe, click 
<A class=moz-txt-link-freetext \
href="http://lists.hylafax.org/cgi-bin/lsg2.cgi">http://lists.hylafax.org/cgi-bin/lsg2.cgi</A>
  On UNIX: mail -s unsubscribe 
<A class=moz-txt-link-abbreviated \
href="mailto:hylafax-users-request@hylafax.org">hylafax-users-request@hylafax.org</A> \
                &lt; /dev/null
  *To learn about commercial HylaFAX(tm) support, mail 
<A class=moz-txt-link-abbreviated href="mailto:sales@ifax.com.*">sales@ifax.com.*</A>



    </PRE></BLOCKQUOTE><PRE wrap=""><!---->


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click <A class=moz-txt-link-freetext \
href="http://lists.hylafax.org/cgi-bin/lsg2.cgi">http://lists.hylafax.org/cgi-bin/lsg2.cgi</A>
  On UNIX: mail -s unsubscribe <A class=moz-txt-link-abbreviated \
href="mailto:hylafax-users-request@hylafax.org">hylafax-users-request@hylafax.org</A> \
                &lt; /dev/null
  *To learn about commercial HylaFAX(tm) support, mail <A \
class=moz-txt-link-abbreviated href="mailto:sales@ifax.com.*">sales@ifax.com.*</A>  \
</PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>


____________________ 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@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@ifax.com.*


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic