Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-4605

MailTransportMonitor POP3 javax.mail.AuthenticationFailedException, but without connection to host at all

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.11
    • Fix Version/s: 1.8.12, 1.9.8
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      RPM, CentOS 5.6 x86_64 + JRE 1.6.0.23

      Description

      The test mail is sent, but no connection to a POP3 (plain TCP, no SSL) host.

      poller.log says:

      2011-04-13 16:11:53,005 DEBUG [PollerScheduler-30 Pool-fiber25]
      JavaMailerConfig: Loading javamail properties.
      2011-04-13 16:11:53,008 DEBUG [PollerScheduler-30 Pool-fiber25]
      MailTransportMonitor: readTestMessage: reading mail attempt: 1, elapsed time:0.015ms.
      2011-04-13 16:11:53,015 WARN [PollerScheduler-30 Pool-fiber25]
      MailTransportMonitor: readTestMessage: error reading inbox:
      javax.mail.AuthenticationFailedException
      2011-04-13 16:11:53,015 DEBUG [PollerScheduler-30 Pool-fiber25]
      MailTransportMonitor: delayTest: delaying test for: 60000ms. per configuration.

      Wireshark does not even see a connection to port 110.

      The definition in poller-configuration.xml worked fine up until 1.8.10:

      <service name="MailTransport-PLESK" interval="300000"
      user-defined="false" status="on">
      <parameter key="retry" value="5"/>
      <parameter key="mail-transport-test">
      <mail-transport-test>
      <mail-test>
      <sendmail-test attempt-interval="3000"
      use-authentication="false" use-jmta="false">
      <sendmail-host host="${ipaddr}" port="25"/>
      <sendmail-protocol mailer="smtpsend"/>
      <sendmail-message to="opennms@<removed>"
      subject="OpenNMS Test Message" body="This is an OpenNMS test message."/>
      <user-auth user-name="opennms@<removed>"
      password="<removed>"/>
      </sendmail-test>
      <readmail-test attempt-interval="60000"
      mail-folder="INBOX" subject-match="OpenNMS Test Message">
      <readmail-host host="${ipaddr}" port="110">
      <readmail-protocol ssl-enable="false"
      start-tls="false" transport="pop3"/>
      </readmail-host>
      <user-auth user-name="opennms@<removed>"
      password="<removed>"/>
      </readmail-test>
      </mail-test>
      </mail-transport-test>
      </parameter>
      </service>

      I've tried replacing the ${ipaddr} with the actual address of the host, but no luck. Manually logging on using the POP3 credentials works fine from the OpenNMS machine and the test messages can be UIDL'd and RETR'd.

        Attachments

          Activity

            People

            • Assignee:
              brozow Matt Brozowski
              Reporter:
              ml@goetel.net Martin Lorentz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: