james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuanjun Li (JIRA)" <server-...@james.apache.org>
Subject [jira] [Updated] (JAMES-2730) smtp auth setting not working
Date Tue, 09 Apr 2019 11:30:00 GMT

     [ https://issues.apache.org/jira/browse/JAMES-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yuanjun Li updated JAMES-2730:
------------------------------
    Description: 
when I enable the smtp auth,  here is my configuration:
{quote}<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>
{quote}
 

and then, I  test with follow commands:
{quote} 

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
 
{quote}

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

how can I fix it ? any tips?

  was:
when I enable the smtp auth,  here is my configuration:
{quote}<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>

<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>
{quote}
 

and then, I  test with follow commands:
{quote} 

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
 
{quote}

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

how can I fix it ? any tips?


> smtp auth setting not working
> -----------------------------
>
>                 Key: JAMES-2730
>                 URL: https://issues.apache.org/jira/browse/JAMES-2730
>             Project: James Server
>          Issue Type: Bug
>          Components: configuration
>    Affects Versions: 3.3.0
>         Environment: centos 6.10 64bit
> jdk 1.8.191
> mysql 5.6
>            Reporter: Yuanjun Li
>            Priority: Critical
>
> when I enable the smtp auth,  here is my configuration:
> {quote}<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>
> {quote}
>  
> and then, I  test with follow commands:
> {quote} 
> 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
>  
> {quote}
> you can see,  I can send any email from the existed users to another.
> how can I fix it ? any tips?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message