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 "webmaster@oredelmondo.it" <we...@oredelmondo.it> on 2005/05/26 14:44:12 UTC

Mailet, matcher and distribution list

Hi, I activated a mailing list following the Apache James user guide and 
FAQ.
All work well, but I prefer to have only one, or at least some users 
that can write to the distribution list,
while for the other the message should going back.

Is it possibledoing using the provided mailet, matchers ?
Have I to write my own mailet?

May someone help me to have the rigth directions to start this job.

Thanks



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


RE: Nobody replied to me about Virtual Domains..

Posted by Ilia Chipitsine <il...@paramon.ru>.
it is already shipped with James-2.2, what is your version of James ?

> Hey can you give me more info how to install that mailet, maybe where I
> have to download it?
>
> Thx in advance!
>
>> -----Original Message-----
>> From: Ilia Chipitsine [mailto:ilia@paramon.ru]
>> Sent: Thursday, June 23, 2005 2:56 AM
>> To: James Users List
>> Subject: Re: Nobody replied to me about Virtual Domains..
>>
>>> A while ago I send an email but nobody replied... that "solution"
> that
>>> you have in your FAQ - does it work?
>>>
>>> If not, is there a virtual domain implementation for James out there?
>>
>> I'm using XMLVirtualUserTable, haven't look at JDBC thing yet,
>>
>> looks like:
>>
>> <mailet match="All" class="XMLVirtualUserTable">
>>             <mapping>satay@wardreams.com=userw1</mapping>
>>             <mapping>vasua@wardreams.com=userw2</mapping>
>>             <mapping>info@wardreams.com=userw3</mapping>
>>             <mapping>*@wardreams.com=error:550 Requested action not
> taken:
>> no such user here</mapping>
>> </mailet>
>>
>> it seems, there's no virtual hosting like vpop3 does.
>>
>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Anti-Virus.
>> Version: 7.0.323 / Virus Database: 267.7.11/26 - Release Date:
> 6/22/2005
>
>
>
> ---------------------------------------------------------------------
> 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: Nobody replied to me about Virtual Domains..

Posted by Ivan Jouikov <iv...@ablogic.net>.
Hey can you give me more info how to install that mailet, maybe where I
have to download it?

Thx in advance!

>-----Original Message-----
>From: Ilia Chipitsine [mailto:ilia@paramon.ru]
>Sent: Thursday, June 23, 2005 2:56 AM
>To: James Users List
>Subject: Re: Nobody replied to me about Virtual Domains..
>
>> A while ago I send an email but nobody replied... that "solution"
that
>> you have in your FAQ - does it work?
>>
>> If not, is there a virtual domain implementation for James out there?
>
>I'm using XMLVirtualUserTable, haven't look at JDBC thing yet,
>
>looks like:
>
><mailet match="All" class="XMLVirtualUserTable">
>             <mapping>satay@wardreams.com=userw1</mapping>
>             <mapping>vasua@wardreams.com=userw2</mapping>
>             <mapping>info@wardreams.com=userw3</mapping>
>             <mapping>*@wardreams.com=error:550 Requested action not
taken:
>no such user here</mapping>
></mailet>
>
>it seems, there's no virtual hosting like vpop3 does.
>
>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.323 / Virus Database: 267.7.11/26 - Release Date:
6/22/2005



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


RE: Nobody replied to me about Virtual Domains..

Posted by Ilia Chipitsine <il...@paramon.ru>.
> Why is it so hard to implement virtual domains?

write the code :-)
community will appreciate that.

>
> Simply make the user's email his username.  Tada.  Problem solved.
>
>> -----Original Message-----
>> From: Ilia Chipitsine [mailto:ilia@paramon.ru]
>> Sent: Thursday, June 23, 2005 2:56 AM
>> To: James Users List
>> Subject: Re: Nobody replied to me about Virtual Domains..
>>
>>> A while ago I send an email but nobody replied... that "solution"
> that
>>> you have in your FAQ - does it work?
>>>
>>> If not, is there a virtual domain implementation for James out there?
>>
>> I'm using XMLVirtualUserTable, haven't look at JDBC thing yet,
>>
>> looks like:
>>
>> <mailet match="All" class="XMLVirtualUserTable">
>>             <mapping>satay@wardreams.com=userw1</mapping>
>>             <mapping>vasua@wardreams.com=userw2</mapping>
>>             <mapping>info@wardreams.com=userw3</mapping>
>>             <mapping>*@wardreams.com=error:550 Requested action not
> taken:
>> no such user here</mapping>
>> </mailet>
>>
>> it seems, there's no virtual hosting like vpop3 does.
>>
>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Anti-Virus.
>> Version: 7.0.323 / Virus Database: 267.7.11/26 - Release Date:
> 6/22/2005
>
>
>
> ---------------------------------------------------------------------
> 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: Nobody replied to me about Virtual Domains..

Posted by Ivan Jouikov <iv...@ablogic.net>.
Why is it so hard to implement virtual domains?

Simply make the user's email his username.  Tada.  Problem solved.

>-----Original Message-----
>From: Ilia Chipitsine [mailto:ilia@paramon.ru]
>Sent: Thursday, June 23, 2005 2:56 AM
>To: James Users List
>Subject: Re: Nobody replied to me about Virtual Domains..
>
>> A while ago I send an email but nobody replied... that "solution"
that
>> you have in your FAQ - does it work?
>>
>> If not, is there a virtual domain implementation for James out there?
>
>I'm using XMLVirtualUserTable, haven't look at JDBC thing yet,
>
>looks like:
>
><mailet match="All" class="XMLVirtualUserTable">
>             <mapping>satay@wardreams.com=userw1</mapping>
>             <mapping>vasua@wardreams.com=userw2</mapping>
>             <mapping>info@wardreams.com=userw3</mapping>
>             <mapping>*@wardreams.com=error:550 Requested action not
taken:
>no such user here</mapping>
></mailet>
>
>it seems, there's no virtual hosting like vpop3 does.
>
>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.323 / Virus Database: 267.7.11/26 - Release Date:
6/22/2005



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


Re: Nobody replied to me about Virtual Domains..

Posted by Ilia Chipitsine <il...@paramon.ru>.
> A while ago I send an email but nobody replied... that "solution" that
> you have in your FAQ - does it work?
>
> If not, is there a virtual domain implementation for James out there?

I'm using XMLVirtualUserTable, haven't look at JDBC thing yet,

looks like:

