Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Comodo PositiveSSL certificate + Exim4 + Dovecot

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Comodo PositiveSSL certificate + Exim4 + Dovecot
  • Quote

Post by mephivio » Tue Apr 01, 2014 8:26 pm

Team,

i have a PositiveSSL Certificate from Comodo and i'd like to use it also for my email Server (defaults Exim4 + Dovecot installed by VestaCP). The certificate works perfectly with my website.

Comodo generates 3 files:
AddTrustExternalCARoot.crt
PositiveSSLCA2.crt
www_mydomain_com.crt

in the file : exim4.conf.template
i have :
tls_advertise_hosts = *
tls_certificate = /usr/local/vesta/ssl/certificate.crt
tls_privatekey = /usr/local/vesta/ssl/certificate.key

certificate.crt ->www_mydomain_com.crt
certificate.key->my domain server RSA Private key

i have also modify several files for Dovecot ...
in /etc/ssl -> i add PositiveSSLCA2.crt
in /etc/ssl/private -> i add my domain server RSA Private key (in dovecot.pem)
in /etc/ssl/certs > i add www_mydomain_com.crt (in dovecot.pem)

in /etc/dovecot/conf.d/10-ssl.conf :
ssl = yes
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
ssl_ca = </etc/ssl/PositiveSSLCA2.crt

i'm using MS OUTLOOK 2013 to connect (pop/smtp) to the server
pop3 -> port : 995
Smtp -> port 587

i've got every time this error message at MS OUTLOOK STARTUP :

The server you are connected to is using a security certificate that cannot be verified.
The target principal name is incorrect.


How can i solve this problem ?
am i fault with my setup ?

Thanks for your help
Jerome
Top

FirstVM.com
Posts: 10
Joined: Mon Feb 17, 2014 2:25 am

Re: Comodo PositiveSSL certificate + Exim4 + Dovecot
  • Quote

Post by FirstVM.com » Wed Apr 02, 2014 4:08 pm

mephivio wrote:Team,

i have a PositiveSSL Certificate from Comodo and i'd like to use it also for my email Server (defaults Exim4 + Dovecot installed by VestaCP). The certificate works perfectly with my website.

Comodo generates 3 files:
AddTrustExternalCARoot.crt
PositiveSSLCA2.crt
www_mydomain_com.crt

in the file : exim4.conf.template
i have :
tls_advertise_hosts = *
tls_certificate = /usr/local/vesta/ssl/certificate.crt
tls_privatekey = /usr/local/vesta/ssl/certificate.key

certificate.crt ->www_mydomain_com.crt
certificate.key->my domain server RSA Private key

i have also modify several files for Dovecot ...
in /etc/ssl -> i add PositiveSSLCA2.crt
in /etc/ssl/private -> i add my domain server RSA Private key (in dovecot.pem)
in /etc/ssl/certs > i add www_mydomain_com.crt (in dovecot.pem)

in /etc/dovecot/conf.d/10-ssl.conf :
ssl = yes
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
ssl_ca = </etc/ssl/PositiveSSLCA2.crt

i'm using MS OUTLOOK 2013 to connect (pop/smtp) to the server
pop3 -> port : 995
Smtp -> port 587

i've got every time this error message at MS OUTLOOK STARTUP :

The server you are connected to is using a security certificate that cannot be verified.
The target principal name is incorrect.


How can i solve this problem ?
am i fault with my setup ?

Thanks for your help
Jerome

Here is a doc about how to enable ssl on webmail.

It's in chinese, but I think the image is enough for you. please contact me if you still have problem.
Top

mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Re: Comodo PositiveSSL certificate + Exim4 + Dovecot
  • Quote

Post by mephivio » Wed Apr 02, 2014 5:15 pm

Congrats !

Thanks for your soluce
Very interesting to get Webmail and PhpMyadmin accessed from SSL !
it works well !


I'm still searching another solution to get my Signed certificate to work perfectly with Microsoft Outlook without having this alert coming at the startup .. Any other idea ?

Thanks
Top

FirstVM.com
Posts: 10
Joined: Mon Feb 17, 2014 2:25 am

Re: Comodo PositiveSSL certificate + Exim4 + Dovecot
  • Quote

Post by FirstVM.com » Thu Apr 03, 2014 8:24 am

mephivio wrote:Congrats !

Thanks for your soluce
Very interesting to get Webmail and PhpMyadmin accessed from SSL !
it works well !


I'm still searching another solution to get my Signed certificate to work perfectly with Microsoft Outlook without having this alert coming at the startup .. Any other idea ?

Thanks

Do you ever try this: viewtopic.php?f=12&t=4779
Top

jym
Posts: 3
Joined: Fri Apr 04, 2014 11:36 pm

Re: Comodo PositiveSSL certificate + Exim4 + Dovecot
  • Quote

Post by jym » Sun Apr 06, 2014 3:01 pm

Here is a doc about how to enable ssl on webmail.

It's in chinese, but I think the image is enough for you. please contact me if you still have problem.

On basic default vesta cp, without nginx activated, how to make it work with this tuto ?
Templates: Nginx as caching ? Apache as default ?
Top

mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Re: Comodo PositiveSSL certificate + Exim4 + Dovecot
  • Quote

Post by mephivio » Mon Feb 02, 2015 7:41 am

The problem :
i'm using vestacp for several customers
they have their own certificate
how to setup exim4 + dovecot to be sure they can access to outlook in tls / secure mode ?
Should i buy a multidomain certificate to be sure it works ?
By default, if i activate TLS path in dovecot and exim4, it uses only my default certifcate and it doesn't work of course for my customers domains ....

Thanks for your help

J
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password