Author: norman
Date: Tue Oct 13 18:01:49 2009
New Revision: 824863
URL: http://svn.apache.org/viewvc?rev=824863&view=rev
Log:
fix relaying check in SMTPSessionImpl
Modified:
james/server/sandbox/active/mina_experiments/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPSessionImpl.java
Modified:
james/server/sandbox/active/mina_experiments/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPSessionImpl.java
URL:
http://svn.apache.org/viewvc/james/server/sandbox/active/mina_experiments/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPSessionImpl.java?rev=824863&r1=824862&r2=824863&view=diff
==============================================================================
---
james/server/sandbox/active/mina_experiments/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPSessionImpl.java
(original)
+++
james/server/sandbox/active/mina_experiments/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPSessionImpl.java
Tue Oct 13 18:01:49 2009
@@ -63,8 +63,7 @@
smtpID = random.nextInt(1024) + "";
this.socketAddress = (InetSocketAddress)
session.getRemoteAddress();
- // relayingAllowed = theConfigData.isRelayingAllowed(socketAddress
- // .getAddress().toString());
+ relayingAllowed = theConfigData.isRelayingAllowed(getRemoteHost());
session.setAttribute(FilterLineHandlerAdapter.SMTP_SESSION, this);
this.logger = logger;
@@ -223,8 +222,7 @@
* @see org.apache.james.smtpserver.SMTPSession#isAuthSupported()
*/
public boolean isAuthSupported() {
- return false;
- //return
theConfigData.isAuthRequired(socketAddress.getAddress().getHostAddress());
+ return
theConfigData.isAuthRequired(socketAddress.getAddress().getHostAddress());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]