Hello Apache James mail list.  Yes, I know from Google searches that
getting a "relay denied" error message is a rather common experience but so
far I don't have nor found a solution to this error message; when I try to
send from any one of several accounts that my James server has been set up
to handle.

I have an older version of James version 3.4.0 which I plan to upgrade
soon. I first want to upgrade my OS (OpenSuSE 15.3) and then I need to
figure out what to do about the fact AFAIK that support for the maildir
format has been dropped, and how do I import all of my users mail into one
of the new supported mailbox providers.

That said, at the moment I tried to do some reconfiguration of my Apache
James 3.4.0 server and in the process I somehow screwed up James' ability
to send email. And I don't know what I did wrong so now I am trying to
debug it. The basic problem is that James is refusing to send emails to
anyone except local users, saying relaying is denied. Sigh.

I will start with showing the contents of my smtpserver.xml, with comments
and sensitive information removed. (thank you Emacs!) and ask if anyone can
see if I did something bad -

<?xml version="1.0"?>
<smtpservers>
   <smtpserver enabled="true">
     <jmxName>smtpserver1</jmxName>
     <bind>0.0.0.0:10025</bind>
     <connectionBacklog>200</connectionBacklog>
     <tls socketTLS="false" startTLS="false">
       <keystore>file://conf/keystore</keystore>
       <secret>secret</secret>

 <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider>
       <algorithm>SunX509</algorithm>
     </tls>
        <helloName autodetect="false">smtp.mydomain.com</helloName>
        <connectiontimeout>360</connectiontimeout>
        <connectionLimit>0</connectionLimit>
        <connectionLimitPerIP>0</connectionLimitPerIP>
        <auth.announce>forUnauthorizedAddresses</auth.announce>
        <authorizedAddresses>127.0.0.0/8, 192.168.10.0/128,
192.168.10.128/128</authorizedAddresses>
        <verifyIdentity>true</verifyIdentity>
        <maxmessagesize>0</maxmessagesize>
        <addressBracketsEnforcement>true</addressBracketsEnforcement>
        <smtpGreeting>Welcome to APACHE-JAMES SMTP Server hosted on
smtp.mydomain.com</smtpGreeting>
        <handlerchain>
            <handler
class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>
            <handler
class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/>
       </handlerchain>
    </smtpserver>

<!--
 ********************************************************************** -->

   <smtpserver enabled="true">
     <jmxName>smtpserver2</jmxName>
     <bind>0.0.0.0:10465</bind>
     <connectionBacklog>200</connectionBacklog>
     <tls socketTLS="true" startTLS="false">
       <keystore>file://conf/keystore</keystore>
       <secret>secret</secret>

 <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider>
       <algorithm>SunX509</algorithm>
     </tls>
        <helloName autodetect="false">smtp.mydomain.com</helloName>
        <connectiontimeout>360</connectiontimeout>
        <connectionLimit>0</connectionLimit>
        <connectionLimitPerIP>0</connectionLimitPerIP>
        <auth.announce>forUnauthorizedAddresses</auth.announce>
        <authorizedAddresses>127.0.0.0/24, 192.168.10.0/128,
192.168.10.128/128</authorizedAddresses>
        <verifyIdentity>false</verifyIdentity>
        <maxmessagesize>0</maxmessagesize>
        <addressBracketsEnforcement>true</addressBracketsEnforcement>
        <smtpGreeting>Welcome to APACHE-JAMES SMTP Server hosted on
smtp.mydomain.com</smtpGreeting>
        <handlerchain>
            <handler
class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>
             <handler
class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/>
         </handlerchain>

   </smtpserver>

<!--
 **********************************************************************  -->

   <smtpserver enabled="true">
     <jmxName>smtpserver3</jmxName>
     <bind>0.0.0.0:10587</bind>
     <tls socketTLS="false" startTLS="true">
       <keystore>file://conf/keystore</keystore>
       <secret>secret</secret>

 <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider>
       <algorithm>SunX509</algorithm>
     </tls>
        <helloName autodetect="false">smtp.mydomain.com</helloName>
        <connectiontimeout>360</connectiontimeout>
        <connectionLimit>0</connectionLimit>
        <connectionLimitPerIP>0</connectionLimitPerIP>
        <auth.announce>forUnauthorizedAddresses</auth.announce>
        <authorizedAddresses>127.0.0.0/24, 192.168.10.0/128,
192.168.10.128/128</authorizedAddress
        <verifyIdentity>false</verifyIdentity>
        <maxmessagesize>0</maxmessagesize>
         <addressBracketsEnforcement>true</addressBracketsEnforcement>
        <smtpGreeting>Welcome to APACHE-JAMES SMTP Server hosted on
smtp.mydomain.com</smtpGreeting>
         <handlerchain>
            <handler
class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>
            <handler
class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/>
        </handlerchain>
    </smtpserver>
</smtpservers>


Thanks in advance for any and all ideas and helpful suggestions! Much
appreciate it!

        Marc...

Reply via email to