Might be useful to implement connection and socket timeouts, i.e. mail.{protocol}.connectiontimeout mail.{protocol}.timeout
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3365