This file is indexed.

config is in nullmailer 1:1.05-1.

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
#!/bin/sh

set -e

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

if [ -e /etc/mailname ]; then
	db_set shared/mailname "`cat /etc/mailname`"
else
	db_get shared/mailname
	if [ -z "$RET" ]; then
		db_set shared/mailname "`hostname --fqdn`"
	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/:$//'`"
else
	db_get nullmailer/relayhost
	if [ -z "$RET" ]; then
		db_set nullmailer/relayhost "mail.`hostname --domain`"
	fi
fi

if [ -e /etc/nullmailer/adminaddr ]; then
	db_set nullmailer/adminaddr "`cat /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