This file is indexed.

config is in esmtp 1.2-12.

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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

db_input medium esmtp/overwriteconfig || true
db_go

db_get esmtp/overwriteconfig || true
OverwriteConfig="${RET:-true}"

if test ! -s /etc/esmtprc -o "$OverwriteConfig" = "true"
then
	db_get esmtp/hostname || true
	HostName="$RET"
	
	if ! test "$HostName"
	then
		if test -s /etc/mailname
		then
			db_set esmtp/hostname `cat /etc/mailname`
		else
			db_set esmtp/hostname `hostname --fqdn`
		fi
	fi
	
	db_input medium esmtp/hostname || true
	db_go

	db_input low esmtp/hostport || true
	db_go

	db_input medium esmtp/username || true
	db_go

	db_get esmtp/username || true
	UserName="$RET"

	if test "$UserName"
	then
		db_input medium esmtp/password || true
		db_go
	fi

	db_input low esmtp/starttls || true
	db_go

	db_get esmtp/starttls || true
	StartTLS="$RET"

	if test "$StartTLS" != "disabled"
	then
		db_input low esmtp/certificate_passphrase || true
		db_go
	fi

	db_get esmtp/mda || true
	MDA="$RET"
	
	if test -z "$MDA" -a -x /usr/bin/procmail
	then
		MDA=procmail
	fi
	
	if test -z "$MDA" -a -x /usr/bin/maildrop
	then
		MDA=maildrop
	fi
	
	if test -z "$MDA"
	then
		MDA=none
	fi
	
	db_set esmtp/mda "$MDA"
		
	db_input low esmtp/mda || true
	db_go
fi

# Program End
exit 0