-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
relay via: "No MX found for domain" (FreeBSD) #544
Comments
I have a similar issue, FreeBSD 10.1 with same software version as you mentioned above. I can't forward any email anymore. Always says "No MX found for domain", drill works fine showing me all details needed. Any way to fix it? Config mainly says
It worked until my recent update. |
The problem is probably due to the AI_ADDRCONFIG used in getaddrinfo. |
The lo1 iface, where the jails IPv4s are:
|
So the problem is that the jail inet4 addresses are bound to a loopback device, and loopback devices are skipped in the AI_ADDRCONFIG iteration (per rfc). |
PING ? |
Hi there. First of all, thank you very much for this great piece of software and all your hard work! I had the same issue with the "No MX found for domain" message, running OpenSMTPD inside a FreeBSD 10.1 jail and using a cloned loopback device as the jail network interface. If there's a better way to run OpenSMTPD inside a jail, I'd really like to read about it. |
We discussed this but eric and I both think this is an environment issue, the daemon does what it is expected to do in a "normal" environment (that is consider the loopback interface like... a loopback interface). The problem can be worked around by making changes to the environment and make it look a bit more like a real system, so this kind of comforts us in the idea that we should not throw code at the issue.
I don't really see the issue with that and it does seem considerably less risky than assigning a routable IP address to a loopback interface to be honest ;-) |
Hi, as a FreeBSD 10.1 and FreeBSD jails user, let me pleas emphasis on the problem this creates. Most, if not ALL FreeBSD Jail setup are based on a virtual loopback device where PF NATs every connections from / to the jails. All daemons I've used so far, and I am sure I am not the only one in that case, lives happily by listening on a loopback device with a private IP (for instance "lo1" with IP "172.16.0.10") Jails can of course share the host-os IP, but that's imo a bad idea. But, I can't resign myself to do what is suggested above, which is assigning an IP from 172.16.0.0/24 (or any other private net) to my public interface (!!!!) So please, re-consider the impact of this on real production FreeBSD servers. |
Of course we'll reconsider, let's discuss this some more, the goal is not to prevent FreeBSD users from running it. |
Ok, issue has been discussed and I have suggested a "fix" that is not a hack, that is valid for non-jails and that should unbreak jails using loopback interfaces with non-loopback addresses. The problem is not with OpenSMTPD but with libasr, therefore a new release of OpenSMTPD will not be required. I'll publish a libasr snapshot today with the fix included, it would be great if you guys could test it and confirm it unbreaks your jails so that we can prepare a libasr release. I'm re-opening the ticket until libasr has been released. |
Hi, will test ASAP, thank you for re-opening |
Here's the mail announcement for the snapshot in case you're not subscribed to the list: http://thread.gmane.org/gmane.mail.opensmtpd.general/2569 Please give feedback ;-) |
Ok, I've received several confirmations that this solves the issue. I'll close the ticket now, the issue is not in opensmtpd but libasr, it has been fixed today and there will be a libasr release soon that will automagically unbreak jails. |
I'm seeing a "No MX found for domain" when using the relay via instruction.
The host www is a FreeBSD 10.1 jail, trying to talk to 10.0.110.5, which is another jail.
Error:
New session:
Starting smtpd:
smtpd.conf:
Versions:
/etc/resolv.conf
/etc/hosts
What 10.0.110.5:25 is saying:
The text was updated successfully, but these errors were encountered: