Loading ...
Sorry, an error occurred while loading the content.

Need help with relayhost

Expand Messages
  • leam hall
    As root on my new relayhost I can send mail to me@example.com. Mail goes through another relay and then hits our system. Using Postfix 2.6.6. on RHEL 6. I have
    Message 1 of 8 , Apr 29 9:47 AM
    • 0 Attachment
      As root on my new relayhost I can send mail to me@.... Mail
      goes through another relay and then hits our system. Using Postfix
      2.6.6. on RHEL 6.

      I have configured a client to send mail through the new relayhost. The
      mail gets to the relayhost's maillog with about 16 connect/disconnects
      and stanzas like

      connect from unknown[3.4.5.6]
      client=unknown[3.4.5.6]
      from=<>, size=11652, nrcpt=1 (queue active)
      disconnect from unknown[3.4.5.6]
      to=<root@...>, relay=9.8.7.6, delay=0.08,
      delays=0.06/0/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as
      ABCD1234
      ABCD1234: removed

      What I don't get is why the from is blank and the to is root@relayhost
      instead of me@.... Of course, why there are 16 or so stanzas
      like this confuses me as well.

      Thoughts?

      Leam

      --
      Mind on a Mission
    • leam hall
      Here are the changes I ve made to /etc/postfix/main.cf mydomain = example.com myorigin = $myhostname inet_interfaces = 1.2.3.4, 127.0.0.1 inet_protocols = ipv4
      Message 2 of 8 , Apr 29 9:57 AM
      • 0 Attachment
        Here are the changes I've made to /etc/postfix/main.cf

        mydomain = example.com
        myorigin = $myhostname
        inet_interfaces = 1.2.3.4, 127.0.0.1
        inet_protocols = ipv4
        # $mydestination
        local_recipient_maps =
        mynetworks = 1.2.3.0/28, 3.4.5.6, 127.0.0.0/8
        relayhost = 9.8.7.6

        It seems like the relayhost is keeping the mail for himself. The target user
        does not exist on the relayhost or the client.

        On Tue, Apr 29, 2014 at 12:47 PM, leam hall <leamhall@...> wrote:
        > As root on my new relayhost I can send mail to me@.... Mail
        > goes through another relay and then hits our system. Using Postfix
        > 2.6.6. on RHEL 6.
        >
        > I have configured a client to send mail through the new relayhost. The
        > mail gets to the relayhost's maillog with about 16 connect/disconnects
        > and stanzas like
        >
        > connect from unknown[3.4.5.6]
        > client=unknown[3.4.5.6]
        > from=<>, size=11652, nrcpt=1 (queue active)
        > disconnect from unknown[3.4.5.6]
        > to=<root@...>, relay=9.8.7.6, delay=0.08,
        > delays=0.06/0/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as
        > ABCD1234
        > ABCD1234: removed
        >
        > What I don't get is why the from is blank and the to is root@relayhost
        > instead of me@.... Of course, why there are 16 or so stanzas
        > like this confuses me as well.
        >
        > Thoughts?
        >
        > Leam
        >
        > --
        > Mind on a Mission



        --
        Mind on a Mission
      • Wietse Venema
        ... The client [3.4.5.6] is reporting a mail delivery error. ... That s because the client [3.4.5.6] is reporting a mail delivery error. To find out why the
        Message 3 of 8 , Apr 29 10:21 AM
        • 0 Attachment
          leam hall:
          > > As root on my new relayhost I can send mail to me@.... Mail
          > > goes through another relay and then hits our system. Using Postfix
          > > 2.6.6. on RHEL 6.
          > >
          > > I have configured a client to send mail through the new relayhost. The
          > > mail gets to the relayhost's maillog with about 16 connect/disconnects
          > > and stanzas like
          > >
          > > connect from unknown[3.4.5.6]
          > > client=unknown[3.4.5.6]
          > > from=<>, size=11652, nrcpt=1 (queue active)

          The client [3.4.5.6] is reporting a mail delivery error.

          > What I don't get is why the from is blank and the to is root@relayhost

          That's because the client [3.4.5.6] is reporting a mail delivery
          error.

          To find out why the client [3.4.5.6] reports a delivery error, look
          in the mail logfile on the client.

          Wietse
        • leam hall
          It looks like the upstream relay (9.8.7.6) is trying to contact the client. Does Postfix need DNS to resolve mail to be forwarded? #### Apr 29 15:37:26 client
          Message 4 of 8 , Apr 29 12:52 PM
          • 0 Attachment
            It looks like the upstream relay (9.8.7.6) is trying to contact the
            client. Does Postfix need DNS to resolve mail to be forwarded?

            ####
            Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767: from=root,
            size=47, class=0, nrcpts=1,
            msgid=<201404291937.s3TJbQGQ015767@...>
            , relay=root@localhost
            Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767: from=root,
            size=47, class=0, nrcpts=1,
            msgid=<201404291937.s3TJbQGQ015767@...>
            , relay=root@localhost
            Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
            to=leam@..., ctladdr=root (0/0), delay=00:00:00,
            xdelay=00:00:00, mailer=relay, pri=3
            0047, relay=2.3.4.5, dsn=5.1.2, stat=Host unknown (Name server:
            2.3.4.5: host not found)
            Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
            to=leam@..., ctladdr=root (0/0), delay=00:00:00,
            xdelay=00:00:00, mailer=relay, pri=3
            0047, relay=2.3.4.5, dsn=5.1.2, stat=Host unknown (Name server:
            2.3.4.5: host not found)
            Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
            s3TJbQGR015767: DSN: Host unknown (Name server: 2.3.4.5: host not
            found)
            Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
            s3TJbQGR015767: DSN: Host unknown (Name server: 2.3.4.5: host not
            found)
            Apr 29 15:37:26 client postfix/smtpd[15771]: connect from
            localhost.localdomain[127.0.0.1]
            Apr 29 15:37:26 client postfix/smtpd[15771]: connect from
            localhost.localdomain[127.0.0.1]
            Apr 29 15:37:26 client postfix/smtpd[15771]: E7506300039:
            client=localhost.localdomain[127.0.0.1]
            Apr 29 15:37:26 client postfix/smtpd[15771]: E7506300039:
            client=localhost.localdomain[127.0.0.1]
            Apr 29 15:37:26 client postfix/cleanup[15773]: E7506300039:
            message-id=<201404291937.s3TJbQGR015767@...>
            Apr 29 15:37:26 client postfix/cleanup[15773]: E7506300039:
            message-id=<201404291937.s3TJbQGR015767@...>
            Apr 29 15:37:27 client postfix/qmgr[8727]: E7506300039: from=<>,
            size=2255, nrcpt=1 (queue active)
            Apr 29 15:37:27 client postfix/qmgr[8727]: E7506300039: from=<>,
            size=2255, nrcpt=1 (queue active)
            Apr 29 15:37:27 client sendmail[15767]: s3TJbQGR015767: to=root,
            delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31071,
            relay=[127.0.0.1] [127.0.0
            .1], dsn=2.0.0, stat=Sent (Ok: queued as E7506300039)
            Apr 29 15:37:27 client sendmail[15767]: s3TJbQGR015767: to=root,
            delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31071,
            relay=[127.0.0.1] [127.0.0
            .1], dsn=2.0.0, stat=Sent (Ok: queued as E7506300039)
            Apr 29 15:37:27 client postfix/smtpd[15771]: disconnect from
            localhost.localdomain[127.0.0.1]
            Apr 29 15:37:27 client postfix/smtpd[15771]: disconnect from
            localhost.localdomain[127.0.0.1]
            Apr 29 15:37:27 client postfix/smtp[15774]: E7506300039:
            to=<root@...>, relay=2.3.4.5[2.3.4.5]:25, delay=0.19,
            delays=0.07/0.01/0.02/0
            .08, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 36D5B1E02AE)
            Apr 29 15:37:27 client postfix/smtp[15774]: E7506300039:
            to=<root@...>, relay=2.3.4.5[2.3.4.5]:25, delay=0.19,
            delays=0.07/0.01/0.02/0
            .08, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 36D5B1E02AE)
            Apr 29 15:37:27 client postfix/qmgr[8727]: E7506300039: removed
            Apr 29 15:37:27 client postfix/qmgr[8727]: E7506300039: removed
            Apr 29 15:37:27 client postfix/smtpd[15771]: connect from unknown[9.8.7.6]
            Apr 29 15:37:27 client postfix/smtpd[15771]: connect from unknown[9.8.7.6]
            Apr 29 15:37:27 client postfix/smtpd[15771]: 33862300039:
            client=unknown[9.8.7.6]
            Apr 29 15:37:27 client postfix/smtpd[15771]: 33862300039:
            client=unknown[9.8.7.6]
            Apr 29 15:37:27 client postfix/cleanup[15773]: 33862300039:
            message-id=<201404291937.s3TJbQGR015767@...>
            Apr 29 15:37:27 client postfix/cleanup[15773]: 33862300039:
            message-id=<201404291937.s3TJbQGR015767@...>
            Apr 29 15:37:27 client postfix/smtpd[15771]: disconnect from unknown[9.8.7.6]
            Apr 29 15:37:27 client postfix/smtpd[15771]: disconnect from unknown[9.8.7.6]

            On Tue, Apr 29, 2014 at 1:21 PM, Wietse Venema <wietse@...> wrote:
            > leam hall:
            >> > As root on my new relayhost I can send mail to me@.... Mail
            >> > goes through another relay and then hits our system. Using Postfix
            >> > 2.6.6. on RHEL 6.
            >> >
            >> > I have configured a client to send mail through the new relayhost. The
            >> > mail gets to the relayhost's maillog with about 16 connect/disconnects
            >> > and stanzas like
            >> >
            >> > connect from unknown[3.4.5.6]
            >> > client=unknown[3.4.5.6]
            >> > from=<>, size=11652, nrcpt=1 (queue active)
            >
            > The client [3.4.5.6] is reporting a mail delivery error.
            >
            >> What I don't get is why the from is blank and the to is root@relayhost
            >
            > That's because the client [3.4.5.6] is reporting a mail delivery
            > error.
            >
            > To find out why the client [3.4.5.6] reports a delivery error, look
            > in the mail logfile on the client.
            >
            > Wietse



            --
            Mind on a Mission
          • lists@rhsoft.net
            ... yes until you do not have fixed transports how else should it resolve the destination?
            Message 5 of 8 , Apr 29 12:56 PM
            • 0 Attachment
              Am 29.04.2014 21:52, schrieb leam hall:
              > It looks like the upstream relay (9.8.7.6) is trying to contact the
              > client. Does Postfix need DNS to resolve mail to be forwarded?

              yes until you do not have fixed transports
              how else should it resolve the destination?

              > Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767: from=root,
              > size=47, class=0, nrcpts=1,
              > msgid=<201404291937.s3TJbQGQ015767@...>
              > , relay=root@localhost
              > Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767: from=root,
              > size=47, class=0, nrcpts=1,
              > msgid=<201404291937.s3TJbQGQ015767@...>
              > , relay=root@localhost
              > Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
              > to=leam@..., ctladdr=root (0/0), delay=00:00:00,
              > xdelay=00:00:00, mailer=relay, pri=3
              > 0047, relay=2.3.4.5, dsn=5.1.2, stat=Host unknown (Name server:
              > 2.3.4.5: host not found)
              > Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
              > to=leam@..., ctladdr=root (0/0), delay=00:00:00,
              > xdelay=00:00:00, mailer=relay, pri=3
              > 0047, relay=2.3.4.5, dsn=5.1.2, stat=Host unknown (Name server:
              > 2.3.4.5: host not found)
              > Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
              > s3TJbQGR015767: DSN: Host unknown (Name server: 2.3.4.5: host not
              > found)
              > Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
              > s3TJbQGR015767: DSN: Host unknown (Name server: 2.3.4.5: host not
              > found)
              > Apr 29 15:37:26 client postfix/smtpd[15771]: connect from
              > localhost.localdomain[127.0.0.1]
              > Apr 29 15:37:26 client postfix/smtpd[15771]: connect from
              > localhost.localdomain[127.0.0.1]
              > Apr 29 15:37:26 client postfix/smtpd[15771]: E7506300039:
              > client=localhost.localdomain[127.0.0.1]
              > Apr 29 15:37:26 client postfix/smtpd[15771]: E7506300039:
              > client=localhost.localdomain[127.0.0.1]
              > Apr 29 15:37:26 client postfix/cleanup[15773]: E7506300039:
              > message-id=<201404291937.s3TJbQGR015767@...>
              > Apr 29 15:37:26 client postfix/cleanup[15773]: E7506300039:
              > message-id=<201404291937.s3TJbQGR015767@...>
              > Apr 29 15:37:27 client postfix/qmgr[8727]: E7506300039: from=<>,
              > size=2255, nrcpt=1 (queue active)
              > Apr 29 15:37:27 client postfix/qmgr[8727]: E7506300039: from=<>,
              > size=2255, nrcpt=1 (queue active)
              > Apr 29 15:37:27 client sendmail[15767]: s3TJbQGR015767: to=root,
              > delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31071,
              > relay=[127.0.0.1] [127.0.0
              > .1], dsn=2.0.0, stat=Sent (Ok: queued as E7506300039)
              > Apr 29 15:37:27 client sendmail[15767]: s3TJbQGR015767: to=root,
              > delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31071,
              > relay=[127.0.0.1] [127.0.0
              > .1], dsn=2.0.0, stat=Sent (Ok: queued as E7506300039)
              > Apr 29 15:37:27 client postfix/smtpd[15771]: disconnect from
              > localhost.localdomain[127.0.0.1]
              > Apr 29 15:37:27 client postfix/smtpd[15771]: disconnect from
              > localhost.localdomain[127.0.0.1]
              > Apr 29 15:37:27 client postfix/smtp[15774]: E7506300039:
              > to=<root@...>, relay=2.3.4.5[2.3.4.5]:25, delay=0.19,
              > delays=0.07/0.01/0.02/0
              > .08, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 36D5B1E02AE)
              > Apr 29 15:37:27 client postfix/smtp[15774]: E7506300039:
              > to=<root@...>, relay=2.3.4.5[2.3.4.5]:25, delay=0.19,
              > delays=0.07/0.01/0.02/0
              > .08, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 36D5B1E02AE)
              > Apr 29 15:37:27 client postfix/qmgr[8727]: E7506300039: removed
              > Apr 29 15:37:27 client postfix/qmgr[8727]: E7506300039: removed
              > Apr 29 15:37:27 client postfix/smtpd[15771]: connect from unknown[9.8.7.6]
              > Apr 29 15:37:27 client postfix/smtpd[15771]: connect from unknown[9.8.7.6]
              > Apr 29 15:37:27 client postfix/smtpd[15771]: 33862300039:
              > client=unknown[9.8.7.6]
              > Apr 29 15:37:27 client postfix/smtpd[15771]: 33862300039:
              > client=unknown[9.8.7.6]
              > Apr 29 15:37:27 client postfix/cleanup[15773]: 33862300039:
              > message-id=<201404291937.s3TJbQGR015767@...>
              > Apr 29 15:37:27 client postfix/cleanup[15773]: 33862300039:
              > message-id=<201404291937.s3TJbQGR015767@...>
              > Apr 29 15:37:27 client postfix/smtpd[15771]: disconnect from unknown[9.8.7.6]
              > Apr 29 15:37:27 client postfix/smtpd[15771]: disconnect from unknown[9.8.7.6]
              >
              > On Tue, Apr 29, 2014 at 1:21 PM, Wietse Venema <wietse@...> wrote:
              >> leam hall:
              >>>> As root on my new relayhost I can send mail to me@.... Mail
              >>>> goes through another relay and then hits our system. Using Postfix
              >>>> 2.6.6. on RHEL 6.
              >>>>
              >>>> I have configured a client to send mail through the new relayhost. The
              >>>> mail gets to the relayhost's maillog with about 16 connect/disconnects
              >>>> and stanzas like
              >>>>
              >>>> connect from unknown[3.4.5.6]
              >>>> client=unknown[3.4.5.6]
              >>>> from=<>, size=11652, nrcpt=1 (queue active)
              >>
              >> The client [3.4.5.6] is reporting a mail delivery error.
              >>
              >>> What I don't get is why the from is blank and the to is root@relayhost
              >>
              >> That's because the client [3.4.5.6] is reporting a mail delivery
              >> error.
              >>
              >> To find out why the client [3.4.5.6] reports a delivery error, look
              >> in the mail logfile on the client
            • Wietse Venema
              ... That is Sendmail not Postfix. Is is unable to deliver some mail. ... That is Postfix. It is receiving a delivery error report from Sendmail. This machine
              Message 6 of 8 , Apr 29 1:15 PM
              • 0 Attachment
                leam hall:
                > Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
                > s3TJbQGR015767: DSN: Host unknown (Name server: 2.3.4.5: host not
                > found)

                That is Sendmail not Postfix. Is is unable to deliver some mail.

                > Apr 29 15:37:26 client postfix/smtpd[15771]: connect from
                > localhost.localdomain[127.0.0.1]

                That is Postfix. It is receiving a "delivery error report"
                from Sendmail.

                This machine runs both Postfix and Sendmail. You need to fix that
                first. How? That depends on the OS distribution that you are using.

                Wietse
              • Leam Hall
                ... Odd. ... I can fix that. Will do so and see what else I can figure out. Thank you very much! Leam -- http://31challenge.net http://31challenge.net/insight
                Message 7 of 8 , Apr 29 2:51 PM
                • 0 Attachment
                  Il 29/04/2014 16:15, Wietse Venema ha scritto:
                  > leam hall:
                  >> Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
                  >> s3TJbQGR015767: DSN: Host unknown (Name server: 2.3.4.5: host not
                  >> found)
                  >
                  > That is Sendmail not Postfix. Is is unable to deliver some mail.

                  Odd.

                  >
                  >> Apr 29 15:37:26 client postfix/smtpd[15771]: connect from
                  >> localhost.localdomain[127.0.0.1]
                  >
                  > That is Postfix. It is receiving a "delivery error report"
                  > from Sendmail.
                  >
                  > This machine runs both Postfix and Sendmail. You need to fix that
                  > first. How? That depends on the OS distribution that you are using.
                  >
                  > Wietse
                  >

                  I can fix that. Will do so and see what else I can figure out. Thank you
                  very much!

                  Leam


                  --
                  http://31challenge.net
                  http://31challenge.net/insight
                • leam hall
                  That was it. Thank you sir! Leam ... -- Mind on a Mission
                  Message 8 of 8 , Apr 30 11:59 AM
                  • 0 Attachment
                    That was it. Thank you sir!

                    Leam

                    On Tue, Apr 29, 2014 at 4:15 PM, Wietse Venema <wietse@...> wrote:
                    > leam hall:
                    >> Apr 29 15:37:26 client sendmail[15767]: s3TJbQGQ015767:
                    >> s3TJbQGR015767: DSN: Host unknown (Name server: 2.3.4.5: host not
                    >> found)
                    >
                    > That is Sendmail not Postfix. Is is unable to deliver some mail.
                    >
                    >> Apr 29 15:37:26 client postfix/smtpd[15771]: connect from
                    >> localhost.localdomain[127.0.0.1]
                    >
                    > That is Postfix. It is receiving a "delivery error report"
                    > from Sendmail.
                    >
                    > This machine runs both Postfix and Sendmail. You need to fix that
                    > first. How? That depends on the OS distribution that you are using.
                    >
                    > Wietse



                    --
                    Mind on a Mission
                  Your message has been successfully submitted and would be delivered to recipients shortly.