This file is indexed.

config is in nullmailer 1:2.1-5.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh

set -e

. /usr/share/debconf/confmodule
db_version 2.0
db_capb backup

if [ -e /etc/mailname ]; then
	db_set shared/mailname "`head -n1 /etc/mailname`"
else
	db_get shared/mailname
	if [ -z "$RET" ]; then
		db_set shared/mailname "`hostname --fqdn`"
	fi
fi
db_get shared/mailname; DOMAIN=`echo -n $RET | cut -s -d. -f2-`

if [ -e /etc/nullmailer/defaultdomain ]; then
	db_set nullmailer/defaultdomain "`head -n1 /etc/nullmailer/defaultdomain`"
else
	db_get nullmailer/defaultdomain
	if [ -z "$RET" ]; then
		db_set nullmailer/defaultdomain "$DOMAIN"
	fi
fi

if [ -e /etc/nullmailer/remotes ]; then
	# Replace newlines with :, then fix any extra : that might turn up.
	# db_set nullmailer/relayhost "`cat /etc/nullmailer/remotes | tr '\n' ':' | sed 's/::*/:/g;s/:$//'`"
	db_set nullmailer/relayhost `awk -vORS=" : " 'NF == 0 { next } \
					  $1 ~ /:/ && $1 ~ /^[0-9a-fA-F:]+(%[0-9a-z]+)?$/ \
					   	{ sub($1,"[&]",$0) } \
					  { print }' /etc/nullmailer/remotes | sed 's/ *: *$//'`
else
	db_get nullmailer/relayhost
	if [ -z "$RET" ]; then
		db_set nullmailer/relayhost "mail${DOMAIN:+.$DOMAIN}"
	fi
fi

if [ -e /etc/nullmailer/adminaddr ]; then
	db_set nullmailer/adminaddr "`head -n1 /etc/nullmailer/adminaddr`"
else
	db_get nullmailer/adminaddr
fi

state=1
while [ "$state" -ge 1 -a "$state" -le 3 ]; do
	case "$state" in
	1)	db_input high shared/mailname || true
		;;
	2)	db_input high nullmailer/relayhost || true
		;;
	3)	db_input medium nullmailer/adminaddr || true
		;;
	esac
	if db_go; then
		state=$(($state + 1))
	else
		state=$(($state - 1))
	fi
done

db_stop
exit 0