Open perlfisch opened 1 month ago
Should be a duplicate of / related to greenbone/docs#483 and IIRC the MTA / mail server setup is community based and needs community contributions in form of a PR.
But let's see what the maintainers of this repo are saying / if they will maintain / accept something in the container directly.
Installing anything into a Docker container is not persistent and will be gone once it's restarted. Instead of documenting manual changes that have to be reapplied after restarting the container, ca-certificates
should be installed via apt as part of the Dockerfile to persistently fix this issue.
You could try to create a PR to the relevant file and see if the repo maintainers are accepting such a change (see previous notes about usually requiring community contributions for such topics).
Expected behavior
The official gvmd Docker container should be able to send mail and validate the submission servers certificate.
Actual behavior
No CAs are available in the container gvmd.
ca-certificates
is not installed and validation of all certificates fails. The only way to get mail working persistently is by modifying the containers compose to mount the hosts ca-certificates.crt or disabling certificate validation entirely.Disabling certificate validation, which is dangerous and should not be done, is the only solution that comes up when googling the error and will likely be implemented by many people trying to get mail working in the container.
I've confirmed that manually installing
ca-certificates
into a running gvmd container fixes the problem.Steps to reproduce
GVM versions
Stable official docker containers as of 2024-10-30
Environment
Operating system:
Debian 12 stable
Installation method / source: (packages, source installation)
Official docker compose
Logfiles