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

[Bug] Write in postfix the environment smtp and port #267

Closed
rudnypc opened this issue Aug 31, 2021 · 2 comments
Closed

[Bug] Write in postfix the environment smtp and port #267

rudnypc opened this issue Aug 31, 2021 · 2 comments
Assignees
Labels
bug Something isn't working Priority:Low

Comments

@rudnypc
Copy link

rudnypc commented Aug 31, 2021

Hi,

I try to set the RELAYHOST and SMTPPORT, but the main.cf is the same without the values.

@rudnypc rudnypc added the bug Something isn't working label Aug 31, 2021
@austinsonger
Copy link
Contributor

@rudnypc Again please fill out the bug template completely. Also if you state something like

the main.cf is the same without the values.

and not show us that file, then it just requires more and back and forth.

@rudnypc
Copy link
Author

rudnypc commented Sep 1, 2021

Describe the bug
I try to set the RELAYHOST and SMTPPORT in the environment, I open the /etc/postfix/main.cf and I didn't see any changes

I try to execute the 25 line, but the scripts doesn't work:
https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker/blob/master/scripts/entrypoint.sh

To Reproduce
Steps to reproduce the behavior:

  1. Deploy the gvm with RELAYHOST and SMTPPORT environments
  2. open /etc/postfix/main.cf and check if it has any change.

Expected behavior
I would like to write my personal smtp server in that file.

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

Host Device:

  • OS: Ubuntu
  • Version:20.04

Image in use:

  • Self build? No
  • Output from docker image inspect <image> :
