On 16/12/20 6:16 am, Julian Kippels wrote:
Hi all,

what is the best way to temporarily disable access to a mailbox via
imap, but keep it possible to deliver to the mailbox via lmtp?
I want to migrate some mailboxes around and would like to ensure that
the users cannot access their mail while doing so.
I would like to keep the users from logging in entirely rather than
setting ACLs.

Thanks in advance
Julian


Comment out the sections in dovecot.conf that configure the imap service but leave the lmtp service running.

Alternatively set an iptables rule to block the imap and imaps ports.

--
Jeremy