helo: improved invalid_localhost detection