Set up Postfix + Dovecot + saslauthd email server on centos6

Source: Internet
Author: User

Service Sendmail stop

Chkconfig Sendmail off

Groupadd-G 1200 postdrop

Groupadd-G 1000 Postfix

Useradd-m-u 1000-G postfix-G postdrop-S/sbin/nologin Postfix

Usermod-G 51-G 48 smmsp

The yum install db4-devel cyrus-sasl-devel Pam-devel mysql-devel Dovecot cyrus-sasl-lib cyrus-sasl-Plain




Postfix configuration file main. Cf modification example

Mydomain = skymobi.com

Myhostname = mail.skymobi.com

Myorigin = $ mydomain

Mydestination = $ myhostname, localhost. $ mydomain, localhost, $ mydomain, mail. $ mydomain

Inet_interfaces = all

Mynetworks = 0.0.0.0/0


Add

Setgid_group = postdrop

Smtpd_banner = welcome to our $ myhostname ESMTP, warning: Version Not available!

Expiration = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, expiration, reject_unauth_pipelining, reject_unauth_destination

Smtpd_sasl_auth_enable = Yes

Smtpd_sasl_local_domain = $ myhostname

Smtpd_sasl_path = smtpd

Smtpd_sasl_security_options = noanonymous

Unknown_local_recipient_reject_code = 550



Modify saslauthd configuration file

Mkdir/usr/lib/sasl2/

Vim/usr/lib/sasl2/smtpd. conf

Level: 3

Pwcheck_method: saslauthd

Mech_list: Login Plain




Dovecot configuration file

Vim/etc/Dovecot. conf

Protocols = POP3 IMAP LMTP

Dict {

# Quota = MYSQL:/etc/Dovecot/dovecot-dict-sql.conf.ext

# Expire = SQLite:/etc/Dovecot/dovecot-dict-sql.conf.ext

}

! Include Conf. d/*. conf



Vim/etc/Dovecot/CONF. d/10-auth.conf

Disable_plaintext_auth = No

Auth_mechanic ISMs = plain Login

! Include auth-system.conf.ext



Vim/etc/Dovecot/CONF. d/10-master.conf Modification

Unix_listener/var/spool/Postfix/private/auth {

Group = Postfix

Mode = 0660

User = Postfix

}









This article from the "Autumn wind song" blog, please be sure to keep this source http://qiufengsong.blog.51cto.com/7520243/1555101

Set up Postfix + Dovecot + saslauthd email server on centos6

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.