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

Mail being deferred with unknown mail transport error

Expand Messages
  • Rich Bishop
    I have a RHEL5 machine running Redhat s build of postfix 2.3.3 and am having problems with messages being sporadically deferred with unknown mail transport
    Message 1 of 3 , Oct 1, 2010
    • 0 Attachment
      I have a RHEL5 machine running Redhat's build of postfix 2.3.3 and am having
      problems with messages being sporadically deferred with 'unknown mail transport
      error'.

      The machine is a gateway for listserv, so it does receive lots of mail at
      times. It appears that the problem is related to the amount of mail being queued
      - if I do a postqueue -f, most of the problem messages are again deferred with
      the same error. If I slowly put the back onto the queue with postsuper -r <qid>
      ; sleep 1 then most messages flow through without any problems.

      I've done some debugging - postfix appears to be successfully looking up the
      user in LDAP and getting a mailhost, but fails before it opens an smtp
      connection to the mailhost.

      Here's some verbose output from qmgr:

      Sep 30 20:22:18 jay postfix/qmgr[10510]: send attr address = <user1>@...
      Sep 30 20:22:18 jay postfix/qmgr[10510]: private/rewrite socket: wanted attribute: flags
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute name: flags
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute value: 0
      Sep 30 20:22:18 jay postfix/qmgr[10510]: private/rewrite socket: wanted attribute: transport
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute name: transport
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute value: smtp
      Sep 30 20:22:18 jay postfix/qmgr[10510]: private/rewrite socket: wanted attribute: nexthop
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute name: nexthop
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute value: [<mailhost>.irt.drexel.edu]
      Sep 30 20:22:18 jay postfix/qmgr[10510]: private/rewrite socket: wanted attribute: recipient
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute name: recipient
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute value: <user1>@...
      Sep 30 20:22:18 jay postfix/qmgr[10510]: private/rewrite socket: wanted attribute: flags
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute name: flags
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute value: 4096
      Sep 30 20:22:18 jay postfix/qmgr[10510]: private/rewrite socket: wanted attribute: (list terminator)
      Sep 30 20:22:18 jay postfix/qmgr[10510]: input attribute name: (end)
      Sep 30 20:22:18 jay postfix/qmgr[10510]: resolve_clnt: `owner-drexel-official-students-all-l@...' -> `<user1>@...' -> transp=`smtp' host=`[<mailhost>.irt.drexel.edu]' rcpt=`<user1>@...' flags= class=default
      Sep 30 20:22:18 jay postfix/qmgr[10510]: start sorted recipient list
      Sep 30 20:22:18 jay postfix/qmgr[10510]: qmgr_message_sort: <user1>@...
      Sep 30 20:22:18 jay postfix/qmgr[10510]: qmgr_message_sort: <user2>@...
      Sep 30 20:22:18 jay postfix/qmgr[10510]: end sorted recipient list
      Sep 30 20:22:18 jay postfix/qmgr[10510]: private/smtp socket: wanted attribute: status
      Sep 30 20:22:18 jay postfix/qmgr[10510]: warning: premature end-of-input on private/smtp socket while reading input attribute
      name
      Sep 30 20:22:18 jay postfix/qmgr[10510]: warning: private/smtp socket: malformed response
      Sep 30 20:22:18 jay postfix/qmgr[10510]: qmgr_transport_throttle: transport smtp: status: 4.3.0 reason: unknown mail transport error
      Sep 30 20:22:18 jay postfix/qmgr[10510]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description


      The output from postconf -n:

      alias_database = hash:/etc/aliases
      alias_maps = hash:/etc/aliases
      bounce_queue_lifetime = 3d
      command_directory = /usr/sbin
      config_directory = /etc/postfix
      daemon_directory = /usr/libexec/postfix
      debug_peer_level = 2
      fast_flush_domains = drexel.edu, cabrini.edu, medaille.edu
      html_directory = no
      in_flow_delay = 0
      inet_interfaces = all
      local_recipient_maps = $alias_maps
      mail_owner = postfix
      mailq_path = /usr/bin/mailq.postfix
      manpage_directory = /usr/share/man
      maximal_queue_lifetime = 3d
      mydestination = localhost
      myhostname = lists.drexel.edu
      mynetworks = 127.0.0.0/8
      newaliases_path = /usr/bin/newaliases.postfix
      queue_directory = /var/spool/postfix
      readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
      relay_domains = $mynetworks, $mydestination, lists.irttest.drexel.edu, lists.drexel.edu
      relay_recipient_maps = hash:/etc/postfix/aliases, ldap:ldappresence-lists, ldap:ldappresence-drexeltestlists
      sample_directory = /usr/share/doc/postfix-2.3.3/samples
      sendmail_path = /usr/sbin/sendmail.postfix
      setgid_group = postdrop
      smtpd_client_restrictions = cidr:/etc/postfix/client_access
      transport_maps = hash:/etc/postfix/transport, ldap:ldaproute-drexel, ldap:ldaproute-cabrini, ldap:ldaproute-drexel.com
      unknown_local_recipient_reject_code = 550


      Please let me know if there's any more output that would be useful in debugging
      this.

      Thanks,

      Rich
    • Wietse Venema
      ... As the logfile says, search the logfile for warning/fatal/panic records. See http://www.postfix.org/DEBUG_README.html#logging for instructions. Wietse
      Message 2 of 3 , Oct 1, 2010
      • 0 Attachment
        Rich Bishop:
        > Sep 30 20:22:18 jay postfix/qmgr[10510]: qmgr_transport_throttle: transport smtp: status: 4.3.0 reason: unknown mail transport error
        > Sep 30 20:22:18 jay postfix/qmgr[10510]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description

        As the logfile says, search the logfile for warning/fatal/panic
        records.

        See http://www.postfix.org/DEBUG_README.html#logging
        for instructions.

        Wietse
      • Rich Bishop
        Thanks for responding. It appears that we had a duplicate mail alias, which caused the ldap map to return two mailhosts and made our smtp processes die. Fixed
        Message 3 of 3 , Oct 1, 2010
        • 0 Attachment
          Thanks for responding. It appears that we had a duplicate mail alias, which
          caused the ldap map to return two mailhosts and made our smtp processes
          die. Fixed that and the problem seems to have gone away.

          Rich
        Your message has been successfully submitted and would be delivered to recipients shortly.