SMTP Happy Eyeballs

I have a local SMTP server configured for use with my internal servers. The SMTP server is only listening on IPv6. In the Keycloak SMTP configuration I have to manually enter the IPv6 address of the SMTP server. When I enter the FQDN of the SMTP server it fails because it tries to connect on IPv4 from Keycloak. I have tested by enabling inet4 on my SMTP server.

Should I put in an issue on Github for this or is there a configuration I can change on the server to resolve this?

I’d suggest to open a discussion in the Keycloak GitHub repo and ask there for help, if somebody knows if this is possible. If there is a “no” or no answer, I’d convert the discussion into a enhancement issue to request IPv6 compliance for SMTP connections.
Let’s see what answers you get from there…

Will do!

IPv6 is working fine with SMTP. The issue is it isn’t following the standard of trying IPv6 first. If you use a FQDN that has both an A and a AAAA record, it using the IPv4 address by default.