Remember that stopping Dovecot also stops POP3. If you want to keep users from using IMAP but allow them to use POP3, then the best thing to do is block the IMAP ports externally. This of course will still allow webmail programs. If you don't want them, delete them, or their links.
Jeff