我在使用 PMTA 时遇到问题,我的服务器无法发送任何电子邮件,并且与其他服务器的所有连接都超时了!
从子域连接时超时,状态 = ETIMEDOUT。myserver.tld(My_Server_Ip)到 reception.mail-tester.com(94.23.206.89)
我已经从我的电脑 ping 了我的服务器并且它正在运行!
我已经从我的服务器 ping 了 94.23.206.89 并且它正在运行!
我的服务器正在使用 VestaPanel 作为控制面板,我想知道它的防火墙是否会阻止连接!
你怎么看待这件事?
以下是我的配置文件:
#smtp-port 25
smtp-listener SERVER_IP:25
<source 0/0>
log-connections yes
log-commands yes # WARNING: verbose!
allow-unencrypted-plain-auth yes
</source>
sync-msg-create false
sync-msg-update false
run-as-root no
log-file /var/log/pmta/log # logrotate is used for rotation
<acct-file /var/log/pmta/acct.csv>
# move-to /opt/myapp/pmta-acct # configure as fit for your application
# move-interval 5m
max-size 50M
</acct-file>
# transient errors (soft bounces)
<acct-file /var/log/pmta/diag.csv>
move-interval 1d
delete-after never
records t
</acct-file>
#
# spool directories
#
spool /var/spool/pmta
http-mgmt-port 1983
http-access 127.0.0.1 admin
http-access 0/0 monitor
http-access SERVER_IP admin
# BEGIN: USERS/VIRTUAL-MTA / VIRTUAL-MTA-POOL / VIRTUAL-PMTA-PATTERN
#<spool /var/spool/pmta>
#</spool>
<smtp-user xxxx>
password xxxxx
source {smtpuser-auth}
</smtp-user>
<smtp-user xxxxx>
password xxxxx
source {smtpuser-auth}
</smtp-user>
<source {smtpuser-auth}>
smtp-service yes
always-allow-relaying yes
require-auth true
process-x-virtual-mta yes
default-virtual-mta pmta-pool
remove-received-headers true
add-received-header false
hide-message-source true
</source>
#BEGIN VIRTUAL MTAS
<virtual-mta pmta-vmta1>
smtp-source-host SERVER_IP subdomain.myserver.tld
domain-key dkim,*,/home/admin/conf/mail/subdomain.myserver.tld/dkim.pem
<domain *>
max-msg-rate 400/h
</domain>
</virtual-mta> <domain myserver.tld>
route [127.0.0.1]:25
</domain>
#END VIRTUAL MTAS
<virtual-mta-pool pmta-pool>
virtual-mta pmta-vmta1
</virtual-mta-pool>
# END: USERS/VIRTUAL-MTA / VIRTUAL-MTA-POOL / VIRTUAL-PMTA-PATTERN
<source 127.0.0.1>
always-allow-api-submission yes
add-message-id-header yes
retain-x-job yes
retain-x-virtual-mta yes
verp-default yes
process-x-envid yes
process-x-job yes
jobid-header X-Mailer-RecptId
process-x-virtual-mta yes
</source>
<domain myserver.tld>
route [127.0.0.1]:25
</domain>
答案1
您的主机可能阻止了出站端口 25。您可以使用以下命令快速验证这一点:
telnet reception.mail-tester.com:25
如果成功,您将看到:
220 mail-tester.com ESMTP Postfix (Ubuntu)
如果您收到连接超时错误,则表示连接已被阻止。