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 "nurularesya ;p" <nu...@yahoo.com> on 2006/02/16 03:56:20 UTC
how to create maildb?
hello there..
can anyone help me about how to create maildb?
***************some code in config.xml for maildb*****************
<processor name="spam">
<!-- To destroy all messages, uncomment this matcher/mailet configuration -->
<!--
<mailet match="All" class="Null"/>
-->
<!-- To notify the sender their message was marked as spam, uncomment this matcher/mailet configuration -->
<!--
<mailet match="All" class="Bounce"/>
-->
<!-- To notify the postmaster that a message was marked as spam, uncomment this matcher/mailet configuration -->
<!--
<mailet match="All" class="NotifyPostmaster"/>
-->
<!-- To log the message to a repository, this matcher/mailet configuration should be uncommented. -->
<!-- This is the default configuration. -->
<mailet match="All" class="ToRepository">
<repositoryPath>file://var/mail/spam/</repositoryPath>
<!-- Changing the repositoryPath, as in this commented out example, will -->
<!-- cause the mails to be stored in a database repository. -->
<!-- Please note that only one repositoryPath element can be present for the mailet -->
<!-- configuration. -->
<!--
<repositoryPath> db://maildb/deadletter/spam </repositoryPath>
-->
</mailet>
</processor>
<!-- This processor handles messages that are for local domains, where the user is unknown -->
<processor name="local-address-error">
<!-- To notify the sender the address was invalid, uncomment this matcher/mailet configuration -->
<!-- The original message is not attached to keep the bounce processor from deliverying spam -->
<!--
<mailet match="All" class="Bounce">
<attachment>none</attachment>
</mailet>
-->
<!-- To notify the postmaster that a message had an invalid address, uncomment this matcher/mailet configuration -->
<!--
<mailet match="All" class="NotifyPostmaster"/>
-->
<mailet match="All" class="ToRepository">
<repositoryPath> file://var/mail/address-error/</repositoryPath>
<!-- An alternative database repository example follows. -->
<!--
<repositoryPath> db://maildb/deadletter/address-error </repositoryPath>
-->
</mailet>
</processor>
<!-- This processor handles messages that are for foreign domains, where relaying is denied -->
<!-- As of James v2.2, this processor can be deprecated by using the <authorizedAddresses> tag
in the SMTP Server, and rejecting the message in the protocol transaction. -->
<processor name="relay-denied">
<!-- To notify the sender the address was invalid, uncomment this matcher/mailet configuration -->
<!-- The original message is not attached to keep the bounce processor from deliverying spam -->
<!--
<mailet match="All" class="Bounce">
<attachment>none</attachment>
</mailet>
-->
<!-- To notify the postmaster that a relay request was denied, uncomment this matcher/mailet configuration -->
<!--
<mailet match="All" class="NotifyPostmaster"/>
-->
<mailet match="All" class="ToRepository">
<repositoryPath>file://var/mail/relay-denied/</repositoryPath>
<!-- An alternative database repository example follows. -->
<!--
<repositoryPath> db://maildb/deadletter/relay-denied </repositoryPath>
-->
</mailet>
</processor>
******************end*****************
if i uncomment this code..how about maildb?should i create it?or automatically create?can anyone help me on this ;p
regards,
nurularesya
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
Re: how to create maildb?
Posted by "nurularesya ;p" <nu...@yahoo.com>.
<mailet match="All" class="BayesianAnalysis"
onMailetException="ignore">
<repositoryPath>db://maildb</repositoryPath>
<maxSize>200000</maxSize>
<headerName>X-MessageIsSpamProbability</headerName>
<ignoreLocalSender>true</ignoreLocalSender>
</mailet>
<mailet
match="CompareNumericHeaderValue=X-MessageIsSpamProbability > 0.90"
class="AddHeader" onMatchException="noMatch">
<name>X-MessageIsSpam</name>
<value>true</value>
</mailet>
****************end*************
according to a code that u give below...where the location of "db://maildb"..that makes me confuse after all..where the db folder locate?i cant fine it on my james folder..how db folder was create?
thanks,
nurularesya
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
Re: how to create maildb?
Posted by Stefano Bagnara <ap...@bago.org>.
Andrew Sykes wrote:
> Stefano,
>
>> E.g: with a basic "standard" corpus that consider v1agra spam and has no
>> informations about James being ham your message would have been deleted
>> by my bayesian.
>
> How does this differ from the following scenario...
>
> 1/ I turn on the filter
> 2/ I send a message with "v1agra" to the filter.
> 3/ You reply to this message
To "Train" the bayesian means you have to send it more than one message.
You should choose from your messages a sample of, for example, 100
different messages you know are spam and 100 different messages you know
are not spam and then you should add "message tagging" by the bayesian
mailets to understand if your training is going well.
In your 100 good messages there would be probably some other message
from this mailing list and the bayesian algorithm will try to understand
wether this message is more likely a "viagra" spam message or a good
message.
My corpus for example has not marked this thread messages as spam.
Probably the "bayesian", "james", "message", "algorythm" words have
balanced the effect of the "v1agra" word.
You can safely run your tests if you start feeding your corpus and
activate the following one:
<mailet match="All" class="BayesianAnalysis"
onMailetException="ignore">
<repositoryPath>db://maildb</repositoryPath>
<maxSize>200000</maxSize>
<headerName>X-MessageIsSpamProbability</headerName>
<ignoreLocalSender>true</ignoreLocalSender>
</mailet>
<mailet
match="CompareNumericHeaderValue=X-MessageIsSpamProbability > 0.90"
class="AddHeader" onMatchException="noMatch">
<name>X-MessageIsSpam</name>
<value>true</value>
</mailet>
This way James will start adding an X-MessageIsSpamProbability header to
your messages and when this value is 0.9 or more it will add also an
"X-MessageIsSpam: true" header. You then add a rule in your email client
and start looking what James put there. When james match false positives
you should send the messages to the ham feeder to train it. When james
fail to match spam you should send them to the spam feeder. Do that
until you are satisfied with your matching probability.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: how to create maildb?
Posted by Andrew Sykes <an...@sykesdevelopment.com>.
Stefano,
> E.g: with a basic "standard" corpus that consider v1agra spam and has no
> informations about James being ham your message would have been deleted
> by my bayesian.
How does this differ from the following scenario...
1/ I turn on the filter
2/ I send a message with "v1agra" to the filter.
3/ You reply to this message
--
Kind Regards
Andrew Sykes <an...@sykesdevelopment.com>
Sykes Development Ltd
http://www.sykesdevelopment.com
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: how to create maildb?
Posted by Stefano Bagnara <ap...@bago.org>.
Andrew Sykes wrote:
> Stefano,
>
> Would it be possible to create some seed data, or does some exist for
> the Bayesian filter corpus, it seems to me that certain tokens are
> always going to be considered as spam (v1agra/ciali$ etc...)
No, bayesian technique works fine when trained by the user.
It should be easy enough to start sending a few spam messages to the feeder.
E.g: with a basic "standard" corpus that consider v1agra spam and has no
informations about James being ham your message would have been deleted
by my bayesian.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: how to create maildb?
Posted by Andrew Sykes <an...@sykesdevelopment.com>.
Stefano,
Would it be possible to create some seed data, or does some exist for
the Bayesian filter corpus, it seems to me that certain tokens are
always going to be considered as spam (v1agra/ciali$ etc...)
--
Kind Regards
Andrew Sykes <an...@sykesdevelopment.com>
Sykes Development Ltd
http://www.sykesdevelopment.com
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
James + My-SQL Database
Posted by "nurularesya ;p" <nu...@yahoo.com>.
hello there,
if i use james version : James 2.3.0 (svn trunk)
how can i make a connecton between my-sql database and james?how can james connected to my-sql database?still about bayesian analysis feeder...the path for spam is in "db://maildb"...can anyone please explain about this..
thanks,
nurularesya
---------------------------------
Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.
Re: how to create maildb?
Posted by "nurularesya ;p" <nu...@yahoo.com>.
>>>Sorry but I don't understand your words.
>>>Please read the wiki page I linked before, and run a few google searches
about Bayesian applied to spam filtering.
sorry Stefano...but u said i must train spam..right?
after all, in my james config.xml where the bayesian analysis feeder phase code were in "comment" phase...do i have to "uncomment" the phase code of bayesian analysis feeder to make it realize?
thanks,
nurularesya
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
Re: how to create maildb?
Posted by Stefano Bagnara <ap...@bago.org>.
nurularesya ;p wrote:
> so that mean..just run n sent spam..n bayesian analysis filter may filter spam?is that so?
> just becoz the bayesian analysis filter is looked like comment code in green color...if it look like that..bayesian analysis filter can work to prevent spam?
Sorry but I don't understand your words.
Please read the wiki page I linked before, and run a few google searches
about Bayesian applied to spam filtering.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: how to create maildb?
Posted by "nurularesya ;p" <nu...@yahoo.com>.
> what configuration changes from the default -> i just changes only servername..that all..but i like to uncomment bayesian analysis feeder n use it..so i asking u..can i do it..and does it work properly?
Bayesian mailets are not an "uncomment and run" thing. You have to
create a spam/ham corpus (training) to let the system know what is
"spam" for you
so that mean..just run n sent spam..n bayesian analysis filter may filter spam?is that so?
just becoz the bayesian analysis filter is looked like comment code in green color...if it look like that..bayesian analysis filter can work to prevent spam?
thanks stefano
regards,
nurularesya
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
Re: how to create maildb?
Posted by Stefano Bagnara <ap...@bago.org>.
nurularesya ;p wrote:
> what configuration changes from the default -> i just changes only servername..that all..but i like to uncomment bayesian analysis feeder n use it..so i asking u..can i do it..and does it work properly?
Bayesian mailets are not an "uncomment and run" thing. You have to
create a spam/ham corpus (training) to let the system know what is
"spam" for you.
You should start reading this:
http://wiki.apache.org/james/Bayesian_Analysis
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: how to create maildb?
Posted by "nurularesya ;p" <nu...@yahoo.com>.
>>>That configuration piece does only "declare" new processors. You need to
put mails in this processors if you want to do something.
im using windows xp for james mail server..and i using outlook express for mailclient..i've done send & receive mail using outlook express and james as mail server...
>>>I don't understand how "maildb" is related with this configuration:
"maildb" is the default identifier used for db based reporsitories.
db based reporsitories location in where?can you tell me?can u tell me what is maildb for?
>>> don't understand your other question in the mailing list: please write
less questions and take the time to explain better what are you trying
to do, what did you do, what didn't work, what james version you use,
what configuration changes from the default, steps to reproduce the
problem, expected behaviours.
what did i do -> im currently build mail server for my project final..my project final is "spam filtering with james using honeypot technique"..
what didn't work -> for my project..i've to create filter for spam and james is build for prevent spam..in config.xml i looked "bayesian analysis feeder" code but it's in comment colum.so i asking if i uncomment that colum..does james still going fine?
what james version you use -> im using james 2.3.0 version..i get it in svn trunk...does it contain bayesian analysis feeder code...before they put in svn trunk..i found it in documentation of "Implementing a spam filtering gateway with apache james"..but now they told that all contain is in svn trunk n i download it..
what configuration changes from the default -> i just changes only servername..that all..but i like to uncomment bayesian analysis feeder n use it..so i asking u..can i do it..and does it work properly?
thanks Stefano...
regards,
nurularesya
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
Re: how to create maildb?
Posted by Stefano Bagnara <ap...@bago.org>.
nurularesya ;p wrote:
> hello there..
> can anyone help me about how to create maildb?
>
> ***************some code in config.xml for maildb*****************
>
> <processor name="spam">
[..]
> </processor>
> <processor name="local-address-error">
[...]
> </processor>
> <processor name="relay-denied">
[...]
> </processor>
>
> ******************end*****************
>
> if i uncomment this code..how about maildb?should i create it?or automatically create?can anyone help me on this ;p
That configuration piece does only "declare" new processors. You need to
put mails in this processors if you want to do something.
I don't understand how "maildb" is related with this configuration:
"maildb" is the default identifier used for db based reporsitories.
I don't understand your other question in the mailing list: please write
less questions and take the time to explain better what are you trying
to do, what did you do, what didn't work, what james version you use,
what configuration changes from the default, steps to reproduce the
problem, expected behaviours.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Bayesian analysis feeder
Posted by Stefano Bagnara <ap...@bago.org>.
Andrew Sykes wrote:
> Stefano,
>
> Bayesian filter sounds good.
>
> I've not looked at this, where can I find out more information? Is it
> documented anywhere?
The only docs are currently in javadocs:
http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/java/org/apache/james/transport/mailets/BayesianAnalysis.java?rev=365582&view=markup
Here are the sources:
http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/java/org/apache/james/transport/
We should update the website with all this things... I know it...
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Bayesian analysis feeder
Posted by Stefano Bagnara <ap...@bago.org>.
Stefano Bagnara wrote:
> The only docs are currently in javadocs:
Vincenzo Gianferrari Pini wrote:
> See http://wiki.apache.org/james/Bayesian_Analysis
Ops, I missed the wiki ;-)
That's cool!
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Bayesian analysis feeder
Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
See http://wiki.apache.org/james/Bayesian_Analysis
Bye,
Vincenzo
Andrew Sykes wrote:
>Stefano,
>
>Bayesian filter sounds good.
>
>I've not looked at this, where can I find out more information? Is it
>documented anywhere?
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Bayesian analysis feeder
Posted by Andrew Sykes <an...@sykesdevelopment.com>.
Stefano,
Bayesian filter sounds good.
I've not looked at this, where can I find out more information? Is it
documented anywhere?
--
Kind Regards
Andrew Sykes <an...@sykesdevelopment.com>
Sykes Development Ltd
http://www.sykesdevelopment.com
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Bayesian analysis feeder
Posted by Stefano Bagnara <ap...@bago.org>.
nurularesya ;p wrote:
> hello there..
>
> can i uncomment spam code using bayesian analysis feeder?does it work?
You have to train it with known spam and known ham messages then it will
start working. Maybe you should read something on the web about bayesian
analysis for spam and why you have to train it or you could have problem
configuring the mailets.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Bayesian analysis feeder
Posted by "nurularesya ;p" <nu...@yahoo.com>.
hello there..
can i uncomment spam code using bayesian analysis feeder?does it work?..how about maildb?should i create it?or automatically create?can anyone help me on this ;p
regards,
nurularesya
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com