在Vultr租了个VPS也用了有几个月了,这几天想弄个邮件服务器在外头做中转,转发家里的群晖邮件,毕竟国内对外的邮件有很多问题。
什么都弄好了,结果发现VPS的邮件服务器只进不出。。。
从外头测试25端口都是正常的
C:\Users\packingbox>psping mx1.myds.cloud:25
PsPing v2.10 – PsPing – ping, latency, bandwidth measurement utility
Copyright (C) 2012-2016 Mark Russinovich
Sysinternals – www.sysinternals.com
TCP connect to 107.191.42.58:25:
5 iterations (warmup 1) ping test:
Connecting to 107.191.42.58:25 (warmup): from 192.168.8.36:41392: 275.01ms
Connecting to 107.191.42.58:25: from 192.168.8.36:41396: 250.35ms
Connecting to 107.191.42.58:25: from 192.168.8.36:41400: 249.04ms
Connecting to 107.191.42.58:25: from 192.168.8.36:41403: 248.66ms
Connecting to 107.191.42.58:25: from 192.168.8.36:41406: 248.95ms
自己看postfix的配置也没问题,当然没问题,外头都可以发邮件进去了。
然后打开postfix的log一看,显示连接外头的邮件服务器失败
(connect to mail.google.com [72.14.223.83]:25: Connection timed out)
心里想没可能啊,服务器都是正常联网的,检查了DNS也没问题。
- 尝试telnet自己的25端口,正常
- 尝试telnet外部的邮件服务器25端口,失败
- 尝试telnet外部的网页服务器80端口,正常
这下心里有数了,不会是被封掉吧。结果过用关键词Google了一下,才发现运营商的策略就是默认关闭了25端口,真是无言,浪费了我两天的时间。
https://discuss.vultr.com/discussion/430/smtp-block-is-unreasonable
https://discuss.vultr.com/discussion/1179/postfix-cant-sendmail-but-can-received
https://discuss.vultr.com/discussion/1027/smtp-port-25-is-supposed-to-have-been-opened-but-doesnt-seem-to
https://www.vultr.com/faq/#outboundsmtp
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.
只能依照指引给管理员发ticket了,回复说他们没权限只能转交账号组,还要提提供巴拉巴拉资料,比如公司名称,网站地址,你要用来干啥,一天发多少邮件。
Eric Van Trease Vultr Staff 2017-12-07 09:29:47 Hello,
Thank you for your SMTP unblock request!
SMTP ports are blocked by default on all new Vultr Accounts and clients are asked to request removing the block off their accounts as needed.
This appears to be related to an Account Management issue. The Technical Support group does not have access to make account changes so we must now transfer this ticket to the Account Management group for attention.
Please note the Account Management group’s regular hours are approximately 9AM to 5PM US eastern daily. While they do their best to resolve any account-related issues in a timely manner, this will take some time. We thank you in advance for your patience.
In order to expedite this case, please be sure to reply to this ticket with the following information:
- The business name and organization URL(s) under which you offer services.
- Describe, in as much detail as possible, the nature of the emails you intend to send.
- The volume of email that you plan to deliver on a regular basis.
We need to know this in order to make an informed decision regarding your account settings and resource limits to ensure the integrity of our network/systems/online reputation.
If you feel I missed something technical, please refer to this Ticket ID in a new request and we will be sure to follow up.
Regards,
Eric Van Trease
System Administrator
按照要求回复了,目前还在等通知,好烦,等这里的钱用完考虑换一家了。
update:
终于回复我,说弄好了,要通过面板重启服务器才有用,服务器里面重启无效。
Melissa Biondi Vultr Staff 2017-12-08 02:40:46 Hello,
Thank you for sharing your intentions.
We have removed the default SMTP block on your account.
Please restart any active instances via https://my.vultr.com for the change to take effect (restarting via the server itself will_not work).
Please note that any bulk mail is strictly forbidden on our network. Thank you for understanding.
For reference, our ANTI-SPAM policy is listed here: https://www.vultr.com/legal/antispam_policy.php
If you have any additional questions our team is happy to assist you further. Thank you for choosing Vultr!
Kind Regards,
Mel B.
Customer Support
Vultr.com
更新:2017-12-14
经过测试架设的postfix已经可以对外发送邮件了。