Before always use plug-in, Configure SMTP this good, virtual host installed it is OK, wordpress theme station is the use of Cloud Centos32-bit, and Jun brother LNMP1.0, use up all kinds of handy. Before also
Before always use plug-in, Configure SMTP this good, virtual host installed it is OK, wordpress theme station is the use of Cloud Centos32-bit, and Jun brother LNMP1.0, use up all kinds of handy. I’ve been messing with Sendmail before, but it’s really slow, and postfix is supposedly designed to address Sendmail’s weaknesses, which is pretty awesome. Of course plugins can be the same, but you can have as few plugins as possible, right? Let’s cut to the chase.
Install setup equipment postfix basic message tutorial: a. Install the postfix:
1. If you installed sendmail, please uninstall: yum remove sendmail 2. Install postfix: yum -y install postfix
2. Configure postfix and related components
1. Find #myhostname = host.domain. TLD and click myhostname = mail.menruan.com (your own domain name) 2. Go to # myDomain = domain.tld and change the department after the equals sign to your domain name. Click: mydomain = menruan.com (this setting will become the department after the E-mail address “@”) 3. To find # myOrigin = myDomain, simply remove the # from the first line. Go to inet\_interfaces = localhost and change “localhost” to “all” to take over all the collected implication5. Mydestination = myhostname, localhost. Mydomain,localhost, at the end of the line “mydomain,localhost, at the end of the line” mydomain,localhost, Add “mydomain” at the end of the line and click: Mydestination = myhostname, localhost. Myhostname localhost. Myhostname, localhost. Mydomain, localhost, mydomain, Specify the domain name 6 for sending local mail. Find #relay\_domains = mydestination, just remove the # at the beginning of the line, and define the domain 7 that you want to forward. Go to # myNetworks = 168.100.189.0/28, 127.0.0.0/8 and drop the # in front of it, specify the internal network and local IP address size, according to the environment, usually no change 8. Relay_domains = 9; relay_domains = 9; Find #home_mailbox = Maildir/, go to # at the beginning of the missing line, and specify the user’s email address
Iii. Start response service:
Chkconfig postfix on chkconfig -list postfix, Postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off Copy the following text into a new PHP file, such as 1.php, upload it to the website and directory and open it to see if you can receive the message:
? php$send = mail('[email protected]', 'My Subject', 'The test mail'); If ($send){echo 'send successfully '; }else{echo 'send failed '; }?Copy the code
OK, there are more messages. Enjoy to live: if send VIT – tutorial success means less, raid/usr/local/PHP/etc/PHP. Ini sendmail_path and lost in front of the semicolon, finally even
Sendmail_path = /usr/sbin/sendmail -t -iCopy the code
-VIT
This article uses the article synchronization assistant to synchronize