ieugen / james-self-hosting-sandbox

A sample project to work on self hosting email server with Apache James
4 stars 1 forks source link

java.net.BindException when using :james-server:runJamesServer task #11

Closed dleangen closed 4 years ago

dleangen commented 4 years ago

I think the gradle :james-server:runJamesServer task is nice, but for some reason the ports won't bind when I use this on my Mac.

Wrapped by: org.jboss.netty.channel.ChannelException: Failed to bind to: /127.0.0.9:993
...
Caused by: java.net.BindException: Can't assign requested address

The strange thing is that when I run a port scan, I notice that nothing seems to be using these ports.

PastedGraphic-1
chibenwa commented 4 years ago

993 is imap, check imapserver.xml (by default SSL is binding port 993) and run with "sudo" in order to be able to bind ports below 1024.

ieugen commented 4 years ago

Don't use ports < 1000 locally. They require root.

dleangen commented 4 years ago

I was just running the scripts. I take it you don't care to hear any feedback. I'll probably start my own project with a development environment that I am more used to if this is not intended for collaboration. I thought this this would be something that users would use. I didn't realize that it was only for your own personal use. Sorry that I misunderstood!