Hi Szilvester
> Well, the problem is probably that the SSL cert is issued for the FQDN > of your machine, whereas you try to connect to it as "localhost". What > happens if you use the same full hostname in the IMAP URL as the one that is > in the SSL certificate? Using the FQDN instead of localhost in $folder does work, as expected, I just thought that localhost would have the same effect. Clearly as misunderstanding on my part. Thanks for helping. Jamie