Skip to content

[BUG] - front mail ports are not exposed via hostPort #543

Description

@mreiche

Describe the bug
The documentation says:

All mail ports of the "front" POD will be simply exposed via the "hostPort" function.

But the front pod has only the following ports opened:

mailu-front-68bcb7cb4c-5fh6g:/app# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:10204         0.0.0.0:*               LISTEN      13/nginx -g daemon 
tcp        0      0 0.0.0.0:2525            0.0.0.0:*               LISTEN      12/dovecot
tcp        0      0 0.0.0.0:14190           0.0.0.0:*               LISTEN      12/dovecot
tcp        0      0 127.0.0.1:8000          0.0.0.0:*               LISTEN      13/nginx -g daemon 
tcp        0      0 0.0.0.0:10025           0.0.0.0:*               LISTEN      12/dovecot
tcp        0      0 0.0.0.0:10143           0.0.0.0:*               LISTEN      12/dovecot
tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      12/dovecot
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      13/nginx -g daemon 
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      13/nginx -g daemon

Only port 80 and 25 are ready.
I reviewed the /etc/dovecot/proxy.conf and provided some environment variables:

front:
  extraEnvVars:
    - name: PORT_587
      value: "1"
    - name: TLS_993
      value: "1"
    - name: PORT_143
      value: "1"
    - name: TLS_465
      value: "1"

That enables some dovecot proxy ports:

mailu-front-8f48fdd79-sdnms:/app# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      13/dovecot
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      13/dovecot

But what about the the TLS ports?
It looks like, that the whole Dovecot Proxy is not ready and the documentation misleading.

To Reproduce

Enable hostPorts

front:
  hostPort:
    enabled: true

And test for open ports on the node:

nc -vt localhost 25  # Always works (forwarded by Nginx)
nc -vt localhost 587 # fails

Also using externalService doesn't change anything on this behaviour:

front:
  hostPort:
    enabled: false
  externalService:
    enabled: true
    type: LoadBalancer
    externalTrafficPolicy: Local

Expected behavior
The ports should be opened, forwarded to postfix/dovecot or properly proxied.

Environment (please complete the following information):

  • Helm Chart Version: 2.6.3
  • Kubernetes Platform: k3s

Values.yaml Configuration
see above

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues that are confirmed to be bugs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions