I had been taught that the tradition of clinking glasses together originated at feasts of the aristocracy.
In order to prove that nobody was drinking from a poisoned chalice, everybody clinked glasses together to spill some of the contents into the glass of the other guests.
HB