I am able to reproduce this on a fresh install some times but not reliably. It would be great if someone who has some apparmor experience could have a look at this.
Steps to re-produce: 1. Install Ubuntu 12.04 Server from amd64 ISO in a virtual machine and make sure it is up to date: # apt-get update && apt-get upgrade # reboot 2. Install dovecot imapd and fetchmail for testing: # apt-get install dovecot-imapd fetchmail (I possibly needed to issue "service dovecot start" separately.) 3. Create user who receives mail: # adduser foobar 4. Make mail directories for the user: # mkdir -p /home/foobar/Maildir/{cur,new,tmp} 5. Send one e-mail to our user: # (echo From: foo; echo; echo bar) > /home/foobar/Maildir/new/foo 6. Ensure correct ownership: # chown -R foobar /home/foobar/Maildir 7. Try to retrieve the mail: # fetchmail --user foobar --mda cat localhost Observe success. Ignore warning about certificate. The mail should be output to stdout. 8. Install apparmor-profiles: # apt-get install apparmor-profiles 9. Reboot to ensure fresh state: # reboot 10. Send another e-mail: # (echo From: foo; echo; echo bar) > /home/foobar/Maildir/new/foo2 11. Again, change ownership: # chown foobar /home/foobar/Maildir/new/foo2 12. Try fetching mail again: # fetchmail --user foobar --mda cat localhost You may or may not see a failure here. 13. If there was no failure, open another terminal and log in as foobar, and create a pile of e-mails: while true ; do ( echo From: foo; echo; echo bar ) > /home/foobar/Maildir/new/foo$SECONDS.$RANDOM ; done Hit ctrl-C after some time. 14. Try fetching mail again: # fetchmail --user foobar --mda cat localhost 15. If there was no failure, repeat steps 13 and 14 until the failure is observed. There will be error entries in /var/log/mail.err when the problem appears. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dovecot in Ubuntu. https://bugs.launchpad.net/bugs/997269 Title: dovecot imap broken by apparmor policy To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/997269/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs