博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pmta linux视频,PowerMTA (PMTA) 的安装和设置方法 – 黄忠 – 博客
阅读量:4475 次
发布时间:2019-06-08

本文共 2041 字,大约阅读时间需要 6 分钟。

本文信息本文由方法SEO顾问发表于2016-12-0316:04:40,共 1870 字,转载请注明:PowerMTA (PMTA) 的安装和设置方法 – 黄忠 – 博客_【方法SEO顾问】,如果我网站的文章对你有所帮助的话,来百度口碑给个好评呗!

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

你可能感兴趣的文章
数据表格 - DataGrid - 行编辑
查看>>
HQL查询语句
查看>>
jsp听课笔记(四)
查看>>
vim
查看>>
数组的键/值操作函数
查看>>
Android单点触控与多点触控切换的问题解决方案
查看>>
JS常用函数与方法
查看>>
SpringBoot配置devtools实现热部署
查看>>
十、Shell基础
查看>>
py16 面向对象深入
查看>>
CSS中的overflow属性
查看>>
JavaWeb学习总结第三篇--走进JSP页面元素
查看>>
Scala-Unit-1-概述及安装
查看>>
idea解决Maven jar依赖冲突(四)
查看>>
php弹出对话框
查看>>
mysql高效索引之覆盖索引
查看>>
手眼标定实现
查看>>
BZOJ.5305.[HAOI2018]苹果树(组合 计数)
查看>>
Android数据的四种存储方式SharedPreferences、SQLite、Content Provider和File (二) —— SQLite...
查看>>
STL学习笔记(序列式容器)
查看>>