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 Robert Cadena <ro...@machine501.com> on 2003/04/14 20:36:28 UTC

Virtual User Table without jdbc - Anybody need this mailet?

hi,

i installed james and have been running it as a replacement for sendmail
and it works great.  tho outlook still poops on me with it :(  Anyway, i
needed smtp virtual host functionality but i didn't want to go to the
trouble of installed and setting up a database so i wrote a simple
mailet based off the JDBCVirtualUserTable mailet that kinda follows the
sendmail virtusertable functionality (though it may not be complete).

if anyone else needs this please feel free to download the class and
documentation from this address:

http://www.machine501.com/projects/vtable_mailet

also, if this functionality has been implemented elsewhere i'd 
apprecaite a link to it. thanks!

/r




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


Re: Outlook

Posted by Kenny Smith <ja...@journalscape.com>.
I can't find the previous messages in this thread to find the context, 
but I use Outlook with James all the time. From work, from home, when 
mobile... James supports Outlook just fine because Outlook follows the 
protocols properly enough. :)

Kenny

Bryan Lipscy wrote:
> Robert Cadena: "tho outlook still poops on me with it"
> 
> Are you saying that Micrsoft Outlook will not work with JAMES?
> 
> What is the nature of the problem?
> 
> Bryan Lipscy
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


Re: Outlook

Posted by Robert Cadena <ro...@machine501.com>.
i do have a firewall, and the ports for 25 and 110 are both open to the 
  server, so that works fine.

but i doubt it's the firewall because i also have james setup on my work 
computer for debugging and i set the smtp and pop servers as 127.0.0.1 
and the same behaviour occurs.

/r

Noel J. Bergman wrote:
>>i only use Outlook, not Outlook Express.
> 
> 
> OK.  That clears up that question.
> 
> 
>>it times out both with SMTP auth and without it.
> 
> 
> Do you possibly have a firewall that is interfering?
> 
> 	--- Noel
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


Re: Outlook

Posted by Kenny Smith <ja...@journalscape.com>.
Hi Robert,

I would recommend sniffing the network coming from your workstation and 
the the box that james is running on. I had a FREAKISH problem with 
Outlook one time that turned out to be a very obscure feature in our 
firewall at work.

Regardless, taking a look at what Outlook sees and what James sees is 
generally VERY enlightening. This way you could also do it with Mozilla 
and see what differences there are.

For Windows, I use Ethereal (free and downloadable), and on UNIX I use 
ngrep (free and downloadable).

Kenny Smith

Robert Cadena wrote:
> well, no dice:
> 
> I installed Office XP SP1 (required for XP SP2)
> Installed XP SP2 (required for Outlook 2002 Fix)
> Instlled Outlook 2002 Fix (Oct 4)
> 
> Restarted both outlook and james (just in case)
> 
> I disabled Norton AE completely
> 
> Tried sending a message and now i just consistently get timeouts  with 
> the same message from outlook.  here's the output in the smtp log file:
> 
> 14/04/03 15:03:03 INFO  smtpserver: Connection from localhost (127.0.0.1)
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 220 factorysouth.com SMTP 
> Server (JAMES SMTP Server 2.1.2) ready Mon, 14 Apr 2003 15:03:03 -0700 
> (PDT)
> 14/04/03 15:03:03 DEBUG smtpserver: Calling start()
> 14/04/03 15:03:03 DEBUG smtpserver: Watchdog default Worker #18 has time 
> to sleep 360    000
> 14/04/03 15:03:03 DEBUG smtpserver: Command received: EHLO RCADENA
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 250-factorysouth.com Hello 
> RCADENA (localhost [127.0.0.1])
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 250 AUTH=LOGIN PLAIN
> 14/04/03 15:03:03 DEBUG smtpserver: Calling reset() default Worker #18
> 14/04/03 15:03:03 DEBUG smtpserver: Command received: AUTH LOGIN
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 334 XXXXX
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 334 XXXXX
> 14/04/03 15:03:03 DEBUG smtpserver: AUTH method LOGIN succeeded
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 235 Authentication Successful
> 14/04/03 15:03:03 DEBUG smtpserver: Calling reset() default Worker #18
> 14/04/03 15:03:03 DEBUG smtpserver: Command received: MAIL FROM: 
> <ro...@factorysouth.com>
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 250 Sender 
> <ro...@factorysouth.com> OK
> 14/04/03 15:03:03 DEBUG smtpserver: Calling reset() default Worker #18
> 14/04/03 15:03:03 DEBUG smtpserver: Command received: RCPT TO: 
> <ro...@factorysouth.com>
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 250 Recipient 
> <ro...@factorysouth.com> OK
> 14/04/03 15:03:03 DEBUG smtpserver: Calling reset() default Worker #18
> 14/04/03 15:03:03 DEBUG smtpserver: Command received: DATA
> 14/04/03 15:03:03 DEBUG smtpserver: Sent: 354 Ok Send data ending with 
> <CRLF>.<CRLF>
> 14/04/03 15:03:36 DEBUG smtpserver: Successfully spooled mail 
> )Mail1050357816238-1 from robert@factorysouth.com for 
> [robert@factorysouth.com]
> 14/04/03 15:03:36 DEBUG smtpserver: Sent: 250 Message received
> 14/04/03 15:03:36 DEBUG smtpserver: Calling reset() default Worker #18
> 14/04/03 15:03:36 DEBUG smtpserver: Calling stop() default Worker #18
> 14/04/03 15:03:36 DEBUG smtpserver: Closing socket.
> 
> so it looks like it's getting sent but outlook still returns an error :(
> 
> When sending a message from mozilla the same log output ocurrs but it 
> does not time out.
> 
> I did a test where i tried to send a message from outlook.  waited till 
> it timed out then shut it down.
> 
> Then i open mozilla and check my mail.  a message comes in from me but 
> it's empty.  not even a user-agent header. :|
> 
> /r
> 
> 
> 
> Noel J. Bergman wrote:
> 
>> Robert,
>>
>>
>>> Task 'Sending' reported error (0x8004210B): 'The operation timed out
>>> waiting for a response from the sending (SMTP) server.
>>
>>
>>
>> Aha!  Critical pieces of information to give the GoogleBot.  :-)
>>
>> See:  http://www.enetbot.com/support/forums/topic.asp?TOPIC_ID=648
>>       http://support.microsoft.com/?kbid=304008
>>       http://support.microsoft.com/default.aspx?scid=kb;en-us;329923
>>
>>
>>> I saw some time ago on this user list, i think, that this
>>> error is common to james with outlook.
>>
>>
>>
>> It is more accurate to say that it is common to Outlook, regardless of
>> server, in certain configurations, as you can see from the above links.
>>
>> FWIW, if you turn on DEBUG in environment.xml for both POP3 and SMTP, 
>> then
>> you can see the dialog between Outlook and James.  You should be able 
>> to see
>> if James has already sent a response that isn't reaching Outlook in a 
>> timely
>> manner.
>>
>>     --- Noel
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: james-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


RE: Outlook

Posted by Robert Cadena <ro...@factorysouth.com>.
I'm running

	JVM 1.4.1_01-b01

/r

-----Original Message-----
From: Noel J. Bergman [mailto:noel@devtech.com] 
Sent: Monday, April 14, 2003 5:30 PM
To: James Users List
Subject: RE: Outlook


This section:

14/04/03 15:03:03 DEBUG smtpserver: Command received: DATA 14/04/03 15:03:03
DEBUG smtpserver: Sent: 354 Ok Send data ending with <CRLF>.<CRLF> 14/04/03
15:03:36 DEBUG smtpserver: Successfully spooled mail )Mail1050357816238-1
from robert@factorysouth.com for [robert@factorysouth.com] 14/04/03 15:03:36
DEBUG smtpserver: Sent: 250 Message received 14/04/03 15:03:36 DEBUG
smtpserver: Calling reset() default Worker #18 14/04/03 15:03:36 DEBUG
smtpserver: Calling stop() default Worker #18 14/04/03 15:03:36 DEBUG
smtpserver: Closing socket.

bothers me.  There is no QUIT command.  There are only two ways out of the
processing loop: QUIT, and this bit of code in parseCommand:

        if (rawCommand == null) {
            return false;
        }

which would cause the handler to terminate the connection if
readCommandLine():

    final String readCommandLine() throws IOException {
        String commandLine = inReader.readLine();
        if (commandLine != null) {
            commandLine = commandLine.trim();
        }
        return commandLine;
    }

were to return null;  And readLine() should only return null on
end-of-stream.

This sounded vaguely familar, so I checked the CVS.  Sure enough, here is a
change:
http://cvs.apache.org/viewcvs.cgi/jakarta-james/src/java/org/apache/james/sm
tpserver/SMTPHandler.java.diff?r1=1.35.4.3&r2=1.35.4.4&diff_format=h

That prevented a NullPointerException from being thrown.  The question,
then, is WHY does the JVM report an EOF from the connection, and under what
circumstances?  I do my work on linux.  Which JVM are you using?  I do seem
to recall something about a related defect in the Windows JVM, but I thought
it was fixed in current versions.

	--- Noel


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



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


Re[2]: James Configuration Tool

Posted by Miroslav Nachev <mi...@space-comm.com>.
   Hi,

   It's look like XML Editor. If the diferent possibilities are
separated with Tabs will be better. For example the part for SMTP
Server, POP3 Server, Mailets, etc.


   Best Regards,
   Miroslav Nachev



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


Re[4]: James Configuration Tool

Posted by Miroslav Nachev <mi...@space-comm.com>.
   Also, when there is some link to other Config Resource like JDBC
Repository XML file the file have to be load automaticaly. For the
user must be no diference which type of repository is used.


   Miro.



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


RE: Re[4]: James Configuration Tool

Posted by Robert Cadena <ro...@machine501.com>.
Right, that's why you can register views with the editor, otherwise it's
just an xml editor.  

If you open the jamesconfig.props you'll see these properties:

service_node.James.editor=com.machine501.james.config.nodes.james.JamesNode

If you remove this, then the James Editor on the left will not appear and
instead will be replaced by the default node editor, which just edits XML.
So the immediate goal is to create views (or editors) for the top nodes in
the app. If you notice, for example, the POP3 Server node doesn't show the
subnodes - the editor implemented for that
(com.machine501.james.config.nodes.pop3server.POP3ServerNode) hides the
subnodes, like you suggested.  

In this way mailet authors, for example, can provide editor implementation
for their own mailets, and the editor can be appropriately updated without
some central body having to do this.

Good luck and thanks for trying it out.

/r



-----Original Message-----
From: Miroslav Nachev [mailto:miro@space-comm.com] 
Sent: Thursday, April 17, 2003 12:28 AM
To: James Users List; robert@machine501.com
Subject: Re[4]: James Configuration Tool


   Also, some XML nodes must be restricted to be shown because there is no
sense of them like nodes in the tree. In this case this configuration file
will look like true config file, because the XML Tree will not be shown like
XML Tree - instead will be shown like config file.



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



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


Re[4]: James Configuration Tool

Posted by Miroslav Nachev <mi...@space-comm.com>.
   Also, some XML nodes must be restricted to be shown because there
is no sense of them like nodes in the tree. In this case this
configuration file will look like true config file, because the XML
Tree will not be shown like XML Tree - instead will be shown like
config file.



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


RE: Re[2]: James Configuration Tool

Posted by Robert Cadena <ro...@machine501.com>.
You can edit the 

	jamesconfig.props and set the
	"last_open_path" property to the one you want.

But it will automatically save the path of the last file you opened.

/r

-----Original Message-----
From: Miroslav Nachev [mailto:miro@space-comm.com] 
Sent: Thursday, April 17, 2003 12:15 AM
To: James Users List; robert@machine501.com
Subject: Re[2]: James Configuration Tool


   How to set the working folder?
   

   Best Regards,
   Miroslav Nachev



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



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


Re[2]: James Configuration Tool

Posted by Miroslav Nachev <mi...@space-comm.com>.
   How to set the working folder?
   

   Best Regards,
   Miroslav Nachev



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


RE: James Configuration Tool

Posted by Robert Cadena <ro...@machine501.com>.
That's a great idea!   Let me look into opening and saving from different
sources.  As for the undo functionality and in terms of my app, were you
thinking of undo per action or in each field, or simply a revert?
Autobackup and such are features I'll look into as well.  

This is encouraging, if at least because there's one use :).  

The interesting thing about this app, too, is that it can be used to edit
all sorts of other xml config files. 

Other things I'm looking into including for this app is the ability to open
up a listener socket to listen for james log output, incorporating the
manager interface, and maybe even starting and restarting from inside the
app. 

Thanks.

/r

-----Original Message-----
From: Stephan Wiesner [mailto:stephan@stephan-wiesner.de] 
Sent: Wednesday, April 16, 2003 11:43 PM
To: James Users List
Subject: Re: James Configuration Tool


The tool would be much more usefull if it included a FTP modul. Like 
'open my config file on the remote serve, edit it and store it there and 
a backup somewhere else.'  Otherwise I would have to manually copy the 
file to my local system, edit it and manuall copy it back. The way I do 
it, is I open it via FTP from my Editor, edit it and save it. As long as 
my editor is running, which is usually for several days, I have undo 
functionallity stored at hand, which save my hide more then once.

