SPAM Help

2003-08-07 Thread Miroslav Nachev
   Hi,

   Can you give me some suggestions on how to stop SPAM messages using
Mail Server Negotiations method instead of using Mailets to be
possible to decrease the mail traffic.


   Thank you very much in advance.

   Miro.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to listen for SMTP connection

2003-08-08 Thread Miroslav Nachev
   Hi,

   I would like to make a filter with which to filter the Mail Servers
from which to receive e-mails. How can I do that? Which Java Class is
responsibel for that and is there any standard way to do that?


   Regards,
   Miro.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to add some functionality to SMTPServer

2003-08-10 Thread Miroslav Nachev
   Instead the hard coded I do the following in MySMTPServer.java:

   public class MySMTPServer
  extends SMTPServer
   {
   private ObjectFactory theHandlerFactory = getSMTPHandlerFactory();


   public static ObjectFactory getSMTPHandlerFactory()
   {
   return new ObjectFactory()
   {
  public Object newInstance()
  {
 ...
  }
  ...
   }
   }
   }


   Regards,
   Miro.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to add some functionality to SMTPServer

2003-08-14 Thread Miroslav Nachev
   Hi,

   I would like to add some functionality to SMTPServer.java, but this
is very hard to do that because all variables like 'theHandlerFactory'
are private, and are used direct instead public get mothods like
'getHandlerFactory()'. In this case to modify some small part I have
to rewrite all the existing code or to write directly in the
SMTPServer.java class.
   Is there any easy and clever way to do that instead the above way.


   Regards,
   Miro.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Check for SPAMs in SMTPHandler

2003-08-14 Thread Miroslav Nachev
   Hi,

   I will try to add some code in SMTPHandler.java in the following
methods:
   public void handleConnection(Socket connection)
   {
  ...
  authRequired = theConfigData.isAuthRequired(remoteIP);

NEW   check4SPAMServer = theConfigData.check4SPAMServer(remoteIP);
  ...
   }

   and after that to check the following method to check is this
Server in the Blacklist?:

   private void doRCPT(String argument)
   {
  ...
  if(check4SPAMServer)
  {
 ...
  }
  ...
   }


   Because I am not so familiar with James code I would like to ask
you whether I have chosen the right places?


   Regards,
   Miro.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SPAM Ideas

2003-08-14 Thread Miroslav Nachev
   Hi,

   I am looking for something like that:
   1. James will reject the all connections from Mail Servers that are
  in the SPAM Server list. This list can be stored in XML or/and
  Database, becuase the SPAM Server Database have to be
  self-teaching. For example when I recieve some e-mail and I see
  that this is a SPAM I will redirect (forward) this message to
  the James Server on to service address
  "[EMAIL PROTECTED]". This mail will be served from
  service Mailet which will add the Server from which the mail is
  received to the SPAM Database List (records).
   2. James will reject the all connections from SPAM registered users
  that are in the SPAM User List.
  The self-teaching mechanism can be the same as previous where
  the mail address can be "[EMAIL PROTECTED]".

   I am looking some similar. In case that James doesn't support
similar technology it is good idea for the future releases.



   Regards,
   Miro.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What is the correct way for custom Database (JDBC) access

2006-11-07 Thread Miroslav Nachev




Hi,

I am writing to both Server-User and Server-Dev because I am new and I
don't know which mail list is the right for my questions:

  My custom matcher and mailet (MatchFaxRecipient &
SendMailAsFax) needs to access MySQL Database to retrieve and store
data in. What is the correct way and practice to init and use database
? I have to do that in init() method directly with JDBC Drivers and
some JDBC Spool or I have to use the rules of James for that like
Datasource or another? In case that I have to use James rules, from
where to read or to see same samples how to configure James XML
configuration files?
  I do some tests and I see that the same mailet is running in
different thread each time when is invoked. Do I need to start new
thread for invoking of service() method of each mailet or the
multitasking is not my care?
  


Regards,
Miro.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

How to pass more parameters to DbURL ?

2006-11-08 Thread Miroslav Nachev

Hi,

I would like the used database to support Unicode. That's why I need to 
add more parameters like that:



jdbc:mysql://127.0.0.1/jafax?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8


Unfortunately I have the following error when I add these extra parameters:
  org.xml.sax.SAXParseException: The reference to entity "useUnicode" 
