Discussion:
failed to create spool file
Debbie Finucane
2003-05-14 15:16:06 UTC
Permalink
Setting up exim-4.14 I keep getting the following error, when non-root
users send mail. (and now for exim-4.20 as well)

Failed to create spool file /local/mail/exim/spool/input//19FgDe-0005uO-70-D: Permission denied

Having tried it with various configure files, I think its a permission
problem somewhere, but I can't figure out where.

I have exim set suid root with

lrwxrwxrwx 1 root 11 May 13 13:09 bin/exim -> exim-4.14-3
-rwsr-xr-x 1 root 885072 May 13 13:09 bin/exim-4.14-3

The exim root directory has
drwxr-xr-x 5 exim exim 512 May 13 21:05 .

Also spool set to exim

drwxr-x--- 8 exim exim 512 May 13 20:29 spool

spool/ containing
drwxr-x--- 2 exim exim 512 May 13 20:50 input
drwxr-x--- 2 exim exim 512 May 13 20:50 log
drwxr-x--- 2 exim exim 512 May 13 20:50 msglog

and the output of exim -bP exim_user exim_group is

exim_user = exim
exim_group = exim

Neither the mainlog or paniclog succeed in logging anything when this
happens which is why I think it must be a permission problem.

Its running on SunOS 5.8 and I've set no_verify.

However when the superuser sends the mail to a non privledged account

It gets the following
LOG: MAIN
<= ***@medulla.amtp.cam.ac.uk U=root P=local S=362
medulla:/local/mail/exim/spool/log 21:22:10$ LOG: MAIN PANIC DIE
unable to set gid=20 or uid=8181 (euid=822): local delivery to df224 <***@medulla.amtp.cam.ac.uk> transport=local_delivery
LOG: MAIN PANIC
failed to read delivery status for \0\***@medulla.amtp.cam.ac.uk from delivery subprocess
LOG: MAIN PANIC
appendfile transport process returned non-zero status 0x0100: exit code 1
LOG: MAIN
== ***@medulla.amtp.cam.ac.uk R=localuser T=local_delivery defer (-1)
LOG: MAIN
Frozen

which may or may not be related to the above.

I'd be grateful for any ideas on this,


Debbie

--
Debbie Finucane, Computer Officer,
Dept of Applied Mathematics and Theoretical Physics,
University of Cambridge, UK
Email: ***@damtp.cam.ac.uk



--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
Suresh Ramasubramanian
2003-05-14 15:33:54 UTC
Permalink
At 04:16 PM 5/14/2003 +0100, Debbie Finucane wrote:
>It gets the following
>LOG: MAIN
> <= ***@medulla.amtp.cam.ac.uk U=root P=local S=362
>medulla:/local/mail/exim/spool/log 21:22:10$ LOG: MAIN PANIC DIE
> unable to set gid=20 or uid=8181 (euid=822): local delivery to df224
> <***@medulla.amtp.cam.ac.uk> transport=local_delivery
>LOG: MAIN PANIC
> failed to read delivery status for \0\***@medulla.amtp.cam.ac.uk from
> delivery subprocess
>LOG: MAIN PANIC
> appendfile transport process returned non-zero status 0x0100: exit code 1
>LOG: MAIN
> == ***@medulla.amtp.cam.ac.uk R=localuser T=local_delivery defer (-1)
>LOG: MAIN
> Frozen

Well - what is the uid 822 and gid 20 on your system?

srs


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
Philip Hazel
2003-05-14 15:27:34 UTC
Permalink
On Wed, 14 May 2003, Debbie Finucane wrote:

> Neither the mainlog or paniclog succeed in logging anything when this
> happens which is why I think it must be a permission problem.

Anything on syslog?

My suspicion is that you have two different exim binaries installed, and
there is confusion over which one is being run when mail is sent.

> However when the superuser sends the mail to a non privledged account

Have you tried sending the messages directly from exim? That is, with
commands like

exim -d ***@medulla.amtp.cam.ac.uk
some message
.

? That will show debugging detail of what is going on.


--
Philip Hazel University of Cambridge Computing Service,
***@cus.cam.ac.uk Cambridge, England. Phone: +44 1223 334714.


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
Debbie Finucane
2003-05-15 18:48:37 UTC
Permalink
On Wed, 14 May 2003, Philip Hazel wrote:

>
> Anything on syslog?


I never thought of checking there and it provided the answer.

It has many messages with

"uid 822: setuid execution not allowed, dev=8800000007"

where 822 is my exim user.


I've removed the nosuid mount option from /local and now I can
send local emails from non-root users.


Thanks for your help.



Debbie


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
Continue reading on narkive:
Loading...