Stephan

Robert Cadena wrote:

>Hi,
>
>Thanks for trying it out.  I figure there are some people who'd rather
>get a GUI editor, including me ;P  as for providing names for the 
>mailets: since it's a node of a specific type it's only  a matter of 
>creating an editor for that type of XML node to provide an appropriate 
>view and to provide the services panel with an appropriately "friendly" 
>name.  I'll provide a view for that later this week then.
>
>Thanks again for trying it out.
>
>/r
>
>
>
>-----Original Message-----
>From: Stephan Wiesner [mailto:stephan@stephan-wiesner.de]
>Sent: Wednesday, April 16, 2003 11:33 PM
>To: James Users List
>Subject: Re: James Configuration Tool
>
>
>Hi Robert,
>this looks very promising (if one likes GUIs for editing of 
>configuration files). I had some problems finding my Mailets, though. 
>You might want to provide the 'processor' and 'mailet' nodes with 
>names, that would make the navigation much more easy.
>
>Stephan
>
>Robert Cadena wrote:
>
>  
>
>>Hi,
>>
>>I just posted both binary and source distribution for a visual james 
>>configuration tool.  Your comments are welcome:
>>
>>http://www.machine501.com/projects/JamesConfigTool/index.html
>>
>>/r
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: james-user-help@jakarta.apache.org
>>
>>
>> 
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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


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


Re: When is init() in GenericRecipientMatcher called?

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Ah, sorry, forget my last mail. It is called when the server is started, 
as it should. Time to make a break, I guess .-()

Stephan


Stephan Wiesner wrote:

> Hi list,
> I expected the init() method of GenericRecipientMatcher to be called 
> automatically and only once? Didn't find that in the documentation, 
> but with James 2.1.3a2 it is not called automatically. So, what do I 
> do with my initialisation code, like evaluation of the paramerters 
> taken from config.xml?
>
> Stephan
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>



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


When is init() in GenericRecipientMatcher called?

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Hi list,
I expected the init() method of GenericRecipientMatcher to be called 
automatically and only once? Didn't find that in the documentation, but 
with James 2.1.3a2 it is not called automatically. So, what do I do with 
my initialisation code, like evaluation of the paramerters taken from 
config.xml?

Stephan



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


James Tutorial

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Hi list,
I am currently writing an extended tutorial about James, while I am 
learning to use it. Still in 'first draft mode', without having 
proofread it even once (so no need to mail me about all those spelling 
and grammatic mistakes), but it will grow real fast over the easter 
weekend and might be helpful to somebody.

http://rzserv2.fhnon.de/~lg002556/james/

Stephan



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


RE: James Configuration Tool

Posted by "Noel J. Bergman" <no...@devtech.com>.
> The tool would be much more usefull if it included a FTP module.

Or DAV.

Mind you, JMX is the right way to do all of this sort of thing.

	--- Noel

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


RE: James Configuration Tool

Posted by Robert Cadena <ro...@factorysouth.com>.
That's a great idea!   Let me look into opening and saving from different
sources.  As for the undo functionality and in terms of my app, were you
thinking of undo per action or in each field, or simply a revert?
Autobackup and such are features I'll look into as well.  

This is encouraging, if at least because there's one use :).  

The interesting thing about this app, too, is that it can be used to edit
all sorts of other xml config files. 

Other things I'm looking into including for this app is the ability to open
up a listener socket to listen for james log output, incorporating the
manager interface, and maybe even starting and restarting from inside the
app. 

Thanks.

/r

-----Original Message-----
From: Stephan Wiesner [mailto:stephan@stephan-wiesner.de] 
Sent: Wednesday, April 16, 2003 11:43 PM
To: James Users List
Subject: Re: James Configuration Tool


The tool would be much more usefull if it included a FTP modul. Like 
'open my config file on the remote serve, edit it and store it there and 
a backup somewhere else.'  Otherwise I would have to manually copy the 
file to my local system, edit it and manuall copy it back. The way I do 
it, is I open it via FTP from my Editor, edit it and save it. As long as 
my editor is running, which is usually for several days, I have undo 
functionallity stored at hand, which save my hide more then once.

Stephan

Robert Cadena wrote:

>Hi,
>
>Thanks for trying it out.  I figure there are some people who'd rather 
>get a GUI editor, including me ;P  as for providing names for the 
>mailets: since it's a node of a specific type it's only  a matter of 
>creating an editor for that type of XML node to provide an appropriate 
>view and to provide the services panel with an appropriately "friendly" 
>name.  I'll provide a view for that later this week then.
>
>Thanks again for trying it out.
>
>/r
>
>
>
>-----Original Message-----
>From: Stephan Wiesner [mailto:stephan@stephan-wiesner.de]
>Sent: Wednesday, April 16, 2003 11:33 PM
>To: James Users List
>Subject: Re: James Configuration Tool
>
>
>Hi Robert,
>this looks very promising (if one likes GUIs for editing of
>configuration files).
>I had some problems finding my Mailets, though. You might want to 
>provide the 'processor' and 'mailet' nodes with names, that would make 
>the navigation much more easy.
>
>Stephan
>
>Robert Cadena wrote:
>
>  
>
>>Hi,
>>
>>I just posted both binary and source distribution for a visual james
>>configuration tool.  Your comments are welcome:
>>
>>http://www.machine501.com/projects/JamesConfigTool/index.html
>>
>>/r
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: james-user-help@jakarta.apache.org
>>
>>
>> 
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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



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


Re: James Configuration Tool

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
The tool would be much more usefull if it included a FTP modul. Like 
'open my config file on the remote serve, edit it and store it there and 
a backup somewhere else.'  Otherwise I would have to manually copy the 
file to my local system, edit it and manuall copy it back. The way I do 
it, is I open it via FTP from my Editor, edit it and save it. As long as 
my editor is running, which is usually for several days, I have undo 
functionallity stored at hand, which save my hide more then once.

Stephan

Robert Cadena wrote:

>Hi,
>
>Thanks for trying it out.  I figure there are some people who'd rather get a
>GUI editor, including me ;P  as for providing names for the mailets: since
>it's a node of a specific type it's only  a matter of creating an editor for
>that type of XML node to provide an appropriate view and to provide the
>services panel with an appropriately "friendly" name.  I'll provide a view
>for that later this week then.
>
>Thanks again for trying it out.
>
>/r
>
>
>
>-----Original Message-----
>From: Stephan Wiesner [mailto:stephan@stephan-wiesner.de] 
>Sent: Wednesday, April 16, 2003 11:33 PM
>To: James Users List
>Subject: Re: James Configuration Tool
>
>
>Hi Robert,
>this looks very promising (if one likes GUIs for editing of 
>configuration files).
>I had some problems finding my Mailets, though. You might want to 
>provide the 'processor' and 'mailet' nodes with names, that would make 
>the navigation much more easy.
>
>Stephan
>
>Robert Cadena wrote:
>
>  
>
>>Hi,
>>
>>I just posted both binary and source distribution for a visual james 
>>configuration tool.  Your comments are welcome:
>>
>>http://www.machine501.com/projects/JamesConfigTool/index.html
>>
>>/r
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: james-user-help@jakarta.apache.org
>>
>>
>> 
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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


RE: James Configuration Tool

Posted by Robert Cadena <ro...@machine501.com>.
Hi,

Thanks for trying it out.  I figure there are some people who'd rather get a
GUI editor, including me ;P  as for providing names for the mailets: since
it's a node of a specific type it's only  a matter of creating an editor for
that type of XML node to provide an appropriate view and to provide the
services panel with an appropriately "friendly" name.  I'll provide a view
for that later this week then.

Thanks again for trying it out.

/r



-----Original Message-----
From: Stephan Wiesner [mailto:stephan@stephan-wiesner.de] 
Sent: Wednesday, April 16, 2003 11:33 PM
To: James Users List
Subject: Re: James Configuration Tool


Hi Robert,
this looks very promising (if one likes GUIs for editing of 
configuration files).
I had some problems finding my Mailets, though. You might want to 
provide the 'processor' and 'mailet' nodes with names, that would make 
the navigation much more easy.

Stephan

Robert Cadena wrote:

>Hi,
>
>I just posted both binary and source distribution for a visual james 
>configuration tool.  Your comments are welcome:
>
>http://www.machine501.com/projects/JamesConfigTool/index.html
>
>/r
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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



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


Re: James Configuration Tool

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Hi Robert,
this looks very promising (if one likes GUIs for editing of 
configuration files).
I had some problems finding my Mailets, though. You might want to 
provide the 'processor' and 'mailet' nodes with names, that would make 
the navigation much more easy.

Stephan

Robert Cadena wrote:

>Hi,
>
>I just posted both binary and source distribution for a visual james
>configuration tool.  Your comments are welcome:
>
>http://www.machine501.com/projects/JamesConfigTool/index.html
>
>/r
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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


Re: James Configuration Tool

Posted by Steve Caum <st...@caumfamily.com>.
I've started testing out the James Configuration Tool, and found a few
problems.  It seems to work OK for changing values of existing parameters.
But, if you try to add nodes, or remove nodes, it doesn't save them out
correctly.  Might want to look into it.

Steve
----- Original Message -----
From: "Steve Caum" <st...@caumfamily.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Friday, April 18, 2003 10:51 AM
Subject: RE : James Configuration Tool


> I'm one of those who prefers a nice UI to manually editing the XML.  I
like
> some of the suggestions that have been offered, and hope you continue to
> evolve this into a really strong tool for folks like me.  Any reason why
> this couldn't be adopted by the James project as a sub-project?  That way,
> others could contribute.
>
> One small thing I noted.  On the 'main config' tab, you have created a
> check-box for 'Case Sensitive'.  You need to either inverse the logic, or
> change the label to 'Ignore Case Sensitivity'.
>
> Thanks again.
>
> btw.  I use MySql for a data store.  If you plan to create additional
views
> for users, perhaps you could make it implement the datastore
implementation
> specified in config.xml (i.e. use MySql if specified).  A little harder, I
> know.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>


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


RE : James Configuration Tool

Posted by Steve Caum <st...@caumfamily.com>.
I'm one of those who prefers a nice UI to manually editing the XML.  I like
some of the suggestions that have been offered, and hope you continue to
evolve this into a really strong tool for folks like me.  Any reason why
this couldn't be adopted by the James project as a sub-project?  That way,
others could contribute.

One small thing I noted.  On the 'main config' tab, you have created a
check-box for 'Case Sensitive'.  You need to either inverse the logic, or
change the label to 'Ignore Case Sensitivity'.

Thanks again.

btw.  I use MySql for a data store.  If you plan to create additional views
for users, perhaps you could make it implement the datastore implementation
specified in config.xml (i.e. use MySql if specified).  A little harder, I
know.

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


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


RE: RE : James Configuration Tool

Posted by Robert Cadena <ro...@machine501.com>.
Alright, I'll look into the RMI user manager thing or the plain old socket
one and add it as part of the config tool.  

/r

-----Original Message-----
From: Stephan Wiesner [mailto:stephan@stephan-wiesner.de] 
Sent: Thursday, April 17, 2003 12:37 AM
To: James Users List
Subject: Re: RE : James Configuration Tool


Yes, user management is a real pain, if not stored in a database, that is.
So a little GUI for that would be great (able to access a remote server 
of course).

Stephan

eric aboudaram wrote:

>Great
>That is cool
>But could you make something to create user, to manage the users? 
>Thanks
>
>And wich webmail work fine with James,
>under windows with java 1.4?
>
>
>
>
>-----Message d'origine-----
>De : Robert Cadena [mailto:robert@machine501.com]
>Envoyé : jeudi 17 avril 2003 08:08
>À : 'James Users List'
>Objet : James Configuration Tool
>
>
>Hi,
>
>I just posted both binary and source distribution for a visual james 
>configuration tool.  Your comments are welcome:
>
>http://www.machine501.com/projects/JamesConfigTool/index.html
>
>/r
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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



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


Re: RE : James Configuration Tool

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Yes, user management is a real pain, if not stored in a database, that is.
So a little GUI for that would be great (able to access a remote server 
of course).

Stephan

eric aboudaram wrote:

>Great
>That is cool
>But could you make something to create user, to manage the users?
>Thanks
>
>And wich webmail work fine with James, 
>under windows with java 1.4?
>
>
>
>
>-----Message d'origine-----
>De : Robert Cadena [mailto:robert@machine501.com] 
>Envoyé : jeudi 17 avril 2003 08:08
>À : 'James Users List'
>Objet : James Configuration Tool
>
>
>Hi,
>
>I just posted both binary and source distribution for a visual james
>configuration tool.  Your comments are welcome:
>
>http://www.machine501.com/projects/JamesConfigTool/index.html
>
>/r
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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


RE: Javadoc for James 3.0a1

Posted by "Noel J. Bergman" <no...@devtech.com>.
The online Javadocs reflect CVS HEAD, which has some changes (and will
change more before it is stable).  The javadocs included in the v2x
distribution cover that stable version of the API.

	--- Noel


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


