immauss / openvas

Containers for running the Greenbone Vulnerability Manager. Run as a single container with all services or separate single applications containers via docker-compose.
GNU Affero General Public License v3.0
360 stars 102 forks source link

How to config Send mail Alert #174

Closed copph33 closed 1 year ago

copph33 commented 1 year ago

Hi Boss and everyone, Can you help me config mail to send mail alert and add ssl

sergeymeleschenko commented 1 year ago

Please provide info how to configure gvm with SSL certificate

copph33 commented 1 year ago

Please provide info how to configure gvm with SSL certificate

You can setup Nginx reverse proxy, it worked

sergeymeleschenko commented 1 year ago

Please provide info how to configure gvm with SSL certificate

You can setup Nginx reverse proxy, it worked

Did you have manual how to do it ?

copph33 commented 1 year ago

Please provide info how to configure gvm with SSL certificate

You can setup Nginx reverse proxy, it worked

Did you have manual how to do it ?

Y

Please provide info how to configure gvm with SSL certificate

You can setup Nginx reverse proxy, it worked

Did you have manual how to do it ?

You can follow this guide, proxy pass to your localhost:9392 https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-on-ubuntu-22-04

immauss commented 1 year ago

For SSL ... you can also use this: https://github.com/immauss/rev-prox There should be a better way, but I haven't had time to work it out, and this works well.

For email, assuming you have a working RELAY to send through (beyond the scope of here), you should be able to set the options for email from the docs, and it will just work.

from: https://immauss.github.io/openvas/

RELAYHOST : The IP address or hostname of the email relay to send emails through. Default = 172.17.01 (This is default for the docker host. If you are running the mail relay on your docker host, this should work, but you will need to make sure you allow the conections through the host's firewall/iptables)

-e RELAYHOST=mail.example.com

SMTPPORT : The TCP port for the RELAYHOST. Default = 25

-e SMTPPORT=25

sergeymeleschenko commented 1 year ago

For SSL ... you can also use this: https://github.com/immauss/rev-prox There should be a better way, but I haven't had time to work it out, and this works well.

For email, assuming you have a working RELAY to send through (beyond the scope of here), you should be able to set the options for email from the docs, and it will just work.

from: https://immauss.github.io/openvas/

RELAYHOST : The IP address or hostname of the email relay to send emails through. Default = 172.17.01 (This is default for the docker host. If you are running the mail relay on your docker host, this should work, but you will need to make sure you allow the conections through the host's firewall/iptables)

-e RELAYHOST=mail.example.com

SMTPPORT : The TCP port for the RELAYHOST. Default = 25

-e SMTPPORT=25

Thanks for your help.