nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

config-fast.sh (973B)


      1 fqdn="$1"
      2 echo Your fully qualified host name is "$fqdn".
      3 
      4 echo Putting "$fqdn" into control/me...
      5 echo "$fqdn" > QMAIL/control/me
      6 chmod 644 QMAIL/control/me
      7 
      8 ( echo "$fqdn" | sed 's/^\([^\.]*\)\.\([^\.]*\)\./\2\./' | (
      9   read ddom
     10   echo Putting "$ddom" into control/defaultdomain...
     11   echo "$ddom" > QMAIL/control/defaultdomain
     12   chmod 644 QMAIL/control/defaultdomain
     13 ) )
     14 
     15 ( echo "$fqdn" | sed 's/^.*\.\([^\.]*\)\.\([^\.]*\)$/\1.\2/' | (
     16   read pdom
     17   echo Putting "$pdom" into control/plusdomain...
     18   echo "$pdom" > QMAIL/control/plusdomain
     19   chmod 644 QMAIL/control/plusdomain
     20 ) )
     21 
     22 echo Putting "$fqdn" into control/locals...
     23 echo "$fqdn" >> QMAIL/control/locals
     24 chmod 644 QMAIL/control/locals
     25 
     26 echo Putting "$fqdn" into control/rcpthosts...
     27 echo "$fqdn" >> QMAIL/control/rcpthosts
     28 chmod 644 QMAIL/control/rcpthosts
     29 echo "Now qmail will refuse to accept SMTP messages except to $fqdn."
     30 echo 'Make sure to change rcpthosts if you add hosts to locals or virtualdomains!'