They are on speaking terms. They just know each other.
They are not on speaking terms.
Though they know each other, they do not even salute each other in
the street, or say “How d'ye do?”
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894