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