Skip to content

Bug: Mail server not using all of his ports with compose defaults #219

@easymoney322

Description

@easymoney322
onlyoffice-mail-server  | [ INFO ] Configure MySQL database server.
onlyoffice-mail-server  | ERROR 1062 (23000) at line 3 in file: '/tmp/cluebringer_init_sql.218822149': Duplicate entry 'SenderIP:172.21.0.3' for key 'greylisting_whitelist.Source'
onlyoffice-mail-server  | Starting crond:                  [  OK  ]
onlyoffice-mail-server  | Starting Dovecot Imap: Error: socket() failed: Address family not supported by protocol
onlyoffice-mail-server  | Error: service(pop3-login): listen([::], 110) failed: Address family not supported by protocol
onlyoffice-mail-server  | Error: socket() failed: Address family not supported by protocol
onlyoffice-mail-server  | Error: service(pop3-login): listen([::], 995) failed: Address family not supported by protocol
onlyoffice-mail-server  | Error: socket() failed: Address family not supported by protocol
onlyoffice-mail-server  | Error: service(imap-login): listen([::], 143) failed: Address family not supported by protocol
onlyoffice-mail-server  | Error: socket() failed: Address family not supported by protocol
onlyoffice-mail-server  | Error: service(imap-login): listen([::], 993) failed: Address family not supported by protocol
onlyoffice-mail-server  | Fatal: Failed to start listeners
onlyoffice-mail-server  |                                  [FAILED]
onlyoffice-mail-server  | Starting system logger:          [  OK  ]
onlyoffice-mail-server  | Starting amavisd:                [  OK  ]
onlyoffice-mail-server  |
onlyoffice-mail-server  | Starting postfix:                [  OK  ]
onlyoffice-mail-server  | Starting cbpolicyd:              [  OK  ]
onlyoffice-mail-server  | Starting Clam AntiVirus Daemon: LibClamAV Warning: **************************************************
onlyoffice-mail-server  | LibClamAV Warning: ***  The virus database is older than 7 days!  ***
onlyoffice-mail-server  | LibClamAV Warning: ***   Please update it as soon as possible.    ***
onlyoffice-mail-server  | LibClamAV Warning: **************************************************

I get container's IP with inspect:

     "ExposedPorts": {
                "143/tcp": {},
                "25/tcp": {},
                "3306": {},
                "3306/tcp": {},
                "4190/tcp": {},
                "465/tcp": {},
                "587/tcp": {},
                "8081": {},
                "8081/tcp": {},
                "993/tcp": {},
                "995/tcp": {}
            },

110 Isn't even delcared.

            "Ports": {
                "143/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "143"
                    }
                ],
                "25/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "25"
                    }
                ],
                "3306/tcp": null,
                "4190/tcp": null,
                "465/tcp": null,
                "587/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "587"
                    }
                ],
                "8081/tcp": null,
                "993/tcp": null,
                "995/tcp": null
            },

So either remove non-used ports from the image//image's configs, hide them behind feature flag, or expose them properly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions