| Server IP : 185.125.27.153 / Your IP : 216.73.216.193 Web Server : Apache System : Linux d6e05399ed1f11695f7c56648ed78c66 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64 User : uid174255 ( 174255) PHP Version : 8.3.31 Disable Function : exec,passthru,pcntl_exec,popen,proc_open,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh
set -e
if [ -e /usr/share/debconf/confmodule ] ; then
. /usr/share/debconf/confmodule
fi
config_to_debconf () {
if [ -f /etc/msmtprc ]; then
var=$(grep ^$1 /etc/msmtprc | awk '{ print $2 }')
if [ "$var" = "on" ]; then
db_set msmtp/$1 true
elif [ "$var" != "" ]; then
db_set msmtp/$1 $var
fi
fi
db_input $2 msmtp/$1 || true
db_go
}
if [ -f /etc/msmtprc ]; then
db_set msmtp/sysconfig true
else
db_input medium msmtp/sysconfig || true
db_go
fi
db_get msmtp/sysconfig
if [ "$RET" = "false" ]; then
exit 0
else
config_to_debconf host high
config_to_debconf port low
config_to_debconf auto_from medium
db_get msmtp/auto_from
if [ "$RET" = "true" ] ; then
config_to_debconf maildomain medium
fi
config_to_debconf tls low
fi
db_stop