pmta linux视频,PowerMTA (PMTA) 的安装和设置方法 – 黄忠 – 博客

本文信息本文由方法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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值