Secure-Compliance-Solutions-LLC / GVM-Docker

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

[Bug] Postfix not working with debian-master #323

Open ciscoqid opened 2 years ago

ciscoqid commented 2 years ago

Describe the bug Postfix is not working in debian-master image. After some troubleshooting, I found several issues and was finally able to manually get it working:

To Reproduce Steps to reproduce the behavior: On a fresh image, run supervisorctl start postfix (or postfix start) and observe daemon will not startup properly. After applying initial workaround (adding and starting rsyslog), mailq shows messages stuck due to resolution failure.

Expected behavior Postfix should start and successfully deliver email via the relay specified in the environment.

Screenshots If applicable, add screenshots to help explain your problem.

Host Device:

Image in use:

markdesilva commented 2 years ago

Hi All and Happy 2022!

Just want to ask the devs if the documentation and OpenVAS Scanner containers are going to be updated anytime soon and if it is going to be planned to have PGSQL at v13 (instead of currently moving back to v11)?

Hoping to upgrade gvm and scanners all in one go, but I'm not sure if the scanners have been updated cos the documentation is still the previous.

Thank you.

markdesilva commented 2 years ago

Postfix is not working in debian-master image.

I ususally get rid of postfix and just apt install sendmail as I've been having issues with the postfix on the container even from before.

As long as you add the container hostname to the /etc/hosts file

ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
<docker container ip>      <docker container hostname> <docker container hostname>.localdomain

sendmail works straight away.

Dexus commented 2 years ago

You can now use the https://hub.docker.com/r/deineagenturug/gvm images, which are using the latest gvmd and components releases.

It use POSTGRESQL 13.

What are meaning the tags:

docker pull deineagenturug/gvm:latest               # is an not initialized basic image, that first start its initialization on the first start (short: no db & no PDF report support)
docker pull deineagenturug/gvm:latest-full          # is an not initialized basic image, that first start its initialization on the first start (short: no db, PDF report is support)
docker pull deineagenturug/gvm:latest-data          # is an initialized basic image, that can run directly without extra VOLUMES added (short: included db, but no PDF report support)
docker pull deineagenturug/gvm:latest-data-full     # is an initialized basic image, that can run directly without extra VOLUMES added (short: included db & PDF report is support)

It can be used as direct replacement for the here provided image, with the same arguments on docker run.


I can't see any problems with the Postfix, but maybe I have a different setup process, need to check this. But I think the @markdesilva option will work also.