Hi Stefano,

I have James 2.2 running on one machine and have SMTP client (a third 
party software) running on another machine (10.233.68.208).

When the SMTP client send out emails via James, it received the response: 
relaying denied if I have set <authRequired>false</authRequired> or  
Authentication required if I have set <authRequired>true</authRequired>.

But if  James and SMTP client running on the same machine, then everything 
works fine.

Question:
How to set up config.xml so that authentication is NOT required no matter 
SMTP client is running locally or remotely?


Here is my config.xml:
         <mailet match="RemoteAddrNotInNetwork=127.0.0.1,10.233.68.208" 
class="ToProcessor"> 
            <processor> relay-denied </processor> 
            <notice>550 - Requested action not taken: relaying 
denied</notice> 
         </mailet> 

   <smtpserver enabled="true"> 
      <handler> 
         <authRequired>true</authRequired> 
         <authorizedAddresses>127.0.0.0/8</authorizedAddresses> 
         <authorizedAddresses>10.233.68.208</authorizedAddresses> 
      </handler> 
   </smtpserver> 

Many Thanks!
Ningmei Zhu


CONFIDENTIAL OR PRIVILEGED:  This communication contains information intended 
only for the use of the 
individuals to whom it is addressed and may contain information that is 
privileged, confidential or exempt from other disclosure under applicable 
law.  If you are not the intended recipient, you are notified that any 
disclosure, printing, copying, distribution or use of the contents is 
prohibited.  If you have received this in error, please notify the sender 
immediately by telephone or by returning it by reply email and then 
permanently deleting the communication from your system. Thank you. 




Stefano Bagnara <[EMAIL PROTECTED]>
02/21/2006 04:14 PM
Please respond to "James Users List"

 
        To:     James Users List <[email protected]>
        cc: 
        Subject:        Re: Domain address required


Poynter, David wrote:
> I've been getting this error:
> 
> 501 Domain address required: HELO

This error happens then the client send an "HELO" command with no other 
parameters.
HELO (by rfc) needs an hostname after the command: James just checks it 
contains an argument.

Javamail 1.3.2 uses this algorythm to get the domain:
---------------
try {
// get our hostname and cache it for future use
if (localHostName == null || localHostName.length() <= 0)
   localHostName = session.getProperty("mail." + name + ".localhost");
if (localHostName == null || localHostName.length() <= 0)
   localHostName = session.getProperty("mail." + name + ".localaddress");
if (localHostName == null || localHostName.length() <= 0)
    localHostName = InetAddress.getLocalHost().getHostName();
} catch (UnknownHostException uhex) {
}
return localHostName;
-----------

You may want to add a props.put("mail.smtp.localhost", host); to the 
MailClient constructor.

Stefano



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to