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

Re: mail transport unavailable

Expand Messages
  • Wietse Venema
    ... Actually it will also happen with other mail that goes out via SMTP, and the reason for that is in the maillog file.
    Message 1 of 9 , Jul 31, 2013
    View Source
    • 0 Attachment
      Cerebus the Aardvark:
      > I have a few accounts who forward a copy of all their mail to gmail
      > addresses. For example, this account mirrors to a gmail account so I have
      > access to my mailing list archives even when I am working on my server.
      >
      > While testing postfix 2.10 I am getting:
      >
      > Jul 31 13:10:20 mail postfix/error[71592]: A4A0D118B50A: to=<*munged*@
      > gmail.com>, orig_to=<kremels@...>, relay=none, delay=0.21,
      > delays=0.2/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
      >
      > This is happening on all the accounts that forward to gmail.

      Actually it will also happen with other mail that goes out via SMTP,
      and the reason for that is in the maillog file.

      http://www.postfix.org/DEBUG_README.html#logging

      Wietse
    • LuKreme
      ... Since I last stopped and started postfix (2.10.1): # egrep (warning|error|fatal|panic): /var/log/maillog Jul 31 18:47:59 mail postfix/qmgr[81937]:
      Message 2 of 9 , Jul 31, 2013
      View Source
      • 0 Attachment
        On 31 Jul 2013, at 17:35 , Wietse Venema <wietse@...> wrote:

        >
        > http://www.postfix.org/DEBUG_README.html#logging

        Since I last stopped and started postfix (2.10.1):

        # egrep '(warning|error|fatal|panic):' /var/log/maillog
        Jul 31 18:47:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
        Jul 31 18:49:39 mail postfix/smtpd[81991]: warning: hostname mx68.almstar.com does not resolve to address 173.232.44.68: hostname nor servname provided, or not known
        Jul 31 18:51:04 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
        Jul 31 18:52:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
        Jul 31 18:57:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
        Jul 31 19:01:08 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
        Jul 31 19:02:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
        Jul 31 19:07:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
        Jul 31 19:10:40 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused

        Not running anything in chroot though.

        here's postconf -Mf

        pickup fifo n - n 60 1 pickup
        cleanup unix n - n - 0 cleanup
        qmgr fifo n - n 300 1 qmgr
        rewrite unix - - n - - trivial-rewrite
        bounce unix - - n - 0 bounce
        defer unix - - n - 0 bounce
        flush unix n - n 1000? 0 flush
        proxymap unix - - n - - proxymap
        relay unix - - n - - smtp
        showq unix n - n - - showq
        error unix - - n - - error
        local unix - n n - - local
        virtual unix - n n - - virtual
        lmtp unix - - n - - lmtp
        procmail unix - n n - - pipe
        flags=uhFORD user=vpopmail argv=/usr/local/bin/procmail -t -m
        USER=${recipient} EXTENSION=${extension} /usr/local/etc/procmailrc.common
        trace unix - - n - 0 bounce
        verify unix - - n - 1 verify
        anvil unix - - n - 1 anvil
        scache unix - - n - 1 scache
        discard unix - - n - - discard
        tlsmgr unix - - n 1000? 1 tlsmgr
        retry unix - - n - - error
        proxywrite unix - - n - 1 proxymap
        smtp inet n - n - 1 postscreen
        smtpd pass - - n - - smtpd
        dnsblog unix - - n - 0 dnsblog
        tlsproxy unix - - n - 0 tlsproxy

        cranking up the logging on qmgr I see this:

        Jul 31 19:20:45 mail postfix/qmgr[89644]: private/retry socket: wanted attribute: (list terminator)
        Jul 31 19:20:45 mail postfix/qmgr[89644]: input attribute name: (end)
        Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_peer_select: E1588118AC34 retry 4.3.0 mail transport unavailable (1 of 5)

        and later

        Jul 31 19:20:45 mail postfix/qmgr[89644]: private/retry socket: wanted attribute: (list terminator)
        Jul 31 19:20:45 mail postfix/qmgr[89644]: input attribute name: (end)
        Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_queue_unthrottle: queue 4.3.0 mail transport unavailable
        Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_active_done: E1588118AC34
        Jul 31 19:20:45 mail postfix/qmgr[89644]: wakeup E1588118AC34 after 300 secs
        Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_active_defer: defer E1588118AC34
        Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_job_free: E1588118AC34 retry
        Jul 31 19:20:50 mail postfix/qmgr[89644]: rewrite stream disconnect
        Jul 31 19:20:53 mail postfix/qmgr[89644]: qmgr_transport_unthrottle: transport smtp


        --
        'I like the sound of that,' said Mrs Palm. 'I like the echoes,' said Dr
        Downey.
      • Noel Jones
        ... OK, that s the message we need. ... Looks as if you clobbered your smtp transport smtp unix ... smtp ... debug logging is rarely useful with postfix.
        Message 3 of 9 , Jul 31, 2013
        View Source
        • 0 Attachment
          On 7/31/2013 8:33 PM, LuKreme wrote:
          >
          > On 31 Jul 2013, at 17:35 , Wietse Venema <wietse@...> wrote:
          >
          >>
          >> http://www.postfix.org/DEBUG_README.html#logging
          >
          > Since I last stopped and started postfix (2.10.1):
          >
          > # egrep '(warning|error|fatal|panic):' /var/log/maillog
          > Jul 31 18:47:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused

          OK, that's the message we need.

          > here's postconf -Mf

          Looks as if you clobbered your smtp transport "smtp unix ... smtp"


          >
          > pickup fifo n - n 60 1 pickup
          > cleanup unix n - n - 0 cleanup
          > qmgr fifo n - n 300 1 qmgr
          > rewrite unix - - n - - trivial-rewrite
          > bounce unix - - n - 0 bounce
          > defer unix - - n - 0 bounce
          > flush unix n - n 1000? 0 flush
          > proxymap unix - - n - - proxymap
          > relay unix - - n - - smtp
          > showq unix n - n - - showq
          > error unix - - n - - error
          > local unix - n n - - local
          > virtual unix - n n - - virtual
          > lmtp unix - - n - - lmtp
          > procmail unix - n n - - pipe
          > flags=uhFORD user=vpopmail argv=/usr/local/bin/procmail -t -m
          > USER=${recipient} EXTENSION=${extension} /usr/local/etc/procmailrc.common
          > trace unix - - n - 0 bounce
          > verify unix - - n - 1 verify
          > anvil unix - - n - 1 anvil
          > scache unix - - n - 1 scache
          > discard unix - - n - - discard
          > tlsmgr unix - - n 1000? 1 tlsmgr
          > retry unix - - n - - error
          > proxywrite unix - - n - 1 proxymap
          > smtp inet n - n - 1 postscreen
          > smtpd pass - - n - - smtpd
          > dnsblog unix - - n - 0 dnsblog
          > tlsproxy unix - - n - 0 tlsproxy
          >
          > cranking up the logging on qmgr I see this:

          debug logging is rarely useful with postfix. 99%+ of the time
          normal logging is sufficient to solve whatever problem you're
          having. As in this case.




          -- Noel Jones
        • LuKreme
          ... Am I suppose to have three lines? adding smtp unix - - - - - smtp didn t solve the problem, though it led to many different errors. Jul 31 22:16:45 mail
          Message 4 of 9 , Jul 31, 2013
          View Source
          • 0 Attachment
            On 31 Jul 2013, at 21:52 , Noel Jones <njones@...> wrote:

            > Looks as if you clobbered your smtp transport "smtp unix ... smtp"
            >
            >> smtp inet n - n - 1 postscreen
            >> smtpd pass - - n - - smtpd

            Am I suppose to have three lines?

            adding

            smtp unix - - - - - smtp

            didn't solve the problem, though it led to many different errors.

            Jul 31 22:16:45 mail postfix/smtp[576]: fatal: unknown service: smtp/tcp
            Jul 31 22:16:45 mail kernel: Jul 31 22:16:45 mail postfix/smtp[576]: fatal: unknown service: smtp/tcp
            Jul 31 22:16:46 mail postfix/qmgr[573]: warning: private/smtp socket: malformed response
            Jul 31 22:16:46 mail postfix/master[571]: warning: process /usr/local/libexec/postfix/smtp pid 576 exit status 1
            Jul 31 22:16:46 mail postfix/master[571]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling
            Jul 31 22:16:46 mail postfix/qmgr[573]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description


            --
            "A synonym is a word you use when you can't spell the word you first
            thought of." - Burt Bacharach
          • LuKreme
            ... Well, yes, *that* was stupid. smtp unix - - n - - smtp *cough* Thanks Noel, wouldn t have gotten there without you. -- On a scale of one to ten, it sucked.
            Message 5 of 9 , Jul 31, 2013
            View Source
            • 0 Attachment
              On 31 Jul 2013, at 22:20 , LuKreme <kremels@...> wrote:

              > smtp unix - - - - - smtp

              Well, yes, *that* was stupid.

              smtp unix - - n - - smtp

              *cough*

              Thanks Noel, wouldn't have gotten there without you.

              --
              On a scale of one to ten, it sucked.
            • Ralf Hildebrandt
              ... cp -a /etc/services /var/spool/postfix/etc -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der
              Message 6 of 9 , Aug 1, 2013
              View Source
              • 0 Attachment
                * LuKreme <kremels@...>:
                >
                > On 31 Jul 2013, at 21:52 , Noel Jones <njones@...> wrote:
                >
                > > Looks as if you clobbered your smtp transport "smtp unix ... smtp"
                > >
                > >> smtp inet n - n - 1 postscreen
                > >> smtpd pass - - n - - smtpd
                >
                > Am I suppose to have three lines?
                >
                > adding
                >
                > smtp unix - - - - - smtp
                >
                > didn't solve the problem, though it led to many different errors.
                >
                > Jul 31 22:16:45 mail postfix/smtp[576]: fatal: unknown service: smtp/tcp
                > Jul 31 22:16:45 mail kernel: Jul 31 22:16:45 mail postfix/smtp[576]: fatal: unknown service: smtp/tcp

                cp -a /etc/services /var/spool/postfix/etc

                --
                [*] sys4 AG

                http://sys4.de, +49 (89) 30 90 46 64
                Franziskanerstraße 15, 81669 München

                Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
                Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
                Aufsichtsratsvorsitzender: Florian Kirstein
              Your message has been successfully submitted and would be delivered to recipients shortly.