frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

[DirectAdmin] Usage of encrypted connection to send/receive emails

ValentineValentine Member
Because of the increasing fight against unsolicited (SPAM) emails internet service providers (ISP) started to block 25 port for email sending. Because of this and also due to your information security you can start sending mails through an encrypted connection (SSL). In this tutorial, we will tell you how to enable encrypted connection for email sending (465 port) and receiving (993 and 995 port) in the "DirectAdmin" control panel with a self-signed certificate.

If you want to use your own certificate you should skip the first step and place your certificate key and private key in "exim.cert" and "exim.key" files.

The tutorial was prepared with our "DirectAdmin 1.5 with CentOS 6" template and is meant to work on our self-managed virtual private servers.

0. Preliminary requirements:
"DirectAdmin 1.5 with CentOS 6" template installed on the server;

1. Generating a self-signed certificate:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/exim.key -out /etc/exim.cert

2. Restarting "Exim" and "Dovecot" services:

/sbin/service dovecot restart

/sbin/service exim restart

That's it. From now on you will be able to use an encrypted connection to check your email by 993 (SMTP), 995 (POP3) port or to send email by 465 (STMP) port.
Sign In or Register to comment.

Time4VPS

Learn how to install a web and database server, email, FTP client or other applications. Discover and share information on server security or optimization recommendations.
Feel free to join our constantly expanding community, participate in discussions, strengthen your knowledge on Linux and Windows server management!
© 2013 - 2024 Time4VPS. All rights reserved.

Get In Touch