电子邮件配置 - DigitalOcean、CloudFlare、Postfix

电子邮件配置 - DigitalOcean、CloudFlare、Postfix

我有一个网站 (safirasaloes.com.br),托管在 DigitalOcean,DNS 设置为 CloudFlare。我尝试在[电子邮件保护]但是我不能。

这里最大的问题是,我没有办法从这些系统获得反馈,从而确定问题出在哪里。所以我不知道我是否在 CloudFlare、DigitalOcean 防火墙或 Postfix 配置上犯了错误。


我的DigitalOcean 服务器是:

  • 5000(SSH 连接)
  • 80(网络应用程序)
  • 443(SSL)
  • 25(接收电子邮件)

我在CloudFlare的配置是:

Type     Name                      Value                                                                                TTL          Active

A           safirasaloes.com.brpoints to 104.236.43.94                                                    Automatictrue   

CNAMEwww                        is an alias of safirasaloes.com.br                                      Automatictrue   

MX        safirasaloes.com.brmail handled by mail.safirasaloes.com.br with priority 10Automatic          

AAAA    safirasaloes.com.brpoints to 2604:a880:800:10::542:b001                            Automatictrue    


我的 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

答案1

根据我们在评论中的讨论,您的问题是 的safirasaloes.com.brMX 记录指向mail.safirasaloes.com.br,但该记录不存在。MX 记录引用的 FQDN 必须可解析,才能传递邮件。

相关内容