Javadoc for James 3.0a1

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Hi list,
the Java API (http://james.apache.org/javadocs/index.html)
states that it is for James 3.0a1. This, however, can not be downloaded?
Cost me quite some time, searching for errors in my code, until I 
realised that the James classes didn't support the behaviour I wanted , 
yet. :-(

Stephan



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


RE: Sending to a domain while doing fetchpop

Posted by "Noel J. Bergman" <no...@devtech.com>.
Marc,

Danny has used FetchPOP more than I, but ...

> 1) I pick up mails from another pop3 box (ex: mybox@otherdomain.com)
>    therefore I have to include the domain of that box in the
>    <servernames> tag (ex: otherdomain.com).

OK.  But not necessarily true.

> 2) When sending mails to other users on the same domain
>    (ex: afriend@otherdomain.com) they are picked up by
>    James because the domain is included in the
>    <servernames> tag. James tries to deliver these mails
>    locally.

So you are picking up e-mail for @otherdomain.com both from FetchPOP and
directly.

> 3) The mails that are sent from James are not matched by
>    the FetchedFrom matcher (because they are not fetched
     from the remote pop3 server).

Right.  They are generated locally, or come in via the SMTP handler.

4) To catch these outbound mails it is necessary to add a HostIs
   matcher and then deliver them using RemoteDelivery.

The code that you reported is:

  <processor name="fetchprocessor">
    <mailet match="RecipientIs=localuser@domain" class="Redirect">
      <recipients>localuser</recipients>
      <passThrough>FALSE</passThrough>
    </mailet>

    <mailet match="RecipientIs=externaluser@domain" class="RemoteDelivery">
      <outgoing>file://var/mail/fetchrepository/</outgoing>
    </mailet>
  </processor>

It appears that you are peeling off local users, and sending the rest using
the MX record for that domain.  Seems to me that you could simply do this:

  ...
    <mailet match="All" class="JDBCVirtualUserTable">
      ...
    </mailet>
  ...

in your root processor, and remove otherdomain.com from your servername
list.

JDBCVirtualUserTable (or the recently posted non-JDBC analogue or a list of
Redirect mailets like in your example) would map from the fetched address to
a local address, and since the remaining addresses would not be for a local
domain, RemoteDelivery would handle them.

	--- Noel


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


Re: Sending to a domain while doing fetchpop

Posted by Marc de Oliveira <Ma...@deOliveira.dk>.
No, that is not what I am trying to address.
1) I pick up mails from another pop3 box (ex: mybox@otherdomain.com)
therefore I have to include the domain of that box in the <servernames> tag
(ex: otherdomain.com).
2) When sending mails to other users on the same domain (ex:
afriend@otherdomain.com) they are picked up by James because the domain is
included in the <servernames> tag. James tries to deliver these mails
locally.
3) The mails that are sent from James are not matched by the FetchedFrom
matcher (because they are not fetched from the remote pop3 server).
4) To catch these outbound mails it is necessary to add a HostIs matcher and
then deliver them using RemoteDelivery.
Does my explanation make sence?
Sincerely,
Marc

----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 23, 2003 7:27 PM
Subject: RE: Sending to a domain while doing fetchpop


> In other words you are picking up messages from a remote POP3 box, and
> distributing some of them to another server, rather than handling them
> locally?  It still sounds as if the FetchedFrom matcher should have been
> able to send all of the fetched messages to the processor.     I'm not
> seeing why that isn't the case, unless other messages are arriving
directly,
> rather than being fetched.
>
> --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>


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


RE: Sending to a domain while doing fetchpop

Posted by Danny Angus <da...@apache.org>.
Marc

> Maybe the warning should be refrased.

I think you are right.

The trouble with fetch pop is that it is really doing things that it shouldn't be, it "hijacks" mail which it also still appears to belong on another host.

What we have to do is either handle all of that mail locally, which we use the servername for, or we have to distingush between fetched mail and outgoing mail to the same domain and handle them differently, which is what the FetchedFrom attribute is for. 

As the servername case is easier to explain I put that in the config to prevent new users getting in a Big Mess.

I'm sorry I didn't pay more attention to your problem earlier, and I'm glad you've worked it out.

d.


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


Re: Sending to a domain while doing fetchpop

Posted by Marc de Oliveira <Ma...@deOliveira.dk>.
Thanks, I like your solution better. I only included the <servername> tag
because the config file has the following warning:
<!--  Warning: If you are using fetchpop it is important to include
e   -->
<!--  fetched domains in the server name list to prevent
         -->
Maybe the warning should be refrased.

Sincerely,
Marc

----- Original Message -----
From: "Danny Angus" <da...@apache.org>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 23, 2003 11:50 PM
Subject: RE: Sending to a domain while doing fetchpop


sort of..

drop the domain from the handled domains, use forwarding in another
processor to forward mail for individual users to either a local address of
a remote one. use FetchedFrom to switch mail to the other processor, not
HostIs.

d.

> -----Original Message-----
> From: Marc de Oliveira [mailto:Marc@deOliveira.dk]
> Sent: 23 April 2003 19:53
> To: James Users List
> Subject: Re: Sending to a domain while doing fetchpop
>
>
> I don't get it. Is that an answer to my mail?
> - Marc
> ----- Original Message -----
> From: "Danny Angus" <da...@apache.org>
> To: "James Users List" <ja...@jakarta.apache.org>
> Sent: Wednesday, April 23, 2003 8:39 PM
> Subject: RE: Sending to a domain while doing fetchpop
>
>
> > use FetchedFrom and another processor
>
> **Instead**
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>


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


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


RE: Sending to a domain while doing fetchpop

Posted by Danny Angus <da...@apache.org>.
sort of..

drop the domain from the handled domains, use forwarding in another processor to forward mail for individual users to either a local address of a remote one. use FetchedFrom to switch mail to the other processor, not HostIs.

d.

> -----Original Message-----
> From: Marc de Oliveira [mailto:Marc@deOliveira.dk]
> Sent: 23 April 2003 19:53
> To: James Users List
> Subject: Re: Sending to a domain while doing fetchpop
> 
> 
> I don't get it. Is that an answer to my mail?
> - Marc
> ----- Original Message ----- 
> From: "Danny Angus" <da...@apache.org>
> To: "James Users List" <ja...@jakarta.apache.org>
> Sent: Wednesday, April 23, 2003 8:39 PM
> Subject: RE: Sending to a domain while doing fetchpop
> 
> 
> > use FetchedFrom and another processor
> 
> **Instead**
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 


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


Re: Sending to a domain while doing fetchpop

Posted by Marc de Oliveira <Ma...@deOliveira.dk>.
I don't get it. Is that an answer to my mail?
- Marc
----- Original Message ----- 
From: "Danny Angus" <da...@apache.org>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 23, 2003 8:39 PM
Subject: RE: Sending to a domain while doing fetchpop


> use FetchedFrom and another processor

**Instead**



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


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


RE: Sending to a domain while doing fetchpop

Posted by Danny Angus <da...@apache.org>.
> use FetchedFrom and another processor

**Instead**



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


RE: Sending to a domain while doing fetchpop

Posted by Danny Angus <da...@apache.org>.
use FetchedFrom and another processor

> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 23 April 2003 18:27
> To: James Users List
> Subject: RE: Sending to a domain while doing fetchpop
> 
> 
> In other words you are picking up messages from a remote POP3 box, and
> distributing some of them to another server, rather than handling them
> locally?  It still sounds as if the FetchedFrom matcher should have been
> able to send all of the fetched messages to the processor.     I'm not
> seeing why that isn't the case, unless other messages are 
> arriving directly,
> rather than being fetched.
> 
> 	--- Noel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 


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


RE: Sending to a domain while doing fetchpop

Posted by "Noel J. Bergman" <no...@devtech.com>.
In other words you are picking up messages from a remote POP3 box, and
distributing some of them to another server, rather than handling them
locally?  It still sounds as if the FetchedFrom matcher should have been
able to send all of the fetched messages to the processor.     I'm not
seeing why that isn't the case, unless other messages are arriving directly,
rather than being fetched.

	--- Noel


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


Re: Sending to a domain while doing fetchpop

Posted by Marc de Oliveira <Ma...@deOliveira.dk>.
  Below is the kind of documentation that I needed when setting this up.

  Sincerely,

  Marc

  When sending mails to users of a domain that is partly managed by James
the mails are sent through the root process to try to deliver them locally.
In case mails are being sent to an external account using a domain partly
managed by James it is necessary to add a HostIs matcher to redirect the
mail management to the fetchprocessor mentioned above, like this:


       <mailet match="HostIs=hostname" class="ToProcessor">
<processor>fetchprocessor</processor>
</mailet>



  Where hostname is the name of the domain used by FetchPOP.

  The fetchprocessor should then have mailets for managing both mails to
local users and to remote users. A simple example of a fetchprocessor that
can receive mails for one local user and send mails to one external user
could look like this:


       <processor name="fetchprocessor"> <mailet
match="RecipientIs=localuser@domain" class="Redirect">
<recipients>localuser</recipients>  <passThrough>FALSE</passThrough>
</mailet> <mailet match="RecipientIs=externaluser@domain"
class="RemoteDelivery">
<outgoing>file://var/mail/fetchrepository/</outgoing> </mailet> <mailet
match="All" class="Null"/></processor>


----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 23, 2003 4:09 PM
Subject: RE: Sending to a domain while doing fetchpop


> Can you provide a more complete example, with context?
>
> --- Noel
>
> -----Original Message-----
> From: Marc de Oliveira [mailto:Marc@deOliveira.dk]
> Sent: Wednesday, April 23, 2003 1:00
> To: James Users List
> Subject: Re: Sending to a domain while doing fetchpop
>
>
> Yes, I know that. But to have the fetchpop working when "Handling a Subset
> of a Domain's Mail" you need to have a second "HostIs" matcher to handle
> outgoing mails:
>
>         <mailet match="HostIs=dylan.dk" class="ToProcessor">
>            <processor>fetchdylanprocessor</processor>
>          </mailet>
>
>  I believe this part is missing from the documentation.
>
> Sincerely,
> Marc
>
> ----- Original Message -----
> From: "Noel J. Bergman" <no...@devtech.com>
> To: "James Users List" <ja...@jakarta.apache.org>
> Sent: Wednesday, April 23, 2003 3:36 AM
> Subject: RE: Sending to a domain while doing fetchpop
>
>
> > > It seems that the FetchedFrom matcher [is not]
> > > recognising the mail to be send
> >
> > >    <mailet match="FetchedFrom=dylan.dk" class="ToProcessor">
> > >       <processor>fetchdylanprocessor</processor>
> > >    </mailet>
> >
> > FetchFrom doesn't match an e-mail address.  It matches the name
attribute
> of
> > the <fetch> tag, which defines the individual task.  See:
> > http://james.apache.org/fetchpop_configuration_2_1.html.
> >
> > --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>

RE: Sending to a domain while doing fetchpop

Posted by "Noel J. Bergman" <no...@devtech.com>.
Can you provide a more complete example, with context?

	--- Noel

-----Original Message-----
From: Marc de Oliveira [mailto:Marc@deOliveira.dk]
Sent: Wednesday, April 23, 2003 1:00
To: James Users List
Subject: Re: Sending to a domain while doing fetchpop


Yes, I know that. But to have the fetchpop working when "Handling a Subset
of a Domain's Mail" you need to have a second "HostIs" matcher to handle
outgoing mails:

        <mailet match="HostIs=dylan.dk" class="ToProcessor">
           <processor>fetchdylanprocessor</processor>
         </mailet>

 I believe this part is missing from the documentation.

Sincerely,
Marc

----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 23, 2003 3:36 AM
Subject: RE: Sending to a domain while doing fetchpop


> > It seems that the FetchedFrom matcher [is not]
> > recognising the mail to be send
>
> >    <mailet match="FetchedFrom=dylan.dk" class="ToProcessor">
> >       <processor>fetchdylanprocessor</processor>
> >    </mailet>
>
> FetchFrom doesn't match an e-mail address.  It matches the name attribute
of
> the <fetch> tag, which defines the individual task.  See:
> http://james.apache.org/fetchpop_configuration_2_1.html.
>
> --- Noel


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


Re: Sending to a domain while doing fetchpop

Posted by Marc de Oliveira <Ma...@deOliveira.dk>.
Yes, I know that. But to have the fetchpop working when "Handling a Subset
of a Domain's Mail" you need to have a second "HostIs" matcher to handle
outgoing mails:

        <mailet match="HostIs=dylan.dk" class="ToProcessor">
           <processor>fetchdylanprocessor</processor>
         </mailet>

 I believe this part is missing from the documentation.

Sincerely,
Marc

----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 23, 2003 3:36 AM
Subject: RE: Sending to a domain while doing fetchpop


> > It seems that the FetchedFrom matcher [is not]
> > recognising the mail to be send
>
> >    <mailet match="FetchedFrom=dylan.dk" class="ToProcessor">
> >       <processor>fetchdylanprocessor</processor>
> >    </mailet>
>
> FetchFrom doesn't match an e-mail address.  It matches the name attribute
of
> the <fetch> tag, which defines the individual task.  See:
> http://james.apache.org/fetchpop_configuration_2_1.html.
>
> --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>


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


