Configuration file '/etc/postfix/relay_recipients.db' modified

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.26
How are you able to access your server: The webadmin
SSH

Describe your issue

I am setting up a fresh install of YunoHost on a fresh install of Debian 12. When I add a domain or a Let’s Encrypt certificate, I see the following yellow error message:
“The configuration file ‘/etc/postfix/relay_recipients.db’ has been manually modified and will not be updated”

Which is strange as, this being a fresh install, I have not modified any files (yet). Everything seems to proceed normally, but I’m wondering how I can correct this situation, as I don’t know exactly what that configuration file is suppsoed to do or not do.

Any pointers very much appreciated.

Share relevant logs or error messages

The configuration file ‘/etc/postfix/relay_recipients.db’ has been manually modified and will not be updated

Can you check the output of yunohost tools regen-conf postfix --dry-run --with-diff to understand why?

Yes, it gives me this:

Traceback (most recent call last):
File “/usr/bin/yunohost”, line 108, in
main()
File “/usr/bin/yunohost”, line 97, in main
yunohost.cli(
File “/usr/lib/python3/dist-packages/yunohost/init.py”, line 59, in cli
ret = moulinette.cli(
^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/moulinette/init.py”, line 143, in cli
).run(args, output_as=output_as, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py”, line 530, in run
ret = self.actionsmap.process(args, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/moulinette/actionsmap.py”, line 580, in p rocess
return func(**arguments)
^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/tools.py”, line 318, in tools_re gen_conf
return regen_conf(names, with_diff, force, dry_run, list_pending)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 532, in func_wrapp er
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/regenconf.py”, line 272, in rege n_conf
_get_files_diff(system_path, pending_path, True) if with_diff else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/regenconf.py”, line 498, in _get _files_diff
orig_file = orig_file.readlines()
^^^^^^^^^^^^^^^^^^^^^
File “”, line 322, in decode
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x98 in position 52: invalid start byte

I don’t have a fresh install, i’ve Yuno updated to the last version and i never edit config files and i’ve the same issue when i add a new domain with a let’s encrypt certificate.

It’s indeed a bug in the regenconf, should be fixed in the next YunoHost update

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.