msmtp-scripts: Make conn_test default nc
authorDaniel F. Dickinson <cshored@thecshore.com>
Tue, 27 Aug 2019 05:53:51 +0000 (01:53 -0400)
committerDaniel F. Dickinson <cshored@thecshore.com>
Tue, 27 Aug 2019 10:54:56 +0000 (06:54 -0400)
commit3c15d410a9221d212193d386bcb2dbd9b723c62d
tree88e435612483e63094ea7bd63e1d907a14d13792
parent9c43805ae5df1684f69246cd045ebebac6fe8dc8
msmtp-scripts: Make conn_test default nc

On OpenWrt nc (netcat) connectivity test makes more sense than
ping because a) for non-root users ping is not permitted, and
b) nc is a default binary included with OpenWrt.
We do, however, have to change the upstream default from using
`nc -vz` to `printf "<http head request>"|nc` (with openwrt
nc if text is sent then nc closes after a response and fails
if no connection is made; the response is already thrown away
(to /dev/null) by the existing code).

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
mail/msmtp-scripts/Makefile
mail/msmtp-scripts/files/msmtpq-ng-mta.rc
mail/msmtp-scripts/files/msmtpq-ng.rc