Implement SMTP server checks using STARTTLS

8 posts

vk
21 Oct

Is it possible to implement checks for SMTP servers using STARTTLS (port 25/587)?

Andrew SoftPerfect
22 Oct

Good idea, and it's now done. A newer build with it is in snapshots.

Just add the server with port 25 or 587, both of which are now in the port list of the host dialog as SMTP STARTTLS. Certificate Monitor connects, issues STARTTLS and checks the certificate the server presents, with the same expiry, chain, hostname and grade checks as any other host. In the details panel the TLS version is shown with (STARTTLS) next to it.

If a server doesn't offer STARTTLS, or refuses it, the host is shown as a TLS error, since such a server only accepts mail unencrypted. Port 465 (SMTPS) is checked with direct TLS, as before.

vk
22 Oct

Great job! Thank you!

vk
22 Oct

It would also be great to have a checkbox for each job that allows to disable the certchain-check. Some applications do not provide a chain, but only the certificate itself.

Andrew SoftPerfect
22 Oct

Who issued the certificate on those servers: a public CA such as Let's Encrypt or DigiCert, or your own internal CA?

A plain checkbox may not be a good idea, because the same check also catches an untrusted issuer or an invalid signature, and switching it off would hide those too.

If it's a public CA, Certificate Monitor could fetch the missing intermediate itself, as browsers do. If it's your own CA, importing its certificate into Trusted Root Certification Authorities in Windows fixes it as is.

vk
22 Oct

It's Let's Encrypt. I have an application that provides only the certificate, without the chain (even though 'fullchain.pem' is being used). Chrome, Edge, and Firefox do not report any certificate errors, but the certificate monitor indicates a chain error.

Andrew SoftPerfect
22 Oct

Thanks, that settled it. Certificate Monitor now downloads a missing intermediate certificate the way browsers do, so your server should now show as OK. The fix is in snapshots - please download it again.

Such a server is still graded B at most, because many non-browser clients can't complete the chain, so it's worth getting the application to send the intermediate too.

vk
22 Oct

Wonderful! Thank you so, so much!

Reply
Shown with your post. Sign in to keep the same name every time.
(optional, never shown)
Only needed if you want notifications about replies.
Drag files here, paste a screenshot, or . Images up to 10 MB. Text, log and zip files up to 2 MB. Up to 5 files per post.
You can edit your post until someone replies.