-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Opensmtpd fails to start when IPv6 is semi-disabled #1108
Comments
Can you provide more details, such as the distro you're using ? I have just tested on an Ubuntu and:
At least on that Linux, it works as expected |
You haven't disabled IPv6 like I've shown by using two sysctl parameters. Compare your The distro doesn't matter as we are talking about core networking which is the same between distros. |
Read the entire sequence I pasted 🙂 I setup a brand new Linux with inet6, showed the ifconfig with ::1, started the daemon in foreground successfully, THEN disabled inet6 with both sysctl, showed the ifconfig without ::1 and started the daemon in foreground again successfully. Did I do it wrong and not see ? As for the distro, I don't want to invest time in tracking a bug if I have partial information, let me decide if the distro matters when I can reproduce the issue on the same environment as you. I recently spent days tracking a bug in something that wasn't supposed to be different between distros but ended up being subtly different between a glibc and a musl distro. |
My bad :-( My distro is Fedora 33. Loopback is not the only interface that I have, the other has a link-local IPv6 address attached to it but not lo. E.g.
Strace shows this:
So for some reasons the daemon sees |
Thanks, will try to reproduce ! |
I had the same issue as the OP, disabled IPv6 on Debian and OpenSmtpd failed to restart. Then I looked at my server network settings (VPS): I have IPv4 and IPv6, and IPv6 is tagged as "first IP". I looked again in my SMPT config, I saw this line: I changed it into: Restarted OpenSmtpd and it worked. Btw., I disabled IPv6 because outgoing email to Google was rejected because "Our system has detected that this message does not meet IPv6 sending guidelines regarding PTR records and authentication". |
Under Linux if you disable IPv6 support this way:
Opensmtpd will fail to start:
This is a bug, please fix.
So technically IPv6 support is there but the loopback interface doesn't have an IPv6 address assigned.
The text was updated successfully, but these errors were encountered: