Enabling SSL for IMAP And POP3

ajax20

Verified User
Joined
Jul 16, 2014
Messages
142
Hello

I'm trying to enable SSL for IMAP And POP3 for my email accounts. Searching the Internet, I came across this tutorial which briefly explains how to do so. I just want to make sure those are the only changes I need to make or there are other adjustments as well, especially since I find a difference between the mentioned one and a tutorial here.

Any ideas would be appreciated

Thanks
 
Difference

I thought I might need to explain a little bit further. What I meant by the difference is that While in the first tutorial I just need to add

Code:
ssl = yes
ssl_cert_file = /etc/exim.cert
ssl_key_file = /etc/exim.key

in

Code:
dovecot.conf

the second one asks us to add

Code:
tls_certificate = /usr/local/etc/exim/exim.cert
tls_privatekey = /usr/local/etc/exim/exim.key

to

Code:
exim.conf

I just need to know whic one is right.

Thanks
 
correction

I thought I might need to explain a little bit further. What I meant by the difference is that While in the first tutorial I just need to add

Code:
ssl = yes
ssl_cert_file = /etc/exim.cert
ssl_key_file = /etc/exim.key

in

Code:
dovecot.conf

the second one asks us to add

Code:
tls_certificate = /usr/local/etc/exim/exim.cert
tls_privatekey = /usr/local/etc/exim/exim.key

to

Code:
exim.conf

I just need to know whic one is right.

Thanks
Should it be ssl = no?
 
ssl enabled

Hi. No, I want to enable it. So it should be "yes", I think.

Thanks
 
On directadmin powered server exim's cert and key are located in /etc/exim.cert /etc/exim.key respectively. More to say Dovecot is already configured with SSL support; So I'd rather say everything you might need after install valid SSL cert and key is to block non-SSL ports in firewall.
 
No need to change ssl to yes?

@zEitEr

So you mean SSL is already on in dovecot. Don't I need to turn it on by changing the dovecot.conf?
 
Connection to storage server failed

Hi

After changing the dovecot.conf as below

Code:
protocols = imap pop3
service auth {
  user = root
}

service imap-login {
  process_min_avail = 16
  user = dovecot

  inet_listener imap {
      port=0
  }
}
service pop3-login {
  process_min_avail = 16
  user = dovecot

  inet_listener pop3 {
    port=0
  }
}

now I cannot connect to my email accounts through roundcube. It gives the following error

Code:
Connection to storage server failed.

But if I remove

Code:
 inet_listener imap {
      port=0
  }

I can connect with no problem. The reason I added

Code:
inet_listener imap {
      port=0
  }

and 

  inet_listener pop3 {
    port=0
  }

was because I wanted to disable the the non-ssl ports.

Any ideas where I am making a mistake?
 
It worked!

I just wanted to say every thing worked as expected.

Thanks Alex
 
Back
Top