3 local='dummy@dev.bitmask.net'
4 nobody_local='fooooooo@dev.bitmask.net'
5 external='dummy@zeromail.org'
7 swaks_options='--server localhost --tls --hide-informational --suppress-data'
8 swaks_auth='--tls-cert /root/cert.crt --tls-key /root/cert.key'
14 echo -n "From $from, to $to, no authentication:"
15 swaks -f $from -t $to $swaks_options | tail -3 | head -1
17 echo -n "From $from, to $to, with authentication:"
18 swaks -f $from -t $to $swaks_options $swaks_auth | tail -3 | head -1
22 test_swaks $local $local
23 test_swaks $local $nobody_local
24 test_swaks $local $external
28 test_swaks $nobody_local $local
29 test_swaks $nobody_local $nobody_local
30 test_swaks $nobody_local $external
34 test_swaks $external $local
35 test_swaks $external $nobody_local
36 test_swaks $external $external