Re: sieve processing - enable/disable per user?
On 06/10/2023 17:32, Oscar del Rio wrote: On 2023-10-06 5:12 a.m., Arkadiusz Miśkiewicz via dovecot wrote: Unfortunately it doesn't get expanded: user_query = ... , 'sieve' AS 'sieve_enabled', ... mail_plugins = $mail_plugins %{sieve_enabled} "sieve_enabled" seems to be a "yes" or "no" user variable (default="yes"), without having to modify mail_plugins https://github.com/dovecot/pigeonhole/commit/d2a75724985c66aeb2decdd6272d4f21255284c9 Nice - it works. Thanks! -- 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
Re: sieve processing - enable/disable per user?
On 2023-10-06 5:12 a.m., Arkadiusz Miśkiewicz via dovecot wrote: Unfortunately it doesn't get expanded: user_query = ... , 'sieve' AS 'sieve_enabled', ... mail_plugins = $mail_plugins %{sieve_enabled} "sieve_enabled" seems to be a "yes" or "no" user variable (default="yes"), without having to modify mail_plugins https://github.com/dovecot/pigeonhole/commit/d2a75724985c66aeb2decdd6272d4f21255284c9 ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: sieve processing - enable/disable per user?
On 06/10/2023 11:12, Arkadiusz Miśkiewicz wrote: 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 Tried %{userdb:sieve_enabled:} etc, too - these are not expanded in that place. So other approach - is there a way to disable managesieve only, per user (while allowing imap, pop3 etc) ? -- 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
Re: sieve processing - enable/disable per user?
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 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
Re: sieve processing - enable/disable per user?
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. Aki > On 06/10/2023 09:56 EEST Arkadiusz Miśkiewicz via dovecot > 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 ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
sieve processing - enable/disable per user?
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