<mailet match="All" class="XMLVirtualUserTable">
             <mapping>satay@wardreams.com=userw1</mapping>
             <mapping>vasua@wardreams.com=userw2</mapping>
             <mapping>info@wardreams.com=userw3</mapping>
             <mapping>*@wardreams.com=error:550 Requested action not taken: no such user here</mapping>
</mailet>

it seems, there's no virtual hosting like vpop3 does.


>
>
>
> ---------------------------------------------------------------------
> 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: Nobody replied to me about Virtual Domains..

Posted by Daniel Perry <d....@netcase.co.uk>.
> A while ago I send an email but nobody replied... that "solution" that
> you have in your FAQ - does it work?

Yes.

As for last questions, see below:

>
> 1)       Performance of James seems to be a bit slow compared to qmail.
> With qmail, if I wanted to send myself an email message, I would usually
> get it right back on my MUA within the same send/receive.  With James it
> usually takes about 10 seconds (and it's running on a test serer, not
> development one so there's no load)

No idea on your issue, but performance and smtp-in-to-inbox mail transfer
are two totally different issues. As long as it reaches the inbox in a
reasonable time it's ok.  Performance of a mail server really should be
measured in what sort of email load it can handle.  Also, it depends on what
the server is doing: what do you have set up in the mail chain? for example,
any of the spam lookups take time.  Also i dont know if the spool sleeps
when it has no mails? etc,etc,etc.

> 2)       I'm hosting 3 different domains.  I understand that virtual
> hosting isn't yet implemented, so does this mean that if I create an
> account "sales", all sales@domain1 sales@domain2 sales@domain3 messages
> will go into the same account?  I read the following:
> http://james.apache.org/FAQ.html#7   - does that actually work?  There
> seems to be no good explanation on installing it, can somebody help me
> with that?
>
> Thanks a lot, I hope I can contribute to James somehow in a future (I'm
> a java dev)
>

Easy... create the table. Add the database repository if you aren't already
using same database for users.  Add the mailet into your config.xml (in root
near top).

Then, choose a naming scheme and stick to it, or you will very quickly loose
control: eg: user.domain or user%domain, and set up users as normal users,
and in virtual table:
[user,domain,target]
sales,domain1.com,sales.domain1.com
sales,domain2.com,sales.domain2.com
bob,domain1.com,bob.domain1.com

then set up users:
sales.domain1.com
sales.domain2.com
bob.domain1.com

I'm using it to host lots of domains.  Though i wrote a quick'and'dirty php
app to manage the users/virtualusers (combined) and forwarders (from virtual
users).

Daniel.




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


Nobody replied to me about Virtual Domains..

Posted by Ivan Jouikov <iv...@ablogic.net>.
A while ago I send an email but nobody replied... that "solution" that
you have in your FAQ - does it work?

If not, is there a virtual domain implementation for James out there?



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


RE: Mailet, matcher and distribution list IT WORKS!!!!, another question

Posted by Daniel Perry <d....@netcase.co.uk>.
I've done this with a very simple php app (using mysql as users store).

Otherwise, you'll have to write your own command (very similar to
subscribe-confirm)

Daniel.

> -----Original Message-----
> From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
> Sent: 22 June 2005 17:11
> To: James Users List
> Subject: Re: Mailet, matcher and distribution list IT WORKS!!!!, another
> question
>
>
> Hi to everybody,
> Is it possible to subscribe someone else than himself?
>
> What I'd like to have is that the newsletter administrator, and *only*
> administrator could subscribe someone else.
>
> There is some mailet already done ?
> Could someone address me to do it?
>
> Regards
>
> webmaster@oredelmondo.it wrote:
>
> > Hi Daniel, you are very kind to respond me again,
> > I replaced the class below, I rebuilded it,  and.. it WORKS
> >
> > Thanks to everybody helped me
> >
> >
> > Regards
> >
> >
> > Daniel Perry wrote:
> >
> >> Ah,
> >> Forgot that one: you need to download and recompile
> >> CommandListServFooter.
> >> There was a bug with multipart mails that i/noel fixed quite a long
> >> time ago
> >> See:
> >>
> http://svn.apache.org/viewcvs.cgi/james/server/branches/branch_2_1
> _fcs/src/j
> >>
> >>
> ava/org/apache/james/transport/mailets/CommandListservFooter.java?
> rev=157463
> >>
> >> &view=log
> >>
> >> Daniel.
> >>
> >>
> >>
> >>> -----Original Message-----
> >>> From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
> >>> Sent: 13 June 2005 14:31
> >>> To: James Users List
> >>> Subject: Re: Mailet, matcher and distribution list
> >>>
> >>>
> >>> Thanks all for your support.
> >>> Now it works, only one prblem is still present:
> >>> When I sent a message to the list, the mail delivered to the
> subscribed
> >>> user is the following:
> >>>
> >>>
> >>> ------=_NextPart_000_0005_01C56E86.7CF19F90
> >>>
> >>> *Message text*
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: newsletter-unsubscribe@localhost
> >>> For additional commands, e-mail: newsletter-info@localhost
> >>> ------=_NextPart_000_0005_01C56E86.7CF19F90
> >>>
> >>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> >>> <HTML><HEAD>
> >>> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> >>> <META content="MSHTML 6.00.2900.2627" name=GENERATOR>
> >>> <STYLE></STYLE>
> >>> </HEAD>
> >>> <BODY bgColor=#ffffff>
> >>> <DIV><FONT face=Arial size=2>A</FONT></DIV><br /> <br
> >>>
> />---------------------------------------------------------------------
> >>> <br />To unsubscribe, e-mail: <a
> >>> href="mailto:newsletter-unsubscribe@localhost">newsletter-unsubscr
> >>> ibe@localhost</a>
> >>> <br />For additional commands, e-mail: <a
> >>> href="mailto:newsletter-info@localhost">newsletter-info@localhost<
> >>> /a></body</html>
> >>>
> >>> ------=_NextPart_000_0005_01C56E86.7CF19F90--
> >>>
> >>> What have I to check to solve this, I hope last, problem?
> >>>
> >>>
> >>>
> >>> Regards
> >>>
> >>> Noel J. Bergman wrote:
> >>>
> >>>
> >>>
> >>>> See
> >>>> http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/conf/jam
> >>>>
> >>>
> >> es-listmana
> >>
> >>
> >>> ger.xml, which is also in the distribution, for a sample.  You must do
> >>> things in the right order with the command list server.
> >>>
> >>>     --- Noel
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> 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
> >>
> >>
> >>
> >>
> >
> >
>
>


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


Re: Mailet, matcher and distribution list IT WORKS!!!!, another question

