Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mail transport agent into Docker container #1953

Closed
wants to merge 0 commits into from
Closed

Add mail transport agent into Docker container #1953

wants to merge 0 commits into from

Conversation

castorsky
Copy link
Contributor

What

Add msmtp as mail transport agent into Docker container.

This PR adds mstmp and msmtp-mta packages and configuration script into docker image to setup msmtp with environment variables. Tested only with Google mail provider.

How to use

One can configure MTA with variables in compose file or include env-file into compose file:

...
  gvmd:
    image: greenbone/gvmd:stable
    environment:
      - MTA_HOST=smtp.gmail.com
      - MTA_PORT=587
      - MTA_TLS=on
      - MTA_STARTTLS=on
      - MTA_AUTH=on
      - MTA_USER=<username>
      - MTA_FROM=<username>@gmail.com
      - MTA_PASSWORD=<some_password>
...

Why

At the time containerized GVMD can not send alerts and notifications via email.

References

As someone said in the Greenbone Forum it is worth to add sending email ability into container.

@castorsky castorsky requested review from a team and mattmundell as code owners April 22, 2023 11:26
@ilyesm
Copy link

ilyesm commented Jul 12, 2023

Hi there! Any feedback regarding this PR? Any plans for it to be included in the future?

@bjoernricks
Copy link
Member

Hey,

I've thought about this PR in detail yesterday evening and I am willing to include the MTA in the gvmd container image for the next release. Could you therefore resolve the following things:

@github-actions
Copy link

github-actions bot commented Jul 16, 2023

Conventional Commits Report

😢 No conventional commits found.

👉 Learn more about the conventional commits usage at Greenbone.

@castorsky castorsky closed this Jul 16, 2023
@castorsky
Copy link
Contributor Author

I have made something weird in an attempt of rewriting the old commit message and messed all up. Will open new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants