lmtp_save_to_detail_mailbox override
Hi,
I have a dovecot 2.3.2.1 instance running here that is getting userdb and passdb data from a SQL database. This was a cyrus server migrated over and all users are happy.
All users except one: Said user asked if it would be possible to disable subaddressing (localuser+folder@example.com) again.
The setting controlling that is AFAIK the lmtp_save_to_detail_mailbox item.
My idea was to override that setting for the specific user. I changed the user_query to return no for the user in question and all seems well:
# doveadm user test field value user test@example.com uid vmail gid vmail home /var/lib/imap/example.com/test mail mdbox:/var/spool/imap/user/example.com/test lmtp_save_to_detail_mailbox no #
Looks good, doesn't work though. Mail is still delivered to the +folder. Is this per user setting not taken into account?
I could probably provide the user in question with a sieve script that files everything into the INBOX again but I wonder if there's a better way?
cheers, Andreas
On 12 Apr 2019, at 09:06, Andreas Thienemann via dovecot <dovecot@dovecot.org> wrote:
All users except one: Said user asked if it would be possible to disable subaddressing (localuser+folder@example.com) again.
The setting controlling that is AFAIK the lmtp_save_to_detail_mailbox item.
I thought it was sieve that did this? specifically managesieve_sieve_capability
-- Some books are undeservedly forgotten; none are undeservedly remembered
On Fri, 12 Apr 2019, @lbutlr wrote:
All users except one: Said user asked if it would be possible to disable subaddressing (localuser+folder at example.com) again.
The setting controlling that is AFAIK the lmtp_save_to_detail_mailbox item.
I thought it was sieve that did this? specifically managesieve_sieve_capability
You can curtail sieve/pigeonhole's ability to do fileinto calls using that paramter.
But lmtp_save_to_detail_mailbox is unrelated to pigeonhole and will also work without any sieve scripts active/installed.
If I disable the setting systemwide, the filing into +subaddress folders stops. So I am pretty sure I got the right setting. Either I am not doing the override correctly or the code is not actually taking the setting from userdb.
cheers, Andreas
On 12/04/2019 17:06, Andreas Thienemann via dovecot wrote:
Hi,
I have a dovecot 2.3.2.1 instance running here that is getting userdb and passdb data from a SQL database. This was a cyrus server migrated over and all users are happy.
All users except one: Said user asked if it would be possible to disable subaddressing (localuser+folder@example.com) again.
The setting controlling that is AFAIK the lmtp_save_to_detail_mailbox item.
My idea was to override that setting for the specific user. I changed the user_query to return no for the user in question and all seems well:
# doveadm user test field value user test@example.com uid vmail gid vmail home /var/lib/imap/example.com/test mail mdbox:/var/spool/imap/user/example.com/test lmtp_save_to_detail_mailbox no #
Looks good, doesn't work though. Mail is still delivered to the +folder. Is this per user setting not taken into account?
No, unfortunately that setting is global and read at client connection before the user is looked up for the RCPT command.
Regards,
Stephan.
participants (3)
-
@lbutlr
-
Andreas Thienemann
-
Stephan Bosch