Email server setup-PowerMTA + OEMPRO installation and configuration solution in linux, powermtaoempro
Download the installation package:
Link: http://pan.baidu.com/s/1slU72gd password: pakj
Select Server: centos 6.x
Installation steps:
Upload and install the package data.tar.gz to the linux Directory:/usr/local/src
Access path: cd/usr/local/src
Decompress: tar zxvf data.tar.gz
Cut Directory: mv/usr/local/src/data/*/usr/local/src
Install: sh install. sh
After the installation is successful, modify the configuration file:/etc/pmta/config
Vi + 435/etc/pmta/config find the error line to modify the IP address and Domain Name:
Smtp-source-host yourIP yourdomain
The Modification result is as follows:
Smtp-source-host: domain name bound to your ip address
If you have multiple domain names and multiple IP addresses, you can add them directly under this line. If you execute pmtad-debug again, no error message is reported.
Run/etc/init. d/pmta start to start the service.
Enter 104.236.229.211: 7100 in the browser to view the sending status and other web interfaces.
In addition, port 2525 is the STMP port, which can be modified in the vi/etc/pmta/config configuration file as follows:
Http-mgmt-port 7100
Smtp-port 2525
Run/etc/init. d/pmta after modification to restart
The following sections in the configuration file are used to configure the user name and password:
<Smtp-user tiger>
Password tiger123
Source {smtpuser-auth}
</Smtp-user>
Configuration in the configuration file (/etc/pmta/config)
1. Domain Macro
Domain-macro topLevel com, de, co. uk
Domain-macro aol, aim
Used to match domain names such as aol.com and aim.de.
<Domain $ aol. $ topLevel>
... Settings...
</Domain>
2. max-msg-rate sending frequency
Oempro Configuration
Email delivery: SMTP or PowerMTA
Load Balancing sets the number of seconds at which Oempro sends messages to PMTA.
Set the pickup path in/etc/pmta/config, and change tmp to the PowerMTA to extract the mail path,
Pickup/var/www/tmp/var/www/badmail
At the same time, you need to set permissions for these two folders (chmod 777)
To improve the user experience, you can set a successful/failed redirection for the page on which Oempro unsubscribes by default:
Templates/weefive/desktop/public/success. tpl
Templates/weefive/desktop/public/error. tpl
<Script type = "text/javascript">
Window. setTimeout ("window. location = 'HTTP: // alanhou.com '", 1000 );
</Script>
Read logs
Messages sent through the PMTA + OEMPRO solution will generate logs by date under/var/log/pmta to record the sending status. After successful delivery, the log will usually return 2.0.0 (success ), in most cases, 5 is returned. *. * Status Code, for example, 5.0.0 is This account has been disabled or discontinued and 5.7.1 (delivery not authorized). For details about This status code, refer to bounce type of email marketing. You can use the following code to export a mailbox containing these exceptions:
Cat/var/log/pmta/acct-2015 -*. csv | grep '. * 5 \. [0-9] \. [0-9]. * '>/root/bounce.txt
Cat/root/bounce.txt | awk-F "," '{print $6}'>/root/bounceemail.txt
To export two files, read and verify bounce.txt. You can also directly use the following statement to output the email address:
Cat/var/log/pmta/acct-2015 -*. csv | grep '. * 5 \. [0-9] \. [0-9]. * '| awk-F ","' {print $6} '>/root/bounceemail.txt
If you want to retrieve a nonexistent mailbox, you can extract only the sections of. * And. *.
Cat/var/log/pmta/acct-2015 -*. csv | grep '. * 5 \. [0-1] \. [0-9]. * '| awk-F ","' {print $6} '>/root/hardbounceemail.txt
Decompress the OEMPRO file in/var/www/html/oem/by default/
Install oem
Http: // ip/oem
Database: oem
Password: oempro
Account: oem
Install
Join me for learning. Please add me q: 1009460226
Free red envelopes after scanning the QR code