Centos Mail Server postfix, saslauthd, dovecot installation configuration check sendmail www.2cto.com # rpm-qa | grep sendmail stop #/etc/init. d/sendmail stop # chkconfig -- level 0123456 sendmail off # mv/usr/bin/newaliases. orig # mv/usr/bin/mailq. orig # mv/usr/sbin/sendmail. orig install postfix # yum-y install postfix # vim/etc/postfix/main. cf modifies www.2cto.com (Enterprise Domain Name btroot.org mail Server mail. btroot.org Mail server name mail.btroot.org ip: 11.22.33.44) modified as follows: myhostname = mail.btroot.org mydomain = btroot.org myorigin = $ mydomain inet_interfaces = all mydestination = $ myhostname, localhost. $ mydomain, localhost, $ mydomain, mail. $ mydomain, www. $ mydomain, ftp. $ mydomain mynetworks_style = subnet www.2cto.com mynetworks = 127.0.0.0/8, localhost, 11.22.33.44 relay_domains = $ mydestination home_mailbox = Maildir // if the system account is used as the Mail User Name, this directory is added at the end of the directory under the Account (sasl encryption algorithm supported) Authorization = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = Authorization = permit_sasl_authenticated, reject_unauth_destination, permit_mynetworks plugin = permit_sasl_authenticated to install saslauthd, you must first install openssl. Otherwise, cyrus-sasl will report an error in sasl 2.1.21. Compilation is prone to errors # yum-y install openssl for saslauthd. download saslauthd # wget http://www.linuxfromscratch.org/blfs/view/cvs/postlfs/cyrus-sasl.html # tar-xzvf cyc .... #/configure -- prefix =/usr \ -- sysconfdir =/etc \ -- with-dbpath =/var/lib/sasl/sasldb2 \ -- with-saslauthd =/var/run/saslauthd -- diable-anon -- enable-login -- enable-ntlm # make & make install the smtpd to be modified. the conf file is in/etc/sasl2/smtpd. conf is a symbolic link # ln-s/etc/sasl2/smtpd. conf/usr/lib/sasl2/smtpd. conf www.2cto.com # vim etc/sysconfig/saslauthd check MECH = shadow check whether startup # ps aux | grep saslauthd # chklevel -- 2345 saslauthd on #/etc/init. d/saslauthd start verify sasl #/usr/sbin/testsaslauthd-u root-p '000000'-s smtp0: OK "Success. "If you select mta, there will be two sendmail and one postfix # alternatives -- config mta. If you do not select sendmail, we can use postfix to enter the preceding number, which can be vi/usr/lib/sasl2/smtpd. modify or add pwcheck_method: saslauthdmech_list: PLAIN LOGINlog_level: 3 install dovecot www.2cto.com # yum-y install dovecot vi/etc/dovecot. modify or add protocols = imap pop3 pop3slisten = * #/etc/init. d/postfix start #/etc/init. d/dovecot start #/etc/init. d/saslauthd start set boot self-start # chkconfig-level 2345 postfix on # chkconfig-level 2345 dovecot on # chkconfig-level 2345 saslauthd on author rainysia