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

[MailDev] Unable to set SMTP service port to 25 #1037

Closed
redzioch opened this issue Feb 5, 2024 · 1 comment
Closed

[MailDev] Unable to set SMTP service port to 25 #1037

redzioch opened this issue Feb 5, 2024 · 1 comment

Comments

@redzioch
Copy link

redzioch commented Feb 5, 2024

I tried to set SMTP port to 25 (--set="services.smtp.port=25"), but then container fails with error:

MailDev using directory /home/node/maildev-data
MailDev webapp running at http://0.0.0.0:1080/
/home/node/lib/mailserver.js:267
  } else throw err
         ^

Error: listen EACCES: permission denied 0.0.0.0:25
    at Server.setupListenHandle [as _listen2] (node:net:1734:21)
    at listenInCluster (node:net:1799:12)
    at doListen (node:net:1948:7)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'EACCES',
  errno: -13,
  syscall: 'listen',
  address: '0.0.0.0',
  port: 25
}

Node.js v18.17.0

This is because MailDev is run with non-root user and therefore it is unable to use ports below 1024.

As a workaround I propose to separate Pod ports used by MailDev from Service ports exposed to another applications.

I have created PR: #1036

@christianhuth
Copy link
Owner

fixed with v1.1.1 of the Helm Chart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants