On 06/10/2023 09:27, Aki Tuomi wrote:
Maybe try

protocol lmtp {
   mail_plugins = $mail_plugins %{sieve_enabled}
}

and return sieve_enabled="sieve" for those users you want to enable sieve 
processing for.

Unfortunately it doesn't get expanded:

user_query = ... , 'sieve' AS 'sieve_enabled', ...


mail_plugins = $mail_plugins %{sieve_enabled}

and

dovecot[17847]: lmtp(17932): Fatal: Plugin '%{sieve_enabled}' not found from directory /usr/lib64/dovecot/plugins



Aki

On 06/10/2023 09:56 EEST Arkadiusz Miśkiewicz via dovecot <dovecot@dovecot.org> 
wrote:

Hi.

I keep users in database and would like to enable/disable sieve for them
per user.

What's the approach for that? I'm looking at the sieve options and
user_query setting but don't see anything that would make this possible.

--
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

--
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to