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

smtp auth setting not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.3.0
    • None
    • configuration
    • None
    • centos 6.10 64bit
      jdk 1.8.191
      mysql 5.6

    Description

      when I enable the smtp auth,  here is my configuration:

      <smtpserver enabled="true">

      <jmxName>smtpserver25</jmxName>

      <bind>0.0.0.0:25</bind>

      <connectionBacklog>200</connectionBacklog>

      <tls socketTLS="false" startTLS="true">
      <keystore>file://conf/keystore</keystore>
      <secret>google</secret>
      <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider>
      <!-- The algorithm is optional and only needs to be specified when using something other
      than the Sun JCE provider - You could use IbmX509 with IBM Java runtime. -->
      <algorithm>SunX509</algorithm>
      </tls>

      <connectiontimeout>360</connectiontimeout>
      <!-- Set the maximum simultaneous incoming connections for this service -->
      <connectionLimit>0</connectionLimit>

      <!-- Set the maximum simultaneous incoming connections per IP for this service -->
      <connectionLimitPerIP>0</connectionLimitPerIP>

      <authRequired>announce</authRequired>
      <verifyIdentity>true</verifyIdentity>
      <authorizedAddresses>127.0.0.0/8</authorizedAddresses>

      <maxmessagesize>0</maxmessagesize>

      <addressBracketsEnforcement>true</addressBracketsEnforcement>

      <handlerchain>

      <handler class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>

      <handler class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/>

      </handlerchain>

      </smtpserver>

       

      and then, I  test with follow commands:

       

      lee@lee-Inspiron-7577 ~/tmp/mail_transfer $ telnet mail.xxx.com 25
      Trying 11x.xx.xx.22...
      Connected to mail.9ji.com.
      Escape character is '^]'.
      220 mail.xx.com JAMES SMTP Server Server (JAMES SMTP Server ) ready
      helo mail.test.com
      250 mail.9ji.com Hello mail.test.com [182.245.167.204])
      mail from:<jeffli@xxx.com>
      250 2.1.0 Sender <jeffli@xxx.com> OK
      rcpt to:<dev@xxx.com>
      250 2.1.5 Recipient <dev@9ji.com> OK
      data
      354 Ok Send data ending with <CRLF>.<CRLF>
      test
      .
      250 2.6.0 Message received
      quit
       

      you can see, I can send any email from the existed users to another.

      how can I fix it ? any tips?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yourchanges Yuanjun Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: