Hi Eric,

Thanks for responding.

What I'm looking for is how to set up james so it accepts email that is
incoming to the server itself without requiring a login.  I would expect
this to be the default operation, otherwise, the server is pretty
useless except for internal mail.   ;)

The excerpt from the email I enclosed in my first message is the error
response I get when sending an email from an external server to an
account in james on the server running james.  (In fact, I'm using the
server this email is coming from.)

The only information online I've found on the topic talks about the
MX/PTR records, which I've gotten set up.

The remote server does connect to james, which DENYs the email (from the
james-server.log):

INFO  19:59:24,073 | james.smtpserver | ID=609731148 Connection
established from sadar.lunarpages.com (216.97.227.45)
INFO  19:59:24,195 | james.smtpserver | ID=609731148
org.apache.james.smtpserver.AuthRequiredToRelayRcptHook: result=2 (DENY)
INFO  19:59:24,196 | james.smtpserver | ID=609731148
org.apache.james.smtpserver.JamesRcptCmdHandler: 530 [5.7.1
Authentication Required]
INFO  19:59:24,207 | james.smtpserver | ID=609731148
org.apache.james.smtpserver.JamesDataCmdHandler: 503 [5.5.0 No
recipients specified]

The fact that the DENY log message is coming from
AuthRequiredToRelayRcptHook makes me think that james doesn't recognize
that the message is bound for the local server.

I guess I misunderstood the authorizedAddresses tag.  I was thinking it
listed the server names that messages were going TO where no login would
be required (e.g., my server's alternate identities).  The only other
place I saw to set the local server name was in domainlist.xml:

<domainlist class="org.apache.james.domainlist.jpa.JPADomainList">
  <autodetect>false</autodetect>
  <autodetectIP>false</autodetectIP>
  <defaultDomain>workingbitssystems.com</defaultDomain>
</domainlist>

I turned off autodetect because my VPS hostname keeps getting reset on
system reboot.  Need to address that as well...

Thanks,
Jim



On 01/04/2012 12:02 PM, Eric Charles wrote:
> Hi Jim, Thx for testing james3-beta3.
> 
> When with authRequired=true, James will always ask a username/password
> for the SMTP connection (initiated by a mail client or a another SMTP
> server).
> ...except indeed for the hostname (or IP addresses) listed in the
> authorizedAddresses tag.
> 
> You are using the correct syntax, but you should add in the
> authorizedAddresses list the exact IP address (or hostname) from which
> you are sending the mail.
> 
> Currently, I think you are only adding the hostname of the server
> itself, but if you send email from another hardware, this won't help
> (you need to add the IP@ of that hardware).
> 
> Hope this helps,
> 
> Eric
> 
> 
> On 04/01/12 01:29, Jim Campanell wrote:
>> Hi,
>>
>> I installed James on my new server.  It seems to be working for the most
>> part, except I can't seem to send mail to the server from the "outside
>> world".  I get the following response (trimmed to useful part):
>>
>> A message that you sent could not be delivered to one or more of its
>> recipients. This is a permanent error. The following address(es) failed:
>>
>>    [email protected]
>>      SMTP error from remote mail server after RCPT
>> TO:<[email protected]>:
>>      host server.workingbitssystems.com [72.29.121.81]:
>>      530 5.7.1 Authentication Required
>>
>>
>> I'm assuming that I did something wrong in my smtpserver.xml:
>>
>> <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,workingbitssystems.com</authorizedAddresses>
>>
>>    <authRequired>true</authRequired>
>>    <verifyIdentity>false</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>
>>
>>
>> At this point, I'm assuming that by listing my domain name in the
>> authorizedAddresses entry, I should be covered for external emails
>> coming to me.  Did I format that line incorrectly?  Am I
>> misunderstanding its purpose?
>>
>> Thanks,
>> Jim
>>
>> Thanks,
>> Jim
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
> 

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

Reply via email to