vultr默认封锁25端口影响wordpress使用smtp发送邮件

2017年9月10日 944点热度
b3a3a9d0e7de35f0e6751b66fe935fbe_92123107-c24d-4fd8-9aa8-4e7e20b16c94
wordpress跑在vultr上,邮件一直没发成功。从vps本身发送出的测试邮件不说,因为其他邮箱就算没收到也懒得排查到底是被对方服务商ban了还是没发成功(因为个人邮件服务器折腾很烦,要打通各个关节)。然而使用第三方smtp插件(比如WP-Mail-SMTP)借道qq邮箱、阿里邮箱、163邮箱居然都没能让对方成功收到邮件,总是报错,还以为是用的宝塔面板在vultr上对smtp函数支持有问题。折腾了一天,意外看到vultr默认封锁25等邮件端口的文章于是提交ticket申请开放smtp,解封后即可正常使用第三方smtp发送邮件。
VULTR FAQ https://www.vultr.com/faq/:
Port X seems to be blocked on my VPS, are you blocking it?
We block several ports that are commonly abused for DDOS attacks. This includes TCP and UDP ports 17, 19, 1900. These blocks are permanent, and cannot be removed. Depending on your account, outbound 53413 UDP and SMTP (port 25) may also be blocked. This block may be removed by opening a support ticket. Also note that many operating systems are configured with firewalls which block traffic. You would need to open any ports you need within your VPS's firewall.
Do you allow outbound SMTP?
In some instances, outbound traffic to the SMTP port may be blocked for new accounts. If you encounter this restriction, contact our support team from the customer portal.

处理经过:

【时间17:00】提交ticket:please unblock port 25,My wp blog needs to use smtp,thank you。

【时间17:25】收到处理回复(取消了对stmp的封锁,去vultr后台重启生效,注意:在服务器中重启无效):

客服处理后,smtp可正常使用了。

BackWPup邮件测试从QQ邮箱发送成功【17年9月9日18:31】
b3a3a9d0e7de35f0e6751b66fe935fbe_e9b65514-806f-46b0-8d18-cfbaf0848476b3a3a9d0e7de35f0e6751b66fe935fbe_85625166-4938-4a6c-9da4-bac739d33f6c
 

从阿里邮箱smtp发送成功【不支持ssl,只能使用25】

b3a3a9d0e7de35f0e6751b66fe935fbe_e293b2bd-b0ac-4a9f-b1a3-e2248b3d28b1b3a3a9d0e7de35f0e6751b66fe935fbe_13c9e224-96de-4dac-9544-435c6f381d17

 
 

 
 

SSJ

不积跬步无以至千里