Outbound faxes are ok, inboudn get received and saved, but FaxDispatch
doesn't seem to get honoured. We have in it:
## $Id$
##
## Default FaxDispatch file - routes all inbound faxes to FaxMaster as PDF
##
## Consult the faxrcvd(8C) man page for more information
##
SENDTO=f...@mycompany.com; # by default email to FaxMaster
FILETYPE=pdf; # in PDF format
/usr/bin/tiff2ps -a $FILE | lpr -P hp3005x
I've check perms and they are:
total 172K
-rw-r--r-- 1 uucp uucp 163 Aug 10 2006 config
-rw-r--r-- 1 uucp uucp 151 Aug 4 2006 config.sav
-rw-r--r-- 1 uucp uucp 3.2K Jan 16 2008 config.ttyS0
-rw-r--r-- 1 uucp uucp 3.1K Aug 4 2006 config.ttyS0.sav
-r--r--r-- 1 uucp uucp 11K Dec 29 16:52 cover.templ
-r--r--r-- 1 uucp uucp 1.9K Dec 29 16:52 dialrules
-r--r--r-- 1 uucp uucp 2.4K Dec 29 16:52 dialrules.europe
-r--r--r-- 1 uucp uucp 2.1K Dec 29 16:52 dialrules.sf-ba
-r--r--r-- 1 uucp uucp 3.2K Dec 29 16:52 dpsprinter.ps
-rw-r--r-- 1 uucp uucp 8.9K Aug 4 2006 faxcover_example_sgi.ps
-rw-r--r-- 1 uucp uucp 7.3K Aug 4 2006 faxcover.ps
-rw-r--r-- 1 uucp uucp 1006 Feb 8 11:53 FaxDispatch
-rw-r--r-- 1 uucp uucp 167 Aug 4 2006 faxmail.ps
-rw-r--r-- 1 uucp uucp 2.4K Aug 4 2006 hfaxd.conf
-rw------- 1 uucp uucp 89 Nov 25 2006 hosts.hfaxd
-rw-r--r-- 1 uucp uucp 1.8K Aug 4 2006 hyla.conf
-rw-r--r-- 1 uucp uucp 15 Feb 17 04:05 lastrun
-rw-r--r-- 1 uucp uucp 14K Dec 29 16:52 lutRS18.pcf
-rw-r--r-- 1 uucp uucp 3.2K Aug 4 2006 pagesizes
-r--r--r-- 1 uucp uucp 1.4K Jan 28 10:29 setup.cache
-r--r--r-- 1 uucp uucp 779 Jan 28 10:29 setup.modem
drwxr-xr-x 12 uucp uucp 4.0K Jan 22 13:20 templates
-rw-r--r-- 1 uucp uucp 50 Jan 28 10:20 test
-rw-r--r-- 1 uucp uucp 7.4K Aug 4 2006 typerules
-rw------- 1 uucp uucp 27K Feb 17 13:14 xferfaxlog
-rw------- 1 uucp uucp 1.5K Feb 1 04:07 xferfaxlog.1.gz
-rw------- 1 uucp uucp 2.4K Jan 1 04:16 xferfaxlog.2.gz
-rw------- 1 uucp uucp 3.3K Dec 1 04:12 xferfaxlog.3.gz
Now when I run this as root:
sh -x bin/faxrcvd "recvq/fax000015266.tif" "ttyS0" "000000112" ""
Everything works as expected. We get emailed and a fax prints. This
points to perms in my eyes. What am I missing?
Thanks.
--
http://www.suretecsystems.com/services/openldap/
http://www.suretectelecom.com
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-us...@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sa...@ifax.com.*
chmod +x FaxDispatch
The FaxDispatch file is meant to be executable.
-Darren
This was an rpm upgrade on CentOS 5 from the latest 4.
Thanks,
Gavin.
--
Sent from my mobile device
Sent from my iPhone
On 17/02/2010, Aidan Van Dyk <ai...@highrise.ca> wrote:
> * Gavin Henry <gavin...@gmail.com> [100217 13:56]:
>> Nope, that didn't work either. The fax came in ok. I even changed
>> SENDTO in faxrevcd (forgrt spelling) rather than in FaxtDispatch.
>>
>> This was an rpm upgrade on CentOS 5 from the latest 4.
>>
>> Thanks,
>>
>> Gavin.
>
> Gavin,
>
> I'ld start looking for messsage in syslog/dmesg about selinux or
> something.
>
> If you can runn it by hand, but faxgetty can't, then there is something
> *system* related that's preventing it. Down to basic system debugging.
>
> Maybe something as simple as:
> exec 2> /tmp/faxrcvd-err.log
> exec 1> /tmp/faxrcvd-out.log
> as the first lines of FaxDispatch
>
> Might give you clues as to what's "stopping" faxrcvd from running when
> run by faxgetty.
>
> a.
>
>
> --
> Aidan Van Dyk Create like a god,
> ai...@highrise.ca command like a king,
> http://www.highrise.ca/ work like a slave.
On 17/02/2010, Aidan Van Dyk <ai...@highrise.ca> wrote:
> * Gavin Henry <gavin...@gmail.com> [100217 13:56]:
>> Nope, that didn't work either. The fax came in ok. I even changed
>> SENDTO in faxrevcd (forgrt spelling) rather than in FaxtDispatch.
>>
>> This was an rpm upgrade on CentOS 5 from the latest 4.
>>
>> Thanks,
>>
>> Gavin.
>
> Gavin,
>
> I'ld start looking for messsage in syslog/dmesg about selinux or
> something.
>
> If you can runn it by hand, but faxgetty can't, then there is something
> *system* related that's preventing it. Down to basic system debugging.
>
> Maybe something as simple as:
> exec 2> /tmp/faxrcvd-err.log
> exec 1> /tmp/faxrcvd-out.log
> as the first lines of FaxDispatch
>
> Might give you clues as to what's "stopping" faxrcvd from running when
> run by faxgetty.
>
> a.
>
>
> --
> Aidan Van Dyk Create like a god,
> ai...@highrise.ca command like a king,
> http://www.highrise.ca/ work like a slave.
>
--
grep faxrcvd /var/log/messages
Feb 14 14:23:21 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015286.tif" "ttyS0" "000000155" ""
Feb 15 12:43:45 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015287.tif" "ttyS0" "000000158" ""
Feb 15 16:30:54 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015288.tif" "ttyS0" "000000159" ""
Feb 15 17:17:47 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015289.tif" "ttyS0" "000000160" ""
Feb 15 17:19:10 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015290.tif" "ttyS0" "000000161" ""
Feb 15 17:21:08 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015291.tif" "ttyS0" "000000162" ""
Feb 15 17:31:01 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015292.tif" "ttyS0" "000000163" ""
Feb 16 08:27:08 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015293.tif" "ttyS0" "000000164" ""
Feb 16 09:14:43 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015294.tif" "ttyS0" "000000165" ""
Feb 16 10:51:33 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015295.tif" "ttyS0" "000000167" ""
Feb 16 12:34:12 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015296.tif" "ttyS0" "000000169" ""
Feb 16 12:37:38 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015297.tif" "ttyS0" "000000170" ""
Feb 16 12:40:17 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015298.tif" "ttyS0" "000000171" ""
Feb 16 12:43:19 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015299.tif" "ttyS0" "000000172" ""
Feb 16 12:56:11 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015300.tif" "ttyS0" "000000173" ""
Feb 16 12:58:10 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015301.tif" "ttyS0" "000000174" ""
Feb 16 13:00:37 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015302.tif" "ttyS0" "000000175" ""
Feb 16 13:11:37 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015303.tif" "ttyS0" "000000176" ""
Feb 16 13:12:59 server6 FaxGetty[23399]: RECV FAX: bin/faxrcvd
"recvq/fax000015304.tif" "ttyS0" "000000177" ""
Feb 16 13:22:53 server6 FaxGetty[21008]: RECV FAX: bin/faxrcvd
"recvq/fax000015305.tif" "ttyS0" "000000178" ""
Feb 16 13:49:15 server6 FaxGetty[21008]: RECV FAX: bin/faxrcvd
"recvq/fax000015306.tif" "ttyS0" "000000179" ""
Feb 16 14:48:16 server6 FaxGetty[21008]: RECV FAX: bin/faxrcvd
"recvq/fax000015307.tif" "ttyS0" "000000180" ""
Feb 17 11:43:53 server6 FaxGetty[21008]: RECV FAX: bin/faxrcvd
"recvq/fax000015308.tif" "ttyS0" "000000183" ""
Feb 17 11:46:50 server6 FaxGetty[12086]: RECV FAX: bin/faxrcvd
"recvq/fax000015309.tif" "ttyS0" "000000184" ""
Feb 17 12:12:13 server6 FaxGetty[12327]: RECV FAX: bin/faxrcvd
"recvq/fax000015311.tif" "ttyS0" "000000186" ""
Feb 17 13:14:15 server6 FaxGetty[14186]: RECV FAX: bin/faxrcvd
"recvq/fax000015312.tif" "ttyS0" "000000187" ""
Feb 17 17:23:54 server6 FaxGetty[14186]: RECV FAX: bin/faxrcvd
"recvq/fax000015313.tif" "ttyS0" "000000189" ""
Feb 17 17:27:47 server6 FaxGetty[14186]: RECV FAX: bin/faxrcvd
"recvq/fax000015314.tif" "ttyS0" "000000190" ""
Feb 17 18:19:30 server6 FaxGetty[14186]: RECV FAX: bin/faxrcvd
"recvq/fax000015315.tif" "ttyS0" "000000191" ""
Feb 17 19:31:06 server6 FaxGetty[14186]: RECV FAX: bin/faxrcvd
"recvq/fax000015316.tif" "ttyS0" "000000192" ""
Feb 17 19:36:47 server6 FaxGetty[21942]: RECV FAX: bin/faxrcvd
"recvq/fax000015317.tif" "ttyS0" "000000193" ""
Feb 17 19:49:50 server6 FaxGetty[21942]: RECV FAX: bin/faxrcvd
"recvq/fax000015318.tif" "ttyS0" "000000194" ""
So it's running. I also see that there are two FaxDispatch, one in
/etc/hylafax and /var/spool/hylafax/etc
I thought these used to be symlinks, but they are not connected at all
and rpm -qf /etc/hylafax/FaxDispatch shows nothing, but this does:
rpm -qf /var/spool/hylafax/etc/FaxDispatch
hylafax-server-6.0.4-1rhel5
I also added this to both /etc/hylafax/FaxDispatch and the one in /var/spool.
exec 2> /tmp/faxrcvd-err.log
exec 1> /tmp/faxrcvd-out.log
SENDTO=FaxMaster;; # by default email to FaxMaster
FILETYPE=pdf;;
Should there be two ;; in above? I didn't see and /tmp/fax* files either.
What happens when you run this?
sudo -u uucp bin/faxrcvd "recvq/fax000015266.tif" "ttyS0" "000000112" ""
sudo -u uucp sh -x bin/faxrcvd "recvq/fax000015266.tif" "ttyS0" "000000112" ""
Do you see any errors?
Dave
I tested this before and I've just done:
rpm --setperms hylafax-server-6.0.4-1rhel5
the first sudo command complained about non execute bit, so sorted
that, and faxrcvd doesn't have bash activated, so doesn't run.
> sudo -u uucp sh -x bin/faxrcvd "recvq/fax000015266.tif" "ttyS0" "000000112" ""
This works, whereas I was testing with which gave "This account is
currently not available.":
su uucp -c 'sh -x bin/faxrcvd "recvq/fax000015318.tif" "ttyS0" "000000194" ""'
I'll send in a fax again to check.
> Do you see any errors?
>
> Dave
>
>
>
--
http://www.suretecsystems.com/services/openldap/
http://www.suretectelecom.com
bin/faxrcvd: line 182: /dev/pts/3: Permission denied
Hi,
So any ideas about why this works with sudo and not when a fax comes
in? Where/waht else can I debug here?
Does this actually run with sudo? Does it need sudo tty disabled?
Thanks.
On 18/02/2010, David Forrest <d...@maplepark.com> wrote:
> You might try just adding other read/write permissions to this terminal
> like:
> sudo chmod o+rw /dev/pts/3
>
> then other users should be able to run. Note: my /dev/pts/3 seems to be
> owned by my login user and I have no permissions problems. It may be some
> concern about security issues with your set up. YMMV...
>
> --
> David Forrest
> St. Louis, Missouri (Sent by ALPINE 2.01 FEDORA 11 LINUX)
>
>
> On Thu, 18 Feb 2010, Gavin Henry wrote:
>
>> On 17 February 2010 20:26, Gavin Henry <gavin...@gmail.com> wrote:
>>> On 17 February 2010 20:25, Gavin Henry <gavin...@gmail.com> wrote:
>>>> From the previous sudo command I can see this via our
>>>> /tmp/faxrvcd-err.log
>>>>
>>>> bin/faxrcvd: line 182: /dev/pts/3: Permission denied
>>>>
>>>
>>> Test fax failed to email out again, whereas sudo works as uucp
>>
>> Hi,
>>
>> So any ideas about why this works with sudo and not when a fax comes
>> in? Where/waht else can I debug here?
>>
>> Does this actually run with sudo? Does it need sudo tty disabled?
>>
>> Thanks.
>>
>>
>
--
Sent from my mobile device
http://www.suretecsystems.com/services/openldap/