Retrieve SSL cert from mail server

How can I retrieve the self-signed SSL cert that DreamHost uses on its mail servers? I’m not even sure where the cert might be located. Sorry if this has a very simple solution, and thanks in advance to anyone who might be able to help.

In case anyone else has the same question, here’s the answer. Run this OpenSSL function:

openssl s_client -connect