PostFix 550 5.1.1从外部电子邮件找不到收件人

这是一个新的安装。 当用户存在时,PostFix报告“550 5.1.1”“收件人找不到”。

  • 用户可以发送电子邮件到处。
  • 用户可以通过本地主机相互发送邮件。
  • 所有外部电子邮件给用户返回550 5.1.1错误消息。

我没有看到maillog文件中的任何错误。 我想我已经阅读了这个网站的每一个线程,其中“550”,但不是答案似乎是适当的。 有谁知道为什么知道的用户被报告为没有find?

这是我的configuration文件:

/etc/postfix/master.cf

# ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - n - - smtpd submission inet n - n - - smtpd # -o smtpd_tls_security_level=encrypt # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING smtps inet n - n - - smtpd # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - n - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - n - - smtp -o smtp_fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error retry unix - - n - - error discard unix - - n - - discard local unix - nn - - local virtual unix - nn - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache 

/etc/postfix/main.cf中

 #soft_bounce = no queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix #default_privs = nobody # INTERNET HOST AND DOMAIN NAMES #myhostname = host.domain.tld #myhostname = virtual.domain.tld mydomain = [MYACTUALDOMAINNAME].com #myorigin = $myhostname myorigin = $mydomain inet_interfaces = all #inet_interfaces = $myhostname #inet_interfaces = $myhostname, localhost #inet_interfaces = localhost # Enable IPv4, and IPv6 if supported inet_protocols = all #proxy_interfaces = #proxy_interfaces = 1.2.3.4 # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS". # mydestination = localhost, localhost.$mydomain unknown_local_recipient_reject_code = 550 # Specify "mynetworks_style = host" when Postfix should "trust" # only the local machine. # #mynetworks_style = class #mynetworks_style = subnet #mynetworks_style = host # INTERNET OR INTRANET #relayhost = $mydomain #relayhost = [gateway.my.domain] #relayhost = [mailserver.isp.tld] #relayhost = uucphost #relayhost = [an.ip.add.ress] # REJECTING UNKNOWN RELAY USERS #relay_recipient_maps = hash:/etc/postfix/relay_recipients # INPUT RATE CONTROL # Specify 0 to disable the feature. Valid delays are 0..10. # #in_flow_delay = 1s #alias_maps = dbm:/etc/aliases alias_maps = hash:/etc/aliases #alias_maps = hash:/etc/aliases, nis:mail.aliases #alias_maps = netinfo:/aliases # DELIVERY TO MAILBOX home_mailbox = Maildir/ # The mail_spool_directory parameter specifies the directory where # UNIX-style mailboxes are kept. The default setting depends on the # system type. # #mail_spool_directory = /var/mail #mail_spool_directory = /var/spool/mail #mailbox_command = /some/where/procmail #mailbox_command = /some/where/procmail -a "$EXTENSION" #mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp #mailbox_transport = cyrus #luser_relay = [email protected] #luser_relay = [email protected] #luser_relay = admin+$local #header_checks = regexp:/etc/postfix/header_checks # FAST ETRN SERVICE #fast_flush_domains = $relay_domains # SHOW SOFTWARE VERSION OR NOT #smtpd_banner = $myhostname ESMTP $mail_name #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) # PARALLEL DELIVERY TO THE SAME DESTINATION #local_destination_concurrency_limit = 2 #default_destination_concurrency_limit = 20 # INSTALL-TIME CONFIGURATION INFORMATION sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop # html_directory: The location of the Postfix HTML documentation. # html_directory = no # manpage_directory: The location of the Postfix on-line manual pages. # manpage_directory = /usr/share/man 

这是来自GMail的错误消息

 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 server for the recipient domain [domain.com] by smtp.secureserver.net. [68.178.213.37]. The error that the other server returned was: 550 5.1.1 <[[email protected]]> Recipient not found. <http://x.co/irbounce> 

传递给以下收件人永久失败:[email protected]永久性失败的技术细节:Google试图传递您的邮件,但被smtp.secureserver.net拒绝了收件人域[email protected]的服务器。 [68.178.213.37]。 其他服务器返回的错误是:550 5.1.1找不到收件人。

从上面的反弹 ,看起来像你的MXlogging仍然指向GoDaddy电子邮件托pipe : smtp.secureserver.net 。 更改MXlogging,使其指向您的服务器。

更多信息: 在互联网和MXlogging维基百科的 随机帮助页面

您需要将实际的邮件域添加到mydestination列表中,因为它目前只设置为接受localhost:

 mydestination = localhost, localhost.$mydomain, $mydomain 

有关详细信息,请参阅Postfix文档 。