Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1418

SMTP authentication verifyIdentity is passed off

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Abandoned
    • 3.0-beta3, 3.0-beta4
    • None
    • SMTPServer

    Description

      I've been trying to enable SMTP authentication on apache-james-3.0-beta4 but I can't manage it. I made the log level as DEBUG for SMTP service. It seems that although the identity verification fails, the user is enable to post a mail.

      In smtpserver.conf file I made the following changes, it is attached also.
      <authRequired>announce</authRequired>
      <!-<authorizedAddresses>127.0.0.0/8</authorizedAddresses>->
      <verifyIdentity>true</verifyIdentity>

      Here is the log parts that I suspected.

      INFO 17:53:08,746 | james.smtpserver | This SMTP server requires authentication.
      ......
      DEBUG 18:03:33,798 | james.smtpserver | Id='9403936' User='' org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook: result=8 (DECLINED)
      DEBUG 18:03:33,799 | james.smtpserver | Id='9403936' User='' executing hook org.apache.james.smtpserver.jmx.HookResultJMXMonitor@1eee3fb
      DEBUG 18:03:33,799 | james.smtpserver | Id='9403936' User='' executing hook org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook
      DEBUG 18:03:33,799 | james.smtpserver | Id='9403936' User='' executing hook org.apache.james.protocols.smtp.core.log.HookResultLogger@10a3ffc
      DEBUG 18:03:33,799 | james.smtpserver | Id='9403936' User='' org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook: result=8 (DECLINED)
      DEBUG 18:03:33,799 | james.smtpserver | Id='9403936' User='' executing hook org.apache.james.smtpserver.jmx.HookResultJMXMonitor@1eee3fb
      DEBUG 18:03:33,800 | james.smtpserver | Id='9403936' User='' org.apache.james.smtpserver.JamesRcptCmdHandler: [250 2.1.5 Recipient <receiver@mail.test.com> OK]
      DEBUG 18:03:33,815 | james.smtpserver | Id='9403936' User='' org.apache.james.protocols.api.handler.CommandDispatcher received: DATA
      DEBUG 18:03:33,815 | james.smtpserver | Id='9403936' User='' Lookup command handler for command: DATA
      DEBUG 18:03:33,826 | james.smtpserver | Id='9403936' User='' org.apache.james.smtpserver.JamesDataCmdHandler: [354 Ok Send data ending with <CRLF>.<CRLF>]
      DEBUG 18:03:33,870 | james.smtpserver | Id='9403936' User='' executing james message handler org.apache.james.protocols.smtp.core.esmtp.MailSizeEsmtpExtension@4a1908
      DEBUG 18:03:33,872 | james.smtpserver | Id='9403936' User='' executing hook org.apache.james.protocols.smtp.core.log.HookResultLogger@10a3ffc
      DEBUG 18:03:33,872 | james.smtpserver | Id='9403936' User='' org.apache.james.protocols.smtp.core.esmtp.MailSizeEsmtpExtension: result=8 (DECLINED)
      DEBUG 18:03:33,874 | james.smtpserver | Id='9403936' User='' executing hook org.apache.james.smtpserver.jmx.HookResultJMXMonitor@1eee3fb
      DEBUG 18:03:33,874 | james.smtpserver | Id='9403936' User='' executing james message handler org.apache.james.smtpserver.AddDefaultAttributesMessageHook@1cfb84c
      DEBUG 18:03:33,875 | james.smtpserver | Id='9403936' User='' executing hook org.apache.james.protocols.smtp.core.log.HookResultLogger@10a3ffc
      DEBUG 18:03:33,875 | james.smtpserver | Id='9403936' User='' org.apache.james.smtpserver.AddDefaultAttributesMessageHook: result=8 (DECLINED)
      DEBUG 18:03:33,875 | james.smtpserver | Id='9403936' User='' executing hook org.apache.james.smtpserver.jmx.HookResultJMXMonitor@1eee3fb
      DEBUG 18:03:33,875 | james.smtpserver | Id='9403936' User='' executing james message handler org.apache.james.smtpserver.SendMailHandler@4cb3a4
      DEBUG 18:03:33,876 | james.smtpserver | Id='9403936' User='' sending mail
      INFO 18:03:33,906 | james.smtpserver | Id='9403936' User='' Successfully spooled mail Mail1339427013851-53bd7bc6-0c36-417f-acee-8af76691b35e from sender@mail.test.com on 192.168.200.90/192.168.200.90 for [receiver@mail.test.com]

      Attachments

        1. MailSender.java
          2 kB
          Chet Wang
        2. smtpserver.conf
          16 kB
          Serkant Uluderya
        3. james.out
          31 kB
          Serkant Uluderya

        Issue Links

          Activity

            People

              Unassigned Unassigned
              serkantul Serkant Uluderya
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified