summaryrefslogtreecommitdiffstats
path: root/debian/tests/postfix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/tests/postfix19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/tests/postfix b/debian/tests/postfix
new file mode 100644
index 0000000..5186045
--- /dev/null
+++ b/debian/tests/postfix
@@ -0,0 +1,19 @@
+#!/bin/bash
+#----------------
+# Testing postfix
+#----------------
+set -e
+
+# reconfigure postfix
+debconf-set-selections <<< "postfix postfix/mailname string localhost" 2>&1
+debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'" 2>&1
+
+# install and modify
+hostname localhost
+apt-get install -y postfix 2>&1
+hostname --fqdn > /etc/mailname
+service postfix restart 2>&1
+python3 `dirname $0`/test-postfix.py 2>&1
+
+# check set-permissions
+postfix set-permissions