diff options
author | varac <varacanero@zeromail.org> | 2013-08-29 18:25:12 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-08-29 18:25:12 +0200 |
commit | c74df70e8371aa013bce60db7e12fc5139e11a09 (patch) | |
tree | 9e59092cbe5b3739765bcdaeef71a1acbd25cd52 | |
parent | 7599fc6cf78ad274b7432228f5125e595cc57e31 (diff) |
make test-swaks.sh be able to test mail delivery remotely
-rwxr-xr-x | test-swaks.sh | 11 |
1 files 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 |