New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Dovecot certificates

Got problems with your B2 or B3? Share and get helped!
Post Reply
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Dovecot certificates

Post by Binkem »

When connecting to the mail server i get a message saying "certificate belongs to "BUBBA.LOCALDOMAIN" i want to make a certificate that belongs to www.mydomain.com instead so i won't get this message ewvery time i connect. Can someone point out how to do this. I've seen some hints here and there, but i haven't seen a good howto yet.

Martijn
Krister
Posts: 13
Joined: 29 Jan 2007, 11:06
Location: Lund, Sweden

Post by Krister »

Run as root (where SE is for Sweden)

Code: Select all

openssl req -x509 -nodes -days 3650 -subj '/C=SE/L=City/O=MyName/CN=www.mydomain.com' -newkey rsa:1024 -keyout mydomain_key.pem -out mydomain_cert.pem
and then

Code: Select all

cp mydomain_key.pem /etc/ssl/private
cp mydomain_cert.pem /etc/ssl/certs
Now edit /etc/dovecot/dovecot.conf to this:

#ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_cert_file = /etc/ssl/certs/mydomain_cert.pem
#ssl_key_file = /etc/ssl/private/dovecot.pem
ssl_key_file = /etc/ssl/private/mydomain_key.pem


Finaly run

Code: Select all

/etc/init.d/dovecot restart
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Post by Binkem »

OK works perfectly :D

thanks
max
Posts: 8
Joined: 08 Oct 2008, 13:20

Post by max »

How do you handle multiple domains?
Post Reply