Hi Barry,

Yes, you're right.

The documentation we will put online with the release of sever beta1 will state for authorizedAddresses in smtpserver.xml

If you use SMTP AUTH, addresses that match those specified here will be permitted to relay without SMTP AUTH. If you do not use SMTP AUTH, and you specify addreses here, then only addresses that match those specified will be permitted to relay.

Addresses may be specified as a an IP address or domain name, with an optional netmask, e.g. 127.*, 127.0.0.0/8, 127.0.0.0/255.0.0.0, and localhost/8 are all the same

See also the RemoteAddrNotInNetwork matcher in the transport processor. You would generally use one OR the other approach.

Tks,
- Eric

On 12/06/11 03:57, Barry wrote:
Hi maybe I made a mistake here.

<authorizedAddresses>127.0.0.0/8</authorizedAddresses>

does this line mean the localhost will automatically be authorized? is it
correct?

Thanks,
Barry


2011/6/12 Barry<[email protected]>

Hi I am using the James-M3-Snapshot-06012011, I am being confused by smtp
authentication issue.

The smtpserver.xml content as below:

<smtpserver enabled="true">
   <bind>0.0.0.0:25</bind>
   <connectionBacklog>200</connectionBacklog>
   <tls socketTLS="false" startTLS="false">
   </tls>
   <connectiontimeout>360</connectiontimeout>
   <connectionLimit>  0</connectionLimit>
   <connectionLimitPerIP>  0</connectionLimitPerIP>
   <authorizedAddresses>127.0.0.0/8</authorizedAddresses>
   <authRequired>true</authRequired>
   <verifyIdentity>true</verifyIdentity>
   <maxmessagesize>0</maxmessagesize>
   <addressBracketsEnforcement>true</addressBracketsEnforcement>
   <handlerchain enableJmx="true">
     <handler
class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>
     <handler class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/>

   </handlerchain>
</smtpserver>

But the smtp server can't do authentication, just saying it allows any user
to send mail. could you please tell me what is wrong here?

Thanks a lot
Barry





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to