Yesterday I've branched dovecot profile from here , and tried to
confine dovecot. Dovecot didn't started because it required profile
for managesieve and managesieve-login, which is fixed in my LP
branch. Now dovecot is starting normally. But I didn't tested by
using imap or pop3 connection, will do it tomorrow. And also I've
created profile for /usr/lib/dovecot/deliver, which is working fine
with default dovecot-postfix installation.
It's my first source code contribution to Ubuntu. Please help me to
test profile for dovecot.