Posted by "webmaster@oredelmondo.it" <we...@oredelmondo.it>.
Hi to everybody,
Is it possible to subscribe someone else than himself?

What I'd like to have is that the newsletter administrator, and *only* 
administrator could subscribe someone else.

There is some mailet already done ?
Could someone address me to do it?

Regards

webmaster@oredelmondo.it wrote:

> Hi Daniel, you are very kind to respond me again,
> I replaced the class below, I rebuilded it,  and.. it WORKS
>
> Thanks to everybody helped me
>
>
> Regards
>
>
> Daniel Perry wrote:
>
>> Ah,
>> Forgot that one: you need to download and recompile 
>> CommandListServFooter.
>> There was a bug with multipart mails that i/noel fixed quite a long 
>> time ago
>> See:
>> http://svn.apache.org/viewcvs.cgi/james/server/branches/branch_2_1_fcs/src/j 
>>
>> ava/org/apache/james/transport/mailets/CommandListservFooter.java?rev=157463 
>>
>> &view=log
>>
>> Daniel.
>>
>>  
>>
>>> -----Original Message-----
>>> From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
>>> Sent: 13 June 2005 14:31
>>> To: James Users List
>>> Subject: Re: Mailet, matcher and distribution list
>>>
>>>
>>> Thanks all for your support.
>>> Now it works, only one prblem is still present:
>>> When I sent a message to the list, the mail delivered to the subscribed
>>> user is the following:
>>>
>>>
>>> ------=_NextPart_000_0005_01C56E86.7CF19F90
>>>
>>> *Message text*
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: newsletter-unsubscribe@localhost
>>> For additional commands, e-mail: newsletter-info@localhost
>>> ------=_NextPart_000_0005_01C56E86.7CF19F90
>>>
>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>>> <HTML><HEAD>
>>> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
>>> <META content="MSHTML 6.00.2900.2627" name=GENERATOR>
>>> <STYLE></STYLE>
>>> </HEAD>
>>> <BODY bgColor=#ffffff>
>>> <DIV><FONT face=Arial size=2>A</FONT></DIV><br /> <br
>>> />---------------------------------------------------------------------
>>> <br />To unsubscribe, e-mail: <a
>>> href="mailto:newsletter-unsubscribe@localhost">newsletter-unsubscr
>>> ibe@localhost</a>
>>> <br />For additional commands, e-mail: <a
>>> href="mailto:newsletter-info@localhost">newsletter-info@localhost<
>>> /a></body</html>
>>>
>>> ------=_NextPart_000_0005_01C56E86.7CF19F90--
>>>
>>> What have I to check to solve this, I hope last, problem?
>>>
>>>
>>>
>>> Regards
>>>
>>> Noel J. Bergman wrote:
>>>
>>>   
>>>
>>>> See
>>>> http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/conf/jam
>>>>     
>>>
>> es-listmana
>>  
>>
>>> ger.xml, which is also in the distribution, for a sample.  You must do
>>> things in the right order with the command list server.
>>>
>>>     --- Noel
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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: Mailet, matcher and distribution list IT WORKS!!!!

Posted by "webmaster@oredelmondo.it" <we...@oredelmondo.it>.
Hi Daniel, you are very kind to respond me again,
I replaced the class below, I rebuilded it,  and.. it WORKS

Thanks to everybody helped me


Regards


Daniel Perry wrote:

>Ah,
>Forgot that one: you need to download and recompile CommandListServFooter.
>There was a bug with multipart mails that i/noel fixed quite a long time ago
>See:
>http://svn.apache.org/viewcvs.cgi/james/server/branches/branch_2_1_fcs/src/j
>ava/org/apache/james/transport/mailets/CommandListservFooter.java?rev=157463
>&view=log
>
>Daniel.
>
>  
>
>>-----Original Message-----
>>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
>>Sent: 13 June 2005 14:31
>>To: James Users List
>>Subject: Re: Mailet, matcher and distribution list
>>
>>
>>Thanks all for your support.
>>Now it works, only one prblem is still present:
>>When I sent a message to the list, the mail delivered to the subscribed
>>user is the following:
>>
>>
>>------=_NextPart_000_0005_01C56E86.7CF19F90
>>
>>*Message text*
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: newsletter-unsubscribe@localhost
>>For additional commands, e-mail: newsletter-info@localhost
>>------=_NextPart_000_0005_01C56E86.7CF19F90
>>
>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>><HTML><HEAD>
>><META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
>><META content="MSHTML 6.00.2900.2627" name=GENERATOR>
>><STYLE></STYLE>
>></HEAD>
>><BODY bgColor=#ffffff>
>><DIV><FONT face=Arial size=2>A</FONT></DIV><br /> <br
>>/>---------------------------------------------------------------------
>><br />To unsubscribe, e-mail: <a
>>href="mailto:newsletter-unsubscribe@localhost">newsletter-unsubscr
>>ibe@localhost</a>
>><br />For additional commands, e-mail: <a
>>href="mailto:newsletter-info@localhost">newsletter-info@localhost<
>>/a></body</html>
>>
>>------=_NextPart_000_0005_01C56E86.7CF19F90--
>>
>>What have I to check to solve this, I hope last, problem?
>>
>>
>>
>>Regards
>>
>>Noel J. Bergman wrote:
>>
>>    
>>
>>>See
>>>http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/conf/jam
>>>      
>>>
>es-listmana
>  
>
>>ger.xml, which is also in the distribution, for a sample.  You must do
>>things in the right order with the command list server.
>>
>>	--- Noel
>>
>>
>>---------------------------------------------------------------------
>>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: Mailet, matcher and distribution list

Posted by Daniel Perry <d....@netcase.co.uk>.
Ah,
Forgot that one: you need to download and recompile CommandListServFooter.
There was a bug with multipart mails that i/noel fixed quite a long time ago
See:
http://svn.apache.org/viewcvs.cgi/james/server/branches/branch_2_1_fcs/src/j
ava/org/apache/james/transport/mailets/CommandListservFooter.java?rev=157463
&view=log

Daniel.

