You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Jerry Malcolm <Je...@Malcolms.com> on 2006/01/26 08:08:09 UTC

Maintaining server names list automatically?

I host quite a few server names hosted with one James instance.  And server
names periodically come and go.  When I add a new client, I'd really like to
have an automated way to add the server name to the list.

I realize the brute force way is to write some sort of Perl or Rexx script
that parses the servername section out the config file and re-gen's the
config file with an updated list, then bounce the James server so it'll pick
up the change.  Seems awfully clumsy to have to do that.  But is that the
only way?  Is there a way to store the server list in a database table where
James can read it out and check periodically to see if the entries in the
table have changed?  Or am I doomed to have to write a script to gen the
config file?


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


Re: Maintaining server names list automatically? Virtual hosting

Posted by Pierre Smits <pf...@smiden.com>.
To my understanding the patch  
(http://issues.apache.org/jira/browse/JAMES-426) works fine against a 
jdbc connected VirtualUserTable. Daniel points out that it should also 
connect to stores as xmlVirtualUserTable and others. I agree to that. 
But such could be road mapped.

However it will not be implemented in any release soon as it isn't on 
the slate for 2.3.0. or 3.0.

Unless, it gets votes (as I understand it).

Regards,

Pierre

Stefano Bagnara wrote:

> Jerry Malcolm wrote:
>
>> I host quite a few server names hosted with one James instance.  And 
>> server
>> names periodically come and go.  When I add a new client, I'd really 
>> like to
>> have an automated way to add the server name to the list.
>
>
> There is no supported ways to do that. BTW You can look at this 
> submitted patch (thanks to Daniel):
> http://issues.apache.org/jira/browse/JAMES-426
>
> Stefano
>
>> I realize the brute force way is to write some sort of Perl or Rexx 
>> script
>> that parses the servername section out the config file and re-gen's the
>> config file with an updated list, then bounce the James server so 
>> it'll pick
>> up the change.  Seems awfully clumsy to have to do that.  But is that 
>> the
>> only way?  Is there a way to store the server list in a database 
>> table where
>> James can read it out and check periodically to see if the entries in 
>> the
>> table have changed?  Or am I doomed to have to write a script to gen the
>> config file?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>


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


Re: Maintaining server names list automatically?

Posted by Stefano Bagnara <ap...@bago.org>.
Jerry Malcolm wrote:
> I host quite a few server names hosted with one James instance.  And server
> names periodically come and go.  When I add a new client, I'd really like to
> have an automated way to add the server name to the list.

There is no supported ways to do that. BTW You can look at this 
submitted patch (thanks to Daniel):
http://issues.apache.org/jira/browse/JAMES-426

Stefano

> I realize the brute force way is to write some sort of Perl or Rexx script
> that parses the servername section out the config file and re-gen's the
> config file with an updated list, then bounce the James server so it'll pick
> up the change.  Seems awfully clumsy to have to do that.  But is that the
> only way?  Is there a way to store the server list in a database table where
> James can read it out and check periodically to see if the entries in the
> table have changed?  Or am I doomed to have to write a script to gen the
> config file?


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