Do you have some step to create the situation? Why not updating the certificate or using a connection without one? What is the interest to use an expired certificate? -- Cannot connect to IMAP-Server with expired SSL-Certificate https://launchpad.net/bugs/58714