Ubuntu Linux - Postfix 拒绝所有来自非本地主机的电子邮件

Ubuntu Linux - Postfix 拒绝所有来自非本地主机的电子邮件

我不确定这里到底出了什么问题,但我的服务器(Postfix?)似乎拒绝所有发送到该服务器的外部电子邮件example.info

这是我收到的退回邮件,与 Gmail 和 Yahoo 类似。

Delivery to the following recipient failed permanently:

    [email protected]

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 #5.1.0 Address rejected [email protected] (state 14).

----- Original message -----

MIME-Version: 1.0
Received: by 10.216.138.89 with SMTP id z67mr2663854wei.10.1329000093343; Sat,
 11 Feb 2012 14:41:33 -0800 (PST)
Received: by 10.180.95.195 with HTTP; Sat, 11 Feb 2012 14:41:33 -0800 (PST)
Date: Sat, 11 Feb 2012 15:41:33 -0700
Message-ID: <CAJ=woPqVkUYs7_4YicV62Vvt4hQ7eHqcorxSgC3dcOsUCwd05Q@mail.gmail.com>
Subject: test
From: My Name <[email protected]>
To: My Name <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

test

我并不是电子邮件这方面的专家;我只是因为工作中担任数据库架构师而被委以这项任务。显然我已经承担了所有 IT 管理/支持的职责。

我已经在 GoDaddy 注册了我的域名,但是,它唯一的作用就是指向存储在我办公室服务器机房内的一个盒子;GoDaddy 没有托管任何东西。

我是否遇到了某种 MX 注册问题?哪些日志有助于调试此类问题?

我将在这里发布我在 Godaddy 的 MX 记录的照片:

DNS 管理器 - 区域文件编辑器 @ Godaddy

附言:好的一面是,我可以通过命令提示符发送邮件,并且所有服务器都将其视为非垃圾邮件。

编辑:输出postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command =
mailbox_size_limit = 0
mydestination = localhost, localhost.localdomain, example.com
myhostname = example.com
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_alias_domains = example.com
virtual_alias_maps = hash:/etc/postfix/virtual

答案1

您的电子邮件服务器是 mx 设置中提到的两个,一个是备份服务器,一个是主服务器。其中一个是您的 postfix 服务器吗?如果不是,那么这就是问题所在。(第一个问题……)

您可能应该尝试从命令提示符向服务器上的地址(而不仅仅是外部地址)发送邮件以测试是否可以接收。

在本地邮件服务器上(如果是 Linux),查看 /var/log/mail.log(或类似日志)和 /var/log/syslog,以查看外部服务器是否可以访问它。通常,您可以按照以下建议操作我写的指南中的测试部分

答案2

被拒绝的邮件被发送到 mydomain.info,而接受的邮件被发送到 mydomain.com;并且您的 postconf -n 输出中没有在任何地方提及 mydomain.info,更不用说 mydestination 了。

相关内容