E-mail alerting

Hi there,

We are currently working on our first Greenbone OpenVas installation.
We have successfully created a set-up on Ubuntu 22.04 making use of the container images.
All seems to be working well however we cannot get e-mail alerting to work.
I have tried many different options from the documentation, at the moment it fails with the following message:
sendmail: TLS certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown

I have tried placing the following in /etc/msmtprc
tls_trust_file /etc/ssl/certs/ca-certificates.crt
That does not seems to be picked-up when I check the file from within the container.

My question is, what is the right place to add this line?
And is there a env var that I can use instead in the Docker compose file?

Thank you in advance!

Regards,

Mervin

Here are the instructions for setting up email.

However, it sounds like your issue is with msmtp, not Greenbone containers. I suggest you to lookup the msmtp documentation or support forum for guidance.

2 Likes

Thank you for your answer.
We managed to got it working by adding the following to the docker-compose.yml file, under gvmd:

 extra_hosts:
  - "host.docker.internal:host-gateway"
environment:
  - MTA_HOST=host.docker.internal
  - MTA_PORT=25
  - MTA_TLS=off
  - MTA_STARTTLS=off
  - MTA_FROM=sender@domain.nl
  - MTA_AUTH=off

We’re using Postfix on the host with the docker network added to my_networks.
We can afford to have no authentication on the MTA host because the Postfix instance on the host has a relay added to a secure Postfix server.

sendmail is a symlink for msmtp.