Postfix retornando a si mesmo para um domínio de retransmissão

1

Não consigo enviar e-mails para ninguém em um determinado domínio, exceto para um destinatário específico. Aqui está o que estou vendo nos registros de quarentena / cache para um email enviado pelo Maia (um programa de quarentena) para um usuário para uma nova conta:

 <[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:

Não sei ao certo o que está acontecendo ou por que os e-mails estão constantemente indo e voltando.

Meu nome de host do servidor é emmxgw0 (.mailtest.mycompany.com), mas essa entrada DNS não está realmente definida em meu servidor DNS (usando 8.8.8.8 no momento). Meu 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

e meu arquivo de transporte é

 mailtest.mycompany.com relay:[10.5.1.10]

Eu devo mencionar que o usuário que trabalha, jshin , tem o mesmo nome de uma conta de usuário que existe no servidor Linux, então talvez seja por isso que está funcionando?

    
por tacos_tacos_tacos 30.04.2012 / 17:58

1 resposta

2

Com a formatação desse log endireitada um pouco, agora você pode ver facilmente que o loop contém 3 relés, 4 endereços IP e 3 MTAs diferentes e faz um loop por eles nesta ordem:

  1. 127.0.0.1 - > IP desconhecido (Maiad - > Postfix)
  2. 10.5.1.2 - > 10.5.1.10 (Postfix - > Microsoft SMTP)
  3. 10.5.1.100 - > 127.0.0.1 (SMTP da Microsoft - > Postfix)
  4. 127.0.0.1 - > 127.0.0.1 (Postfix - > Maiad)

Esse arquivo transports explica porque o Postfix envia o correio de 127.0.0.1 para o servidor SMTP da Microsoft e a linha content_filter explica porque o Postfix envia e-mails de qualquer lugar para o Maiad, mas não poderemos entender os outros dois hand-offs sem ver a configuração do Maia e do servidor SMTP da Microsoft também.

É o Postfix ou o servidor SMTP da Microsoft que deve entregar o email ao servidor SMTP do destinatário?

    
por 30.04.2012 / 18:47