Postfix循环回到自己的中继域

除特定收件人外,我无法将电子邮件发送给某个域中的任何人。 以下是我在隔离/caching日志中看到Maia(隔离程序)向用户发送的新邮件的电子邮件:

<[email protected]>; Mon, 30 Apr 2012 11:30:24 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com ([127.0.0.1]) by localhost (emmxgw0.mailtest.mycompany.com [127.0.0.1]) (maiad, port 10024) with ESMTP id 29964-02 for <[email protected]>; Mon, 30 Apr 2012 11:30:24 -0400 (EDT) Received: from mail.mycompany.com (unknown [10.5.1.100]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTPS id 4E5AE61281 for <[email protected]>; Mon, 30 Apr 2012 11:30:24 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com (10.5.1.2) by mail.mycompany.com (10.5.1.10) with Microsoft SMTP Server id 14.2.247.3; Mon, 30 Apr 2012 11:17:09 -0400 Received: from localhost (localhost [127.0.0.1]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTP id E2F4361280 for <[email protected]>; Mon, 30 Apr 2012 11:15:21 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com ([127.0.0.1]) by localhost (emmxgw0.mailtest.mycompany.com [127.0.0.1]) (maiad, port 10024) with ESMTP id 28696-09 for <[email protected]>; Mon, 30 Apr 2012 11:15:21 -0400 (EDT) Received: from mail.mycompany.com (unknown [10.5.1.100]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTPS id CA5DA60424 for <[email protected]>; Mon, 30 Apr 2012 11:15:21 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com (10.5.1.2) by mail.mycompany.com (10.5.1.10) with Microsoft SMTP Server id 14.2.247.3; Mon, 30 Apr 2012 11:16:39 -0400 Received: from localhost (localhost [127.0.0.1]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTP id 7ACCD61280 for <[email protected]>; Mon, 30 Apr 2012 11:14:51 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com ([127.0.0.1]) by localhost (emmxgw0.mailtest.mycompany.com [127.0.0.1]) (maiad, port 10024) with ESMTP id 28695-09 for <[email protected]>; Mon, 30 Apr 2012 11:14:51 -0400 (EDT) Received: from mail.mycompany.com (unknown [10.5.1.100]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTPS id 62F7460424 for <[email protected]>; Mon, 30 Apr 2012 11:14:51 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com (10.5.1.2) by mail.mycompany.com (10.5.1.10) with Microsoft SMTP Server id 14.2.247.3; Mon, 30 Apr 2012 11:16:05 -0400 Received: from localhost (localhost [127.0.0.1]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTP id 5939A61280 for <[email protected]>; Mon, 30 Apr 2012 11:14:18 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com ([127.0.0.1]) by localhost (emmxgw0.mailtest.mycompany.com [127.0.0.1]) (maiad, port 10024) with ESMTP id 28697-08 for <[email protected]>; Mon, 30 Apr 2012 11:14:18 -0400 (EDT) Received: from mail.mycompany.com (unknown [10.5.1.100]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTPS id 4163160424 for <[email protected]>; Mon, 30 Apr 2012 11:14:18 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com (10.5.1.2) by mail.mycompany.com (10.5.1.10) with Microsoft SMTP Server id 14.2.247.3; Mon, 30 Apr 2012 11:16:05 -0400 Received: from localhost (localhost [127.0.0.1]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTP id 04CFA61280 for <[email protected]>; Mon, 30 Apr 2012 11:14:18 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com ([127.0.0.1]) by localhost (emmxgw0.mailtest.mycompany.com [127.0.0.1]) (maiad, port 10024) with ESMTP id 28698-08 for <[email protected]>; Mon, 30 Apr 2012 11:14:17 -0400 (EDT) Received: from mail.mycompany.com (unknown [10.5.1.100]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTPS id E1CB960424 for <[email protected]>; Mon, 30 Apr 2012 11:14:17 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com (10.5.1.2) by mail.mycompany.com (10.5.1.10) with Microsoft SMTP Server id 14.2.247.3; Mon, 30 Apr 2012 11:16:05 -0400 Received: from localhost (localhost [127.0.0.1]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTP id A73DB61280 for <[email protected]>; Mon, 30 Apr 2012 11:14:17 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com ([127.0.0.1]) by localhost (emmxgw0.mailtest.mycompany.com [127.0.0.1]) (maiad, port 10024) with ESMTP id 28696-08 for <[email protected]>; Mon, 30 Apr 2012 11:14:16 -0400 (EDT) Received: from mail.mycompany.com (unknown [10.5.1.100]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTPS id AD03861242 for <[email protected]>; Mon, 30 Apr 2012 11:14:16 -0400 (EDT) Received: from emmxgw0.mailtest.mycompany.com (10.5.1.2) by mail.mycompany.com (10.5.1.10) with Microsoft SMTP Server id 14.2.247.3; Mon, 30 Apr 2012 11:16:03 -0400 Received: from maia (localhost [127.0.0.1]) by emmxgw0.mailtest.mycompany.com (Postfix) with ESMTP id 6960660424 for <[email protected]>; Mon, 30 Apr 2012 11:14:16 -0400 (EDT) To: <[email protected]> From: Maia Mailguard <[email protected]> Subject: Welcome to Maia Mailguard Message-ID: 

我不确定发生了什么事,或者为什么邮件不断地来回传递。

我的服务器主机名为emmxgw0(.mailtest.mycompany.com),但该DNS条目实际上并未在我的DNS服务器中定义(此时使用8.8.8.8)。 我的main.cf是:

 myhostname = emmxgw0.mailtest.mycompany.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = mailtest.mycompany.com mydestination = mailtest.mycompany.com relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = inet_interfaces = all mydomain = mailtest.mycompany.com local_transport = error:no local mail delivery local_recipient_maps = virtual_alias_maps = hash:/etc/postfix/virtual relay_domains = mailtest.mycompany.com smtpd_helo_required = yes smtpd_data_restrictions = reject_unauth_pipelining smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination transport_maps = hash:/etc/postfix/transport content_filter = smtp-amavis:[127.0.0.1]:10024 

和我的运输文件是

  mailtest.mycompany.com relay:[10.5.1.10] 

我应该提到,工作的用户jshin与Linux服务器上存在的用户帐户名称相同,所以也许这就是为什么它正在工作?

当日志格式化了一点之后,你现在可以很容易地看到这个循环包含3个继电器,4个IP地址和3个不同的MTA,并且按照这个顺序依次循环:

  1. 127.0.0.1 – >未知IP(Maiad – > Postfix)
  2. 10.5.1.2 – > 10.5.1.10(Postfix – > Microsoft SMTP)
  3. 10.5.1.100 – > 127.0.0.1(Microsoft SMTP – > Postfix)
  4. 127.0.0.1 – > 127.0.0.1(Postfix – > Maiad)

transports文件解释了为什么Postfix将邮件从127.0.0.1closures到Microsoft SMTP服务器,而content_filter行解释了为什么Postfix将邮件从其他地方邮件发送到Maiad,但是我们无法理解另外两个邮件传递查看Maia和Microsoft SMTP服务器的configuration。

是Postfix还是应该将邮件传递给收件人的SMTP服务器的Microsoft SMTP服务器?