RE: Sending to a domain while doing fetchpop

Posted by "Noel J. Bergman" <no...@devtech.com>.
> It seems that the FetchedFrom matcher [is not]
> recognising the mail to be send

>    <mailet match="FetchedFrom=dylan.dk" class="ToProcessor">
>       <processor>fetchdylanprocessor</processor>
>    </mailet>

FetchFrom doesn't match an e-mail address.  It matches the name attribute of
the <fetch> tag, which defines the individual task.  See:
http://james.apache.org/fetchpop_configuration_2_1.html.

	--- Noel


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


Re: Sending to a domain while doing fetchpop

Posted by Marc de Oliveira <Ma...@deOliveira.dk>.
I think I narrowed down the problem. It seems that the FetchedFrom matcher
suggested in the documentation is not recognising the mail to be send (which
I guess is ok). By adding a HostIs matcher the problem went away:

         <mailet match="FetchedFrom=dylan.dk" class="ToProcessor">
           <processor>fetchdylanprocessor</processor>
         </mailet>
         <mailet match="HostIs=dylan.dk" class="ToProcessor">
           <processor>fetchdylanprocessor</processor>
         </mailet>

It might be appropriate to include this in the documentation that explains
"Handling a Subset of a Domain's Mail" (under "FetchPop Configuration").

Thanks for the help, Noel!

Sincerely,
Marc

----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Tuesday, April 22, 2003 11:30 PM
Subject: RE: Sending to a domain while doing fetchpop


