I needed TLS and authentication support for my mail server in patchbomb. I added three new variables to the smtp section of the .hgrc configuration file to support it (tls, username, password). It seems to work if you're reading this ;)