[英]How to use wildcard subdomain in a folder on server public_html/subdomain
[英]DNS issue with wildcard subdomain and mail server
嗨,我已经购买了一个域名,比如说 example.com,我需要在 DNS 上设置一个通配符子域,以便网站的每个用户都有自己的子域。 我在服务器上创建了一个电子邮件帐户,比如说 cutopus@cutop.us,以便让用户联系网站的工作人员。
现在,如果我使用 sendmail 以 contact@example.com 作为发件人地址从服务器发送电子邮件,则电子邮件可以正确发送,但是如果我想向 cutopus@cutop.us 发送电子邮件,则电子邮件不会发送。
我的DNS记录如下:
A @ 51.255.108.205 Automatic
A mail.cutop.us 51.255.108.205 Automatic
CNAME * cutop.us Automatic
MX cutop.us mail.cutop.us 10 Automatic
使用以下命令:
dig cutop.us
我得到以下输出:
; <<>> DiG 9.8.3-P1 <<>> cutop.us
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41051
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;cutop.us. IN A
;; ANSWER SECTION:
cutop.us. 1798 IN A 51.255.108.205
;; Query time: 483 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri May 6 11:04:30 2016
;; MSG SIZE rcvd: 42
并使用以下命令:
dig MX cutop.us
我得到以下输出:
; <<>> DiG 9.8.3-P1 <<>> MX example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61642
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;cutop.us. IN MX
;; AUTHORITY SECTION:
cutop.us. 1799 IN SOA dns1.registrar-servers.com. hostmaster.registrar-servers.com. 2016050501 43200 3600 604800 3601
;; Query time: 486 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri May 6 11:06:43 2016
;; MSG SIZE rcvd: 99
现在的问题是,为什么我不能向 cutopus@cutop.us 发送电子邮件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.