Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[hylafax-users] HylaFax, Exim4 fax transport pipe error

21 views
Skip to first unread message

Gary Stainburn

unread,
Feb 19, 2016, 6:47:16 AM2/19/16
to hylafa...@hylafax.org
Content preview: Hi folks, I've got a Pi running Jessie with Hylafax and Exim4
installed. I have everything working except fax sending. I have the following
fax transport set up (The email address is <fax_number>@ringways.co.uk and
is routed to this server by our main mail sever) [...]

Content analysis details: (-48.1 points, 15.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-50 ALL_TRUSTED Passed through trusted hosts only via SMTP
0.1 SCORE_RCPTS Adding score for each recipient
-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60%
[score: 0.4426]
1.0 RING_SAFE No description available.
X-forward-disable: yes

Hi folks,

I've got a Pi running Jessie with Hylafax and Exim4 installed. I have
everything working except fax sending. I have the following fax transport set
up (The email address is <fax_number>@ringways.co.uk and is routed to this
server by our main mail sever)

The fax transport I have set up is:

root@sid:~# cat /etc/exim4/conf.d/transport/30_exim4-config_fax_pipe

# This transport is used for sending faxes received via fax

fax:
debug_print = "T: fax_pipe for $local_part@$domain"
driver = pipe
command = "/usr/bin/faxmail -n -N -T -d $local_part"
home_directory = /tmp
use_shell = true
return_fail_output

root@sid:~# ls -ld / /usr /usr/bin /usr/bin/faxmail /bin /bin/sh /tmp
drwxr-xr-x 21 root root 4096 Jan 22 13:47 /
drwxr-xr-x 2 root root 4096 Feb 10 13:12 /bin
lrwxrwxrwx 1 root root 4 Jan 21 2014 /bin/sh -> dash
drwxrwxrwt 9 root root 4096 Feb 19 11:21 /tmp
drwxr-xr-x 10 root root 4096 Nov 21 18:50 /usr
drwxr-xr-x 2 root root 45056 Feb 16 11:15 /usr/bin
-rwxr-xr-x 1 root root 51536 Dec 10 2014 /usr/bin/faxmail
root@sid:~#

However, the pip fails with the following entries in exim/mainlog

2016-02-19 11:17:03 1aWj3X-0005NZ-7g <= ga...@mail.ringways.co.uk
H=ollie.ringways.co.uk (ringways.co.uk) [10.5.1.3] P=esmtp S=51195
id=201602191117.021...@ringways.co.uk
2016-02-19 11:17:03 1aWj3X-0005NZ-7g ** 01132...@ringways.co.uk R=fax
T=fax: Child process of fax transport returned 127 (could mean unable to exec
or command does not exist) from command: /bin/sh
2016-02-19 11:17:04 1aWj3X-0005Nk-Uv <= <> R=1aWj3X-0005NZ-7g U=Debian-exim
P=local S=52158
2016-02-19 11:17:04 1aWj3X-0005NZ-7g Completed
2016-02-19 11:17:07 1aWj3X-0005Nk-Uv => ga...@ringways.co.uk R=smarthost
T=remote_smtp_smarthost H=ollie.ringways.co.uk [10.5.1.3]
X=TLS1.2:RSA_AES_128_GCM_SHA256:128
DN="C=--,ST=SomeState,L=SomeCity,O=SomeOrganization,OU=SomeOrganizationalUnit,CN=ollie2.ringways.co.uk,EMAIL=ro...@ollie2.ringways.co.uk"
C="250 OK id=1aWj3X-000adB-B1"
2016-02-19 11:17:07 1aWj3X-0005Nk-Uv Completed


As you can see from the 'ls' output, all required files and directories look
correct.

I normally set this up using Fedora on full sized kit. I have had the same
problem there too, and that ended up being a SELinux issue. Is there
something similar on Raspbian, or is the problem something else?

If I run sendfax to send a fax from the command line as root it works fine.
However, if I try to run it as user pi I get the following.

pi@sid:~ $ sendfax -n -h ttyUSB2@localhost -d 01302321015 testpage.pdf
Malformed (null) sender name or mail address
pi@sid:~ $

This would imply that maybe I have to set up something extra to get the email
bit working. I have tried adding the correct entries for pi and Debian-exim
to /etc/aliases and /etc/email-addresses but that made no difference.

I'm not sure if this is one problem or two separate ones, but any help would
be appreciated.

Gary


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

Gary Stainburn

unread,
Feb 19, 2016, 11:37:50 AM2/19/16
to hylafa...@hylafax.org
Content preview: Solved. The problem was Raspbian config related. I was working
in multi-file mode and exim was working in single-file mode. This meant that
any changes I made were not being seen by Exim4 On Friday 19 February 2016
11:46:52 Gary Stainburn wrote: > Hi folks, > > I've got a Pi running Jessie
with Hylafax and Exim4 installed. I have > everything working except fax
sending. I have the following fax transport > set up (The email address is
<fax_number>@ringways.co.uk and is routed to > this server by our main mail
sever) > > The fax transport I have set up is: > > root@sid:~# cat /etc/exim4/conf.d/transport/30_exim4-config_fax_pipe
> > # This transport is used for sending faxes received via fax > > fax:
> debug_print = "T: fax_pipe for $local_part@$domain" > driver = pipe > command
= "/usr/bin/faxmail -n -N -T -d $local_part" > home_directory = /tmp > use_shell
= true > return_fail_output > > root@sid:~# ls -ld / /usr /usr/bin /usr/bin/faxmail
/bin /bin/sh /tmp > drwxr-xr-x 21 root root 4096 Jan 22 13:47 / > drwxr-xr-x
2 root root 4096 Feb 10 13:12 /bin > lrwxrwxrwx 1 root root 4 Jan 21 2014
/bin/sh -> dash > drwxrwxrwt 9 root root 4096 Feb 19 11:21 /tmp > drwxr-xr-x
10 root root 4096 Nov 21 18:50 /usr > drwxr-xr-x 2 root root 45056 Feb 16
11:15 /usr/bin > -rwxr-xr-x 1 root root 51536 Dec 10 2014 /usr/bin/faxmail
> root@sid:~# > > However, the pip fails with the following entries in exim/mainlog
> > 2016-02-19 11:17:03 1aWj3X-0005NZ-7g <= ga...@mail.ringways.co.uk > H=ollie.ringways.co.uk
(ringways.co.uk) [10.5.1.3] P=esmtp S=51195 > id=201602191117.021...@ringways.co.uk
> 2016-02-19 11:17:03 1aWj3X-0005NZ-7g ** 01132...@ringways.co.uk R=fax
> T=fax: Child process of fax transport returned 127 (could mean unable to
> exec or command does not exist) from command: /bin/sh > 2016-02-19 11:17:04
1aWj3X-0005Nk-Uv <= <> R=1aWj3X-0005NZ-7g U=Debian-exim > P=local S=52158
> 2016-02-19 11:17:04 1aWj3X-0005NZ-7g Completed > 2016-02-19 11:17:07 1aWj3X-0005Nk-Uv
=> ga...@ringways.co.uk R=smarthost > T=remote_smtp_smarthost H=ollie.ringways.co.uk
[10.5.1.3] > X=TLS1.2:RSA_AES_128_GCM_SHA256:128 > DN="C=--,ST=SomeState,L=SomeCity,O=SomeOrganization,OU=SomeOrganizationalUn
[...]

Content analysis details: (-48.9 points, 15.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-50 ALL_TRUSTED Passed through trusted hosts only via SMTP
0.1 SCORE_RCPTS Adding score for each recipient
-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
-0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40%
[score: 0.2957]
1.0 RING_SAFE No description available.
X-forward-disable: yes

Solved. The problem was Raspbian config related.

I was working in multi-file mode and exim was working in single-file mode.
This meant that any changes I made were not being seen by Exim4
--
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk
0 new messages