Linux and cloud Computing-phase nineth: Mail e-mail server Setup-Configure SSL-based mail servers and use of virtual domains

Source: Internet
Author: User
Tags dovecot

Linux and Cloud computing--the second phase of Linux Server Setup The nineth Chapter:Mail e-mail server Setup-Configure SSL-based mail servers and the use of virtual domains Mail Client Configuration

can be self Select the email client to set according to the configuration of the server. It is recommended to use client software such as Foxmail or Outlook .

Configure SSL

Configuration SSL come to Encrypted Connection . SMTPS using port 465/tcp, pop3s using port 995/tcp, IMAPS using port 993/tcp.

[1] Create a certificate [2] Give Postfix and the Dovecot Configuration SSL.

[Email protected] ~]# VI/ETC/POSTFIX/MAIN.CF

# at the end of the add following content

Smtpd_use_tls = yes

Smtpd_tls_cert_file =/etc/pki/tls/certs/server.crt

Smtpd_tls_key_file =/etc/pki/tls/certs/server.key

Smtpd_tls_session_cache_database = Btree:/etc/postfix/smtpd_scache

[Email protected] ~]# VI/ETC/POSTFIX/MASTER.CF

# line 26-28: Cancel Comment

Smtps inet n-n--SMTPD

-O Syslog_name=postfix/smtps

-O Smtpd_tls_wrappermode=yes

[Email protected] ~]# vi/etc/dovecot/conf.d/10-ssl.conf

# line 8: Modify

SSL = yes

# line 14,15: Specify certificate File

Ssl_cert = </etc/pki/tls/certs/server.crt

Ssl_key = </etc/pki/tls/certs/server.key

[Email protected] ~]# systemctl restart Postfix

[Email protected] ~]# systemctl restart Dovecot

[3] within the client Select SMTP and IMAP use TLS/SSL Virtual Domain

Configuration Postfix come to use a virtual domain to send a message with a different name from your Origin domain.

For example,

present domain name example.com

New domain name Virtual.host

a user [Jeffrey] have a email address [[email protected]],

a users [Redhat] have a an email address [[email protected]],

User [Redhat] also use the same name for before [@] with [Jeffrey].

[1] Configure virtual Domain

[Email protected] ~]# VI/ETC/POSTFIX/MAIN.CF

# in the Add the following section at the end of the file

Virtual_alias_domains = Virtual.host

Virtual_alias_maps = hash:/etc/postfix/virtual

[Email protected] ~]# vi/etc/postfix/virtual

# in the file Add the following above

[Email protected] Redhat

[Email protected] ~]# postmap/etc/postfix/virtual

[Email protected] ~]# Systemctl reload Postfix


This article is from the "11830455" blog, please be sure to keep this source http://11840455.blog.51cto.com/11830455/1836514

Linux and cloud Computing-phase nineth: Mail e-mail server Setup-Configure SSL-based mail servers and use of virtual domains

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.