As upgrading documentation indicates, 2.4 does not support %u or %n anymore, you should use
%{user}, %{user|username}, %{user|domain}.
See https://doc.dovecot.org/2.4.5/installation/upgrade/2.3-to-2.4.html#variable-...
Aki
On 17/09/2026 15:16 EEST Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
Hi Aki
The problem for the personal script is the path statement, it does not translate the %d and %n as domain and user. I can hardcode the domain, but what variable to use for the user?
Horst
On 17 Sep 2026, at 21:29, Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
On 17/09/2026 14:26 EEST Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
On 17 Sep 2026, at 21:21, Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
On 17/09/2026 14:20 EEST Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
On 17 Sep 2026, at 21:07, Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
> On 17/09/2026 14:03 EEST horst.simon2--- via dovecot <dovecot@dovecot.org> wrote: > > > My sieve scripts don't get executed and when I enable debug logging I get following errors in the log: > > Sep 17 20:43:04 imap(username)<13827><3lXZcqtbpcHAqHUF>: Debug: Loading modules from directory: /opt/lib/dovecot > Sep 17 20:43:04 imap(username)<13827><3lXZcqtbpcHAqHUF>: Debug: Module loaded: /opt/lib/dovecot/lib15_notify_plugin.so > Sep 17 20:43:04 imap(username)<13827><3lXZcqtbpcHAqHUF>: Debug: Module loaded: /opt/lib/dovecot/lib20_push_notification_plugin.so > Sep 17 20:43:04 imap(username)<13827><3lXZcqtbpcHAqHUF>: Debug: Module loaded: /opt/lib/dovecot/lib95_imap_sieve_plugin.so > Sep 17 20:43:04 imap(username)<13827><3lXZcqtbpcHAqHUF>: Debug: Effective uid=5000, gid=5000, home=/share/CACHEDEV1_DATA/mail/<domainnamee>/<user> > Sep 17 20:43:04 imap(horst@hbsimon.net)<13827><3lXZcqtbpcHAqHUF>: Debug: open(/proc/self/io) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +r perm: /proc/self/io) > > Dovecot version is 2.4.5 > > Is there anything I can change in the permissions to get this working?
It has nothing to do with your sieve scripts not being executed though. You can ignore it, it's a debut message.
Sieve scripts are not normally executed by imap unless you try to use IMAPsieve or FILTER=SIEVE extensions.
Aki
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Thank you, I still don’t know why it does not execute the sieve scripts. Following is my configuration for sieve:
20-managesieve.conf protocols { sieve = yes }
service managesieve-login { inet_listener sieve { port = 4190 } process_min_avail = 1 vsz_limit = 64M }
service managesieve {
Max. number of ManageSieve processes (connections)
#process_limit = 1024 process_limit = 10 } protocol sieve { }
90-sieve.conf sieve_script personal { driver = file path = ~/sieve active_path = /share/CACHEDEV1_DATA/mail/vhosts/hbsimon.net/%n/.dovecot.sieve }
sieve_script before { type = before path = /opt/var/lib/dovecot/sieve.d/ }
I think I see my problem, the syntax in sieve_script personal appears to be incorrect. Do I still need the path statement and if so where should it pointing too?
Regards, Horst
try
protocol lmtp { mail_plugins { sieve = yes } }
protocol lda { mail_plugins { sieve = yes } }
Aki
I have already these settings:
protocol lmtp { mail_plugins { sieve = yes notify = yes push_notification = yes } } protocol lda {
Boolean list of plugins to load
mail_plugins { sieve = yes notify = yes push_notification = yes } }
Ok. Can you do
mail_debug=yes
and then send yourself mail and provide debug logs for lmtp?
Aki
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org