- A+
PowerMTA 安装包中有以下几个文件:
PowerMTA-3.5r16-201012281936.i586.rpm
PowerMTA-3.5r16-201012281926.x86_64.rpm
powermta_3.5r16-201012281937_i386.deb
pmtad_linux64
pmtad_linux32
license.linux64
license.linux32
安装步骤
1. 添加用户组
groupadd pmta
2. 安装PowerMTA (以64位 Linux 服务器为例)
rpm -Uvh PowerMTA-3.5r16-201012281926.x86_64.rpm
执行完成后,显示下面提示信息:
PowerMTA has been installed. Please review the configuration
(in /etc/pmta/config) to ensure it fits your needs.
The PowerMTA User's Guide is available on file:/usr/share/doc/pmta/UsersGuide.pdf.
*** WARNING ***
The SMTP TCP port is already in use by other software on this
system. Installation will continue, but in order to be able to
start up PowerMTA you will need to stop the other software
or reconfigure PowerMTA to use an alternative port. See the
manual section about startup problems for more information.
*** WARNING ***
Thank you for choosing PowerMTA.
This software requires a license to run. To obtain a license key,
please contact Port25 at or call +1.410.750.7687
during office hours, U.S. Eastern Time.
If you already received a license key from Port25, please save it
as /etc/pmta/license before starting PowerMTA.
表示执行成功了。
3. 复制许可文件 license 和执行文件 pmtad
cp license.linux64 /etc/pmta/license
cp pmtad_linux64 /usr/sbin/pmtad
4. 启动 pmta
/etc/rc.d/init.d/pmta start 或者 service pmta start
停止 pmta
/etc/rc.d/init.d/pmta stop 或者 service pmta stop
如果启动失败,可以用 –debug 参数检查。
/usr/sbin/pmtad –debug
5. 修改 pmta 的配置文件,允许通过浏览器远程查看、修改配置
vi /etc/pmta/config
找到 http-access 这个参数,然后添加一条:
http-access 21.34.56.78 admin
其中 21.34.56.78 是你自己的IP地址。
重新启动 pmta
service pmta start
这样就可以通过:http://mpta.mydomain.com:8080/editConfig 查看配置文件了。
说明: 通过浏览器修改配置文件不需要重启 pmta。
6. PowerMTA 的日志文件位于 /var/log/pmta/log
安装出现问题,请通过日志文件来了解是什么原因引起的。
7. 关于连接限制的说明
Linux 系统默认的连接数是1024,当pmta连接数过多的时候,就会受到很多的限制,所以要把连接数调大。
查看当前的连接数:
ulimit -n
修改方法如下:
vi /etc/security/limits.conf
在文件最后面添加:
* soft nofile 65535
* hard nofile 65535
本安装教程部分摘自 PowerMTA安装教程完整版