LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   courier imap ssl with virtual hosts (https://www.linuxquestions.org/questions/linux-server-73/courier-imap-ssl-with-virtual-hosts-594028/)

danboland 10-23-2007 06:07 PM

courier imap ssl with virtual hosts
 
I set up a Debian server with courier imap and created a ssl certifacte.

However every time i sign on to the server to check my mail I get a warning because the certificate says 'localhost' instead of my actual domain. Does anyone know how to fix this?

Also i have courier set up to use virtual hosts. Does anyone know how i could configure the server to present the client with a certificate for the virtual domain they are connecting to?



Thanks,
Dan

sneakyimp 10-24-2007 03:29 PM

I'm no expert, but I believe that the certificate will always have to match exactly the domain that the user has requested. If user enters mail.foo.net in their mail client config, then cert will have to be a cert for 'mail.foo.net'. If user enters mail.bar.net, cert must say mail.bar.net.

As for the cert, I'm guessing you generated it yourself right? You'll need to generate it all over again. During the process you will be prompted for the 'Common Name (hostname, IP or your name) at which point you should enter the actual name of the hostname for your mail server (e.g., mail.mydomain.com). You may find this helpful:
http://www.debian-administration.org/articles/284


All times are GMT -5. The time now is 03:56 PM.