generated from smedev/Template-for-SMEServer-Core-Package
* Sun Sep 01 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-1.sme
- initial version for SME11 [SME: ]
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user