亚马逊ec2,postfix,SES设置?
我正在尝试使用 aws 设置 SES(简单电子邮件服务)。
(遵循 http://pandali.com/cgi-bin 上的说明/pforum/pforum.pl?num=1297885604/2)
简而言之,
我似乎已成功向亚马逊发送请求电子邮件。(没有错误消息)
亚马逊应该将电子邮件发送至[电子邮件受保护]。
我检查/var/mail,但什么也没有。
我怀疑这是因为我的域名(example.com)设置不正确? 或者 postfix 设置不正确
我的 postfix 的 main.cf
:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = a.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = example.com
mydestination = example.com, ip-10-212-82-**.ec2.internal, localhost.ec2.internal, localhost
relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
a.example.com 和 example.com 都映射到此 ec2 实例。 (我可以 ssh 到 example.com)
“主机名”显示 ip-10-212--。
I'm trying to set up an SES(simple email service) with aws.
(followed instruction on http://pandali.com/cgi-bin/pforum/pforum.pl?num=1297885604/2)
In nutshell,
It seems I've successfully sent a request email to amazon.(no error msgs)
Amazon is supposed to send an email to [email protected].
I check /var/mail, but nothing is there.
I suspect it's because my domain name (example.com) is not set up correctly?
or postfix is not set up correctly
my postfix's main.cf
:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = a.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = example.com
mydestination = example.com, ip-10-212-82-**.ec2.internal, localhost.ec2.internal, localhost
relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
Both of a.example.com and example.com is mapped to this ec2 instance.
(I can ssh to example.com)
'hostname' shows ip-10-212--.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在 ec2 实例上打开 SMTP(25)/SMTPS(465) 端口来发送电子邮件,并打开 POP3(110)/POP3S(995) 或 IMAP(143)/IMAPS(993) 端口来接收电子邮件。
You need to open SMTP(25)/SMTPS(465) ports to send emails and POP3(110)/POP3S(995) or IMAP(143)/IMAPS(993) ports to receive emails on your ec2 instance.