Great work!!! Thank you.

In my server openssl go to 100% cpu, to avoid this i suggest to change (/usr/bin/gmail-smtp):

#!/bin/sh
/usr/bin/killgmail&
/usr/bin/openssl s_client -connect...