all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jonathan Brielmaier <jonathan.brielmaier@web.de>
To: 36468@debbugs.gnu.org
Subject: bug#36468: Exim fails with permission denied
Date: Mon, 1 Jul 2019 19:02:19 +0200	[thread overview]
Message-ID: <8e47662d-df1f-ab87-00b7-2e4b987cd8d3@web.de> (raw)

Hi,

I try to setup a SMTP server on a Guix system. I just choose exim and
followed the manual and added this part to my config.scm. It's not
production or anything, just to see if it works.

(service exim-service-type
         (exim-configuration
           (config-file (local-file "/etc/exim.conf"))))
(service mail-aliases-service-type
         '(("jonathan" "jonathan.brielmaier@web.de")))

After reconfiguring exim starts fine with `herd start`. Then I tried to
test if exim works:

root@guixone /home/jonathan# echo "Subject: test" | exim -v
jonathan.brielmaier@web.de
LOG: MAIN
  Warning: purging the environment.
 Suggested action: use keep_environment.
LOG: MAIN PANIC DIE
  Failed to create spool file
/var/spool/exim//input//1hhzWj-00007i-Mb-D: Permission denied
LOG: PANIC DIE
  Cannot open main log file "/var/spool/exim/log/mainlog": Permission
denied: euid=65534 egid=65534
2019-07-01 18:51:37 1hhzWj-00007i-Mb Failed to create spool file
/var/spool/exim//input//1hhzWj-00007i-Mb-D: Permission denied
2019-07-01 18:51:37 1hhzWj-00007i-Mb Cannot open main log file
"/var/spool/exim/log/mainlog": Permission denied: euid=65534 egid=65534
exim: could not open panic log - aborting: see message(s) above

Maybe it's not intended to work with root, so I changed /etc/passwd:
exim:x...:/var/empty:/gnu/store.../bin/bash

echo "Subject: test" | sudo su exim -c "exim -v jonathan.brielmaier@web.de"
LOG: MAIN
  Warning: purging the environment.
 Suggested action: use keep_environment.
2019-07-01 18:55:19 Warning: purging the environment.
 Suggested action: use keep_environment.
LOG: MAIN PANIC DIE
  Failed to create spool file
/var/spool/exim//input//1hhzaJ-000084-D9-D: Permission denied

ls -al /var/spool/exim/input/
total 8
drwxr-x--- 2 exim exim 4096 Jul  1 18:58 ./
drwxr-xr-x 4 exim exim 4096 Jul  1 18:58 ../
-rw-r----- 1 exim exim    0 Jun 29 22:49 1hhKHP-0001D3-6P-D
-rw-r----- 1 exim exim    0 Jun 29 22:53 1hhKLb-00005D-RV-D
-rw-r----- 1 exim exim    0 Jun 29 22:53 1hhKLl-00005E-Ut-D
-rw-r----- 1 exim exim    0 Jul  1 17:37 1hhyN4-0002pn-IN-D
-rw-r----- 1 exim exim    0 Jul  1 18:57 1hhzcT-00008t-JD-D
-rw-r----- 1 exim exim    0 Jul  1 18:58 1hhzdp-0000A9-Oi-D

Do I miss some point here? Do I need to set something in the exim.conf?
I tried to use the exim.conf from openSUSE, with the same effect.

@Carlo: I CCed you, because you have written the original patch to add
exim to Guix :)

~Jonathan

                 reply	other threads:[~2019-07-01 23:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e47662d-df1f-ab87-00b7-2e4b987cd8d3@web.de \
    --to=jonathan.brielmaier@web.de \
    --cc=36468@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.