Page 1 of 1

IMAP and CN name does not match. windows and Outlook

Posted: 31 May 2009, 08:19
by jobbe
Hi there,

If you like I have been strugling with IMAP and CN name does not matchs heres a couple of ideas.
I have tested this with Windows Vista, XP and Windows 7.0 RC

1. on you bubba2 server

make sure you have an entry in your /etc/hosts

i.e.
192.168.1.3 server.yourdomain.com


2. on your bubba2 server, generate a self signed certificate

openssl req -x509 -nodes -days 3650 -subj '/C=yourcountry/L=yourtown/O=yourname/CN=server.yourdomain.com' -newkey rsa:1024 -keyout bubba2_key.pem -out bubba2_cert.pem

3. on your bubbas2 server

cp bubba2_key.pem /etc/ssl/private
cp bubba2_cert.pem /etc/ssl/certs


4. edit you dovecot.conf

nano /etc/dovecot/dovecot.conf

find and replace

#ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_cert_file = /etc/ssl/certs/bubba2_cert.pem
#ssl_key_file = /etc/ssl/private/dovecot.pem
ssl_key_file = /etc/ssl/private/bubba2_key.pem

5. restart service

/etc/init.d/dovecot restart

6. On your client, edit host file. Note! File may be read only

/windows/system32/drivers/etc/hosts

192.168.1.3 server.yourdomain.com

7. add your selfsigned certificate to "trusted root certification Authorities"

start, run

certmgr.msc

import the certificates generated in step 2.

8. Change outlook to point to the inbound server with FQDN (server.yourdomain.com)

And it should all be singing and dancing...