must end with the ';' delimiter.


How can I put more parameters to JDBC Driver?


Regards,
Miro.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to pass more parameters to DbURL ?

2006-11-08 Thread Miroslav Nachev

Hi,

Thank you. Both variants works.


Regards,
Miro.

Stefano Bagnara wrote:

First of all please use the server-user list for similar questions.

Then try with:
 


or
jdbc:mysql://127.0.0.1/jafax?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8 



Stefano

Miroslav Nachev wrote:

Hi,

I would like the used database to support Unicode. That's why I need 
to add more parameters like that:



jdbc:mysql://127.0.0.1/jafax?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8 



Unfortunately I have the following error when I add these extra 
parameters:
  org.xml.sax.SAXParseException: The reference to entity "useUnicode" 
must end with the ';' delimiter.


How can I put more parameters to JDBC Driver?


Regards,
Miro.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [jira] Created: (JAMES-685) Ideas for James Config XML changes

2006-11-10 Thread Miroslav Nachev

I think that this is more suitable variant:



   
   
  
   
 


Regards,
Miro.


Stefano Bagnara wrote:

Miroslav Nachev (JIRA) wrote:

Ideas for James Config XML changes
--

 Key: JAMES-685
 URL: http://issues.apache.org/jira/browse/JAMES-685
 Project: James
  Issue Type: Improvement
  Components: James Core
Affects Versions: 2.3.1-dev
 Environment: James XML configuration file
Reporter: Miroslav Nachev


Are there any plans to change the XML Config file?

I mean that the following:


   
  
   
   



Given the workflow:

1) the matcher is executed
2) if the matcher match something the mailet is executed

maybe this alternative is much easier to understand:


   
   
  
   


otherwise






Both solution could be implemented in a backward compatible way. Any 
preference? Any alternative solution?


I am asking because it is inconvenient to add parameters to the 
matcher without names.


I agree.

Also it is good if is possible both matcher and mailet to have common 
parameters with  tag for example. 


I'm not sure about this: it doesn't happen often to have to use the 
same parameters for matcher and mailets and this often means you're 
duplicating some stuff in the code. Maybe you should refactor the 
matcher/mailet so that they share no configurations.



The other idea is the parameters to be like Java Properties:

   value
   ...
   value


or instead parameter/parameters to use property/properties.

This variant is better for XML Schema definition.


I see that in wiki we have some previously discussed proposals about 
this issue:

http://wiki.apache.org/james/JamesV3/MailetConfiguration

I think the proposals described there are too much XML intensive and 
they depends on plans about the mailet apis.

I would like to keep this issue as a simple backward compatible change.

WDYT?

Stefano


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

[jira] Created: (JAMES-685) Ideas for James Config XML changes

2006-11-10 Thread Miroslav Nachev (JIRA)
Ideas for James Config XML changes
--

 Key: JAMES-685
 URL: http://issues.apache.org/jira/browse/JAMES-685
 Project: James
  Issue Type: Improvement
  Components: James Core
Affects Versions: 2.3.1-dev
 Environment: James XML configuration file
Reporter: Miroslav Nachev


Are there any plans to change the XML Config file?

I mean that the following:


   
  
   
   


I am asking because it is inconvenient to add parameters to the matcher without 
names.

Also it is good if is possible both matcher and mailet to have common 
parameters with  tag for example. 


The other idea is the parameters to be like Java Properties:

   value
   ...
   value


or instead parameter/parameters to use property/properties.

This variant is better for XML Schema definition.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Created: (JAMES-688) Replacement of Avalon with something new, modern and perspective technology

2006-11-11 Thread Miroslav Nachev (JIRA)
Replacement of Avalon with something new, modern and perspective technology
---

 Key: JAMES-688
 URL: http://issues.apache.org/jira/browse/JAMES-688
 Project: James
  Issue Type: Improvement
  Components: James Core
Affects Versions: 2.3.1-dev
 Environment: Linux, Windows, Solaris, etc.
Start and stop as service. Try Icon, etc.
Reporter: Miroslav Nachev
 Fix For: 2.3.1-dev


Are there any plans for Avalon replacement? In my opinion up to today there are 
very good, new similar project some of them are included in JDK6 or will be 
included in the some of the next versions or subversion.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]