I came across a case that on some Docker images (eg. openjdk) there are problems with communication with SMTP server on non-standard ports, eg. MailDev default 1025. I do not know for what reasons this happens - from a pure Debian image I had no problems connecting to MailDev SMTP service on 1025.
MaiDev can not be configured to use port like 25 - it runs as non-root user and therefore it is forbidden to use ports below 1024.
As a workaround I propose to separate Pod ports (used by MailDev) and k8s Service ports, exposed to other applications.
I have added two more variables to values.yaml: services.smtp.podPort (with default value 1025) and services.web.podPort (with default value 1080).
This change is backwards compatible and allows to set any service ports including 25 or 80.
I came across a case that on some Docker images (eg.
openjdk
) there are problems with communication with SMTP server on non-standard ports, eg. MailDev default1025
. I do not know for what reasons this happens - from a pure Debian image I had no problems connecting to MailDev SMTP service on1025
.MaiDev can not be configured to use port like
25
- it runs as non-root user and therefore it is forbidden to use ports below 1024.As a workaround I propose to separate
Pod
ports (used by MailDev) and k8sService
ports, exposed to other applications.I have added two more variables to
values.yaml
:services.smtp.podPort
(with default value1025
) andservices.web.podPort
(with default value1080
).This change is backwards compatible and allows to set any service ports including
25
or80
.