- Add Tor to the docker image - Increase sleeping time in the mailsplit test
25 lines
433 B
Bash
25 lines
433 B
Bash
#!/usr/bin/bash
|
|
|
|
# source some functions
|
|
. common.sh
|
|
|
|
test_header "Mail split"
|
|
|
|
create_unix_user karl
|
|
KARL_FPR=$(gen_cert karl@example.com)
|
|
authenticate $KARL_FPR
|
|
|
|
create_unix_user laura
|
|
|
|
echo -e "To: karl@example.com, Laura <laura@example.com>\nSubject: Testmail\n\nTestmail." | sendmail -t
|
|
sleep 2
|
|
|
|
R=1
|
|
if [ $(expect_mail karl encrypted) == 0 ] ; then
|
|
if [ $(expect_mail laura unencrypted) == 0 ] ; then
|
|
R=0
|
|
fi
|
|
fi
|
|
|
|
exit $R
|