> It is important to learn how to read the spool manager's log, since it
tells
> you what is happening with the message.  In the log, I see this:
>
> spoolmanager: Processing Mail1051039499263-1 through transport
> spoolmanager.transport: Servicing mail: Mail1051039499263-1
> spoolmanager.transport: Checking Mail1051039499263-1 with
> org.apache.james.transport.matchers.RecipientIsLocal
> ... a whole bunch of other matchers ...
> spoolmanager.transport: Checking Mail1051039499263-1 with
> org.apache.james.transport.matchers.HostIsLocal
> spoolmanager.transport: Servicing Mail1051039499263-1 by Resend Mailet
> spoolmanager.transport: Checking Mail1051039499263-1 with
> org.apache.james.transport.matchers.HostIsLocal
> spoolmanager.transport: Servicing Mail1051039499263-1 by ToProcessor
Mailet
> spoolmanager: Processed Mail1051039499263-1 through transport
> spoolmanager: Result was error
>
> Apparently RecipientIsLocal did not resolve to true, but HostIsLocal
> resolved to true.  Then you have a Redirect mailet (we should fix the
> internal string to say "Redirect" instead of "Resend", and whatever else
it
> did, it passed the message through, so the ToProcessor mailet that sends
any
> unhandled local mail to the error processor handled it up.
>
> You have a configuration error.
>
> --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>


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


RE: Sending to a domain while doing fetchpop

Posted by "Noel J. Bergman" <no...@devtech.com>.
It is important to learn how to read the spool manager's log, since it tells
you what is happening with the message.  In the log, I see this:

spoolmanager: Processing Mail1051039499263-1 through transport
spoolmanager.transport: Servicing mail: Mail1051039499263-1
spoolmanager.transport: Checking Mail1051039499263-1 with
org.apache.james.transport.matchers.RecipientIsLocal
... a whole bunch of other matchers ...
spoolmanager.transport: Checking Mail1051039499263-1 with
org.apache.james.transport.matchers.HostIsLocal
spoolmanager.transport: Servicing Mail1051039499263-1 by Resend Mailet
spoolmanager.transport: Checking Mail1051039499263-1 with
org.apache.james.transport.matchers.HostIsLocal
spoolmanager.transport: Servicing Mail1051039499263-1 by ToProcessor Mailet
spoolmanager: Processed Mail1051039499263-1 through transport
spoolmanager: Result was error

Apparently RecipientIsLocal did not resolve to true, but HostIsLocal
resolved to true.  Then you have a Redirect mailet (we should fix the
internal string to say "Redirect" instead of "Resend", and whatever else it
did, it passed the message through, so the ToProcessor mailet that sends any
unhandled local mail to the error processor handled it up.

You have a configuration error.

	--- Noel


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


Re: Sending to a domain while doing fetchpop

Posted by Marc de Oliveira <Ma...@deOliveira.dk>.
I have turned on DEBUG on the spoolmanager log and the resulting output
related to mail 1051039499263-1 is attached to this mail. I have also
included the line from the mailet log file that indicates that the mail
generates an error and the mail itself (below).

I would really appreciate  some feedback that could help me resolve this
problem.

Sincerely,
Marc

mailet log file:
22/04/03 21:25:00 INFO  James.Mailet: ToRepository: Storing mail
Mail1051039499263-1 in file://var/mail/error/

the mail in "var/mail/error":
Return-Path: <Ma...@deOliveira.dk>
Received: from WEB ([192.168.1.37])
          by WEB (JAMES SMTP Server 2.1.3a1) with SMTP ID 978
          for <Ma...@dylan.dk>;
          Tue, 22 Apr 2003 21:24:59 +0200 (CEST)
Message-ID: <01...@WEB>
From: "Marc de Oliveira" <Ma...@deOliveira.dk>
To: "Marc de Oliveira" <Ma...@dylan.dk>
Subject: test 7
Date: Tue, 22 Apr 2003 21:24:58 +0200
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

test 7


----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Tuesday, April 22, 2003 6:07 PM
Subject: RE: Sending to a domain while doing fetchpop


> > I am not sure what I should be able to see in the log file. What I can
see
> > is the following from the spoolmanager, remotemanager and smtpserver log
> > files indicating that the mail was supposedly delivered for
marc@dylan.dk.
>
> Hardly.  All that I see in the logs is that the SMTP server spooled mail
for
> Marc@dylan.dk.  There is nothing else of use in the logs segments you
> posted.  Clearly you did not turn set environment.xml to have DEBUG for
the
> spool manager, for example.  Even so, if RemoteDelivery attempted to send
> mail to Marc@dylan.dk, you would see an entry in the mailet log.
>
> > Is there something I have overlooked?
>
> Well, so far we know that this has nothing to do with FetchPOP.  SMTP
shows
> that it spooled mail, and you are indicating that it wasn't delivered.
>
> --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>

RE: Sending to a domain while doing fetchpop

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I am not sure what I should be able to see in the log file. What I can see
> is the following from the spoolmanager, remotemanager and smtpserver log
> files indicating that the mail was supposedly delivered for marc@dylan.dk.

Hardly.  All that I see in the logs is that the SMTP server spooled mail for
Marc@dylan.dk.  There is nothing else of use in the logs segments you
posted.  Clearly you did not turn set environment.xml to have DEBUG for the
spool manager, for example.  Even so, if RemoteDelivery attempted to send
mail to Marc@dylan.dk, you would see an entry in the mailet log.

> Is there something I have overlooked?

Well, so far we know that this has nothing to do with FetchPOP.  SMTP shows
that it spooled mail, and you are indicating that it wasn't delivered.

	--- Noel


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


Re: Sending to a domain while doing fetchpop

Posted by Marc de Oliveira <Ma...@deOliveira.dk>.
I am not sure what I should be able to see in the log file. What I can see
is the following from the spoolmanager, remotemanager and smtpserver log
files indicating that the mail was supposedly delivered for marc@dylan.dk.
Yet, the external marc@dylan.dk account does not receive anything... :-(

spoolmanager log file:
22/04/03 17:27:06 INFO  spoolmanager: Matcher RecipientIs=marc@dylan.dk
instantiated.
22/04/03 17:27:06 INFO  spoolmanager: Mailet RemoteDelivery instantiated.

remotemanager log file:
22/04/03 17:27:06 INFO  remotemanager: Remote Manager Service uses default
thread group.
22/04/03 17:27:06 INFO  remotemanager: Remote Manager Service is running on:
WEB
22/04/03 17:27:06 INFO  remotemanager: Remote Manager Service handler hello
name is: WEB
22/04/03 17:27:06 INFO  remotemanager: Remote Manager Service handler
connection timeout is: 60000
22/04/03 17:27:06 INFO  remotemanager: Remote Manager Service started
plain:4555

smtpserver log file:
22/04/03 17:27:10 INFO  smtpserver: Connection from WEB (192.168.1.37)
22/04/03 17:27:11 INFO  smtpserver: Successfully spooled mail from
Marc@deOliveira.dk for [Marc@dylan.dk]

I did change the name of the outgoing repository but it does not seem to
make any difference:

         <mailet match="RecipientIs=marc@dylan.dk" class="RemoteDelivery">
           <outgoing>file://var/mail/dylan/</outgoing>
           <debug>true</debug>
         </mailet>

Currently I am not able to send mails to anybody on the dylan.dk domain. Is
there something I have overlooked?

Sincerely,
Marc
----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Sunday, April 20, 2003 7:10 PM
Subject: RE: Sending to a domain while doing fetchpop


> > <mailet match="FetchedFrom=dylan.dk" class="ToProcessor">
> >   <processor>fetchdylanprocessor</processor>
> > </mailet>
>
> > <processor name="fetchdylanprocessor">
> >   <mailet match="RecipientIs=ellen@dylan.dk" class="RemoteDelivery">
> >     <outgoing>file://var/mail/outgoing/</outgoing>
> >   </mailet>
> > </processor>
>
> > But this setup still does not deliver the mails to ellen@dylan.dk
> remotely.
>
> Is it recognizing the mail as being for ellen@dylan.dk?  You can turn on
> DEBUG for the spool manager in environment.xml to see which happens at
each
> matcher.
>
> Do not use the same outgoing spool as is used for the normal
RemoteDelivery
> mail.
>
> --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>


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


RE: Sending to a domain while doing fetchpop

Posted by "Noel J. Bergman" <no...@devtech.com>.
> <mailet match="FetchedFrom=dylan.dk" class="ToProcessor">
>   <processor>fetchdylanprocessor</processor>
> </mailet>

> <processor name="fetchdylanprocessor">
>   <mailet match="RecipientIs=ellen@dylan.dk" class="RemoteDelivery">
>     <outgoing>file://var/mail/outgoing/</outgoing>
>   </mailet>
> </processor>

> But this setup still does not deliver the mails to ellen@dylan.dk
remotely.

Is it recognizing the mail as being for ellen@dylan.dk?  You can turn on
DEBUG for the spool manager in environment.xml to see which happens at each
matcher.

Do not use the same outgoing spool as is used for the normal RemoteDelivery
mail.

	--- Noel


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


Sending to a domain while doing fetchpop

Posted by Marc de Oliveira <Ma...@deOliveira.dk>.
I am reading mails from an external server using fetchpop it seems to work
just fine. But I just realized that when sending mails to other accounts on
that external server James tries to handle them. That results in the message
"We were unable to deliver the attached message because of an error in the
mail server." obviously because James does not have a local account for that
user.

The situation seem to be described in the James documentation but I can't
seem to quite understand how I should make it work.

The documentation claims that one must redirect the fetchpop mails to a
seperate processor, like this:

<mailet match="FetchedFrom=dylan.dk" class="ToProcessor">

<processor>fetchdylanprocessor</processor>

</mailet>

<processor name="fetchdylanprocessor">

<mailet match="RecipientIs=ellen@dylan.dk" class="RemoteDelivery">

<outgoing>file://var/mail/outgoing/</outgoing>

</mailet>

</processor>



But this setup still does not deliver the mails to ellen@dylan.dk remotely.
I must be missing something. Can anybody help me out?

Sincerely,

Marc de Oliveira




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


RE: Ghost Mails

Posted by "Noel J. Bergman" <no...@devtech.com>.
Mail.GHOST is an indicator that the message is to be deleted.

	--- Noel


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


Ghost Mails

Posted by ak...@eurosoftindia.com.
hi

i want to know what is this Ghost mail is.......as I see the logs of
spoolmanger i come across the ghost mail.The related problem is that when
I start the fetchPop utility some of the mails are fetched and get
tranfered to the respective local account but some mails are lost in this
transition i know they are  not spam mails but is it that they are ghost
mails that is y or any other reason.......

THE LOG READ IN THE SPOOLMANAGER LOG FILE IS

22/12/02 15:02:35 DEBUG spoolmanager: Processed Mail1040549486860-1
through transport
22/12/02 15:02:35 DEBUG spoolmanager: Result was ghost

Please Suggest

Thanks & Bye
Akshay




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


Re: config.xml dtd

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Thought so, any reason there is not? I keep misspelling things or doing 
them in the wrong order and getting ugly runtime errors because of that. 
A DTD would help greatly.

Stephan


Noel J. Bergman wrote:

>>can I download the DTD for config.xml somewhere?
>>    
>>
>
>There isn't one.
>
>	--- Noel
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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


RE: config.xml dtd

Posted by "Noel J. Bergman" <no...@devtech.com>.
> can I download the DTD for config.xml somewhere?

There isn't one.

	--- Noel

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


config.xml dtd

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Hi list,
can I download the DTD for config.xml somewhere?

Stephan



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


Re: How to forward a mail from a Mailet

Posted by ak...@eurosoftindia.com.
hi

i want to know what is this Ghost mail is.......as I see the logs of
spoolmanger i come across the ghost mail.The related problem is that when
I start the fetchPop utility some of the mails are fetched and get
tranfered to the respective local account but some mails are lost in this
transition i know they are  not spam mails but is it that they are ghost
mails that is y or any other reason.......

THE LOG READ IN THE SPOOLMANAGER LOG FILE IS

22/12/02 15:02:35 DEBUG spoolmanager: Processed Mail1040549486860-1
through transport
22/12/02 15:02:35 DEBUG spoolmanager: Result was ghost

Please Suggest

Thanks & Bye
Akshay





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


RE: How to forward a mail from a Mailet

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I have something slightly different in mind

I just wanted you to see the forwarding mechanism used in that code.

Actually, a lot of the existing mailets, including JDBCVirtualUserTable,
should be redone to subclass Redirect.  Redirect needs a bit of work from
its current state, but otherwise that consolidates the code into one place.

Likewise, JDBCVirtualUserTable and Robert Cadena's new virtual user table
class could share a common base.  The distinction between them would then be
in the actual mapping method.

	--- Noel


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


Re: How to forward a mail from a Mailet

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Hi Noel,
thanks for the tip. I have something slightly different in mind, but I 
am looking at your code and certainly learned something from it.

Stephan

Noel J. Bergman wrote:

>>I try to let my Mailet forward a mail based on a mapping.
>>    
>>
>
>See JDBCVirtualUserTable.
>
>	--- Noel
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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


RE: How to forward a mail from a Mailet

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I try to let my Mailet forward a mail based on a mapping.

See JDBCVirtualUserTable.

	--- Noel


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


How to forward a mail from a Mailet

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Hi list,
I try to let my Mailet forward a mail based on a mapping.
I am stuck since hours and running out of ideas :-(
What I did manage is to create a new message with the contents of the 
old one and send that, but then I would have to delete the old one and 
don't know how to do that?

Stephan



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


RE : James Configuration Tool

Posted by eric aboudaram <er...@aboudaram.net>.
Great
That is cool
But could you make something to create user, to manage the users?
Thanks

And wich webmail work fine with James, 
under windows with java 1.4?




-----Message d'origine-----
De : Robert Cadena [mailto:robert@machine501.com] 
Envoyé : jeudi 17 avril 2003 08:08
À : 'James Users List'
Objet : James Configuration Tool


Hi,

I just posted both binary and source distribution for a visual james
configuration tool.  Your comments are welcome:

http://www.machine501.com/projects/JamesConfigTool/index.html

/r


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



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


James Configuration Tool

Posted by Robert Cadena <ro...@machine501.com>.
Hi,

I just posted both binary and source distribution for a visual james
configuration tool.  Your comments are welcome:

http://www.machine501.com/projects/JamesConfigTool/index.html

/r


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


Re: What do these codes do?

Posted by Marko Kranjcic <ml...@wave-tech.com>.
Sorry for last email...
Mistaken replay...


Marko Kranjcic

e-mail: marko@wave-tech.com
web: www.wave-tech.com
ICQ # : 43046169
Office: +385 1 36 44 108
Cell: +385 91 205 32 35


----- Original Message -----
From: "joni santoso" <st...@plasa.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 16, 2003 12:18 PM
Subject: What do these codes do?


> Hi,
>
> I downloaded these codes somewhere.
>
> I tried to compile them but javac couldn't find the
> org.apache.mailet. How to enable it?
>
> And what  do these codes do?
>
> Regards,
>
> import org.apache.mailet.*;
>
> public class SchedulingRequestMatcher extends
> GenericRecipientMatcher {
>
>      public boolean matchRecipient(MailAddress recipient)
> {
>          if
> (recipient.getUser().startsWith("request-available-")) {
>              return true;
>          }
>          if
> (recipient.getUser().startsWith("request-unavailable-")) {
>              return true;
>          }
>          return false;
>      }
>
> }
>
> --------------------------
>
> import java.sql.*;
> import java.util.*;
> import javax.mail.*;
>
> import org.apache.mailet.*;
>
> //Avalon specific imports
> import
> org.apache.avalon.cornerstone.services.datasource.DataSourceSelector;
> import
> org.apache.avalon.excalibur.datasource.DataSourceComponent;
> import org.apache.james.Constants;
> import
> org.apache.avalon.framework.component.ComponentManager;
>
> public class SchedulingRequestMailet extends GenericMailet
> {
>
>      protected DataSourceComponent datasource;
>      protected DataSourceSelector datasources;
>
>      public void init() throws MessagingException {
>          try {
>              //Get a reference to the Avalon component
> manager
>              ComponentManager componentManager =
>
(ComponentManager)getMailetContext().getAttribute(Constants.AVALON_COMPONENT
_MANAGER);
>              // Get the list of possible data sources
>              System.out.println("mailet: " +
> componentManager);
>              datasources =
> (DataSourceSelector)componentManager.lookup(DataSourceSelector.ROLE);
>              // Get the data-source we need
>              datasource =
> (DataSourceComponent)datasources.select("maildb");
>          } catch (Exception e) {
>              throw new MessagingException("Error getting
> datasource", e);
>          }
>      }
>
>      public void service(Mail mail) throws
> MessagingException {
>          try {
>              Collection recipients = mail.getRecipients();
>              if (recipients.size() > 1) {
>                  //Send error message to sender
>                  return;
>              }
>              MailAddress recipient =
> (MailAddress)recipients.iterator().next();
>              //Determine whether the seller is available
>              boolean sellerAvailable =
> recipient.getUser().
>                 startsWith("request-available-");
>              //Determine the request ID in question
>              String requestID = recipient.getUser();
>              int pos = requestID.lastIndexOf("-");
>              requestID = requestID.substring(pos + 1);
>              //Get the seller's email address
>              String sellerAddress =
> mail.getSender().toString();
>
>              Connection conn = datasource.getConnection();
>              String sql = "UPDATE SellerRequest SET
> available = ? WHERE seller_email = ? AND request_id = ?";
>              PreparedStatement stmt =
> conn.prepareStatement(sql);
>              stmt.setBoolean(1, sellerAvailable);
>              stmt.setString(2, sellerAddress);
>              stmt.setInt(3, Integer.parseInt(requestID));
>              stmt.execute();
>              stmt.close();
>              conn.close();
>              mail.setState(Mail.GHOST);
>          } catch (SQLException sqle) {
>              throw new
> MessagingException(sqle.toString());
>          }
>      }
>
> }
>
============================================================================
===============
> "Sudahkah Anda mencoba PlasaMessenger, aplikasi chat yg bisa digunakan
untuk bertukar file, download di http://im.plasa.com"
> "Malas antri buat mendapatkan print-out tagihan telepon ? Klik aja
http://billinfo2.plasa.com"
>
============================================================================
===============
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>



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


Re: how to expand a james.sar file

Posted by Miroslav Nachev <mi...@space-comm.com>.
   Hi,

   JAMES.SAR is an ZIP file which can be extracted with WinZIP,
WinRAR, etc.


   Best Regards,
   Miroslav Nachev



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


how to expand a james.sar file

Posted by ak...@eurosoftindia.com.
hi

i want to know how to expand a james.sar file

bye
akshay

> You have to expand the james.sar file and copy the contained JAR files
> (I needed all of them) into your classpath. I just wrote a tiny ANT
> task, like 'Take all jar files from the lib directory and compile my
> package and make it a jar file'.
>
> Stephan
>
> joni santoso wrote:
>
>> Hi,
>>
>> I downloaded these codes somewhere.
>>
>> I tried to compile them but javac couldn't find the org.apache.mailet.
>>  How to enable it?
>>
>> And what  do these codes do?
>>
>> Regards,
>>
>> import org.apache.mailet.*;
>>
>> public class SchedulingRequestMatcher extends GenericRecipientMatcher
>> {
>>
>>     public boolean matchRecipient(MailAddress recipient) {
>>         if (recipient.getUser().startsWith("request-available-")) {
>>             return true;
>>         }
>>         if (recipient.getUser().startsWith("request-unavailable-")) {
>>             return true;
>>         }
>>         return false;
>>     }
>>
>> }
>>
>> --------------------------
>>
>> import java.sql.*;
>> import java.util.*;
>> import javax.mail.*;
>>
>> import org.apache.mailet.*;
>>
>> //Avalon specific imports
>> import
>> org.apache.avalon.cornerstone.services.datasource.DataSourceSelector;
>> import org.apache.avalon.excalibur.datasource.DataSourceComponent;
>> import org.apache.james.Constants;
>> import org.apache.avalon.framework.component.ComponentManager;
>>
>> public class SchedulingRequestMailet extends GenericMailet {
>>
>>     protected DataSourceComponent datasource;
>>     protected DataSourceSelector datasources;
>>
>>     public void init() throws MessagingException {
>>         try {
>>             //Get a reference to the Avalon component manager
>>             ComponentManager componentManager =
>> (ComponentManager)getMailetContext().getAttribute(Constants.AVALON_COMPONENT_MANAGER);
>>
>>
>>             // Get the list of possible data sources
>>             System.out.println("mailet: " + componentManager);
>>             datasources =
>> (DataSourceSelector)componentManager.lookup(DataSourceSelector.ROLE);
>>             // Get the data-source we need
>>             datasource =
>> (DataSourceComponent)datasources.select("maildb");
>>         } catch (Exception e) {
>>             throw new MessagingException("Error getting datasource",
>> e);
>>         }
>>     }
>>
>>     public void service(Mail mail) throws MessagingException {
>>         try {
>>             Collection recipients = mail.getRecipients();
>>             if (recipients.size() > 1) {
>>                 //Send error message to sender
>>                 return;
>>             }
>>             MailAddress recipient =
>> (MailAddress)recipients.iterator().next();
>>             //Determine whether the seller is available
>>             boolean sellerAvailable = recipient.getUser().
>>                startsWith("request-available-");
>>             //Determine the request ID in question
>>             String requestID = recipient.getUser();
>>             int pos = requestID.lastIndexOf("-");
>>             requestID = requestID.substring(pos + 1);
>>             //Get the seller's email address
>>             String sellerAddress = mail.getSender().toString();
>>
>>             Connection conn = datasource.getConnection();
>>             String sql = "UPDATE SellerRequest SET available = ? WHERE
>>
>> seller_email = ? AND request_id = ?";
>>             PreparedStatement stmt = conn.prepareStatement(sql);
>> stmt.setBoolean(1, sellerAvailable);
>>             stmt.setString(2, sellerAddress);
>>             stmt.setInt(3, Integer.parseInt(requestID));
>>             stmt.execute();
>>             stmt.close();
>>             conn.close();
>>             mail.setState(Mail.GHOST);
>>         } catch (SQLException sqle) {
>>             throw new MessagingException(sqle.toString());
>>         }
>>     }
>>
>> }
>> ===========================================================================================
>> "Sudahkah Anda mencoba PlasaMessenger, aplikasi chat yg bisa digunakan
>>  untuk bertukar file, download di http://im.plasa.com"
>> "Malas antri buat mendapatkan print-out tagihan telepon ? Klik aja
>> http://billinfo2.plasa.com"
>> ===========================================================================================
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org For
>> additional commands, e-mail: james-user-help@jakarta.apache.org
>>
>>
>
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org




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


Re: What do these codes do?

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Hi Carlos,
that sounds very annoying?
As you can read here: http://james.apache.org/custom_mailet_2_1.html
that is not necessary.

If you are not in a hurry, you might want to wait a day or two. I am 
currently writing an extended Tutorial about the usage of James and am 
focusing on writing Mailets.

Stephan


Carlos Cortés del Valle wrote:

>>You have to expand the james.sar file and copy the contained JAR files
>>(I needed all of them) into your classpath. I just wrote a tiny ANT
>>task, like 'Take all jar files from the lib directory and compile my
>>package and make it a jar file'.
>>    
>>
>I downloaded the source code and my own code is in the same directory. I
>build the James.jar library and re-write it when I make changes.
>
>
>What these codes do is in
>http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-jamesmail-p2.html.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>  
>



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


Re: What do these codes do?

Posted by Carlos Cortés del Valle <cc...@redauto.com>.
>You have to expand the james.sar file and copy the contained JAR files
>(I needed all of them) into your classpath. I just wrote a tiny ANT
>task, like 'Take all jar files from the lib directory and compile my
>package and make it a jar file'.
I downloaded the source code and my own code is in the same directory. I
build the James.jar library and re-write it when I make changes.


What these codes do is in
http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-jamesmail-p2.html.



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


Re: What do these codes do?

Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
You have to expand the james.sar file and copy the contained JAR files 
(I needed all of them) into your classpath. I just wrote a tiny ANT 
task, like 'Take all jar files from the lib directory and compile my 
package and make it a jar file'.

Stephan

joni santoso wrote:

> Hi,
>
> I downloaded these codes somewhere.
>
> I tried to compile them but javac couldn't find the org.apache.mailet. 
> How to enable it?
>
> And what  do these codes do?
>
> Regards,
>
> import org.apache.mailet.*;
>
> public class SchedulingRequestMatcher extends GenericRecipientMatcher {
>
>     public boolean matchRecipient(MailAddress recipient) {
>         if (recipient.getUser().startsWith("request-available-")) {
>             return true;
>         }
>         if (recipient.getUser().startsWith("request-unavailable-")) {
>             return true;
>         }
>         return false;
>     }
>
> }
>
> --------------------------
>
> import java.sql.*;
> import java.util.*;
> import javax.mail.*;
>
> import org.apache.mailet.*;
>
> //Avalon specific imports
> import 
> org.apache.avalon.cornerstone.services.datasource.DataSourceSelector;
> import org.apache.avalon.excalibur.datasource.DataSourceComponent;
> import org.apache.james.Constants;
> import org.apache.avalon.framework.component.ComponentManager;
>
> public class SchedulingRequestMailet extends GenericMailet {
>
>     protected DataSourceComponent datasource;
>     protected DataSourceSelector datasources;
>
>     public void init() throws MessagingException {
>         try {
>             //Get a reference to the Avalon component manager
>             ComponentManager componentManager = 
> (ComponentManager)getMailetContext().getAttribute(Constants.AVALON_COMPONENT_MANAGER); 
>
>             // Get the list of possible data sources
>             System.out.println("mailet: " + componentManager);
>             datasources = 
> (DataSourceSelector)componentManager.lookup(DataSourceSelector.ROLE);
>             // Get the data-source we need
>             datasource = 
> (DataSourceComponent)datasources.select("maildb");
>         } catch (Exception e) {
>             throw new MessagingException("Error getting datasource", e);
>         }
>     }
>
>     public void service(Mail mail) throws MessagingException {
>         try {
>             Collection recipients = mail.getRecipients();
>             if (recipients.size() > 1) {
>                 //Send error message to sender
>                 return;
>             }
>             MailAddress recipient = 
> (MailAddress)recipients.iterator().next();
>             //Determine whether the seller is available
>             boolean sellerAvailable = recipient.getUser().
>                startsWith("request-available-");
>             //Determine the request ID in question
>             String requestID = recipient.getUser();
>             int pos = requestID.lastIndexOf("-");
>             requestID = requestID.substring(pos + 1);
>             //Get the seller's email address
>             String sellerAddress = mail.getSender().toString();
>
>             Connection conn = datasource.getConnection();
>             String sql = "UPDATE SellerRequest SET available = ? WHERE 
> seller_email = ? AND request_id = ?";
>             PreparedStatement stmt = conn.prepareStatement(sql);
>             stmt.setBoolean(1, sellerAvailable);
>             stmt.setString(2, sellerAddress);
>             stmt.setInt(3, Integer.parseInt(requestID));
>             stmt.execute();
>             stmt.close();
>             conn.close();
>             mail.setState(Mail.GHOST);
>         } catch (SQLException sqle) {
>             throw new MessagingException(sqle.toString());
>         }
>     }
>
> }
> ===========================================================================================
> "Sudahkah Anda mencoba PlasaMessenger, aplikasi chat yg bisa digunakan 
> untuk bertukar file, download di http://im.plasa.com"
> "Malas antri buat mendapatkan print-out tagihan telepon ? Klik aja 
> http://billinfo2.plasa.com"
> ===========================================================================================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>



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


Re: What do these codes do?

Posted by Marko Kranjcic <ml...@wave-tech.com>.
Darko


Marko Kranjcic

e-mail: marko@wave-tech.com
web: www.wave-tech.com
ICQ # : 43046169
Office: +385 1 36 44 108
Cell: +385 91 205 32 35


----- Original Message -----
From: "joni santoso" <st...@plasa.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 16, 2003 12:18 PM
Subject: What do these codes do?


> Hi,
>
> I downloaded these codes somewhere.
>
> I tried to compile them but javac couldn't find the
> org.apache.mailet. How to enable it?
>
> And what  do these codes do?
>
> Regards,
>
> import org.apache.mailet.*;
>
> public class SchedulingRequestMatcher extends
> GenericRecipientMatcher {
>
>      public boolean matchRecipient(MailAddress recipient)
> {
>          if
> (recipient.getUser().startsWith("request-available-")) {
>              return true;
>          }
>          if
> (recipient.getUser().startsWith("request-unavailable-")) {
>              return true;
>          }
>          return false;
>      }
>
> }
>
> --------------------------
>
> import java.sql.*;
> import java.util.*;
> import javax.mail.*;
>
> import org.apache.mailet.*;
>
> //Avalon specific imports
> import
> org.apache.avalon.cornerstone.services.datasource.DataSourceSelector;
> import
> org.apache.avalon.excalibur.datasource.DataSourceComponent;
> import org.apache.james.Constants;
> import
> org.apache.avalon.framework.component.ComponentManager;
>
> public class SchedulingRequestMailet extends GenericMailet
> {
>
>      protected DataSourceComponent datasource;
>      protected DataSourceSelector datasources;
>
>      public void init() throws MessagingException {
>          try {
>              //Get a reference to the Avalon component
> manager
>              ComponentManager componentManager =
>
(ComponentManager)getMailetContext().getAttribute(Constants.AVALON_COMPONENT
_MANAGER);
>              // Get the list of possible data sources
>              System.out.println("mailet: " +
> componentManager);
>              datasources =
> (DataSourceSelector)componentManager.lookup(DataSourceSelector.ROLE);
>              // Get the data-source we need
>              datasource =
> (DataSourceComponent)datasources.select("maildb");
>          } catch (Exception e) {
>              throw new MessagingException("Error getting
> datasource", e);
>          }
>      }
>
>      public void service(Mail mail) throws
> MessagingException {
>          try {
>              Collection recipients = mail.getRecipients();
>              if (recipients.size() > 1) {
>                  //Send error message to sender
>                  return;
>              }
>              MailAddress recipient =
> (MailAddress)recipients.iterator().next();
>              //Determine whether the seller is available
>              boolean sellerAvailable =
> recipient.getUser().
>                 startsWith("request-available-");
>              //Determine the request ID in question
>              String requestID = recipient.getUser();
>              int pos = requestID.lastIndexOf("-");
>              requestID = requestID.substring(pos + 1);
>              //Get the seller's email address
>              String sellerAddress =
> mail.getSender().toString();
>
>              Connection conn = datasource.getConnection();
>              String sql = "UPDATE SellerRequest SET
> available = ? WHERE seller_email = ? AND request_id = ?";
>              PreparedStatement stmt =
> conn.prepareStatement(sql);
>              stmt.setBoolean(1, sellerAvailable);
>              stmt.setString(2, sellerAddress);
>              stmt.setInt(3, Integer.parseInt(requestID));
>              stmt.execute();
>              stmt.close();
>              conn.close();
>              mail.setState(Mail.GHOST);
>          } catch (SQLException sqle) {
>              throw new
> MessagingException(sqle.toString());
>          }
>      }
>
> }
>
============================================================================
===============
> "Sudahkah Anda mencoba PlasaMessenger, aplikasi chat yg bisa digunakan
untuk bertukar file, download di http://im.plasa.com"
> "Malas antri buat mendapatkan print-out tagihan telepon ? Klik aja
http://billinfo2.plasa.com"
>
============================================================================
===============
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>



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


What do these codes do?

Posted by joni santoso <st...@plasa.com>.
Hi,

I downloaded these codes somewhere.

I tried to compile them but javac couldn't find the 
org.apache.mailet. How to enable it?

And what  do these codes do?

Regards,

import org.apache.mailet.*;

public class SchedulingRequestMatcher extends 
GenericRecipientMatcher {

     public boolean matchRecipient(MailAddress recipient) 
{
         if 
(recipient.getUser().startsWith("request-available-")) {
             return true;
         }
         if 
(recipient.getUser().startsWith("request-unavailable-")) {
             return true;
         }
         return false;
     }

}

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

import java.sql.*;
import java.util.*;
import javax.mail.*;

import org.apache.mailet.*;

//Avalon specific imports
import 
org.apache.avalon.cornerstone.services.datasource.DataSourceSelector;
import 
org.apache.avalon.excalibur.datasource.DataSourceComponent;
import org.apache.james.Constants;
import 
org.apache.avalon.framework.component.ComponentManager;

public class SchedulingRequestMailet extends GenericMailet 
{

     protected DataSourceComponent datasource;
     protected DataSourceSelector datasources;

     public void init() throws MessagingException {
         try {
             //Get a reference to the Avalon component 
manager
             ComponentManager componentManager = 
(ComponentManager)getMailetContext().getAttribute(Constants.AVALON_COMPONENT_MANAGER);
             // Get the list of possible data sources
             System.out.println("mailet: " + 
componentManager);
             datasources = 
(DataSourceSelector)componentManager.lookup(DataSourceSelector.ROLE);
             // Get the data-source we need
             datasource = 
(DataSourceComponent)datasources.select("maildb");
         } catch (Exception e) {
             throw new MessagingException("Error getting 
datasource", e);
         }
     }

     public void service(Mail mail) throws 
MessagingException {
         try {
             Collection recipients = mail.getRecipients();
             if (recipients.size() > 1) {
                 //Send error message to sender
                 return;
             }
             MailAddress recipient = 
(MailAddress)recipients.iterator().next();
             //Determine whether the seller is available
             boolean sellerAvailable = 
recipient.getUser().
                startsWith("request-available-");
             //Determine the request ID in question
             String requestID = recipient.getUser();
             int pos = requestID.lastIndexOf("-");
             requestID = requestID.substring(pos + 1);
             //Get the seller's email address
             String sellerAddress = 
mail.getSender().toString();

             Connection conn = datasource.getConnection();
             String sql = "UPDATE SellerRequest SET 
available = ? WHERE seller_email = ? AND request_id = ?";
             PreparedStatement stmt = 
conn.prepareStatement(sql);
             stmt.setBoolean(1, sellerAvailable);
             stmt.setString(2, sellerAddress);
             stmt.setInt(3, Integer.parseInt(requestID));
             stmt.execute();
             stmt.close();
             conn.close();
             mail.setState(Mail.GHOST);
         } catch (SQLException sqle) {
             throw new 
MessagingException(sqle.toString());
         }
     }

}
===========================================================================================
"Sudahkah Anda mencoba PlasaMessenger, aplikasi chat yg bisa digunakan untuk bertukar file, download di http://im.plasa.com"
"Malas antri buat mendapatkan print-out tagihan telepon ? Klik aja http://billinfo2.plasa.com"
===========================================================================================

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


Re: Using James behind a firewall

Posted by Hontvari Jozsef <ho...@solware.com>.
http://james.apache.org  / James 2.1 Documentation / FAQ

----- Original Message -----
From: "joni santoso" <st...@plasa.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Tuesday, April 15, 2003 8:56 AM
Subject: Re: Using James behind a firewall


> Hi,
>
> I need the guides for setting up James to enable sending
> emails to outside.
>
> Thank you.
>
> On Tue, 15 Apr 2003 00:46:52 -0400
>   "Noel J. Bergman" <no...@devtech.com> wrote:
> >> IPtables takes any packets destined for port 25 on that
> >>ip address,
> >> and translates them to a private ip address on the
> >>192.168.1.x network.
> >
> >OK.  And James is running on that 192.168.1.x address?  I
> >notice that you
> >mentioned redirecting SMTP.  Are you also redirecting
> >POP3 connections?
> >
> >> The problem I'm seeing is that I can't seem to get James
> >>to accept the
> >> incoming connections properly.
> >
> >Very non-descriptive.  Please define "accept properly" in
> >operational terms.
> >What is (not) happening?
> >
> >> I actually need to be able to communicate with James,
> >>using it
> >> for SMTP / POP3 from the private network, and POP3 from
> >> outside my firewall.  I have an internal and external
> >>DNS.
> >
> >Lots of people use James that way.
> >
> >You might also want to see the Smart Host example that
> >Bill Parducci posted:
> >http://nagoya.apache.org/wiki/apachewiki.cgi?James/SmartOrSecondaryHost.
> >
> > --- Noel
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> >james-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail:
> >james-user-help@jakarta.apache.org
> >
>
> Regards,
>
> Joni
>
============================================================================
===============
> "Sudahkah Anda mencoba PlasaMessenger, aplikasi chat yg bisa digunakan
untuk bertukar file, download di http://im.plasa.com"
> "Malas antri buat mendapatkan print-out tagihan telepon ? Klik aja
http://billinfo2.plasa.com"
>
============================================================================
===============
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>


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


Re: Using James behind a firewall

Posted by joni santoso <st...@plasa.com>.
Hi,

I need the guides for setting up James to enable sending 
emails to outside.

Thank you.

On Tue, 15 Apr 2003 00:46:52 -0400
  "Noel J. Bergman" <no...@devtech.com> wrote:
>> IPtables takes any packets destined for port 25 on that 
>>ip address,
>> and translates them to a private ip address on the 
>>192.168.1.x network.
>
>OK.  And James is running on that 192.168.1.x address?  I 
>notice that you
>mentioned redirecting SMTP.  Are you also redirecting 
>POP3 connections?
>
>> The problem I'm seeing is that I can't seem to get James 
>>to accept the
>> incoming connections properly.
>
>Very non-descriptive.  Please define "accept properly" in 
>operational terms.
>What is (not) happening?
>
>> I actually need to be able to communicate with James, 
>>using it
>> for SMTP / POP3 from the private network, and POP3 from
>> outside my firewall.  I have an internal and external 
>>DNS.
>
>Lots of people use James that way.
>
>You might also want to see the Smart Host example that 
>Bill Parducci posted:
>http://nagoya.apache.org/wiki/apachewiki.cgi?James/SmartOrSecondaryHost.
>
>	--- Noel
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: 
>james-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: 
>james-user-help@jakarta.apache.org
>

Regards,

Joni
===========================================================================================
"Sudahkah Anda mencoba PlasaMessenger, aplikasi chat yg bisa digunakan untuk bertukar file, download di http://im.plasa.com"
"Malas antri buat mendapatkan print-out tagihan telepon ? Klik aja http://billinfo2.plasa.com"
===========================================================================================

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


RE: Using James behind a firewall

Posted by "Noel J. Bergman" <no...@devtech.com>.
> IPtables takes any packets destined for port 25 on that ip address,
> and translates them to a private ip address on the 192.168.1.x network.

OK.  And James is running on that 192.168.1.x address?  I notice that you
mentioned redirecting SMTP.  Are you also redirecting POP3 connections?

> The problem I'm seeing is that I can't seem to get James to accept the
> incoming connections properly.

Very non-descriptive.  Please define "accept properly" in operational terms.
What is (not) happening?

> I actually need to be able to communicate with James, using it
> for SMTP / POP3 from the private network, and POP3 from
> outside my firewall.  I have an internal and external DNS.

Lots of people use James that way.

You might also want to see the Smart Host example that Bill Parducci posted:
http://nagoya.apache.org/wiki/apachewiki.cgi?James/SmartOrSecondaryHost.

	--- Noel


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


Using James behind a firewall

Posted by "Robert J. Lebowitz" <le...@finaltouch.com>.
I've been doing this with sendmail for many years, but now I'm experimenting
with James, and can't quite seem to get it to work correctly.

I run iptables to filter out unwanted requests to my servers on a private
LAN.  My mail server has an MX entry for a legitimate IP address.  IPtables
takes any packets destined for port 25 on that ip address, and translates
them to a private ip address on the 192.168.1.x network.

The problem I'm seeing is that I can't seem to get James to accept the
incoming connections properly.  I actually need to be able to communicate
with James, using it for SMTP / POP3 from the private network, and POP3 from
outside my firewall.  I have an internal and external DNS.

Can someone explain how to configure James for this purpose?

Rob



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


RE: Outlook

Posted by Mike Danifo <md...@mindspring.com>.
Hello!
I just read this thread and had to add that I am also seeing similar
problems with Outlook (office XP).
I am using ths same JDK, and when I enable debigging, the same trace
messages.
I have at least found that, since I am using Norton AntiVirus 2002 to
scan incoming and outgoing messages, the only soultion is to disable
email scanning altogther, which I'd rather not do. I tried disabling the
"Protect Against Timeout" norton setting, but it has no effect.

Any ideas?

-Mike

-----Original Message-----
From: Noel J. Bergman [mailto:noel@devtech.com] 
Sent: Monday, April 14, 2003 10:57 PM
To: James Users List; robert@machine501.com
Subject: RE: Outlook


> Well, the weird thing is that it only happens with outlook.  Not with 
> any other app :(  but I'll give the jvm stuff a try and report back.

Definitely weird, but others aren't seeing it, and you can apparently
reproduce it consistently.  Actually, that's good.  Consistent things
are easier to isolate and fix, regardless of the cause.

	--- Noel


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


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


RE: Outlook

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Well, the weird thing is that it only happens with outlook.  Not with any
> other app :(  but I'll give the jvm stuff a try and report back.

Definitely weird, but others aren't seeing it, and you can apparently
reproduce it consistently.  Actually, that's good.  Consistent things are
easier to isolate and fix, regardless of the cause.

	--- Noel


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


RE: Outlook

Posted by Robert Cadena <ro...@machine501.com>.
Well, the weird thing is that it only happens with outlook.  Not with any
other app :(  but I'll give the jvm stuff a try and report back.

/r

-----Original Message-----
From: Noel J. Bergman [mailto:noel@devtech.com] 
Sent: Monday, April 14, 2003 7:04 PM
To: James Users List; robert@machine501.com
Subject: RE: Outlook


> I'm running JVM 1.4.1_01-b01

The bug I recalled
(http://developer.java.sun.com/developer/bugParade/bugs/4329985.html) was
earlier in 1.3.  There was another problem with soTimeout on Win32, as well.
However, I'm guessing that it probably isn't a JRE error, but that the
socket is being closed before the QUIT command is sent, which is causing
readLine() to return null.  The question would be why.

According to Sun, "EOF is only reported on an InputStream from a Socket when
the peer shuts down or closes the socket such that nothing more will ever be
written to the socket by the remote process and nothing more will ever be
received and made readable on the Socket instance via the InputStream."

[Kenny: depending upon which tool he picks, could you tell him how to sniff
for a FIN packet?]

I don't know if it would help, but you could give 1.4.1_02-fcs or 1.4.2 beta
a try.  Should not be necessary, as others are using 1.4.1_01 on Windows
with Outlook successfully, but worth a shot.

	--- Noel


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



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


RE: Outlook

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I'm running JVM 1.4.1_01-b01

The bug I recalled
(http://developer.java.sun.com/developer/bugParade/bugs/4329985.html) was
earlier in 1.3.  There was another problem with soTimeout on Win32, as well.
However, I'm guessing that it probably isn't a JRE error, but that the
socket is being closed before the QUIT command is sent, which is causing
readLine() to return null.  The question would be why.

According to Sun, "EOF is only reported on an InputStream from a Socket when
the peer shuts down or closes the socket such that nothing more will ever be
written to the socket by the remote process and nothing more will ever be
received and made readable on the Socket instance via the InputStream."

[Kenny: depending upon which tool he picks, could you tell him how to sniff
for a FIN packet?]

I don't know if it would help, but you could give 1.4.1_02-fcs or 1.4.2 beta
a try.  Should not be necessary, as others are using 1.4.1_01 on Windows
with Outlook successfully, but worth a shot.

	--- Noel


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


RE: Outlook

Posted by Robert Cadena <ro...@machine501.com>.
I'm running

	JVM 1.4.1_01-b01

/r

-----Original Message-----
From: Noel J. Bergman [mailto:noel@devtech.com] 
Sent: Monday, April 14, 2003 5:30 PM
To: James Users List
Subject: RE: Outlook


This section:

14/04/03 15:03:03 DEBUG smtpserver: Command received: DATA 14/04/03 15:03:03
DEBUG smtpserver: Sent: 354 Ok Send data ending with <CRLF>.<CRLF> 14/04/03
15:03:36 DEBUG smtpserver: Successfully spooled mail )Mail1050357816238-1
from robert@factorysouth.com for [robert@factorysouth.com] 14/04/03 15:03:36
DEBUG smtpserver: Sent: 250 Message received 14/04/03 15:03:36 DEBUG
smtpserver: Calling reset() default Worker #18 14/04/03 15:03:36 DEBUG
smtpserver: Calling stop() default Worker #18 14/04/03 15:03:36 DEBUG
smtpserver: Closing socket.

bothers me.  There is no QUIT command.  There are only two ways out of the
processing loop: QUIT, and this bit of code in parseCommand:

        if (rawCommand == null) {
            return false;
        }

which would cause the handler to terminate the connection if
readCommandLine():

    final String readCommandLine() throws IOException {
        String commandLine = inReader.readLine();
        if (commandLine != null) {
            commandLine = commandLine.trim();
        }
        return commandLine;
    }

were to return null;  And readLine() should only return null on
end-of-stream.

This sounded vaguely familar, so I checked the CVS.  Sure enough, here is a
change:
http://cvs.apache.org/viewcvs.cgi/jakarta-james/src/java/org/apache/james/sm
tpserver/SMTPHandler.java.diff?r1=1.35.4.3&r2=1.35.4.4&diff_format=h

That prevented a NullPointerException from being thrown.  The question,
then, is WHY does the JVM report an EOF from the connection, and under what
circumstances?  I do my work on linux.  Which JVM are you using?  I do seem
to recall something about a related defect in the Windows JVM, but I thought
it was fixed in current versions.

	--- Noel


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


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


RE: Outlook

Posted by "Noel J. Bergman" <no...@devtech.com>.
This section:

14/04/03 15:03:03 DEBUG smtpserver: Command received: DATA
14/04/03 15:03:03 DEBUG smtpserver: Sent: 354 Ok Send data ending with
<CRLF>.<CRLF>
14/04/03 15:03:36 DEBUG smtpserver: Successfully spooled
mail )Mail1050357816238-1 from robert@factorysouth.com for
[robert@factorysouth.com]
14/04/03 15:03:36 DEBUG smtpserver: Sent: 250 Message received
14/04/03 15:03:36 DEBUG smtpserver: Calling reset() default Worker #18
14/04/03 15:03:36 DEBUG smtpserver: Calling stop() default Worker #18
14/04/03 15:03:36 DEBUG smtpserver: Closing socket.

bothers me.  There is no QUIT command.  There are only two ways out of the
processing loop: QUIT, and this bit of code in parseCommand:

        if (rawCommand == null) {
            return false;
        }

which would cause the handler to terminate the connection if
readCommandLine():

    final String readCommandLine() throws IOException {
        String commandLine = inReader.readLine();
        if (commandLine != null) {
            commandLine = commandLine.trim();
        }
        return commandLine;
    }

were to return null;  And readLine() should only return null on
end-of-stream.

This sounded vaguely familar, so I checked the CVS.  Sure enough, here is a
change:
http://cvs.apache.org/viewcvs.cgi/jakarta-james/src/java/org/apache/james/sm
tpserver/SMTPHandler.java.diff?r1=1.35.4.3&r2=1.35.4.4&diff_format=h

That prevented a NullPointerException from being thrown.  The question,
then, is WHY does the JVM report an EOF from the connection, and under what
circumstances?  I do my work on linux.  Which JVM are you using?  I do seem
to recall something about a related defect in the Windows JVM, but I thought
it was fixed in current versions.

	--- Noel


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


Re: Outlook

Posted by Robert Cadena <ro...@machine501.com>.
well, no dice:

I installed Office XP SP1 (required for XP SP2)
Installed XP SP2 (required for Outlook 2002 Fix)
Instlled Outlook 2002 Fix (Oct 4)

Restarted both outlook and james (just in case)

I disabled Norton AE completely

Tried sending a message and now i just consistently get timeouts  with 
the same message from outlook.  here's the output in the smtp log file:

14/04/03 15:03:03 INFO  smtpserver: Connection from localhost (127.0.0.1)
14/04/03 15:03:03 DEBUG smtpserver: Sent: 220 factorysouth.com SMTP 
Server (JAMES SMTP Server 2.1.2) ready Mon, 14 Apr 2003 15:03:03 -0700 (PDT)
14/04/03 15:03:03 DEBUG smtpserver: Calling start()
14/04/03 15:03:03 DEBUG smtpserver: Watchdog default Worker #18 has time 
to sleep 360	000
14/04/03 15:03:03 DEBUG smtpserver: Command received: EHLO RCADENA
14/04/03 15:03:03 DEBUG smtpserver: Sent: 250-factorysouth.com Hello 
RCADENA (localhost [127.0.0.1])
14/04/03 15:03:03 DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
14/04/03 15:03:03 DEBUG smtpserver: Sent: 250 AUTH=LOGIN PLAIN
14/04/03 15:03:03 DEBUG smtpserver: Calling reset() default Worker #18
14/04/03 15:03:03 DEBUG smtpserver: Command received: AUTH LOGIN
14/04/03 15:03:03 DEBUG smtpserver: Sent: 334 XXXXX
14/04/03 15:03:03 DEBUG smtpserver: Sent: 334 XXXXX
14/04/03 15:03:03 DEBUG smtpserver: AUTH method LOGIN succeeded
14/04/03 15:03:03 DEBUG smtpserver: Sent: 235 Authentication Successful
14/04/03 15:03:03 DEBUG smtpserver: Calling reset() default Worker #18
14/04/03 15:03:03 DEBUG smtpserver: Command received: MAIL FROM: 
<ro...@factorysouth.com>
14/04/03 15:03:03 DEBUG smtpserver: Sent: 250 Sender 
<ro...@factorysouth.com> OK
14/04/03 15:03:03 DEBUG smtpserver: Calling reset() default Worker #18
14/04/03 15:03:03 DEBUG smtpserver: Command received: RCPT TO: 
<ro...@factorysouth.com>
14/04/03 15:03:03 DEBUG smtpserver: Sent: 250 Recipient 
<ro...@factorysouth.com> OK
14/04/03 15:03:03 DEBUG smtpserver: Calling reset() default Worker #18
14/04/03 15:03:03 DEBUG smtpserver: Command received: DATA
14/04/03 15:03:03 DEBUG smtpserver: Sent: 354 Ok Send data ending with 
<CRLF>.<CRLF>
14/04/03 15:03:36 DEBUG smtpserver: Successfully spooled mail 
)Mail1050357816238-1 from robert@factorysouth.com for 
[robert@factorysouth.com]
14/04/03 15:03:36 DEBUG smtpserver: Sent: 250 Message received
14/04/03 15:03:36 DEBUG smtpserver: Calling reset() default Worker #18
14/04/03 15:03:36 DEBUG smtpserver: Calling stop() default Worker #18
14/04/03 15:03:36 DEBUG smtpserver: Closing socket.

so it looks like it's getting sent but outlook still returns an error :(

When sending a message from mozilla the same log output ocurrs but it 
does not time out.

I did a test where i tried to send a message from outlook.  waited till 
it timed out then shut it down.

Then i open mozilla and check my mail.  a message comes in from me but 
it's empty.  not even a user-agent header. :|

/r



Noel J. Bergman wrote:
> Robert,
> 
> 
>>Task 'Sending' reported error (0x8004210B): 'The operation timed out
>>waiting for a response from the sending (SMTP) server.
> 
> 
> Aha!  Critical pieces of information to give the GoogleBot.  :-)
> 
> See:  http://www.enetbot.com/support/forums/topic.asp?TOPIC_ID=648
>       http://support.microsoft.com/?kbid=304008
>       http://support.microsoft.com/default.aspx?scid=kb;en-us;329923
> 
> 
>>I saw some time ago on this user list, i think, that this
>>error is common to james with outlook.
> 
> 
> It is more accurate to say that it is common to Outlook, regardless of
> server, in certain configurations, as you can see from the above links.
> 
> FWIW, if you turn on DEBUG in environment.xml for both POP3 and SMTP, then
> you can see the dialog between Outlook and James.  You should be able to see
> if James has already sent a response that isn't reaching Outlook in a timely
> manner.
> 
> 	--- Noel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


RE: Outlook

Posted by "Noel J. Bergman" <no...@devtech.com>.
Robert,

> Task 'Sending' reported error (0x8004210B): 'The operation timed out
> waiting for a response from the sending (SMTP) server.

Aha!  Critical pieces of information to give the GoogleBot.  :-)

See:  http://www.enetbot.com/support/forums/topic.asp?TOPIC_ID=648
      http://support.microsoft.com/?kbid=304008
      http://support.microsoft.com/default.aspx?scid=kb;en-us;329923

> I saw some time ago on this user list, i think, that this
> error is common to james with outlook.

It is more accurate to say that it is common to Outlook, regardless of
server, in certain configurations, as you can see from the above links.

FWIW, if you turn on DEBUG in environment.xml for both POP3 and SMTP, then
you can see the dialog between Outlook and James.  You should be able to see
if James has already sent a response that isn't reaching Outlook in a timely
manner.

	--- Noel


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


Re: Outlook

Posted by Robert Cadena <ro...@machine501.com>.
Interesting.  I do have that checked.

I keep trying it and i get this:

Task 'Sending' reported error (0x8004210B): 'The operation timed out 
waiting for a response from the sending (SMTP) server.  If you continue 
to receive this message, contact your server administrator or Internet 
Service Provider (ISP).'

immediately i get:

Task 'Sending and Receiving' reported error (0x800CCC0B): 'Unknown Error 
0x800CCC0B'.

I saw some time ago on this user list, i think, that this error is 
common to james with outlook.

Once i let it wait for 5 minutes (or so) Outlook automatically checks 
the mail and it retrieves it fine, no error.  If i click check mail 
right away, it times out.

If i disable timeout protection i get the same behaviour.

And finally if i disable AE alltogether, i get the exact same thing.

But I have absolutely no problems with either Mozilla's email program or 
Eudora.



Noel J. Bergman wrote:
>>i do have a firewall, and the ports for 25 and 110 are both open to the
>>server, so that works fine.
> 
> 
> Do you have Norton AV or some other package installed?  I remember that
> Norton AV was trashing connections because it would intercept the messages,
> perform the AV, and connections timeout waiting for Norton.  Someone
> reported that "If you go to Options and Internet E-mail, you should get an
> E-mail Scanning pane, and there is a "Protect Against Timeouts" checkbox."
> 
> 	--- Noel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


RE: Outlook

Posted by "Noel J. Bergman" <no...@devtech.com>.
> i do have a firewall, and the ports for 25 and 110 are both open to the
> server, so that works fine.

Do you have Norton AV or some other package installed?  I remember that
Norton AV was trashing connections because it would intercept the messages,
perform the AV, and connections timeout waiting for Norton.  Someone
reported that "If you go to Options and Internet E-mail, you should get an
E-mail Scanning pane, and there is a "Protect Against Timeouts" checkbox."

	--- Noel


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


Re: Outlook

Posted by Robert Cadena <ro...@factorysouth.com>.
i do have a firewall, and the ports for 25 and 110 are both open to the 
  server, so that works fine.

but i doubt it's the firewall because i also have james setup on my work 
computer for debugging and i set the smtp and pop servers as 127.0.0.1 
and the same behaviour occurs.

/r


Noel J. Bergman wrote:
>>i only use Outlook, not Outlook Express.
> 
> 
> OK.  That clears up that question.
> 
> 
>>it times out both with SMTP auth and without it.
> 
> 
> Do you possibly have a firewall that is interfering?
> 
> 	--- Noel
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


RE: Outlook

Posted by "Noel J. Bergman" <no...@devtech.com>.
> i only use Outlook, not Outlook Express.

OK.  That clears up that question.

> it times out both with SMTP auth and without it.

Do you possibly have a firewall that is interfering?

	--- Noel

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


Re: Outlook

Posted by Robert Cadena <ro...@factorysouth.com>.
i apologize,

i've been writing this while working and i'm on autopilot.  no, i only 
use Outlook, not Outlook Express.  and it times out both with SMTP auth 
and without it.  I tried james 2.1 and 2.1.2 just in case that worked 
better but i get the exact same behaviour.

it just times out and i don't understand why it doesn't seem to do 
anything after it's established a connection at those times.  it's very 
strange behaviour.

/r


Kenny Smith wrote:
> Hi Robert,
> 
> You mentioned using Outlook and Outlook Express, are you really using 
> two different mail clients and only seeing the problem when you mix and 
> match, or are you just using different terminology for the same program?
> 
> I'm using Outlook (not Outlook Express) with SMTP-AUTH (no SSL) and it 
> works great for me. (Win2K, Outlook2K)
> 
> Kenny Smith
> 
> Robert Cadena wrote:
> 
>> Yeah, outlook express doesn't seem to want to work with james.  here's 
>> the behaviour:
>>
>> I load james, check once with outlook everything works fine.
>>
>> I click on check again in outlook express and it just times out, 
>> although i see an incoming pop connection in the log output, but 
>> outlook never seems to send anything.
>>
>> Then i write a message to test the smtp (i'm using SMTP auth with no 
>> sll) and click send.
>>
>> Outlook times out but i do see an incoming smtp connection in the log
>>
>> I quit outlook and restart it.  I click send and receive and it works.
>>
>> I try checking and/or sending again and it times out. If i leave it 
>> alone for 5 minutes or more (without checking or sending) then the 
>> messages are checked or sent fine.
>>
>> So what seems to happen is that if i check or send too quickly (within 
>> 5 minutes of each other) then i get timeouts.
>>
>> This behaviour does not show up with Mozilla's mail or Eudora mail.  
>> I'm using WinXP Professional and Outlook 5.0.
>>
>> hope that helps.
>>
>> /r
>>
>>
>> Bryan Lipscy wrote:
>>
>>> Robert Cadena: "tho outlook still poops on me with it"
>>>
>>> Are you saying that Micrsoft Outlook will not work with JAMES?
>>>
>>> What is the nature of the problem?
>>>
>>> Bryan Lipscy
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: james-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: james-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


RE: Outlook

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I'm using Outlook (not Outlook Express) with SMTP-AUTH (no SSL) and it
> works great for me. (Win2K, Outlook2K)

I use Outlook 2000 (multiple patch levels) with NT 4 and XP.  I have others
using Mac clients, Windows clients, Web clients, etc.  No one has reported a
problem.

	--- Noel


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


Re: Outlook

Posted by Kenny Smith <ja...@journalscape.com>.
Hi Robert,

You mentioned using Outlook and Outlook Express, are you really using 
two different mail clients and only seeing the problem when you mix and 
match, or are you just using different terminology for the same program?

I'm using Outlook (not Outlook Express) with SMTP-AUTH (no SSL) and it 
works great for me. (Win2K, Outlook2K)

Kenny Smith

Robert Cadena wrote:
> Yeah, outlook express doesn't seem to want to work with james.  here's 
> the behaviour:
> 
> I load james, check once with outlook everything works fine.
> 
> I click on check again in outlook express and it just times out, 
> although i see an incoming pop connection in the log output, but outlook 
> never seems to send anything.
> 
> Then i write a message to test the smtp (i'm using SMTP auth with no 
> sll) and click send.
> 
> Outlook times out but i do see an incoming smtp connection in the log
> 
> I quit outlook and restart it.  I click send and receive and it works.
> 
> I try checking and/or sending again and it times out. If i leave it 
> alone for 5 minutes or more (without checking or sending) then the 
> messages are checked or sent fine.
> 
> So what seems to happen is that if i check or send too quickly (within 5 
> minutes of each other) then i get timeouts.
> 
> This behaviour does not show up with Mozilla's mail or Eudora mail.  I'm 
> using WinXP Professional and Outlook 5.0.
> 
> hope that helps.
> 
> /r
> 
> 
> Bryan Lipscy wrote:
> 
>> Robert Cadena: "tho outlook still poops on me with it"
>>
>> Are you saying that Micrsoft Outlook will not work with JAMES?
>>
>> What is the nature of the problem?
>>
>> Bryan Lipscy
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: james-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


Re: Outlook

Posted by Robert Cadena <ro...@machine501.com>.
hi,

maybe my last email didn't get sent. here's a repost of the reply to 
your email about outlook express and outlook:

---

i apologize,

i've been writing this while working and i'm on autopilot.  no, i only 
use Outlook, not Outlook Express.  and it times out both with SMTP auth 
and without it.  I tried james 2.1 and 2.1.2 just in case that worked 
better but i get the exact same behaviour.

it just times out and i don't understand why it doesn't seem to do 
anything after it's established a connection at those times.  it's very 
strange behaviour.


/r


-----

i'm not interested (at the moment) in figuring out why outlook doesn't 
work.  i just needed to get my mail server working after i migrated 
boxes and i didn't want to use sendmail.   if i do figure it out i'll 
post an email if it warrants doing so.

thanks.

/r


Noel J. Bergman wrote:
>>Yeah, outlook express doesn't seem to want to work with james.
> 
> 
> Outlook or Outlook Express?  Those are not interchangable names.
> 
> 
>>So what seems to happen is that if i check or send too quickly (within 5
>>minutes of each other) then i get timeouts.
> 
> 
> Are we talking about POP3 or SMTP, or both?  You appear to be mixing the two
> in your description.  Regardless, I have certainly used both in shorter
> intervals than 5 mins.
> 
> Turn on DEBUG for the SMTP and POP3 server logs.  That should provide some
> helpful information.
> 
> 	--- Noel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


RE: Outlook

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Yeah, outlook express doesn't seem to want to work with james.

Outlook or Outlook Express?  Those are not interchangable names.

> So what seems to happen is that if i check or send too quickly (within 5
> minutes of each other) then i get timeouts.

Are we talking about POP3 or SMTP, or both?  You appear to be mixing the two
in your description.  Regardless, I have certainly used both in shorter
intervals than 5 mins.

Turn on DEBUG for the SMTP and POP3 server logs.  That should provide some
helpful information.

	--- Noel


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


Re: Outlook

Posted by Robert Cadena <ro...@factorysouth.com>.
Yeah, outlook express doesn't seem to want to work with james.  here's 
the behaviour:

I load james, check once with outlook everything works fine.

I click on check again in outlook express and it just times out, 
although i see an incoming pop connection in the log output, but outlook 
never seems to send anything.

Then i write a message to test the smtp (i'm using SMTP auth with no 
sll) and click send.

Outlook times out but i do see an incoming smtp connection in the log

I quit outlook and restart it.  I click send and receive and it works.

I try checking and/or sending again and it times out. If i leave it 
alone for 5 minutes or more (without checking or sending) then the 
messages are checked or sent fine.

So what seems to happen is that if i check or send too quickly (within 5 
minutes of each other) then i get timeouts.

This behaviour does not show up with Mozilla's mail or Eudora mail.  I'm 
using WinXP Professional and Outlook 5.0.

hope that helps.

/r


Bryan Lipscy wrote:
> Robert Cadena: "tho outlook still poops on me with it"
> 
> Are you saying that Micrsoft Outlook will not work with JAMES?
> 
> What is the nature of the problem?
> 
> Bryan Lipscy
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 



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


RE: Outlook

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Are you saying that Micrsoft Outlook will not work with JAMES?

That would come as a surprise to me, since I use Outlook.

	--- Noel

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


RE: Outlook

Posted by Bryan Lipscy <x4...@monroe.net>.
Robert Cadena: "tho outlook still poops on me with it"

Are you saying that Micrsoft Outlook will not work with JAMES?

What is the nature of the problem?

Bryan Lipscy


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