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...



I am in agreement with that, but can't seem to give the uucp user permission.  They are in the mail group and they are in the trusted user section of sendmail.  I will have to look into this further.  If I find a solution, I will post it.  Thanks all for the help and suggestions.  Got me looking in the right area at least.

Andrew Xenides wrote:
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@xxxxxxxxxxxxxxxx
W: http://www.esc.net.au

 


From: hylafax-users-bounce@xxxxxxxxxxx [mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Gary Lucy
Sent: Tuesday, 19 April 2005 10:15 PM
To: Andrew Xenides
Cc: hylafax-users@xxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
W: http://www.esc.net.au

 

  
-----Original Message-----
From: hylafax-users-bounce@xxxxxxxxxxx 
[mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Gary Lucy
Sent: Monday, 18 April 2005 11:58 PM
To: hylafax-users@xxxxxxxxxxx
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@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