716e47e(New version of msmtpq script, 2013-02-14) added the connect_test() function. By setting EMAIL_CONN_TEST, the user could select how connect_test() would check for a working Internet connection. If the user didn’t specify EMAIL_CONN_TEST, then connect_test() would use ping by default.
0f794b7(Update msmtpq scripts., 2015-03-12) added a line that sets EMAIL_CONN_TEST to “n”. This means two things: 1. The default connection test is no longer the one that uses ping, but the comments in connect_test() still say that it’s the default. 2. The only way to switch to a different connection test is to edit the msmtpq script itself. Considering the number of changes in that commit and its brief commit message, it seems like that change was unintentional. This commit makes the connection test that uses ping the default again and allows users to choose a different test without modifying the msmtpq script itself.
Reference in new issue