summaryrefslogtreecommitdiff
path: root/user/netqmail/netqmail.post-install
blob: b9c03e947b2f3e2c40cce5b3e326ea3588c26357 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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