smeserver-email/root/etc/e-smith/db/configuration/migrate/20smtpProxy

14 lines
422 B
Plaintext
Raw Normal View History

{
# In SME Server 7 smtpd Proxy used 'enabled'.
# In SME Server 8 the UI uses enabled but the configuration value is transparent.
# This migrate fragment is needed to allow upgrades from SME Server 7.
my $proxy = $DB->get_prop('qpsmtpd','Proxy') or return;
if ($proxy eq 'enabled')
{
$DB->set_prop('qpsmtpd','Proxy', 'blocked');
$DB->set_prop('qpsmtpd','Authentication', 'enabled');
}
}