diff options
Diffstat (limited to 'setup-mta.in')
-rw-r--r-- | setup-mta.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-mta.in b/setup-mta.in index eaea499..3758d5c 100644 --- a/setup-mta.in +++ b/setup-mta.in @@ -64,7 +64,7 @@ while [ $# -eq 0 ] && [ "$res" != "221" ]; do if ! ask_yesno "Test connection? (y/n)" y; then break fi - res=$(echo -e "quit\r\n" | nc $mailhub 25 | awk '/^221/ {print $1}') + res=$(printf "quit\r\n\n" | nc $mailhub 25 | awk '/^221/ {print $1}') [ "x$res" = "x221" ] && echo "Connection to $mailhub is ok." done |