Roundcube + Postfix + Dovecot + Sieve

pereirar2z

New member
Joined
Feb 23, 2024
Messages
2
Hi all, Thank you for any help provided. It will be highly appreciated.

I'm running dovecot-2.3.21-1.x86_64 + dovecot-pigeonhole-2.3.21-1.x86_64 + roundcube 1.6.6 on my redhat server. Mailserver is working as expected with the exception of the filters. I've installed and configure everything that i'm aware of but unfortunatelly its not working. I already recreate all my configuration from scracth but no major improvements so far.
At the moment my suspicious goes to the following:
Dovecot is not loading this module: /usr/lib/dovecot/modules/lib90_sieve_plugin.so.

But i have no idea what can I do more. Can you please help me?

I've paste here the output of doveconf -n:

Code:
# 2.3.21 (47349e2482): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.21 (f6cd4b8e)
# OS: Linux 4.18.0-513.11.1.el8_9.x86_64 x86_64 Red Hat Enterprise Linux release 8.9 (Ootpa) xfs
# Hostname: xxxxxx.xxxxx

auth_debug = yes
auth_verbose = yes
disable_plaintext_auth = no
first_valid_uid = 1000
listen = *
log_path = /var/log/dovecot.log
mail_debug = yes
mail_location = maildir:/home/vmail/%d/%n/Maildir
mail_plugins = acl mail_log notify
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
mbox_write_locks = fcntl

namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }

  mailbox Junk {
    special_use = \Junk
  }

  mailbox Sent {
    special_use = \Sent
  }

  mailbox "Sent Messages" {
    special_use = \Sent
  }

  mailbox Trash {
    special_use = \Trash
  }
  prefix =
}

passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}

plugin {
  sieve = ~/.dovecot.sieve
  sieve_default = /var/lib/dovecot/sieve/default.sieve
  sieve_dir = ~/sieve
  sieve_global = /var/lib/dovecot/sieve/global/
}

protocols = imap pop3 sieve lmtp
service auth-worker {
  user = vmail
}

service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
  unix_listener auth-userdb {
    mode = 0600
    user = vmail
  }
  user = dovecot
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}

service managesieve-login {

  inet_listener sieve {
    port = 4190
  }

  process_min_avail = 4
  service_count = 1
  vsz_limit = 64 M
}

service stats {
  unix_listener stats-reader {
    group = wheel
    mode = 0666
    user = dovecot
  }

  unix_listener stats-writer {
    group = wheel
    mode = 0666
    user = dovecot
  }
}

ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = # hidden, use -P to show it

userdb {
  args = uid=vmail gid=vmail home=/home/vmail/%d/%n/Maildir
  driver = static
}

verbose_ssl = yes

protocol lmtp {
  mail_plugins = acl mail_log notify quota sieve
}

protocol sieve {
info_log_path = /var/log/dovecot-sieve.log
  log_debug = category=sieve
  managesieve_implementation_string = Dovecot Pigeonhole
  managesieve_logout_format = bytes=%i/%o
  managesieve_max_compile_errors = 5
  managesieve_max_line_length = 64 k
}
On Round Cube I can set the filters that i need but as soon as i click save nothing happens.
Can you please point me into another direction?

Regards, Pereira
 
Hello Pereira,

We would gladly help you. It's a Directadmin community forums, and we don't user Postfix. Only Exim4 is supported here. And even the fact your question is about Dovecot + Pigeonhole, we use a setup from DirectAdmin, and config on our servers differ from yours. In order to help you we would need to check your config and find what is wrong. If found this difference between your config and mine:

Code:
plugin {
  quota = maildir
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_default = /var/lib/dovecot/sieve/default.sieve
  sieve_global = /var/lib/dovecot/sieve/global/
}

I can not say on how much is it critical. DO NOT copy+paste the code without understanding though. It needs to be checked in a documentation.

Anyway, you might be more lucky on another forums, which have a wider specialization.

Thank you for posting.
 
Hi zEitEr,

Thank-you for your reply.

Indeed i dont copy and paste code wthout understanding what are the implications of it. And that's why I'm searching for other ideias to try to figure out my situation. The plugin section you mentioned i already had it like you have it but didn't improve my situation.

Once again thank-you for your reply.

Regards, Pereira
 
Are you sure you are using Dovecot's LDA or LMTP service for local delivery? What transports do you have configured in your exim.conf, mine use dovecot_lmtp_udp for the virtual users? If you aren't a DirectAdmin server administrator, then this is not the correct forum for your queries.
 
That was my guess. Since you don't use Directadmin, hardly can we help you any further. And you might need to check Postfix configuration, which is not supported by DirectAdmin at all.

The plugin section you mentioned i already had it like you have it but didn't improve my situation.
 
Back
Top