Using the mail pops encryption program does not want others to see it

Source: Internet
Author: User
Tags csr certificate dovecot

Comments: Emails are also commonly used tools. Sometimes we may have some files that we don't want others to see, so we only need to encrypt them to become proprietary, now let's take a look at how to configure the mail pops encryption process.

E-Mail, also known as email box and email post, is a communication method that provides information exchange through electronic means. It is the most widely used service on the Internet, users can use a very low price (no matter where they are sent, they only need to pay for the telephone fee and network fee ), in a very fast way (within a few seconds can be sent to any destination you specify in the world), to contact network users in any corner of the world, these emails can be text, images, sounds, and other methods. At the same time, users can get a large number of free news and special emails, and easily search for information.

Emails are also a frequently used tool. Sometimes we may have some files that we don't want others to see, so we only need to encrypt them to become proprietary, now let's take a look at how to configure the mail pops encryption process.

I. Create a CA

Cd/etc/pki/CA

Openssl genrsa 2048> pravite/cakey. pem

Openssl req-new-x509-key pravite/cakey. pem-out cacert. pem

Chmod 600/pravite/cakey. pem

Ii. Generate a certificate for dovecot

Mkdir/etc/dovecot/ssl create the directory where dovecot stores certificates and keys

Cd! $ Enter this directory

Openssl genrsa 2048> dovecot. key to generate a private key

Openssl req-new-key dovecot. key-out dovecot. csr certificate generation Application

Common Name (eg, your name or your server's hostname) []: pop3.test.com (SSL encryption can be implemented only when the user's email is sent to the domain of pop3.test.com)

Chmod 600 dovecot. crt Modification

Openssl ca-in dovecot. csr-out dovecot. key to ensure the security of the private key, modify the permission

Rm-rf dovecot. csr certificate deletion request

To implement the encryption service, dovecot also needs to use the CA certificate, copy the CA certificate and put it in/etc/dovecot/ssl/

Cp/etc/pki/CA/cacert. pem ./

Iii. Modify the dovecot configuration file/etc/dovecot. conf to support ssl

Ssl_cert_file =/etc/dovecot/ssl/dovecot. crt indicates the certificate location

Ssl_key_file =/etc/dovecot/ssl/dovecot. key indicates the location of the private key.

Ssl_ca_file =/etc/dovecot/ssl/cacert. pem indicates the location of the CA certificate

Modify the following content to modify the Protocol that dovecot listens:

Protocols = imap imaps pop3 pop3s

Reload dovecot service configuration

Service dovecot reload

Iv. Test

Mutt-f pops: // gentoo@a.org @ pop3.a.org

If the following screen is displayed and you are asked whether to accept the certificate, it indicates that our encryption has taken effect.

Through the above method, we can encrypt our computer emails, so that as long as you do not want others to see the emails, you can set only your own rights. Is this encryption method powerful? In this way, we can better protect our privacy ~

The method of using the mail pops encryption program is collected by the Huawei software station for your latest collection, and the copyright is owned by the original author or company. If there is any infringement, please contact us to delete it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.