cfgfoo

git clone https://orangeshoelaces.net/git/cfgfoo.git

47ce3a0b3b41bd83737244f5799276fc5c1a568f

Author: Vasilii Kolobkov on 12/18/2018

Committer: Vasilii Kolobkov on 12/18/2018

Check smptd configuration files

Stats

aliases           | 2 ++
steps/smtpd/check | 7 +++++++
2 files changed, 9 insertions(+)

Patch

diff --git a/aliases b/aliases
index 6b71b75..701467a 100644
--- a/aliases
+++ b/aliases
@@ -15,3 +15,5 @@ alias pfload="cfgfoo ${CFGFOOPATH}/steps/pf/load -s "
 alias rcenable="cfgfoo ${CFGFOOPATH}/steps/rc/enable "
 alias rcstart="cfgfoo ${CFGFOOPATH}/steps/rc/start "
 alias rcreload="cfgfoo ${CFGFOOPATH}/steps/rc/reload "
+
+alias smtpdcheck="cfgfoo ${CFGFOOPATH}/steps/smtpd/check -s "
diff --git a/steps/smtpd/check b/steps/smtpd/check
new file mode 100644
index 0000000..5e54a26
--- /dev/null
+++ b/steps/smtpd/check
@@ -0,0 +1,7 @@
+step_taken() {
+	false
+}
+
+take_step() {
+	smtpd -n -f "$1"
+}