Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: joea on January 23, 2024, 03:05:16 PM

Title: How to specify port in managesieve configuration?
Post by: joea on January 23, 2024, 03:05:16 PM
Roundcube seems to trying port 2000 to access dovecot managesieve and fails, as that is not configured.

/etc/roundcubemail/managesieve.inc.php says it is optional to specify the port, but, there is no example of how to specify the port.

Examples on the internet suggest this should work, but apparently does not.

$config['managesieve_port'] = 4190;
$config['managesieve_host'] = 'localhost';

How is it to be done?

Edit/Modify:

Apparently, like this:

$config['managesieve_port'] = 4190;
$config['managesieve_host'] = 'localhost:4190';

No idea if the first line is really necessary, I think not, but, not inclined to test it at the moment.

Title: Re: How to specify port in managesieve configuration?
Post by: joea on January 23, 2024, 03:47:32 PM
Seem I am specifying the port incorrectly or it is not being honored.

I changed the port managesieve listens on to port 2000 and roundcube connected without complaint.

What am I doing wrong?
Title: Re: How to specify port in managesieve configuration?
Post by: Dmitry42 on January 23, 2024, 08:48:27 PM
"ROUNDCUBE PATH"/plugins/managesieve/config.inc.php

here is

Quote// managesieve server port. When empty the port will be determined automatically
// using getservbyname() function, with 4190 as a fallback.
$config['managesieve_port'] = null;

// managesieve server address, default is localhost.
// Replacement variables supported in host name:
// %h - user's IMAP hostname
// %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';


and /etc/dovecot/conf.d/20-managesieve.conf

Quoteservice managesieve-login {
  inet_listener sieve {
    address = 127.0.0.1
    port = 4190
  }