https://bugs.koozali.org/show_bug.cgi?id=12494
Bug ID: 12494
Summary: New setting needed for sieveport in Roundcube
Classification: Contribs
Product: SME Contribs
Version: 10.0
Hardware: ---
OS: ---
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: smeserver-roundcube
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
As mentioned here
(https://roundcube.net/news/2022/07/28/roundcube-1.6.0-released), roundcube has
skipped the managesieve_port setting. Instead you set the port number as part
of the managesieve_host setting, e.g.
$config['managesieve_host'] = 'localhost:4190';
So changes must be made to two templates in
/etc/e-smith/templates/usr/share/roundcubemail/plugins/managesieve/config.inc.php/
Here's a primitive suggestion:
# diff -U3
/etc/e-smith/templates/usr/share/roundcubemail/plugins/managesieve/config.inc.php/10setsieveport
/etc/e-smith/templates-custom/usr/share/roundcubemail/plugins/managesieve/config.inc.php/10setsieveport
---
/etc/e-smith/templates/usr/share/roundcubemail/plugins/managesieve/config.inc.php/10setsieveport
2015-04-02 02:05:54.000000000 +0200
+++
/etc/e-smith/templates-custom/usr/share/roundcubemail/plugins/managesieve/config.inc.php/10setsieveport
2024-02-28 21:27:52.965284875 +0100
@@ -10,14 +10,15 @@
my $sievestatus = $cdb->get_prop('sieve','status') || 'disabled';
my $sieveport = $cdb->get_prop('sieve','TCPPort') || 'null';
- $OUT .= "// managesieve server port. When empty the port will be
determined automatically\n";
- $OUT .= "// using getservbyname() function, with 4190 as a fallback.\n";
+# $OUT .= "// managesieve server port. When empty the port will be
determined automatically\n";
+# $OUT .= "// using getservbyname() function, with 4190 as a fallback.\n";
if ($sievestatus eq 'enabled') {
- $OUT .= "\$config['managesieve_port'] = $sieveport; \n";
- }
- else {
- $OUT .= "\$config['managesieve_port'] = null; \n";
+ if ($sieveport ne 'null') {
+ $OUT .= "\$config['managesieve_host'] = 'localhost:$sieveport'; \n"
+ } else {
+ $OUT .= "\$config['managesieve_host'] = localhost; \n"
+ }
}
}
# diff -U3
/etc/e-smith/templates/usr/share/roundcubemail/plugins/managesieve/config.inc.php/20default
/etc/e-smith/templates-custom/usr/share/roundcubemail/plugins/managesieve/config.inc.php/20default
---
/etc/e-smith/templates/usr/share/roundcubemail/plugins/managesieve/config.inc.php/20default
2015-04-02 02:05:54.000000000 +0200
+++
/etc/e-smith/templates-custom/usr/share/roundcubemail/plugins/managesieve/config.inc.php/20default
2024-02-28 21:22:19.528661434 +0100
@@ -4,7 +4,7 @@
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
// For example %n = mail.domain.tld, %d = domain.tld
-$config['managesieve_host'] = 'localhost';
+// $config['managesieve_host'] = 'localhost';
// authentication method. Can be CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, EXTERNAL
// or none. Optional, defaults to best method supported by server.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/