Author Topic: How to specify port in managesieve configuration?  (Read 439 times)

Offline joea

  • Jr. Member
  • **
  • Posts: 15
How to specify port in managesieve configuration?
« 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.

« Last Edit: January 23, 2024, 06:35:53 PM by joea »

Offline joea

  • Jr. Member
  • **
  • Posts: 15
Re: How to specify port in managesieve configuration?
« Reply #1 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?

Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: How to specify port in managesieve configuration?
« Reply #2 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

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