You are not logged in.

#1 2015-07-07 06:15:06

xanb
Member
Registered: 2012-07-24
Posts: 418

[solved] opensmtpd in chroot

Hi,

I try to run opensmtpd in a chroot. When I chrooted and run smtpd, I received this:

[root@servidoret xan]# chroot  /var/corral /usr/bin/sh
/ # touch /run/smtpd.pid
/ # /usr/bin/smtpd -d
info: OpenSMTPD 5.4.6p1 starting
info: startup
smtpd: pidfile: No such file or directory
/ # warn: queue -> parent: pipe closed
warn: ca -> parent: pipe closed
warn: control -> parent: pipe closed
warn: lka -> parent: pipe closed
warn: pony -> parent: pipe closed
warn: scheduler -> queue: pipe closed

/ # 

/var/corral is my chroot directory.

Any hints? I touched /run/smtpd.pid but it does not work.


Thanks in advance,

PS: I posted this in OpenRC & eudev lists but I think here it's better because it's not openrc specific question.

Last edited by xanb (2015-07-08 11:49:05)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#2 2015-07-08 11:48:24

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] opensmtpd in chroot

Just for soundness. The error is because it needs

$JAIL/var/run

directory (and not just $JAIL/run). Just create it. Triaged via IRC (thanks `sheep`). You can see the strace output (line 517)

Last edited by xanb (2015-07-08 11:48:52)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

Board footer

Powered by FluxBB