You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Norman Maurer <nm...@spam-box.de> on 2006/03/02 20:54:19 UTC

Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Hmm i tried it but it now work.. has to do some changes to get it
compile. I also add a few log() calls but i can not find the logs
anyway ? I thought this logs will be shown in the mailet logs..  create
a patch of what i changed and attach it here.. 

I also use a own table named DOMAIN with the column DOMAIN_NAME..

thx


Am Donnerstag, den 02.03.2006, 18:35 +0100 schrieb Stefano Bagnara:
> Pierre Smits wrote:
> > Norman,
> > 
> > It does not work with the latest trunk. I have tested that. It has been
> > developed with version 2.2.0 in mind a while back by Daniel Perry before
> > there was even a hint of 2.3.x
> 
> I never used that patch, but I just looked the sources and I think it 
> should work with James trunk too.
> Maybe the line numbers are not good, but the added code should work.
> 
> Try a manual merge and let me know if you have problem with missing 
> methods/components.
> 
> Stefano
> 
> PS: It's unlikely that the patch will be included in james 2.3.0. Maybe 
> we'll include a modular way to find out the servernames but not exactly 
> this (this patch add an "ugly" dependency between James main component 
> and a db table with a structure specific to the virtuser mailet)
> 
> >>
> >> Anyone has this patch working with the latest trunk ? It seems not to work
> >> here :-(
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 
> !EXCUBATOR:2,44072d3b187375736718770!

Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Stefano Bagnara <ap...@bago.org>.
Norman Maurer wrote:
> Hmm i tried it but it now work.. has to do some changes to get it
> compile. I also add a few log() calls but i can not find the logs
> anyway ? I thought this logs will be shown in the mailet logs..  create
> a patch of what i changed and attach it here.. 
> 
> I also use a own table named DOMAIN with the column DOMAIN_NAME..

Replace ComponentManager with ServiceManager or it won't work.
You can replace the log() calls with getLogger().error() or 
getLogger().info() / getLogger.debug() calls.
The logs will be appended to the james-YYYY-MM-DD-HH-MM.log in the 
apps/james/logs folder.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Stefano Bagnara <ap...@bago.org>.
Norman Maurer wrote:
> you mean change it to:
> 
>  ServiceManager componentManager = (ServiceManager) compMgr; 

Yes.

 From 2.2.0 to 2.3.0 every "Component" has been replaced by "Service" 
and every "ComponentManager" replaced by "ServiceManager".

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Stefano Bagnara <ap...@bago.org>.
Norman Maurer wrote:
> that was what i tested .. and i also tried to use getLogger.error() but
> now logs in james-xxxx.log and it also not work. With james-2.2.0 i
> manually merge the patch and it work .

"it also not work" is not of much help. What is the problem? Does it 
build? Does it start? Does it throw exceptions?

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Stefano Bagnara <ap...@bago.org>.
Norman Maurer wrote:
> It builds .. it starts.. No exeptions .. It only not accept emails for
> domains which are not specified in the config.xml but specified in the
> table.

How James reject the message? During the RCPT TO? What is the reject 
message?

Add a few debug lines to isLocalServer in James.java to understand where 
it does stop.

IMHO it should work like 2.2.0 and there's no reason it should not run 
the same code.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Pierre Smits <pi...@gmail.com>.
Norman,

Is it possible that you post your james.java regarding this patch here or in
JIRA? Although not 100% it might prove useful.

Pierre

On 3/3/06, Norman Maurer <nm...@spam-box.de> wrote:
>
> Sorry i was wrong.. the problem was that i was try to pull ot the
> domainTable attribute to early.. it must be :
>
>         if (serverConf.getAttributeAsBoolean("autodetect") && (!
> hostName.equals("localhost"))) {
>             serverNames.add(hostName.toLowerCase(Locale.US));
>         }
>
>         try {
>             domainTable = (String)
> serverConf.getAttribute("domainTable");
>         } catch (Exception e) {
>            domainTable = "";
>         }
>
> bye
>
>
> Am Freitag, den 03.03.2006, 07:01 +0100 schrieb Norman Maurer:
> > It says relaying denied.. But i think i found the problem.. The problem
> > appears when also some servernames are configured in the config.xml +
> > using the sql table.
> >
> > Can someone repruduce the ?
> >
> >
> > Am Donnerstag, den 02.03.2006, 22:33 +0100 schrieb Stefano Bagnara:
> > > Norman Maurer wrote:
> > > > It builds .. it starts.. No exeptions .. It only not accept emails
> for
> > > > domains which are not specified in the config.xml but specified in
> the
> > > > table.
> > >
> > > How James reject the message? During the RCPT TO? What is the reject
> > > message?
> > >
> > > Add a few debug lines to isLocalServer in James.java to understand
> where
> > > it does stop.
> > >
> > > IMHO it should work like 2.2.0 and there's no reason it should not run
> > > the same code.
> > >
> > > Stefano
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> > > For additional commands, e-mail: server-dev-help@james.apache.org
> > >
> > > !EXCUBATOR:2,440764f3297391009010269!
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> > For additional commands, e-mail: server-dev-help@james.apache.org
> >
> > !EXCUBATOR:2,4407dd1f251031820291114!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Norman Maurer <nm...@spam-box.de>.
It says relaying denied.. But i think i found the problem.. The problem
appears when also some servernames are configured in the config.xml +
using the sql table.

Can someone repruduce the ?


Am Donnerstag, den 02.03.2006, 22:33 +0100 schrieb Stefano Bagnara:
> Norman Maurer wrote:
> > It builds .. it starts.. No exeptions .. It only not accept emails for
> > domains which are not specified in the config.xml but specified in the
> > table.
> 
> How James reject the message? During the RCPT TO? What is the reject 
> message?
> 
> Add a few debug lines to isLocalServer in James.java to understand where 
> it does stop.
> 
> IMHO it should work like 2.2.0 and there's no reason it should not run 
> the same code.
> 
> Stefano
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 
> !EXCUBATOR:2,440764f3297391009010269!


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Norman Maurer <nm...@spam-box.de>.
Sorry i was wrong.. the problem was that i was try to pull ot the
domainTable attribute to early.. it must be :

        if (serverConf.getAttributeAsBoolean("autodetect") && (!
hostName.equals("localhost"))) {
            serverNames.add(hostName.toLowerCase(Locale.US));
        }

        try {
            domainTable = (String)
serverConf.getAttribute("domainTable");
        } catch (Exception e) {            
           domainTable = "";
        }

bye


Am Freitag, den 03.03.2006, 07:01 +0100 schrieb Norman Maurer:
> It says relaying denied.. But i think i found the problem.. The problem
> appears when also some servernames are configured in the config.xml +
> using the sql table.
> 
> Can someone repruduce the ?
> 
> 
> Am Donnerstag, den 02.03.2006, 22:33 +0100 schrieb Stefano Bagnara:
> > Norman Maurer wrote:
> > > It builds .. it starts.. No exeptions .. It only not accept emails for
> > > domains which are not specified in the config.xml but specified in the
> > > table.
> > 
> > How James reject the message? During the RCPT TO? What is the reject 
> > message?
> > 
> > Add a few debug lines to isLocalServer in James.java to understand where 
> > it does stop.
> > 
> > IMHO it should work like 2.2.0 and there's no reason it should not run 
> > the same code.
> > 
> > Stefano
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> > For additional commands, e-mail: server-dev-help@james.apache.org
> > 
> > !EXCUBATOR:2,440764f3297391009010269!
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 
> !EXCUBATOR:2,4407dd1f251031820291114!


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Norman Maurer <nm...@spam-box.de>.
It builds .. it starts.. No exeptions .. It only not accept emails for
domains which are not specified in the config.xml but specified in the
table.

bye

Am Donnerstag, den 02.03.2006, 22:19 +0100 schrieb Stefano Bagnara:
> Norman Maurer wrote:
> > that was what i tested .. and i also tried to use getLogger.error() but
> > now logs in james-xxxx.log and it also not work. With james-2.2.0 i
> > manually merge the patch and it work .
> 
> "it also not work" is not of much help. What is the problem? Does it 
> build? Does it start? Does it throw exceptions?
> 
> Stefano
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 
> !EXCUBATOR:2,4407618c276752025014079!


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Norman Maurer <nm...@spam-box.de>.
that was what i tested .. and i also tried to use getLogger.error() but
now logs in james-xxxx.log and it also not work. With james-2.2.0 i
manually merge the patch and it work .

bye

Am Donnerstag, den 02.03.2006, 22:04 +0100 schrieb Stefano Bagnara:
> Norman Maurer wrote:
> > you mean change it to:
> > 
> >  ServiceManager componentManager = (ServiceManager) compMgr; 
> 
> Yes.
> 
>  From 2.2.0 to 2.3.0 every "Component" has been replaced by "Service" 
> and every "ComponentManager" replaced by "ServiceManager".
> 
> Stefano
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 
> !EXCUBATOR:2,44075e0b248171278870915!


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames

Posted by Norman Maurer <nm...@spam-box.de>.
you mean change it to:

 ServiceManager componentManager = (ServiceManager) compMgr; 

?


Am Donnerstag, den 02.03.2006, 21:35 +0100 schrieb Stefano Bagnara:
> ServiceManager


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org