> -----Original Message-----
> From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
> Sent: 13 June 2005 14:31
> To: James Users List
> Subject: Re: Mailet, matcher and distribution list
>
>
> Thanks all for your support.
> Now it works, only one prblem is still present:
> When I sent a message to the list, the mail delivered to the subscribed
> user is the following:
>
>
> ------=_NextPart_000_0005_01C56E86.7CF19F90
>
> *Message text*
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: newsletter-unsubscribe@localhost
> For additional commands, e-mail: newsletter-info@localhost
> ------=_NextPart_000_0005_01C56E86.7CF19F90
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> <META content="MSHTML 6.00.2900.2627" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=#ffffff>
> <DIV><FONT face=Arial size=2>A</FONT></DIV><br /> <br
> />---------------------------------------------------------------------
> <br />To unsubscribe, e-mail: <a
> href="mailto:newsletter-unsubscribe@localhost">newsletter-unsubscr
> ibe@localhost</a>
> <br />For additional commands, e-mail: <a
> href="mailto:newsletter-info@localhost">newsletter-info@localhost<
> /a></body</html>
>
> ------=_NextPart_000_0005_01C56E86.7CF19F90--
>
> What have I to check to solve this, I hope last, problem?
>
>
>
> Regards
>
> Noel J. Bergman wrote:
>
> >See
> >http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/conf/jam
es-listmana
>ger.xml, which is also in the distribution, for a sample.  You must do
>things in the right order with the command list server.
>
>	--- Noel
>
>
>---------------------------------------------------------------------
>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: Mailet, matcher and distribution list

Posted by "webmaster@oredelmondo.it" <we...@oredelmondo.it>.
Thanks all for your support.
Now it works, only one prblem is still present:
When I sent a message to the list, the mail delivered to the subscribed 
user is the following:


------=_NextPart_000_0005_01C56E86.7CF19F90

*Message text*

---------------------------------------------------------------------
To unsubscribe, e-mail: newsletter-unsubscribe@localhost
For additional commands, e-mail: newsletter-info@localhost
------=_NextPart_000_0005_01C56E86.7CF19F90

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>A</FONT></DIV><br /> <br 
/>--------------------------------------------------------------------- 
<br />To unsubscribe, e-mail: <a 
href="mailto:newsletter-unsubscribe@localhost">newsletter-unsubscribe@localhost</a> 
<br />For additional commands, e-mail: <a 
href="mailto:newsletter-info@localhost">newsletter-info@localhost</a></body</html>

------=_NextPart_000_0005_01C56E86.7CF19F90--

What have I to check to solve this, I hope last, problem?



Regards

Noel J. Bergman wrote:

>See
>http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/conf/james-listmana
>ger.xml, which is also in the distribution, for a sample.  You must do
>things in the right order with the command list server.
>
>	--- Noel
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>For additional commands, e-mail: server-user-help@james.apache.org
>
>
>  
>


Re: HostIsLocal Matcher

Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
It checks (case-insensitive) if the recipient's address "host" part is 
among the servers listed as a <servername> in the <servernames> entry in 
config.xml.

Vincenzo

Ignacio Bolivar wrote:

>Hello.  Does anyone know how JAMES determines whether
>or not a "host" is local?
>
>The config.xml states:
>
><!-- If the host is handled by this server and it did
>not get -->
><!-- locally delivered, this is an invalid recipient
>-->
>
>Where does the HostIsLocal matcher look to make this
>determination?
>
>Thank you.
>
>Igi
>
>
>		
>__________________________________ 
>Discover Yahoo! 
>Have fun online with music videos, cool games, IM and more. Check it out! 
>http://discover.yahoo.com/online.html
>
>---------------------------------------------------------------------
>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


HostIsLocal Matcher

Posted by Ignacio Bolivar <ig...@yahoo.com>.
Hello.  Does anyone know how JAMES determines whether
or not a "host" is local?

The config.xml states:

<!-- If the host is handled by this server and it did
not get -->
<!-- locally delivered, this is an invalid recipient
-->

Where does the HostIsLocal matcher look to make this
determination?

Thank you.

Igi


		
__________________________________ 
Discover Yahoo! 
Have fun online with music videos, cool games, IM and more. Check it out! 
http://discover.yahoo.com/online.html

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


RE: Mailet, matcher and distribution list

Posted by "Noel J. Bergman" <no...@devtech.com>.
See
http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/conf/james-listmana
ger.xml, which is also in the distribution, for a sample.  You must do
things in the right order with the command list server.

	--- Noel


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


RE: rejected mail - was RE: Mailet, matcher and distribution list

Posted by "Noel J. Bergman" <no...@devtech.com>.
It means that the spamwatch filtered rejected it.  Details off-list.

	--- Noel

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


rejected mail - was RE: Mailet, matcher and distribution list

Posted by Daniel Perry <d....@netcase.co.uk>.
I tried to reply this message and got back:

Failed to deliver to 'server-user@james.apache.org'
SMTP module(domain james.apache.org) reports:
 message text rejected by mail.apache.org:
 552 You have entered a blackhole from which few have returned (body).

What's the deal here?


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


Re: Mailet, matcher and distribution list

Posted by "webmaster@oredelmondo.it" <we...@oredelmondo.it>.
Thanks Daniel, but unfortunately I got another exception, here my 
config.xml and the exception,
the exception say "No value is associated with the configuration element 
"listName" at -;", but the elemente there is and its value is "james"

please help me I'm going crazy,

         <mailet match="RecipientIs=james@localhost" 
class="CommandListservProcessor">
            <membersonly>true</membersonly>
            <attachmentsallowed>true</attachmentsallowed>
            <replytolist>false</replytolist>
            <repositoryName>list-james</repositoryName>
            <subjectprefix>Prefisso</subjectprefix>
            <specifiedpostersonly>true</specifiedpostersonly>
            <autobracket>true</autobracket>
            <listOwner>owner@localhost</listOwner>
            <listName>*james*</listName>
            <allowedposters>
               <address>webmaster@localhost</address>
            </allowedposters>
         </mailet>

and this is the exception:
08/06/05 14:39:11 ERROR spoolmanager: Unable to init mailet 
CommandListservManager: javax.mail.MessagingException: No value is 
associated with the configuration element "listName" at -;
  nested exception is:
    org.apache.avalon.framework.configuration.ConfigurationException: No 
value is associated with the configuration element "listName" at -
javax.mail.MessagingException: No value is associated with the 
configuration element "listName" at -;
  nested exception is:
    org.apache.avalon.framework.configuration.ConfigurationException: No 
value is associated with the configuration element "listName" at -
    at 
org.apache.james.transport.mailets.CommandListservManager.init(CommandListservManager.java:306)

Daniel Perry wrote:

