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
Runtime option to enable IPv4 preference over IPv6 #1176
Comments
Isn't this something you can configure via resolved directly? I tried looking locally for my own config but couldn't quite remember where it was located, and I think that in my case at least, I'm relying on systemd-specific configs to prefer v6 resolution over v4. |
I configured the resolver to prefer IPv4 using |
Sorry for the long delay. OpenSMTPD uses its own DNS resolver, which is a port of OpenBSD' asr, so I don't think it would honour OpenSMTPD/openbsd-compat/libasr/asr.c Lines 541 to 552 in e2703a1
but it is a build-item knob, it's not possible to change it via a configuration option. (although I think we should, by default, mirror OpenBSD and have ipv4 before ipv6) |
Is there any flag to make OpenSMTPD try resolving IPv4 addresses first instead of IPv6 addresses?
GMail seems to strongly prefer emails coming from IPv4 addresses, and the option to have IPv4 preference has been locked away a long time ago by a compile time flag (#182).
The text was updated successfully, but these errors were encountered: