Check the configuration of sendmailwww.2cto.com # rpm-qa | grepsendmail on the centos mail server postfix, saslauthd, and dovecot. #/etc/init. d/sendmailstop # chkconfig -- level0123456sendmailoff # mv/usr/bin...
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. http://www.linuxfromscratch.org/blfs/view/cvs/postlfs/cyrus-sasl.html Download saslauthd # wget from www.2cto.com ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.25.tar.gz # 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
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.