>penny drops.... you were using the avalon list serv (and partly still are,
>which is why you get the error).
>
>The code changes were to the commandlistserv - which is newer that the
>avalonlistserv.
>
>  
>
>>Now I changed into:
>>
>>           <mailet match="CommandForListserv=james@localhost"
>>class="*AvalonListservManager*">
>>    
>>
>
>Here is your problem - change it to class="CommandListservManager"
>
>  
>
>>            <repositoryName>list-james</repositoryName>
>>   </mailet>
>>
>>   <mailet match="RecipientIs=james@localhost"
>>class="*CommandListservProcessor*">
>>    
>>
>
>That is correct.
>
>  
>
>>            <membersonly>true</membersonly>
>>            <attachmentsallowed>true</attachmentsallowed>
>>            <replytolist>false</replytolist>
>>            <repositoryName>list-james</repositoryName>
>>            <subjectprefix>Prefisso</subjectprefix>
>>            <specifiedpostersonly>true</specifiedpostersonly>
>>            <autobracket>true</autobracket>
>>            <listOwner>owner@localhost</listOwner>
>>            <listName>Newsletter</listName>
>>            <allowedposters>
>>               <address>andrea.foffi@localhost</address>
>>               <address>webmaster@localhost</address>
>>            </allowedposters>
>>     </mailet>
>><#>
>>
>>------------------------------------------------------------------
>>--------------------------
>>
>>But, I got the following Excection:
>>
>>08/06/05 10:25:08 ERROR spoolmanager: Unable to init mailet
>>CommandListservProcessor: javax.mail.MessagingException: Unable to find
>>command list manager named: Newsletter;
>>  nested exception is:
>>    java.lang.IllegalStateException: Unable to find command list manager
>>named: Newsletter
>>javax.mail.MessagingException: Unable to find command list manager
>>named: Newsletter;
>>  nested exception is:
>>    java.lang.IllegalStateException: Unable to find command list manager
>>named: Newsletter
>>    at
>>org.apache.james.transport.mailets.CommandListservProcessor.init(C
>>    
>>
>ommandListservProcessor.java:287)
>  
>
>>    at org.apache.mailet.GenericMailet.init(GenericMailet.java:129)
>>
>>So, I think I miss someting else into the config.xml,
>>may someone suggest me what blocks have I to insert into the config.xml
>>file?
>>
>>Regards
>>Pietro
>>
>>    
>>
>
>The commandlistservprocessor needs a commandlistservmanager mailet.  You are
>trying to use a commandlistservprocessor with an avalonlistservmanager.
>
>Hope that helps,
>
>Daniel.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>For additional commands, e-mail: server-user-help@james.apache.org
>
>
>  
>


RE: Mailet, matcher and distribution list

Posted by Daniel Perry <d....@netcase.co.uk>.
penny drops.... you were using the avalon list serv (and partly still are,
which is why you get the error).

The code changes were to the commandlistserv - which is newer that the
avalonlistserv.

> Now I changed into:
>
>            <mailet match="CommandForListserv=james@localhost"
> class="*AvalonListservManager*">

Here is your problem - change it to class="CommandListservManager"

>             <repositoryName>list-james</repositoryName>
>    </mailet>
>
>    <mailet match="RecipientIs=james@localhost"
> class="*CommandListservProcessor*">

That is correct.

>             <membersonly>true</membersonly>
>             <attachmentsallowed>true</attachmentsallowed>
>             <replytolist>false</replytolist>
>             <repositoryName>list-james</repositoryName>
>             <subjectprefix>Prefisso</subjectprefix>
>             <specifiedpostersonly>true</specifiedpostersonly>
>             <autobracket>true</autobracket>
>             <listOwner>owner@localhost</listOwner>
>             <listName>Newsletter</listName>
>             <allowedposters>
>                <address>andrea.foffi@localhost</address>
>                <address>webmaster@localhost</address>
>             </allowedposters>
>      </mailet>
> <#>
>
> ------------------------------------------------------------------
> --------------------------
>
> But, I got the following Excection:
>
> 08/06/05 10:25:08 ERROR spoolmanager: Unable to init mailet
> CommandListservProcessor: javax.mail.MessagingException: Unable to find
> command list manager named: Newsletter;
>   nested exception is:
>     java.lang.IllegalStateException: Unable to find command list manager
> named: Newsletter
> javax.mail.MessagingException: Unable to find command list manager
> named: Newsletter;
>   nested exception is:
>     java.lang.IllegalStateException: Unable to find command list manager
> named: Newsletter
>     at
> org.apache.james.transport.mailets.CommandListservProcessor.init(C
ommandListservProcessor.java:287)
>     at org.apache.mailet.GenericMailet.init(GenericMailet.java:129)
>
> So, I think I miss someting else into the config.xml,
> may someone suggest me what blocks have I to insert into the config.xml
> file?
>
> Regards
> Pietro
>

The commandlistservprocessor needs a commandlistservmanager mailet.  You are
trying to use a commandlistservprocessor with an avalonlistservmanager.

Hope that helps,

Daniel.


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


Re: Mailet, matcher and distribution list

Posted by "webmaster@oredelmondo.it" <we...@oredelmondo.it>.
I understood why it seems to not load the desired class,
I didn't know that I have to change also the referenced class into the 
mailet block into the config.xml, so it was:
--------------------------------------------------------------------------------------------
    <#> <mailet match="CommandForListserv=newsletter@localhost" 
class="*AvalonListservManager*">
<>       <repositoryName>list-newsletter</repositoryName>
</mailet>

   <#>  <mailet match="RecipientIs=newsletter@localhost" 
class="*AvalonListserv*">
      <membersonly>true</membersonly>
      <attachmentsallowed>true</attachmentsallowed>
      <replytolist>false</replytolist>
      <repositoryName>list-newsletter</repositoryName>
      <specifiedpostersonly>true</specifiedpostersonly>
     <#> <allowedposters>
        <address>webmaster@localhost</address>
<> </allowedposters>
</mailet>
--------------------------------------------------------------------------------------------
Now I changed into:

           <mailet match="CommandForListserv=james@localhost" 
class="*AvalonListservManager*">
            <repositoryName>list-james</repositoryName>
   </mailet>

   <mailet match="RecipientIs=james@localhost" 
class="*CommandListservProcessor*">
            <membersonly>true</membersonly>
            <attachmentsallowed>true</attachmentsallowed>
            <replytolist>false</replytolist>
            <repositoryName>list-james</repositoryName>
            <subjectprefix>Prefisso</subjectprefix>
            <specifiedpostersonly>true</specifiedpostersonly>
            <autobracket>true</autobracket>
            <listOwner>owner@localhost</listOwner>
            <listName>Newsletter</listName>
            <allowedposters>
               <address>andrea.foffi@localhost</address>
               <address>webmaster@localhost</address>
            </allowedposters>
     </mailet>
<#>

--------------------------------------------------------------------------------------------

But, I got the following Excection:

08/06/05 10:25:08 ERROR spoolmanager: Unable to init mailet 
CommandListservProcessor: javax.mail.MessagingException: Unable to find 
command list manager named: Newsletter;
  nested exception is:
    java.lang.IllegalStateException: Unable to find command list manager 
named: Newsletter
javax.mail.MessagingException: Unable to find command list manager 
named: Newsletter;
  nested exception is:
    java.lang.IllegalStateException: Unable to find command list manager 
named: Newsletter
    at 
org.apache.james.transport.mailets.CommandListservProcessor.init(CommandListservProcessor.java:287)
    at org.apache.mailet.GenericMailet.init(GenericMailet.java:129)

So, I think I miss someting else into the config.xml,
may someone suggest me what blocks have I to insert into the config.xml 
file?

Regards
Pietro


Daniel Perry wrote:

>Well, I'm not sure exactly how the sar loader works, so I don't really know
>why that didn't work.  I would recommend downloading the source for the
>version of james you have, then replace the java file, and build.  You will
>then have a new SAR file.  This is what I do, and it works fine.
>
>Daniel.
>
>  
>
>>-----Original Message-----
>>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
>>Sent: 31 May 2005 13:57
>>To: James Users List
>>Subject: Re: Mailet, matcher and distribution list
>>
>>
>>I did all you explained, replacing the old .class with the new ones.
>>It seems to do not have effect, new fields aren't readed.
>>Even I tried to delete the class and the newsletter works again
>>following th original rules, thats is very strange.
>>Obviously I stoped and started the James each time.
>>It seems James have its own classes that have priority on the ones in
>>the james.sar inside the apps/james.sar
>>Last I want to try to put some logging inside the class, to check if the
>>class is loaded, how can I log from inside there?
>>Any other suggestion, please?
>>
>>Regards
>>
>>Daniel Perry wrote:
>>
>>    
>>
>>>Hah, that's a tricky one. (I normally just rebuild the whole of
>>>      
>>>
>>james), then
>>    
>>
>>>replace james.sar
>>>
>>>It is in: apps/james.sar
>>>
>>>a sar file is a jar file, which is a zip file.
>>>
>>>Inside james.sar, the james class files are in a jar file:
>>>SAR-INF/lib/james.jar
>>>
>>>Hope that makes sense,
>>>
>>>Daniel.
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
>>>>Sent: 26 May 2005 16:45
>>>>To: James Users List
>>>>Subject: Re: Mailet, matcher and distribution list
>>>>
>>>>
>>>>Thanks for your reply, one last question;
>>>>where have I to place the .class ?
>>>>Have I to substitute with old one in the jar archive or there is a
>>>>lib/classes folder where I can store it?
>>>>
>>>>Regards
>>>>
>>>>
>>>>Daniel Perry wrote:
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>I added this to the command mail list a while ago, and it was
>>>>>          
>>>>>
>>commited to
>>    
>>
>>>>>the subversion repository.
>>>>>
>>>>>http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branche
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>s/branch_2_
>>>>
>>>>
>>>>        
>>>>
>>>>>1_fcs/src/java/org/apache/james/transport/mailets/CommandListserv
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>Processor.j
>>>>
>>>>
>>>>        
>>>>
>>>>>ava
>>>>>(for v2.1/2 branch)
>>>>>
>>>>>You'll need to recompile  to use it :) It adds the config
>>>>>          
>>>>>
>>options below:
>>    
>>
>>>>><specifiedpostersonly>true</specifiedpostersonly>
>>>>><allowedposters>
>>>>>  <address>email@doman.com</address>
>>>>>  <address>email2@domain.com</address>
>>>>>  <address>email@otherdoman.com</address>
>>>>></allowedposters>
>>>>>
>>>>>Also, see http://issues.apache.org/jira/browse/JAMES-367 for a
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>patch which
>>>>
>>>>
>>>>        
>>>>
>>>>>makes footers optional, and also allows you to modify the to
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>address for the
>>>>
>>>>
>>>>        
>>>>
>>>>>list, so that it appears that the email was sent to a different
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>address than
>>>>
>>>>
>>>>        
>>>>
>>>>>it actually was. I have used this to make a list reply to an
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>admin, and also
>>>>
>>>>
>>>>        
>>>>
>>>>>when moving lists from one server to another - put the list
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>temporarily on a
>>>>
>>>>
>>>>        
>>>>
>>>>>new domain, while the domain records are propergating, and then
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>set the new
>>>>
>>>>
>>>>        
>>>>
>>>>>list to appear as if it was the old domain.
>>>>>
>>>>>Daniel.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>-----Original Message-----
>>>>>>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
>>>>>>Sent: 26 May 2005 13:44
>>>>>>To: James Users List
>>>>>>Subject: Mailet, matcher and distribution list
>>>>>>
>>>>>>
>>>>>>Hi, I activated a mailing list following the Apache James
>>>>>>            
>>>>>>
>>user guide and
>>    
>>
>>>>>>FAQ.
>>>>>>All work well, but I prefer to have only one, or at least some users
>>>>>>that can write to the distribution list,
>>>>>>while for the other the message should going back.
>>>>>>
>>>>>>Is it possibledoing using the provided mailet, matchers ?
>>>>>>Have I to write my own mailet?
>>>>>>
>>>>>>May someone help me to have the rigth directions to start this job.
>>>>>>
>>>>>>Thanks
>>>>>>
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>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: Mailet, matcher and distribution list

Posted by Daniel Perry <d....@netcase.co.uk>.
Well, I'm not sure exactly how the sar loader works, so I don't really know
why that didn't work.  I would recommend downloading the source for the
version of james you have, then replace the java file, and build.  You will
then have a new SAR file.  This is what I do, and it works fine.

Daniel.

