This file is indexed.

config is in greylistd 0.8.8.6.

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
#!/bin/sh
# Config module for greylistd.

set -e

. /usr/share/debconf/confmodule                                         
db_version 2.0

owner=greylistd
action="$1"
priorversion="$2"

true=0
false=1

running_exim4()
{
    test -x /usr/sbin/exim4 -a -d /etc/exim4
}


ismember()
{
    user=$1
    group=$2

    for candidate in $(id -Gn $user 2>/dev/null)
    do
        [ "$candidate" = "$group" ] && return $true
    done

    return $false
}



config_restartexim()
{
    if running_exim4 && ! ismember Debian-exim greylist
    then
        db_input low "$owner/restartexim" && db_go
    fi

    return 0
}

config_autoconfig_notdone()
{
    if running_exim4
    then
	question="$owner/autoconfig_notdone_exim4"
    else
	question="$owner/autoconfig_notdone"
    fi

    db_input high "$question" && db_go
    return 0
}


config_restartexim
config_autoconfig_notdone



db_stop
exit 0