大网数据广告活动
网站运营与故障问答

How to set DNS to work with VPS email server

· 52CE 我爱测

I have a VPS in one provider (Provider A), and I have set the email server all works ok. in another provider (Provider B) I have the domain registered. So, let's assume it is mydomain.com On the provider B: I had created a subdom…

问题原文

原帖链接 · sudo.ie · CC BY-SA 3.0

I have a VPS in one provider (Provider A), and I have set the email server all works ok. in another provider (Provider B) I have the domain registered. So, let's assume it is mydomain.com

On the provider B: I had created a subdomain called mail.mydomain.com, configured the dns as follow:

HOST         Type    Result
(empty)      A       123.123.123.123
www          A       123.123.123.123
mail         A       123.123.123.123

Then on mail exchange records I've configured as follow:

HOST            Priority   Result
(empty)         30         123.123.123.123

On the subdomain mail.mydomain.com, I have configured the dns as follow:

HOST         Type    Result
(empty)      A       123.123.123.123
www          A       123.123.123.123

已采纳解答

原帖链接 · wb9688 · CC BY-SA 3.0

  1. Set up your mail server(s) to listen at mail.mydomain.com
  2. Make sure your firewall doesn't block your mail server(s)'s ports
  3. Set an A record on mail.mydomain.com pointing to your IP address
  4. Set a MX record on mydomain.com pointing to mail.mydomain.com
  5. It should be working, but you probably wanna set up DKIM, DMARC and SPF

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-10-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。