foxcpp / maddy

✉️ Composable all-in-one mail server.
https://maddy.email
GNU General Public License v3.0
5k stars 240 forks source link

Does maddy support tcp6/ipv6 listen on ipv6 port? #562

Closed mateors closed 1 year ago

mateors commented 1 year ago

Can I run maddy email server listening on the ipv6 port? I tried but failed so does anyone knows if it is possible and how.

foxcpp commented 1 year ago

tcp://0.0.0.0:587 and tcp://[::]:587 will listen on both IPv4 and IPv6. You can specify an IPv6 address to listen only on IPv6: tcp://[2607:5300:60:126b::1]:587. No need to qualify tcp as tcp4 or tcp6.

mateors commented 1 year ago

@foxcpp tcp://[::]:25 I updated this, seems maddy running without issue but the port is unable to communicate, it says ... Result: FAILED: dial tcp [fe80::216:3cff:fec9:7f0f]:25: connect: invalid argument

nano /etc/maddy/maddy.conf image

image

foxcpp commented 1 year ago

You did set an IPv6 link-local address as an AAAA record. These addresses are not meaningful outside of your (or providers) network and won't work.

mateors commented 1 year ago

@foxcpp Actually I wanted to establish a similar connection as you see in the below screenshot image

so as you mentioned my IPV6 is valid for local networking only, this is not a public ipv6, and for the above connection, I need to have a public IPV6 right?

mateors commented 1 year ago

I removed the AAAA record from my DNS Zone and it seems working!

image

foxcpp commented 1 year ago

Yup, you are right.