4 Commits

Author SHA1 Message Date
c53da784a1 * Mon Feb 17 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-7.sme
- fix roundcube not accessible after install [SME: 12928]
- avoid need to relog in case of reloading of configuration [SME: 12929]
2025-02-17 00:53:59 -05:00
e953fc8ab6 * Mon Feb 17 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-7.sme
- fix roundcube not accessibel after install [SME: 12928]
2025-02-17 00:36:56 -05:00
98223108e9 cleanup 2025-02-17 00:23:11 -05:00
00f46e1e5a * Wed Feb 12 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-6.sme
- fix typo in roundcubemail.action [SME: 12917]
2025-02-12 23:34:49 -05:00
7 changed files with 25 additions and 17 deletions

View File

@@ -1 +0,0 @@
sme10

View File

@@ -60,7 +60,6 @@ for my $event (qw(
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init");
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dovecot");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/qmail");
}
@@ -74,7 +73,7 @@ foreach my $event (qw(
))
{
event_link("qmail-update-user", $event, "20");
event_link("roundcube-conf", $event, "03");
event_link("roundcube-conf", $event, "05");
}
safe_symlink("/usr/share/php/Net/LDAP3","root/usr/share/pear/Net/LDAP3");
safe_symlink("/usr/share/php/Net/LDAP3.php","root/usr/share/pear/Net/LDAP3.php");

View File

@@ -1 +1 @@
roundcubemail:any:/sbin/e-smith/signal-event smeserver-roundcube
roundcubemail:any:/sbin/e-smith/signal-event smeserver-roundcube-update

View File

@@ -8,13 +8,23 @@
$DB->set_prop('roundcube','access', "private");
$DB->set_prop('roundcube','access', "public") if ($PublicAccess =~ /global/);
$DB->set_prop('roundcube','status', "disabled") if ($PublicAccess == "none");
}
}
my $pw = $rec->prop('DbPassword');
return "" if $pw;
$rec->set_prop('DbPassword', sprintf("%15.0f", int( (1000000000000000) * rand() )));
$rec->set_prop('DbPassword', sprintf("%15.0f", int( (1000000000000000) * rand() ))) unless $pw;
my $pwd = $rec->prop('des_key');
unless ($pwd) {
open( RANDOM, "/dev/urandom" );
my $buf;
read( RANDOM, $buf, 17);
$pwd = encode_base64($buf);
chomp $pwd;
close RANDOM;
$rec->set_prop('des_key', $pwd);
}
}

View File

@@ -3,7 +3,7 @@
/usr/bin/sed -i -e 's/^.*error_reporting.*$/ \/\/rem/' /usr/share/roundcubemail/program/lib/Roundcube/bootstrap.php
# update composer
# if installed before user apache becoem an alias of www 102
# if installed before user apache becom an alias of www 102
/bin/rpm --setugids roundcubemail
/bin/rpm --setperms roundcubemail

View File

@@ -113,14 +113,7 @@ $config['x_frame_options'] = 'sameorigin';
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
{
use MIME::Base64 qw(encode_base64);
open( RANDOM, "/dev/urandom" );
my $buf;
read( RANDOM, $buf, 17);
my $pwd = encode_base64($buf);
chomp $pwd;
close RANDOM;
$OUT .= "\$config['des_key'] = \'$pwd\' ;\n";
$OUT .= "\$config['des_key'] = \'".$roundcube{'des_key'}."\' ;\n";
}
// Automatically add this domain to user names for login

View File

@@ -1,6 +1,6 @@
%define name smeserver-roundcube
%define version 1.6
%define release 5
%define release 7
Summary: smserver rpm to setup roundcube, an IMAP mail client
Name: %{name}
@@ -85,6 +85,13 @@ fi
%attr(755,root,root) /usr/bin/rcplugin_update.sh
%changelog
* Mon Feb 17 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-7.sme
- fix roundcube not accessible after install [SME: 12928]
- avoid need to relog in case of reloading of configuration [SME: 12929]
* Wed Feb 12 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-6.sme
- fix typo in roundcubemail.action [SME: 12917]
* Fri Jan 03 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-5.sme
- set more relaxed CSP for roundcube [SME: 12861]