root@SRV-SWARM-INFRA:~# docker image inspect securecompliance/gvm:latest-data-full@sha256:ae8ac631f48ebb825c1135d513d3bd059f0b6ba4d2a346b587d3da9f1b888e7e
[
    {
        "Id": "sha256:6532c9ce329f7afafb88862a77ed26bd22c17d5005fca037fd8e86c8607a114c",
        "RepoTags": [],
        "RepoDigests": [
            "securecompliance/gvm@sha256:ae8ac631f48ebb825c1135d513d3bd059f0b6ba4d2a346b587d3da9f1b888e7e"
        ],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2021-08-08T20:46:18.956494363Z",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "22/tcp": {},
                "5432/tcp": {},
                "8081/tcp": {},
                "9392/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "SUPVISD=supervisorctl",
                "USERNAME=admin",
                "PASSWORD=adminpassword",
                "PASSWORD_FILE=none",
                "TIMEOUT=15",
                "DEBUG=N",
                "RELAYHOST=smtp",
                "SMTPPORT=25",
                "AUTO_SYNC=true",
                "HTTPS=true",
                "CERTIFICATE=none",
                "CERTIFICATE_KEY=none",
                "TZ=Etc/UTC",
                "SSHD=false",
                "DB_PASSWORD=none",
                "DB_PASSWORD_FILE=none",
                "LANG=en_US.UTF-8",
                "LANGUAGE=en_US.UTF-8",
                "LC_ALL=en_US.UTF-8",
                "MUSL_LOCPATH=/usr/share/i18n/locales/musl",
                "SETUP=0",
                "OPT_PDF=1"
            ],
            "Cmd": [
                "/usr/bin/supervisord",
                "-n",
                "-c",
                "/etc/supervisord.conf"
            ],
            "ArgsEscaped": true,
            "Image": "",
            "Volumes": {
                "/etc/ssh": {},
                "/opt/database": {},
                "/var/lib/gvm": {},
                "/var/lib/openvas/plugins": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "org.opencontainers.image.created": "2021-08-08T20:40:19.640Z",
                "org.opencontainers.image.description": "Greenbone Vulnerability Management Docker Image with OpenVAS",
                "org.opencontainers.image.licenses": "MIT",
                "org.opencontainers.image.revision": "45166f1b9bc1c5314303b99ee1a94bb7552bc153",
                "org.opencontainers.image.source": "https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker",
                "org.opencontainers.image.title": "GVM-Docker",
                "org.opencontainers.image.url": "https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker",
                "org.opencontainers.image.version": "21.4.3-v1-data-full"
            }
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 4297891289,
        "VirtualSize": 4297891289,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/aeac4f9793e7be0d326ccbc6a520a31f585d5270cca386a0fd31094564aa77f7/diff:/var/lib/docker/overlay2/a729be592fbffe721ab0a2a48ce7fb03e302f8eba9e83579be6a78b7a71a2b03/diff:/var/lib/docker/overlay2/3f2b374331f3b3a1becdad31ec094373238074773b4ed1ba6d6fcdaec921347d/diff:/var/lib/docker/overlay2/400df655cee3de0116e49c28296851973709199178afc12e9a77e36e65803b66/diff:/var/lib/docker/overlay2/b0ac1f5e796bfe286f31308f2d227915f5af8673c95d4d8cc7fbbb24fa9f951f/diff:/var/lib/docker/overlay2/2ca7e864758c92e9f36f0581fcbe5f6d0353811c37a3ed1d85478d33a782f2ef/diff:/var/lib/docker/overlay2/8dc5c6360301ef8118ae3511531eb0cb02dc420bbf70a526cb0162b0fd629720/diff:/var/lib/docker/overlay2/01ec4b575bced3cdb82de4f5c76d2cf2d44bd63132c5676e5049347ba5dd1347/diff:/var/lib/docker/overlay2/487f80b2e6354c7739ae86b9ed4f9d6d15e9f39432f0fb07b44251cd5470d807/diff:/var/lib/docker/overlay2/928c1cde8e8cd9af68a9a4b9462fded7b05ec9414643b054c042d855f84fb0cf/diff:/var/lib/docker/overlay2/1f6b19dfa3a03ac102ec2abf9203bfc179ba0abfb2af37f7302e3d121f008035/diff:/var/lib/docker/overlay2/f1ae862ce0ac4ef7e010a3400be89ca591c189847c6b94b9079e672a0d1f20da/diff:/var/lib/docker/overlay2/d112e03ab53dde3b7cad179548cad5ddc8ec9d8b2a468fb355f3551a8f35836d/diff:/var/lib/docker/overlay2/d721d90a1e794ca6fe7a65c4af2cf9d4a584491a61c38e89a77c296bb23db0b4/diff",
                "MergedDir": "/var/lib/docker/overlay2/4a3c4a0253c198b2cb1edf59b802ebcedabd9b7a2515beaaf7e535ef70fa285f/merged",
                "UpperDir": "/var/lib/docker/overlay2/4a3c4a0253c198b2cb1edf59b802ebcedabd9b7a2515beaaf7e535ef70fa285f/diff",
                "WorkDir": "/var/lib/docker/overlay2/4a3c4a0253c198b2cb1edf59b802ebcedabd9b7a2515beaaf7e535ef70fa285f/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:bc276c40b172b1c5467277d36db5308a203a48262d5f278766cf083947d05466",
                "sha256:0c4ac070c4f03cca7c16a747fd9d467b485c061795399010bd3100581ec41c0a",
                "sha256:5d6bbd2dcce5feb5424d1e3ee6b44049d37071d175d18eb303a73a79916848d8",
                "sha256:16695a3a00062961220ed6f18b64cfd35358523af07e29a8883d0cafa5c96527",
                "sha256:a59e5a6ab44c1b2ed1afea4e2f931ef547f4bf63c6fdd8285b67fe8a5a2ce99f",
                "sha256:9036d1e8e0173202f37107495ca936ea7212936b6ee822bc0b9382e486a99e3d",
                "sha256:ee290c784570e9d71576d06e5c05cb1174d72c1c2b280d4cfa8018ccda0fed88",
                "sha256:b0a7804131f6cd5ae9b6527379c0a374fa76e960f2201e4d3dd2df94bb3cdde6",
                "sha256:2e640983d7088266c796b233ed6c949e118a8b043108b1e3c98e74413fec2383",
                "sha256:a9ae95a9e54ee4eeb73c72bf88e5d799274f94daa6f984924531d12633469129",
                "sha256:02b18ec11a49495185b7cef99d3ed5a332123c17fd699a460cbd7bfda57d0cae",
                "sha256:1a0a0799c42ce65f726c5454d3d6656b80dd854dbb05747e6d43f497e124535a",
                "sha256:93ce1cb27fbd99165639d00f5b8626d938ccf9de99aecbddb21c9a474eede731",
                "sha256:3e84b4adb1addaf3f08304f8629ffdaad7fb6bf4c52c19efea8ad390edde16ff",
                "sha256:cc31467c23b6882ffbd66baf9f5fea4d9783a396450214678452142a04607a4e"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

Additional context

Dexus pushed a commit that referenced this issue Sep 28, 2021
@Dexus Dexus closed this as completed Sep 28, 2021
@Dexus Dexus mentioned this issue Sep 30, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority:Low
Projects
None yet
Development

No branches or pull requests

4 participants