Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36135

Postfix - Cannot deliver mail using MX records

$
0
0
I got 2 fedora VM, one configured with Postfix.

When i try to send mails using FQDN, it works fine and am able to send mails back n forth using mutt. But when i try to send mail using MX record, it fails with the following error.

The system that has postfix in it also acts as a dns server and looks like this

Code:

$TTL 3H

@      IN SOA  fedora.mynetwork.internal. root.fedora.mynetwork.internal. (
                                20127134                ; serial
                                        1D              ; refresh
                                        1H              ; retry
                                        1W              ; expire
                                        3H )            ; minimum

        IN NS  fedora.mynetwork.internal.
        IN MX  10 fedora.mynetwork.internal.

fedora  IN A    192.168.0.117

vista  IN A    192.168.0.220

FedClient      IN A    192.168.0.212

www    IN A    192.168.0.117

ftp    IN CNAME        fedora.mynetwork.internal.

mail    IN CNAME        fedora.mynetwork.internal.

I can send mail to
Code:

root@fedora.mynetwork.internal
and also to
Code:

root@fedclient.mynetwork.internal
but when i send mail to
Code:

root@mynetwork.internal
the mail gets returned to the sender with the following error

Code:

Date: Fri, 24 Aug 2012 00:19:31 +0500 (PKT)
From: Mail Delivery System <MAILER-DAEMON@fedora.localdomain>
To: root@FedClient.mynetwork.internal
Subject: Undelivered Mail Returned to Sender

[-- Attachment #1: Notification --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.4K --]

This is the mail system at host fedora.localdomain.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                  The mail system

<root@mynetwork.internal>: mail for mynetwork.internal loops back to myself

[-- Attachment #2: Delivery report --]
[-- Type: message/delivery-status, Encoding: 7bit, Size: 0.4K --]

Reporting-MTA: dns; fedora.localdomain
X-Postfix-Queue-ID: 729254325D
X-Postfix-Sender: rfc822; root@FedClient.mynetwork.internal
Arrival-Date: Fri, 24 Aug 2012 00:19:31 +0500 (PKT)

Final-Recipient: rfc822; root@mynetwork.internal
Original-Recipient: rfc822;root@mynetwork.internal
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for mynetwork.internal loops back to myself

[-- Attachment #3: Undelivered Message --]
[-- Type: message/rfc822, Encoding: 7bit, Size: 0.9K --]

Date: Mon, 6 Aug 2012 07:32:27 +0500
From: root <root@FedClient.mynetwork.internal>
To: root@mynetwork.internal
Subject: test

MailLog

Code:

tail /var/log/maillog
Aug  6 07:31:21 FedClient sendmail[4645]: q762VL7P004645: from=root, size=330, class=0, nrcpts=1, msgid=<20120806023121.GA4642@FedClient.mynetwork.internal>, relay=root@localhost
Aug  6 07:31:22 FedClient sendmail[4646]: q762VL41004646: from=<root@FedClient.mynetwork.internal>, size=504, class=0, nrcpts=1, msgid=<20120806023121.GA4642@FedClient.mynetwork.internal>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Aug  6 07:31:22 FedClient sendmail[4645]: q762VL7P004645: to=root@fedora.mynetwork.internal, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30330, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q762VL41004646 Message accepted for delivery)
Aug  6 07:31:22 FedClient sendmail[4648]: q762VL41004646: to=<root@fedora.mynetwork.internal>, ctladdr=<root@FedClient.mynetwork.internal> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=120504, relay=fedora.mynetwork.internal. [192.168.0.117], dsn=2.0.0, stat=Sent (Ok: queued as 23EB64325D)
Aug  6 07:32:27 FedClient sendmail[4652]: q762WRKq004652: from=root, size=323, class=0, nrcpts=1, msgid=<20120806023227.GA4649@FedClient.mynetwork.internal>, relay=root@localhost
Aug  6 07:32:27 FedClient sendmail[4653]: q762WRDT004653: from=<root@FedClient.mynetwork.internal>, size=490, class=0, nrcpts=1, msgid=<20120806023227.GA4649@FedClient.mynetwork.internal>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Aug  6 07:32:28 FedClient sendmail[4652]: q762WRKq004652: to=root@mynetwork.internal, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30323, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q762WRDT004653 Message accepted for delivery)
Aug  6 07:32:28 FedClient sendmail[4655]: q762WRDT004653: to=<root@mynetwork.internal>, ctladdr=<root@FedClient.mynetwork.internal> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=120490, relay=fedora.mynetwork.internal. [192.168.0.117], dsn=2.0.0, stat=Sent (Ok: queued as 729254325D)
Aug  6 07:32:28 FedClient sendmail[4656]: q762WSt0004656: from=<>, size=2762, class=0, nrcpts=1, msgid=<20120823191931.DD88C43270@fedora.localdomain>, proto=ESMTP, daemon=MTA, relay=mail.mynetwork.internal [192.168.0.117]
Aug  6 07:32:30 FedClient sendmail[4657]: q762WSt0004656: to=<root@FedClient.mynetwork.internal>, delay=00:00:02, xdelay=00:00:02, mailer=local, pri=32996, dsn=2.0.0, stat=Sent

Please help.

Viewing all articles
Browse latest Browse all 36135

Trending Articles