Your comments

It appears that courier-imap-ssl manages them instead of ajenti. courier-imap-ssl ignores ajenti SSL certificates. I tried feeding /etc/courier/imapd-ssl my own certificates but it gives funny errors like trying to fetch mail from:

user@example.com@example.com

and cease working. When I try service courier-imap-ssl stop, but it disabled IMAP completely. How can I make courier respect ajenti provided SSL certs or at least feed him correctly generated certs that won't try to fetch john@example.com@example.com?