Does there exist a non-compact metric space $X$ , such that for every maximal ideal $M$ of $\mathcal C(X, \mathbb R)$ ,
$\exists a \in X$ such that $M:=\{f \in \mathcal C(X, \mathbb R) : f(a)=0 \}$ ?
Does there exist any such non-compact topological space $X$ ?
This is just a comment ,not an "exact" answer of the question.
The following result is basically Theorem 2.1 in C∞-differentiable spaces by Juan A. Navarro González and Juan B. Sancho de Salas:
Theorem: For any manifold $M$ ,the maximal ideals of $C(M)$ whose residue field is $\mathbb R$ is exactly in bijection with the points of $M$.