http://bugzilla.novell.com/show_bug.cgi?id=555732 Summary: Invalid $(hostname -i) usage SuSEconfig.postfix Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mt@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- --- Comment #0 from Marius Tomaschewski <mt@novell.com> 2009-11-16 09:22:19 UTC --- The use of $(hostname -i) as on 11.2 very easy breaks postfix, because it returns a _list_ of IP adresses: xanthos:~ # hostname -i 172.16.10.1 172.16.1.1 xanthos:~ # grep xanthos /etc/hosts 172.16.10.1 xanthos.mat-home.net xanthos 172.16.1.1 xanthos.mat-home.net xanthos or more worse, like this: xanthos:~ # hostname -f localhost xanthos:~ # hostname -i 127.0.0.1 172.16.10.1 172.16.1.1 xanthos:~ # grep xanthos /etc/hosts 127.0.0.1 localhost xanthos 172.16.10.1 xanthos.mat-home.net xanthos 172.16.1.1 xanthos.mat-home.net xanthos Note, that this list can also be very easy empty! This is the case when you disable to write it with 127.0.0.2 to /etc/hosts (WRITE_HOSTNAME_TO_HOSTS=no), the hostname update via dhcp is disabled (DHCLIENT_SET_HOSTNAME) or the dhcp server simply does not provide any, ... finally it may also happen due to an temporary DNS failure. Please fix, e.g. using a "for i in $(hostname -i) ; do" loop. Further, $FQHOSTNAME may be "linux.local" on two hosts (opensuse machines). I don't think that it is helpful to reject mails with "Liar!" -- in worst case this is an affront and maybe worth a lawsuit in best case bad style. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.