From 6990bd384a5a11f1dfa75bc32d094dd02d1851a2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 28 Aug 2018 16:14:58 +0000 Subject: user/netqmail: new package. First of *many* iterations. --- user/netqmail/netqmail.post-install | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 user/netqmail/netqmail.post-install (limited to 'user/netqmail/netqmail.post-install') diff --git a/user/netqmail/netqmail.post-install b/user/netqmail/netqmail.post-install new file mode 100644 index 000000000..b9c03e947 --- /dev/null +++ b/user/netqmail/netqmail.post-install @@ -0,0 +1,22 @@ +#!/bin/sh -e + +# Basic /var/qmail/control configuration so qmail has a chance to +# work out-of-the-box for very simple installations. + +name=`uname -n` +ddom=`echo "$name" | sed 's/^\([^\.]*\)\.\([^\.]*\)\./\2\./'` +pdom=`echo "$name" | sed 's/^.*\.\([^\.]*\)\.\([^\.]*\)$/\1.\2/'` + +cd /var/qmail/control +echo "$name" > me +echo "$name" > locals +echo "$name" > rcpthosts +echo "$name powered by qmail" > smtpgreeting +echo "$ddom" > defaultdomain +echo "$pdom" > plusdomain + +{ + echo "Minimal qmail configuration done in /var/qmail/control." + echo "Please check and adjust those settings before starting the service." + echo "Please review /etc/init.d/netqmail for more settings." +} 1>&2 -- cgit v1.2.3-70-g09d2