Secure-Compliance-Solutions-LLC / GVM-Docker

Greenbone Vulnerability Management Docker Image with OpenVAS
https://securecompliance.gitbook.io/projects/
MIT License
248 stars 91 forks source link

emailing reports still not working #24

Closed ciscoqid closed 4 years ago

ciscoqid commented 4 years ago

I provided a PR yesterday to add sendmail to the container, but it is not enough to just install it from what I have found. It has to be started and that requires additional setup. This method may work better:

https://www.michelebologna.net/2019/send-an-email-from-a-docker-container/

pixelsquared commented 4 years ago

Another idea would be to have sendmail use a SMTP relay

labor4 commented 4 years ago

Another idea would be to have sendmail use a SMTP relay

a relay to the host MTA? isn't "standalone to remote mailserver" more elegant?

immauss commented 4 years ago

I used postfix and set a relayhost. Works great. Just make sure you get the iptables correct too. In my install, I just forward to the host running the container, but it could forward to any relay host. Postfix will also let you forward to email services that require authentication.

jsuelwald commented 4 years ago

I need some help with that.

Running the container here, how and where do I have to configure which SMTP-Server OpenVAS should use?

johnjore commented 4 years ago

PR #57 created for basic postfix support (relay and port). Shamelessly copied from @immauss's repository. Worked fine with my relay server.

pixelsquared commented 4 years ago

PR #57 has been merged. If anyone still has problems please open a new issue.