config is in ssmtp 2.64-5build1.
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 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ -f /etc/ssmtp/ssmtp.conf ]
then
for v in `grep -E "^(root|mailhub|rewriteDomain|hostname|FromLineOverride)=" /etc/ssmtp/ssmtp.conf`
do
export $v
done
db_set ssmtp/root "$root"
if [ -n "$mailhub" ]
then
if [ `expr index "$mailhub" :` -ne 0 ]
then
db_set ssmtp/port "${mailhub#*:}"
db_set ssmtp/mailhub "${mailhub%:*}"
else
db_set ssmtp/port 25
db_set ssmtp/mailhub "$mailhub"
fi
fi
if [ -n "$rewriteDomain" ]
then
db_set ssmtp/rewritedomain "$rewriteDomain"
fi
if [ -n "$hostname" ]
then
db_set ssmtp/hostname "$hostname"
fi
if [ -n "$FromLineOverride" ]
then
if [ "$FromLineOverride" = "YES" ]
then
db_set ssmtp/fromoverride true
else
db_set ssmtp/fromoverride false
fi
fi
fi
db_input medium ssmtp/root || true
db_go
db_input medium ssmtp/mailhub || true
db_go
db_input low ssmtp/port || true
db_go
db_input medium ssmtp/rewritedomain || true
db_go
db_input low ssmtp/hostname || true
db_go
db_input medium ssmtp/fromoverride || true
db_go
# Program End
exit 0
|