Centos 6.5 configuration postfix and troubleshooting

Source: Internet
Author: User


    1. Domain settings:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/8B/6B/wKiom1hNfA_RyOPPAADsqaaHg1M652.png "title=" 1.png " alt= "Wkiom1hnfa_ryoppaadsqaahg1m652.png"/>


2. Change the name of the server:


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/8B/6B/wKiom1hNfD6DceVpAAA9xUzksXk910.png "title=" 2.png " alt= "Wkiom1hnfd6dcevpaaa9xuzksxk910.png"/>


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/8B/66/wKioL1hNVLzCSTw2AAAgoh1im7U820.png "title=" 1.png " alt= "Wkiol1hnvlzcstw2aaagoh1im7u820.png"/>


3. Install it in the following ways:

yum-y install postfix

/etc/init.d/postfix start

Chkconfig Postfix on

Netstat-tunlp

Ps-ef |grep Postfix



To modify the master configuration file:

Vi/etc/postfix/main.cf

The first one is to modify Myhostname = postfix.com is to modify our mail domain to postfix.com

The second inet_interfaces = All is to modify the listening interface for all

Then we use POSTCONF-N to check the main parameters of the modified configuration file.




4. Installing Dovecot



Yum-y Install Dovecot dovecot-devel dovecot-mysql pam-devel

Dovecot–-version

/etc/init.d/dovecot start

Chkconfig Dovecot on

/etc/init.d/portreserve stop

Chkconfig Portreserve off


Let's configure the Dovecot service.

Vim/etc/dovecot/dovecot.conf

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8B/66/wKioL1hNWC_BZcE9AAAX2k1hwwY362.png "title=" 2.png " alt= "Wkiol1hnwc_bzce9aaax2k1hwwy362.png"/>

Then restart the postfix and Dovecot services



650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8B/66/wKioL1hNWOLC4TiXAAAV7SW1PWI065.png "title=" 3.png " alt= "Wkiol1hnwolc4tixaaav7sw1pwi065.png"/>


Error 1:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/8B/6A/wKiom1hNWk6y4-zlAASPdTEqG6M938.png "title=" 1.png " alt= "Wkiom1hnwk6y4-zlaaspdteqg6m938.png"/>

Vim/etc/dovecot/conf.d/10-auth.conf

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8B/6A/wKiom1hNWhmw5SCOAAAbHLzX1wg325.png "title=" 1.png " alt= "Wkiom1hnwhmw5scoaaabhlzx1wg325.png"/>


Error 2:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8B/66/wKioL1hNWrzjmfNUAAPrGKOqJhY217.png "title=" 1.png " alt= "Wkiol1hnwrzjmfnuaaprgkoqjhy217.png"/>

The error it shows is that the solution to the permissions problem is to give /var/mail/$USER 777 Permissions

Chmod-r 777/var/mail


Error 3:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/8B/67/wKioL1hNf3eTHxOAAAP0Rz7aGLE125.png "title=" 1.png " alt= "Wkiol1hnf3ethxoaaap0rz7agle125.png"/>

The error message that it displays is that the mail user's mail directory is not set to modify the following files

Vim/etc/dovecot/conf.d/10-mail.conf

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/8B/6B/wKiom1hNf7PANtIEAANhPTu7xY0019.png "title=" 1.png " alt= "Wkiom1hnf7pantieaanhptu7xy0019.png"/>


Test:


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8B/67/wKioL1hNgHvgSwJ5AAA4lJpomQc416.png "title=" 1.png " alt= "Wkiol1hnghvgswj5aaa4ljpomqc416.png"/>



Error 4: can not send, the following error occurred

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8B/66/wKioL1hNW7WwSVYhAAAvn_VlhDU814.png "title=" 1.png " alt= "Wkiol1hnw7wwsvyhaaavn_vlhdu814.png"/>


Workaround:

The first is: Modify the postfix configuration file main.cf in the Mynetworks, modified as follows all the network segments are passed on it.

Mynetworks = 0.0.0.0/0

This approach has security implications.


The second is: Modify the postfix configuration file main.cf, let

$mynetworks = 127.0.0.0/8, 127.0.0.1

And then add

Smtpd_client_restrictions = Permit_mynetworks, permit_sasl_authenticated,



This article is from the It Dick thread blog, so be sure to keep this source http://68686789.blog.51cto.com/10438688/1881745

Centos 6.5 configuration postfix and troubleshooting

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.