[Bug 824141] New: appending 127.0.0.2 line to /etc/hosts causes postfix to go berseck
https://bugzilla.novell.com/show_bug.cgi?id=824141 https://bugzilla.novell.com/show_bug.cgi?id=824141#c0 Summary: appending 127.0.0.2 line to /etc/hosts causes postfix to go berseck Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: carlos.e.r@opensuse.org QAContact: jsrain@suse.com Found By: --- Blocker: --- There is a feature request here: https://features.opensuse.org/308824 closed because 11.3 was done. But 12.3 is active and problem remains. The Bugzillas named there are not accessible to me (access denied). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=824141
https://bugzilla.novell.com/show_bug.cgi?id=824141#c1
--- Comment #1 from Carlos Robinson
Apararently, my previous reply has been lost. I resend.
On 2013-06-12 14:40, Wietse Venema wrote:
Carlos E. R.:
Does the machine have a network interface with IP address 127.0.0.2?
Dunno. I guess not, because it is not listed in ifconfig output.
Then, 127.0.0.2 should not be specified in inet_interfaces. Wietse ····································++- Thus, they reject this being a postfix problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=824141
https://bugzilla.novell.com/show_bug.cgi?id=824141#c2
--- Comment #2 from Aaron Burgemeister
https://bugzilla.novell.com/show_bug.cgi?id=824141
https://bugzilla.novell.com/show_bug.cgi?id=824141#c3
--- Comment #3 from Carlos Robinson
Any idea why Postfix is looking in /etc/hosts in the first place? Would binding 127.0.0.2 explicitly fix things?
The test about "Does the machine have a network interface with IP address 127.0.0.2" seems to miss the entire point that every machine, per RFC, binds the entire class A 127.x.x.x network to the loopback (lo) address by default, as shown here:
Well, that surpasses my capacities, you would have to take it with the postfix people (local maintainers or upstream) :-) What I know is that the line: 127.0.0.2 some_host.some_domain some_host in hosts, combined with the line: inet_interfaces = $myhostname, localhost in postfix/main.cf causes this error in postfix: fatal: parameter inet_interfaces: no local interface found for 127.0.0.2 My reading is that "$myhostname" gets translated to some_host.some_domain, and this to 127.0.0.2, and this back to "localhost" (the entire 127 range).
Because of this, as well as the proper function of 99% of applications out there, this feels like a bug in Postfix. I still agree that, like in SLE, the default to write the hostname to the loopback address is a bug because it was implemented to work around other products' bugs, but in the end fixing this is missing the point.
I have read that it also breaks ntp, samba, ldap... the reports that should explain this are closed to me, I have no permissions to read them, so I can't argue those points (per the feature request initial post). On the other hand, I read that sendmail needs this line. What I would propose is a compromise: as there is a tick box to enable/disable this in YaST network configuration module, that tick box should display a text explaining what it does, and what breaks either way, so that if we get hit by the problems we know where they come from and we don't need to google it ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=824141
https://bugzilla.novell.com/show_bug.cgi?id=824141#c4
--- Comment #4 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=824141
https://bugzilla.novell.com/show_bug.cgi?id=824141#c5
--- Comment #5 from Aaron Burgemeister
https://bugzilla.novell.com/show_bug.cgi?id=824141
https://bugzilla.novell.com/show_bug.cgi?id=824141#c6
Per Jessen
b) Sending with a source IP specified? Why would the system's routing tables not be allowed to do their job in finding a source IP to use when sending something out?
Because the system's routing tables cannot always be relied upon to do the job correctly :-) For those situations postfix has "smtp_bind_address" and "smtp_bind_address6".
I'm afraid I do not understand Postfix's problem yet. Am I correct in assuming the problem comes because Postfix requests the address assigned to the current hostname, and does that so that it can send pings out to destinations with a source IP address specified?
afaict, postfix tries to identify the interface belonging to an address it has been configured to listen on. (I don't know why). I'm not sure, but it appears that postfix does not take the special properties of the loop-back interface into account. It probably could, but the situation is a bit contrived, imho. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=824141
https://bugzilla.novell.com/show_bug.cgi?id=824141#c
FeiXiang Zhang
participants (1)
-
bugzilla_noreply@novell.com