> -----Original Message-----
> From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
> Sent: 31 May 2005 13:57
> To: James Users List
> Subject: Re: Mailet, matcher and distribution list
>
>
> I did all you explained, replacing the old .class with the new ones.
> It seems to do not have effect, new fields aren't readed.
> Even I tried to delete the class and the newsletter works again
> following th original rules, thats is very strange.
> Obviously I stoped and started the James each time.
> It seems James have its own classes that have priority on the ones in
> the james.sar inside the apps/james.sar
> Last I want to try to put some logging inside the class, to check if the
> class is loaded, how can I log from inside there?
> Any other suggestion, please?
>
> Regards
>
> Daniel Perry wrote:
>
> >Hah, that's a tricky one. (I normally just rebuild the whole of
> james), then
> >replace james.sar
> >
> >It is in: apps/james.sar
> >
> >a sar file is a jar file, which is a zip file.
> >
> >Inside james.sar, the james class files are in a jar file:
> >SAR-INF/lib/james.jar
> >
> >Hope that makes sense,
> >
> >Daniel.
> >
> >
> >
> >
> >>-----Original Message-----
> >>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
> >>Sent: 26 May 2005 16:45
> >>To: James Users List
> >>Subject: Re: Mailet, matcher and distribution list
> >>
> >>
> >>Thanks for your reply, one last question;
> >>where have I to place the .class ?
> >>Have I to substitute with old one in the jar archive or there is a
> >>lib/classes folder where I can store it?
> >>
> >>Regards
> >>
> >>
> >>Daniel Perry wrote:
> >>
> >>
> >>
> >>>I added this to the command mail list a while ago, and it was
> commited to
> >>>the subversion repository.
> >>>
> >>>http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branche
> >>>
> >>>
> >>s/branch_2_
> >>
> >>
> >>>1_fcs/src/java/org/apache/james/transport/mailets/CommandListserv
> >>>
> >>>
> >>Processor.j
> >>
> >>
> >>>ava
> >>>(for v2.1/2 branch)
> >>>
> >>>You'll need to recompile  to use it :) It adds the config
> options below:
> >>>
> >>><specifiedpostersonly>true</specifiedpostersonly>
> >>><allowedposters>
> >>>   <address>email@doman.com</address>
> >>>   <address>email2@domain.com</address>
> >>>   <address>email@otherdoman.com</address>
> >>></allowedposters>
> >>>
> >>>Also, see http://issues.apache.org/jira/browse/JAMES-367 for a
> >>>
> >>>
> >>patch which
> >>
> >>
> >>>makes footers optional, and also allows you to modify the to
> >>>
> >>>
> >>address for the
> >>
> >>
> >>>list, so that it appears that the email was sent to a different
> >>>
> >>>
> >>address than
> >>
> >>
> >>>it actually was. I have used this to make a list reply to an
> >>>
> >>>
> >>admin, and also
> >>
> >>
> >>>when moving lists from one server to another - put the list
> >>>
> >>>
> >>temporarily on a
> >>
> >>
> >>>new domain, while the domain records are propergating, and then
> >>>
> >>>
> >>set the new
> >>
> >>
> >>>list to appear as if it was the old domain.
> >>>
> >>>Daniel.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
> >>>>Sent: 26 May 2005 13:44
> >>>>To: James Users List
> >>>>Subject: Mailet, matcher and distribution list
> >>>>
> >>>>
> >>>>Hi, I activated a mailing list following the Apache James
> user guide and
> >>>>FAQ.
> >>>>All work well, but I prefer to have only one, or at least some users
> >>>>that can write to the distribution list,
> >>>>while for the other the message should going back.
> >>>>
> >>>>Is it possibledoing using the provided mailet, matchers ?
> >>>>Have I to write my own mailet?
> >>>>
> >>>>May someone help me to have the rigth directions to start this job.
> >>>>
> >>>>Thanks
> >>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>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
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >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: Mailet, matcher and distribution list

Posted by "webmaster@oredelmondo.it" <we...@oredelmondo.it>.
I did all you explained, replacing the old .class with the new ones.
It seems to do not have effect, new fields aren't readed.
Even I tried to delete the class and the newsletter works again 
following th original rules, thats is very strange.
Obviously I stoped and started the James each time.
It seems James have its own classes that have priority on the ones in 
the james.sar inside the apps/james.sar
Last I want to try to put some logging inside the class, to check if the 
class is loaded, how can I log from inside there?
Any other suggestion, please?

Regards

Daniel Perry wrote:

>Hah, that's a tricky one. (I normally just rebuild the whole of james), then
>replace james.sar
>
>It is in: apps/james.sar
>
>a sar file is a jar file, which is a zip file.
>
>Inside james.sar, the james class files are in a jar file:
>SAR-INF/lib/james.jar
>
>Hope that makes sense,
>
>Daniel.
>
>
>  
>
>>-----Original Message-----
>>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
>>Sent: 26 May 2005 16:45
>>To: James Users List
>>Subject: Re: Mailet, matcher and distribution list
>>
>>
>>Thanks for your reply, one last question;
>>where have I to place the .class ?
>>Have I to substitute with old one in the jar archive or there is a
>>lib/classes folder where I can store it?
>>
>>Regards
>>
>>
>>Daniel Perry wrote:
>>
>>    
>>
>>>I added this to the command mail list a while ago, and it was commited to
>>>the subversion repository.
>>>
>>>http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branche
>>>      
>>>
>>s/branch_2_
>>    
>>
>>>1_fcs/src/java/org/apache/james/transport/mailets/CommandListserv
>>>      
>>>
>>Processor.j
>>    
>>
>>>ava
>>>(for v2.1/2 branch)
>>>
>>>You'll need to recompile  to use it :) It adds the config options below:
>>>
>>><specifiedpostersonly>true</specifiedpostersonly>
>>><allowedposters>
>>>   <address>email@doman.com</address>
>>>   <address>email2@domain.com</address>
>>>   <address>email@otherdoman.com</address>
>>></allowedposters>
>>>
>>>Also, see http://issues.apache.org/jira/browse/JAMES-367 for a
>>>      
>>>
>>patch which
>>    
>>
>>>makes footers optional, and also allows you to modify the to
>>>      
>>>
>>address for the
>>    
>>
>>>list, so that it appears that the email was sent to a different
>>>      
>>>
>>address than
>>    
>>
>>>it actually was. I have used this to make a list reply to an
>>>      
>>>
>>admin, and also
>>    
>>
>>>when moving lists from one server to another - put the list
>>>      
>>>
>>temporarily on a
>>    
>>
>>>new domain, while the domain records are propergating, and then
>>>      
>>>
>>set the new
>>    
>>
>>>list to appear as if it was the old domain.
>>>
>>>Daniel.
>>>
>>>
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
>>>>Sent: 26 May 2005 13:44
>>>>To: James Users List
>>>>Subject: Mailet, matcher and distribution list
>>>>
>>>>
>>>>Hi, I activated a mailing list following the Apache James user guide and
>>>>FAQ.
>>>>All work well, but I prefer to have only one, or at least some users
>>>>that can write to the distribution list,
>>>>while for the other the message should going back.
>>>>
>>>>Is it possibledoing using the provided mailet, matchers ?
>>>>Have I to write my own mailet?
>>>>
>>>>May someone help me to have the rigth directions to start this job.
>>>>
>>>>Thanks
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>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
>>>
>>>
>>>
>>>
>>>      
>>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>For additional commands, e-mail: server-user-help@james.apache.org
>
>
>  
>

