我在DigitalOcean有一个网站(safirasaloes.com.br),在CloudFlare设有DNS。 我试图通过Postfix收到[email protected]的电子邮件,但是我不能。
这里最大的问题是,我没有办法从这些系统获得反馈,以便确定问题所在。 所以我不知道我是否在CloudFlare,DigitalOcean防火墙或Postfixconfiguration上犯了一些错误。
我的DigitalOcean服务器允许的端口是:
我在CloudFlare的configuration是:
types 名称 值 TTL Active
safirasaloes.com.br 指向104.236.43.94 自动 真实
CNAME www 是safirasaloes.com.br的别名
MX safirasaloes.com.br 邮件由mail.safirasaloes.com.br处理,优先级为10 自动
AAAA safirasaloes.com.br 指向2604:a880:800:10 :: 542:b001 自动为 true
我的FQDN被设置为postfix为safirasaloes.com.br和main.cf
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no append_dot_mydomain = no readme_directory = no # TLS parameters 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 # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = safirasaloes.com.br #alias_maps = hash:/etc/aliases virtual_alias_maps = hash:/etc/postfix/virtual alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = safirasaloes.com.br, safirasaloes, localhost.localdomain, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all
根据我们在评论中的讨论,你的问题是, safirasaloes.com.br的MXlogging指向mail.safirasaloes.com.br ,它不存在。 MXlogging引用的FQDN必须可parsing才能传递邮件。