Linux and cloud Computing--the second phase of Linux Server Erection Chapter nineth: Mail e-mail server erection-postfix and Dovecot

Source: Internet
Author: User
Tags auth imap dovecot

Linux and Cloud computing--the second phase of Linux Server Setup The nineth Chapter:Mail email server erecting-postfix and Dovecot installing Postfix

installation Postfix come to Configure SMTP Server . SMTP uses 25/tcp.

[1] Postfix is a CentOS system The default installation, even if you choose the minimum installation, if the confirmation is not installed, please first install .

[Email protected] ~]# yum-y install Postfix

[2] Use Dovecot ' s SASL come to Configuration SMTP Authentication .

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

# line: Remove Comments and Modify Host name

Myhostname = mail.example.com

# line: Remove Comments and define the domain name

MyDomain = example.com

# line: Remove Comments

Myorigin = $mydomain

# line: Modify

Inet_interfaces = All

# line 164: Add

mydestination = $myhostname, localhost. $mydomain, localhost, $mydomain

# line: Remove Comments and modify it according to your local LAN environment

Mynetworks = 127.0.0.0/8, 192.168.96.0/24

# line 419: Remove Note (use Maildir)

Home_mailbox = maildir/

# line 574: Add

Smtpd_banner = $myhostname ESMTP

# on the last side Add following content

# limit an e-mail size for 10M

Message_size_limit = 10485760

# limit a mailbox for 1G

Mailbox_size_limit = 1073741824

# for Smtp-auth

Smtpd_sasl_type = Dovecot

Smtpd_sasl_path = Private/auth

Smtpd_sasl_auth_enable = yes

Smtpd_sasl_security_options = noanonymous

Smtpd_sasl_local_domain = $myhostname

Smtpd_recipient_restrictions = Permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject

[Email protected] ~]# systemctl restart Postfix

[Email protected] ~]# Systemctl enable Postfix

Installing Dovecot

installation Dovecot come to Configure Pop/imap Server . POP uses 110/tcp, IMAP uses 143/tcp.

[1] Install dovecot.

[Email protected] ~]# yum-y install Dovecot

[2] provide SASL function to Postfix.

[Email protected] ~]# vi/etc/dovecot/dovecot.conf

# line: Remove Comments

protocols = IMAP POP3 LMTP

# line: Remove Comments and Modify ( If you do not use IPv6)

Listen = *

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

# line Ten: Remove Comments and modify ( allow Clear text authentication)

Disable_plaintext_auth = No

# line: Increase

Auth_mechanisms = Plain Login

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

# line: Remove Comments and add

Mail_location = Maildir:~/maildir

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

# line 96-98:uncomment and add like follows

# Postfix Smtp-auth

Unix_listener/var/spool/postfix/private/auth {

mode = 0666

user = Postfix

Group = Postfix

}

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

# line 8: Modify ( do not use SSL)

SSL = No

[Email protected] ~]# systemctl start Dovecot

[Email protected] ~]# Systemctl enable Dovecot


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

Linux and cloud Computing--the second phase of Linux Server Erection Chapter nineth: Mail e-mail server erection-postfix and Dovecot

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.