求助 搭建了powerMTA 提示smtp连接不上的错误
本帖最后由 xiaomi 于 2014-9-26 20:15 编辑这几天试着装了下 powerMTA, 在配置文件上面折腾了很久,不知道哪里出错了 , 总是提示 smtp 服务器验证失败。
有哪位前辈 空了帮忙看下
配置文件如下, 拜谢
#
# $Id: config.dat 14068 2012-08-13 13:51:15Z avinash $
# Sample PowerMTA configuration file
#
#
# E-mail address for mailer's administrator (please specify!)
#
#postmaster [email protected]
#
# IP address(es) and port(s) on which to listen for incoming SMTP connections
#
smtp-listener 0/0:25 # listens on all local IPs
#
# Settings per source IP address (for incoming SMTP connections)
#
<source 127.0.0.1>
always-allow-relaying yes # allow feeding from 127.0.0.1
process-x-virtual-mta yes # allow selection of a virtual MTA
max-message-size unlimited
smtp-service yes # allow SMTP service
</source>
<source 0/0> # matches all
log-connections no
log-commands no # WARNING: verbose!
log-data no # WARNING: even more verbose!
</source>
<source {auth}>
always-allow-relaying yes
</source>
<source 103.242.1.193>
always-allow-relaying yes # allow feeding from 127.0.0.1
process-x-virtual-mta yes # allow selection of a virtual MTA
max-message-size 0 # 0 implies no cap, in bytes
smtp-service yes # allow SMTP service
remove-header Received
</source>
<virtual-mta pin4u>
auto-cold-virtual-mta 103.242.1.193 pin4u.info
<domain *>
max-cold-virtual-mta-msg 1000/day
</domain>
domain-key dkim, pin4u.info, c:/pmta/keys/k1.pin4u.info.prv
host-name pin4u.info
</virtual-mta>
<virtual-mta-pool pool>
virtual-mta pin4u
</virtual-mta-pool>
<smtp-user pin4u>
password kaka
source {auth}
</smtp-user>
#
# SMTP users (authenticated via SMTP AUTH)
#
#<smtp-user API>
# password "changeme"
#</smtp-user>
#
# Settings per outgoing domain
#
#<domain discard.port25.com>
# max-smtp-out 800
# route :2525# bypasses DNS resolution
#</domain>
#
#<domain test.port25.com>
# max-smtp-out 1
# log-connections yes
# log-commands yes # WARNING: verbose!
# log-resolutionno # WARNING: verbose!
# log-data no # WARNING: even more verbose!
#</domain>
<domain *>
max-smtp-out 20 # max. connections *per domain*
bounce-after 4d12h # 4 days, 12 hours
retry-after 10m # 10 minutes
</domain>
#
# Port used for HTTP management interface
#
http-mgmt-port 8080
#
# IP addresses allowed to access the HTTP management interface, one
# per line
#
#http-access 127.0.0.1 monitor
http-access ::1 monitor
#http-access 10.1.0.10 none
#http-access 10.1.0/24 admin
http-access 127.0.0.1 admin
http-access 118.112.111.58 admin
#http-access 222.210.168.14 admin
#http-access 118.112.102.90 admin
http-access 255.255.255.255/0 admin
#
# Logging file
#
log-file log\pmta.log
#
# Accounting file(s)
#
<acct-file log\acct.csv>
# move-to c:\myapp\pmta-acct # configure as fit for your application
move-interval 5m
max-size 50M
delete-after 8d
</acct-file>
#
# Spool directories
#
<spool spool>
deliver-only no
</spool>
# EOF
host-name pin4u.info
smtp 账号 和密码 [email protected]密码 kaka 或者 pinbag密码 kaka
ping pinbag.info
提示找不到主机
nslookup -qt=mx pinbag.info 8.8.8.8
提示找不到pinbag.info:None-exist Domain Smythe_Bob 发表于 2014-9-26 17:31
提示找不到主机
提示找不到pinbag.info:None-exist Domain
不好意思域名给出 MX 地址是没错 提示是 smtp 服务器验证失败 请在“邮箱设置”--高级设置 曲儿smtp 用户名或密码是否正确
powrmta 是搭建在下面这个vps
http://103.242.1.193:8080/
谢谢回复 我这边查询域名, 还是没解析到IP上;
用IP地址作为主机名测试发信, 结果:
01:59:39 A test email has not been successfully sent to the email address [email protected]: 550 5.7.1 relaying denied: <[email protected]> in "RCPT TO:<[email protected]>"可能是relay的权限问题; Smythe_Bob 发表于 2014-9-26 18:04
我这边查询域名, 还是没解析到IP上;
用IP地址作为主机名测试发信, 结果:
那个域名是不对的重新编辑一下configrelay权限指的是什么 小白 求科普这个http://103.242.1.193:8080/ 所有人都可以访问的有空帮忙看下 拜谢:lol 我也小白
只是看到有提示 relaying denied
所以猜测是权限问题
具体原因请楼下答
应该装在 linux 上才能发挥他的作用 河小马 发表于 2014-9-27 07:17
应该装在 linux 上才能发挥他的作用
那我再Linux上试试 那这个在window smtp 连接不上是什么原因呢 谢谢 xiaomi 发表于 2014-9-27 10:50
那我再Linux上试试 那这个在window smtp 连接不上是什么原因呢 谢谢
看 smtp 的log
写的很清楚 把4.0分享出来就告诉你 :lol smtp 连不上 你试试 其他读取方式。。。 第三层境界 发表于 2014-9-29 17:33
把4.0分享出来就告诉你 smtp 连不上 你试试 其他读取方式。。。
这个是window4.0不是Linux4.0的要分享? powermta 4.0 看了楼主的问题,貌似是source的设置的问题。
页:
[1]