* Sun Sep 01 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-1.sme

- initial version for SME11 [SME: ]
This commit is contained in:
2024-09-02 00:01:36 -04:00
parent dc13554e0b
commit c0a6540f34
50 changed files with 1822 additions and 25 deletions

View File

@@ -0,0 +1,17 @@
{
# If you set the server dns resolver to external
# (for the main domain) you can not login in roundcube
# with the imap authentication
use esmith::DomainsDB;
my $d = esmith::DomainsDB->open_ro;
my $domainname = $DB->get_value('DomainName') or
die ("Unable to retrieve the domain name: $!");
my $dns = $d->get_prop("$domainname",'Nameservers') or
die ("Unable to retrieve the Name Servers: $!");
if ($dns ne 'localhost') {
$DB->set_prop('imaps','access','public');
}
}