Add test framework to test
- Mail encryption (when expected) - Introducer listing, adding and removing - Locals listing, adding and removing
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
echo "test message" | sendmail -t root@example.com
|
||||
adduser --shell /bin/bash --disabled-password --gecos "" mtatest
|
||||
echo "test message" | sendmail -t mtatest@example.com
|
||||
sleep 1
|
||||
|
||||
## simple test if mail passes
|
||||
if [ -f /var/mail/root ] ; then
|
||||
if [ -f /var/mail/mtatest ] ; then
|
||||
echo "success"
|
||||
rm /var/mail/root
|
||||
rm /var/mail/mtatest
|
||||
else
|
||||
echo "failure"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
## test encryption
|
||||
## bob@example.com has an authenticated certificate in
|
||||
## bob@example.com has an authenticated certificate in
|
||||
## the cert store
|
||||
echo "test message" | sendmail -t bob@example.com
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user