#!/bin/sh
# WARNING: This file was auto-generated. Do not edit!
./hostname | tr '[A-Z]' '[a-z]' | (
  if read host
  then
    echo Your hostname is "$host".
    ./dnsfq "$host" | tr '[A-Z]' '[a-z]' | (
      if read fqdn
      then
        echo Your host\'s fully qualified name in DNS is "$fqdn".
	echo Putting "$fqdn" into control/idhost...
	echo "$fqdn" > /var/mini-qmail/control/idhost
	chmod 644 /var/mini-qmail/control/idhost
	echo ' '
	echo Please do not forget about setting control/qmqpservers
	echo by running config-qmqpserver.
	echo 
      else
        echo Sorry, I couldn\'t find your host\'s canonical name in DNS.
        echo You will have to set up control/idhost yourself by running
	echo config-idhost-fast.
      fi
    )
  else
    echo Sorry, I couldn\'t find your hostname.
    echo You will have to set up control/idhost yourself.
  fi
)
