#1072568 exim4-config: Installation process of package exim4-config stop on error in post installation script. It complains about a error in config file. It reasons it by user mail not found.

#1072568#5
Date:
2024-06-04 12:51:45 UTC
From:
To:
Dear Maintainer,

Im reporting a issue with installation of package exim4,specifically the exim4-config.
During the postintallation script the apt report that theres a error in
config file /var/lib/exim4/config.autogenerated.tmp on line 681. Next message
is that the "user mail was not found". Which result in exit status 1 of dpkg in config phase.
This leaves the exim4 in not fully installed state and prevent normal use of
apt afterwards.
To restore normal function of apt a had to force uninstall via dpkg -r with
force option.
I was using schroot with debian testing. This report is writen on system with debian stable.

Thank You

#1072568#10
Date:
2024-06-04 13:26:47 UTC
From:
To:
The user mail should be present on ALL debian systems, by virtue of the
package base-passwd which is an essential package.

How did your user mail get removed?

Greetings
Marc

#1072568#15
Date:
2024-06-05 12:11:40 UTC
From:
To:
Hi.

The user mail was present in the system. I tried to remove the user and create
 user mail again, but the error message didnt change. The UID of user mail is
8. Even with newly created user it generates the same error.
This is weird. I tried to install exim4 in VM and the install went without a problem.
I didnt change anything in the schroot setup. Its used only for building
install images and for caching updates to apt-cacher-ng cache.

My reason to report this issue, that if this is a problem it could cause a lots
of problems for admins that use exim4. Im not easy on the idea that this issue
will slip into stable.

Only thing is to wait is someone runs into this issue. If not it can be
marked as unreproducible.

Thank You