Re: qmail unable to chdir to Maildir after Debian upgrade to 'buster'

Erwin Hoffmann <[email protected]> Wed, 7 Aug 2019 09:49:02 +0200
Newsgroups gmane.mail.qmail.general
Message-ID <[email protected]>
Hi,

first, validate that the qmail users in /etc/password are sill ok and =
are migrated ok.

Second, I could suggest to install 'htop' to see the delivery chain of =
qmail-send.
You should see something like that:

root      3055  3047  0 Jul08 ?        00:00:00 supervise qmail-send
qmaill    3085  3056  0 Jul08 ?        00:00:00 multilog t s16777215 =
/var/log/qmail-send
qmails   11722  3055  0 Aug02 ?        00:00:00 qmail-send
root     11737 11722  0 Aug02 ?        00:00:00 qmail-lspawn ./Maildir/

In order to run qmail-lspawn, qmail needs root privileges.=20

Third, now you can strace this pid

sudo strace -f - <pid> -o <file>

You should catch the output to a file.

As Johannes said: Permission problem due to changed security mechanisms.

Regards.
--eh.=20



> Am 07.08.2019 um 09:00 schrieb hobie of RMN <[email protected]>:
>=20
>> On 2019-08-06 20:02-0400, hobie of RMN wrote:
>>> Since a very recent upgrade by Debian that moved release 'buster' to
>>> 'stable', incoming mail can't be delivered, generates the error
>>> message that qmail now is unable to change to the Maildirs that are
>>> several levels below /home/vpopmail.  All file permissions appear
>>> unchanged.  Any idea how to fix this?  Thanks kindly.
>>=20
>> Can you strace the qmail-send and watch what it is doing up to the
>> error? It might give some clues. What is the exact error from the
>> delivery log?
>=20
> Thanks. :) Log entry:
>=20
> delivery 94: deferral: Unable_to_chdir_to_maildir._(#4.2.1)/
>=20
> strace is installed but I've never used it.  Is it possible to strace =
an
> already-running process?  I'd need directions on how to do it.
>=20
> --hobie
>=20
>=20

Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de | PGP Key-Id 7E4034BE