RE: Mailet, matcher and distribution list

Posted by Daniel Perry <d....@netcase.co.uk>.
Hah, that's a tricky one. (I normally just rebuild the whole of james), then
replace james.sar

It is in: apps/james.sar

a sar file is a jar file, which is a zip file.

Inside james.sar, the james class files are in a jar file:
SAR-INF/lib/james.jar

Hope that makes sense,

Daniel.


> -----Original Message-----
> From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
> Sent: 26 May 2005 16:45
> To: James Users List
> Subject: Re: Mailet, matcher and distribution list
>
>
> Thanks for your reply, one last question;
> where have I to place the .class ?
> Have I to substitute with old one in the jar archive or there is a
> lib/classes folder where I can store it?
>
> Regards
>
>
> Daniel Perry wrote:
>
> >I added this to the command mail list a while ago, and it was commited to
> >the subversion repository.
> >
> >http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branche
> s/branch_2_
> >1_fcs/src/java/org/apache/james/transport/mailets/CommandListserv
> Processor.j
> >ava
> >(for v2.1/2 branch)
> >
> >You'll need to recompile  to use it :) It adds the config options below:
> >
> ><specifiedpostersonly>true</specifiedpostersonly>
> ><allowedposters>
> >    <address>email@doman.com</address>
> >    <address>email2@domain.com</address>
> >    <address>email@otherdoman.com</address>
> ></allowedposters>
> >
> >Also, see http://issues.apache.org/jira/browse/JAMES-367 for a
> patch which
> >makes footers optional, and also allows you to modify the to
> address for the
> >list, so that it appears that the email was sent to a different
> address than
> >it actually was. I have used this to make a list reply to an
> admin, and also
> >when moving lists from one server to another - put the list
> temporarily on a
> >new domain, while the domain records are propergating, and then
> set the new
> >list to appear as if it was the old domain.
> >
> >Daniel.
> >
> >
> >
> >>-----Original Message-----
> >>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
> >>Sent: 26 May 2005 13:44
> >>To: James Users List
> >>Subject: Mailet, matcher and distribution list
> >>
> >>
> >>Hi, I activated a mailing list following the Apache James user guide and
> >>FAQ.
> >>All work well, but I prefer to have only one, or at least some users
> >>that can write to the distribution list,
> >>while for the other the message should going back.
> >>
> >>Is it possibledoing using the provided mailet, matchers ?
> >>Have I to write my own mailet?
> >>
> >>May someone help me to have the rigth directions to start this job.
> >>
> >>Thanks
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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
> >
> >
> >
> >
>
>


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


Re: Mailet, matcher and distribution list

Posted by "webmaster@oredelmondo.it" <we...@oredelmondo.it>.
Thanks for your reply, one last question;
where have I to place the .class ?
Have I to substitute with old one in the jar archive or there is a 
lib/classes folder where I can store it?

Regards


Daniel Perry wrote:

>I added this to the command mail list a while ago, and it was commited to
>the subversion repository.
>
>http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branches/branch_2_
>1_fcs/src/java/org/apache/james/transport/mailets/CommandListservProcessor.j
>ava
>(for v2.1/2 branch)
>
>You'll need to recompile  to use it :) It adds the config options below:
>
><specifiedpostersonly>true</specifiedpostersonly>
><allowedposters>
>    <address>email@doman.com</address>
>    <address>email2@domain.com</address>
>    <address>email@otherdoman.com</address>
></allowedposters>
>
>Also, see http://issues.apache.org/jira/browse/JAMES-367 for a patch which
>makes footers optional, and also allows you to modify the to address for the
>list, so that it appears that the email was sent to a different address than
>it actually was. I have used this to make a list reply to an admin, and also
>when moving lists from one server to another - put the list temporarily on a
>new domain, while the domain records are propergating, and then set the new
>list to appear as if it was the old domain.
>
>Daniel.
>
>  
>
>>-----Original Message-----
>>From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
>>Sent: 26 May 2005 13:44
>>To: James Users List
>>Subject: Mailet, matcher and distribution list
>>
>>
>>Hi, I activated a mailing list following the Apache James user guide and
>>FAQ.
>>All work well, but I prefer to have only one, or at least some users
>>that can write to the distribution list,
>>while for the other the message should going back.
>>
>>Is it possibledoing using the provided mailet, matchers ?
>>Have I to write my own mailet?
>>
>>May someone help me to have the rigth directions to start this job.
>>
>>Thanks
>>
>>
>>
>>---------------------------------------------------------------------
>>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: Mailet, matcher and distribution list

Posted by Daniel Perry <d....@netcase.co.uk>.
I added this to the command mail list a while ago, and it was commited to
the subversion repository.

http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branches/branch_2_
1_fcs/src/java/org/apache/james/transport/mailets/CommandListservProcessor.j
ava
(for v2.1/2 branch)

You'll need to recompile  to use it :) It adds the config options below:

<specifiedpostersonly>true</specifiedpostersonly>
<allowedposters>
    <address>email@doman.com</address>
    <address>email2@domain.com</address>
    <address>email@otherdoman.com</address>
</allowedposters>

Also, see http://issues.apache.org/jira/browse/JAMES-367 for a patch which
makes footers optional, and also allows you to modify the to address for the
list, so that it appears that the email was sent to a different address than
it actually was. I have used this to make a list reply to an admin, and also
when moving lists from one server to another - put the list temporarily on a
new domain, while the domain records are propergating, and then set the new
list to appear as if it was the old domain.

Daniel.

> -----Original Message-----
> From: webmaster@oredelmondo.it [mailto:webmaster@oredelmondo.it]
> Sent: 26 May 2005 13:44
> To: James Users List
> Subject: Mailet, matcher and distribution list
>
>
> Hi, I activated a mailing list following the Apache James user guide and
> FAQ.
> All work well, but I prefer to have only one, or at least some users
> that can write to the distribution list,
> while for the other the message should going back.
>
> Is it possibledoing using the provided mailet, matchers ?
> Have I to write my own mailet?
>
> May someone help me to have the rigth directions to start this job.
>
> Thanks
>
>
>
> ---------------------------------------------------------------------
> 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