在EC2实例中设置邮件服务器时出现问题

时间:2016-02-02 11:01:26

标签: email amazon-web-services amazon-ec2

我正在尝试在AWS上的EC2实例中设置自己的邮件服务器。我已经安装了以下图片:

https://aws.amazon.com/marketplace/pp/B00K600RWK?ref=cns_srchrow

此图片包含Webuzo:2.2.9 + SquirrelMail:1.4.22。我按照所有安装步骤操作,服务器启动并运行正常。但每当我尝试登录SquirrelMail上的电子邮件帐户时,我都会收到以下消息:

"ERROR
Error connecting to IMAP server: ofaroldigital.com.br.
0 : php_network_getaddresses: getaddrinfo failed: No address associated with hostname"

挖掘输出:

$ dig ofaroldigital.com.br

; <<>> DiG 9.8.3-P1 <<>> ofaroldigital.com.br
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9193
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ofaroldigital.com.br.      IN  A

;; AUTHORITY SECTION:
ofaroldigital.com.br.   173 IN  SOA ns-1959.awsdns-52.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400

;; Query time: 24 msec
;; SERVER: 212.58.251.198#53(212.58.251.198)
;; WHEN: Tue Feb  2 10:58:37 2016
;; MSG SIZE  rcvd: 125

我相信我的route53配置正确。我错过了什么? 谢谢!

1 个答案:

答案 0 :(得分:1)

虽然ofaroldigital.com.br没有解决任何问题,但www.ofaroldigital.com.br是:

$ dig www.ofaroldigital.com.br +short
54.233.84.251

您是否确定已为Apex域添加了A记录,也就是说,没有“www”或任何其他子域?