From c74df70e8371aa013bce60db7e12fc5139e11a09 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 29 Aug 2013 18:25:12 +0200 Subject: make test-swaks.sh be able to test mail delivery remotely --- test-swaks.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test-swaks.sh b/test-swaks.sh index 78c6cb4..51ca0c0 100755 --- a/test-swaks.sh +++ b/test-swaks.sh @@ -3,9 +3,16 @@ local='dummy@dev.bitmask.net' nobody_local='fooooooo@dev.bitmask.net' external='dummy@zeromail.org' +server='localhost' -swaks_options='--server localhost --tls --hide-informational --suppress-data' -swaks_auth='--tls-cert /root/cert.crt --tls-key /root/cert.key' +# override $server with possible exported shell var +[ $SWAKS_SERVER ] && server=$SWAKS_SERVER + +swaks_options="--server $server --tls --hide-informational --suppress-data -p 587" +swaks_auth="--tls-cert $HOME/leap/test/certs/cert.crt --tls-key $HOME/leap/test/certs/cert.key" + +echo "swaks_options: $swaks_options" +echo "swaks_auth : $swaks_auth" test_swaks() { from=$1 -- cgit v1.2.3