GNU logs - #36468, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36468: Exim fails with permission denied
Resent-From: Jonathan Brielmaier <jonathan.brielmaier@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 01 Jul 2019 23:37:02 +0000
Resent-Message-ID: <handler.36468.B.156202421714979 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 36468
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 36468 <at> debbugs.gnu.org
Cc: Carlo Zancanaro <carlo@HIDDEN>
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.156202421714979
          (code B ref -1); Mon, 01 Jul 2019 23:37:02 +0000
Received: (at submit) by debbugs.gnu.org; 1 Jul 2019 23:36:57 +0000
Received: from localhost ([127.0.0.1]:46290 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hi5qy-0003tX-S3
	for submit <at> debbugs.gnu.org; Mon, 01 Jul 2019 19:36:57 -0400
Received: from lists.gnu.org ([209.51.188.17]:34457)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonathan.brielmaier@HIDDEN>) id 1hi5qw-0003tP-UB
 for submit <at> debbugs.gnu.org; Mon, 01 Jul 2019 19:36:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47094)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <jonathan.brielmaier@HIDDEN>) id 1hi5qt-0000O3-U4
 for bug-guix@HIDDEN; Mon, 01 Jul 2019 19:36:54 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_40,FREEMAIL_FROM,
 RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jonathan.brielmaier@HIDDEN>) id 1hi5qp-0002Yq-RG
 for bug-guix@HIDDEN; Mon, 01 Jul 2019 19:36:49 -0400
Received: from mout.web.de ([212.227.17.12]:48769)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <jonathan.brielmaier@HIDDEN>)
 id 1hi5qm-0002V7-2E
 for bug-guix@HIDDEN; Mon, 01 Jul 2019 19:36:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1562024188;
 bh=CctG0EbacBshmIzFs+q+J/MHn83JB82s8MZv6CtuDDI=;
 h=X-UI-Sender-Class:To:Cc:From:Subject:Date;
 b=V8qk2jAO0G1s5orTRn/Lb/1Y6EZO5w7p2w88ofFxko+ahmqtv0mUc3i6YCxHiH8t5
 sbP3HMIjqbfD4nId69+5zi9PaIiSB7mOH/TkOlPwfHTSDyCJ+4A6VVbNOksK0Dq+gn
 KUfOvR0QmvE4deVxF7H2hbS1ygZyvSBXYyVQ8uKc=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from [192.168.178.180] ([94.134.92.71]) by smtp.web.de (mrweb103
 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LzbDC-1icnTO3Ceg-014hd5; Mon, 01
 Jul 2019 19:02:24 +0200
From: Jonathan Brielmaier <jonathan.brielmaier@HIDDEN>
Message-ID: <8e47662d-df1f-ab87-00b7-2e4b987cd8d3@HIDDEN>
Date: Mon, 1 Jul 2019 19:02:19 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-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qhLSLt05GxwbDazWFgB5gqZAsMWwU/ury8OdZpe1
 9hfEtPrdN7WiOSN5CGuEZDfCYk6S9yro4HlhcbjB3cA81byY4YrXbBd8gpTW2kZo3qH/MgNlp
 N+sbeGKs7d9147bOpzezwHGITuekWKtmf1UfnbfELauqV1uFkTiU9UndBBD0717WWuvuo4UhT
 mS0Uak8ry5RC3mnsJAcAfYf2emY+5xAvBH/3PcK5BvmrcVP2qVCfnLkb6WYJ1Bn7Hbuj3WSji
 MCIoZ3hj8bbjEOmo1rRQi2S8uwM7Omq7UjT7UFy/KdQYyExxdXMPeKPCHlC37ji7/p2yPOVyf
 0rhwD6dRbAfdVRabxm4HvdoFrMP26xEaPip
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 212.227.17.12
X-Spam-Score: -1.4 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

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@HIDDEN")))

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@HIDDEN
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@HIDDEN"
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




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Jonathan Brielmaier <jonathan.brielmaier@HIDDEN>
Subject: bug#36468: Acknowledgement (Exim fails with permission denied)
Message-ID: <handler.36468.B.156202421714979.ack <at> debbugs.gnu.org>
References: <8e47662d-df1f-ab87-00b7-2e4b987cd8d3@HIDDEN>
X-Gnu-PR-Message: ack 36468
X-Gnu-PR-Package: guix
Reply-To: 36468 <at> debbugs.gnu.org
Date: Mon, 01 Jul 2019 23:37:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 36468 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
36468: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36468
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.