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 Charles Benett <ch...@benett1.demon.co.uk> on 2001/05/16 10:02:13 UTC

Re: James not receiving confirmation email from Jetpseed when adding users.

As your Outlook clients can send email via James, your problem probably
lies with Jetspeed. So I'd ask them.
Charles

scott wrote:
> 
> Dear all
> 
> My James is running. and I can use Outlook client to send out and receive
> mail among users that I added to the  James mailserver (in my case is
> localhost).
> 
> My problem is that I tried to add users to Jetspeed, but after adding the
> user, Jetspeed moves to next page asking for my confirmation key which was
> supposed to sent out to an email address created within James.  But the user
> didn;t receive any single mail.
> 
> At Jetpseed, inside the TurbineResource.properties file, I locate the
> following variable and set it to my localhost. Can any body let me know
> whether the setting is correct and is this the only setting I need to
> change.
> 
> mail.server=localhost
> 
> ---------------------------------------------------------------------
> 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: help?thanks

Posted by Charles Benett <ch...@benett1.demon.co.uk>.
What version of James are you using?

If you are using James 1.2 or 1.2.1 the db repository works. You need to
explain your problem better eg with error messages or logs.

If you are using James from CVS or a nightly release, the db stuff
doesn't work (yet)

Charles


putingyu wrote:
> 
> hi:
>     using a database mail repository on my james.
> but unable .
> 
> maildatabase-odbc:
>  # Change the DSN and username/password to match our configuration
> jdbcDriver=sun.jdbc.odbc.JdbcOdbcDriver
> jdbcURL=jdbc:odbc:james
> jdbcUsername=sa
> jdbcPassword=admin
> minconn=1
> maxconn=2
> 
> james.conf.xml :
>  <!--     These are optional in case you'd like to store the mail spool and POP3 messages in
>             the database.  Simply uncomment these and remove the ones above. -->
> 
>             <spoolRepository> town://james@maildatabase-sqlserver</spoolRepository>
>             <inboxRepository> town://inbox </inboxRepository>

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


help?thanks

Posted by putingyu <ty...@sunfieldgroup.com>.
hi:
    using a database mail repository on my james.
but unable .

maildatabase-odbc:
 # Change the DSN and username/password to match our configuration
jdbcDriver=sun.jdbc.odbc.JdbcOdbcDriver
jdbcURL=jdbc:odbc:james
jdbcUsername=sa
jdbcPassword=admin
minconn=1
maxconn=2

james.conf.xml :
 <!--     These are optional in case you'd like to store the mail spool and POP3 messages in
            the database.  Simply uncomment these and remove the ones above. -->

            <spoolRepository> town://james@maildatabase-sqlserver</spoolRepository>
            <inboxRepository> town://inbox </inboxRepository>






Re: James not receiving confirmation email from Jetpseed when adding users.

Posted by sbelt <sb...@velos.com>.
Scott:

what version of Jetspeed are you running? I seem to recall these tags were
missing in older versions of the JetspeedResources.properties. Have you
tried the latest cvs?

Also, look in the spam folder of James (var/mail/spam?). Do you see you
messages there? I found all my Jetspeed emails in this folder until I
resolved the domain-name issue which I have been describing.

Steve B.


----- Original Message -----
From: "scott" <sc...@internetvillages.net>
To: <ja...@jakarta.apache.org>; "sbelt" <sb...@velos.com>
Sent: Tuesday, May 16, 2000 9:54 PM
Subject: Re: James not receiving confirmation email from Jetpseed when
adding users.


> Deat Steve
>
> Here is what I set
>
> Scenario : James is working fine, sending and receiving mail with outlook
is
> ok.
> Problem : Problems receving Jetspeed mail
>
> 1. JetspeedResources.properties. (not sure whether it is confirm or
> confirmation, I did try them all)
> confirm.email.from=jetspeed@cruxlocal.com  or
> confirmation.email.from=jetspeed@cruxlocal.com
>
> 2. TurbineResources.properties
> confirm.email.from=nobody@cruxlocal.com  or
> confirmation.email.from=nobody@cruxlocal.com
>
> 3. James.conf value  (I know the comments area, this one is outside the
> commetns area)
> <servername>cruxlocal.com</servername>
>
> 4. cruxlocal.com is my local valid domain name. Ping to cruxlocal.com is
> fine and returns resutls. sending mail and receveing them through outlook
is
> ok.
>
> What esle did I missed?
>
> btw, the confirmation or confirm.email.from parameter, actually I can't
> locate it in Turbine or Jetpspeed resource propertities file, I added them
> in.
>
> Regards
> -Scott
>
> ----- Original Message -----
> From: sbelt <sb...@velos.com>
> To: <ja...@jakarta.apache.org>
> Sent: Thursday, May 17, 2001 6:44 AM
> Subject: Re: James not receiving confirmation email from Jetpseed when
> adding users.
>
>
> > I have set this up successfully in the past.
> >
> > - compare in JetspeedResources.properties (in the WEB-INF/conf dir) the
> > value of
> >
> > confirm.email.from=jetspeed@mydomain.com
> >
> > - to the James.conf value
> >
> > <servernames>
> >     <servername> mydomain.com</servername>
> >     <servername> other valid domains to handle </servername>
> > </servernames>
> >
> > - if domain is not included in the servernames of james.conf, all the
> emails
> > will be dumped into James' spam folder.
> >
> > Steve B.
> >
> > ----- Original Message -----
> > From: "Charles Benett" <ch...@benett1.demon.co.uk>
> > To: <ja...@jakarta.apache.org>
> > Sent: Wednesday, May 16, 2001 1:02 AM
> > Subject: Re: James not receiving confirmation email from Jetpseed when
> > adding users.
> >
> >
> > > As your Outlook clients can send email via James, your problem
probably
> > > lies with Jetspeed. So I'd ask them.
> > > Charles
> > >
> > > scott wrote:
> > > >
> > > > Dear all
> > > >
> > > > My James is running. and I can use Outlook client to send out and
> > receive
> > > > mail among users that I added to the  James mailserver (in my case
is
> > > > localhost).
> > > >
> > > > My problem is that I tried to add users to Jetspeed, but after
adding
> > the
> > > > user, Jetspeed moves to next page asking for my confirmation key
which
> > was
> > > > supposed to sent out to an email address created within James.  But
> the
> > user
> > > > didn;t receive any single mail.
> > > >
> > > > At Jetpseed, inside the TurbineResource.properties file, I locate
the
> > > > following variable and set it to my localhost. Can any body let me
> know
> > > > whether the setting is correct and is this the only setting I need
to
> > > > change.
> > > >
> > > > mail.server=localhost
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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: Can i apply james to program a website to offer mail_service?

Posted by Charles Benett <ch...@benett1.demon.co.uk>.
typu wrote:
> 
> hi:
>       Can i apply james to program a website to offer mail_service?
>       Such as assign user_account or mail_box?
>       How can i do  it ?
> 
>                    a chinese user:   putingyu

Yes and no.
You should be able to write a servlet that connects to port 4555
(RemoteManager) to add/ delete users and that connects to port 110 for
POP3 access. But that only gives you one mailbox - the Inbox - per user.
I'm not sure what state the IMAP code is in. And I haven't tried this,
so good luck!
Charles

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


Can i apply james to program a website to offer mail_service?

Posted by typu <ty...@sunfieldgroup.com>.
hi:
      Can i apply james to program a website to offer mail_service?
      Such as assign user_account or mail_box?
      How can i do  it ?
         
                   a chinese user:   putingyu

Re: James not receiving confirmation email from Jetpseed when adding users.

Posted by scott <sc...@internetvillages.net>.
Deat Steve

Here is what I set

Scenario : James is working fine, sending and receiving mail with outlook is
ok.
Problem : Problems receving Jetspeed mail

1. JetspeedResources.properties. (not sure whether it is confirm or
confirmation, I did try them all)
confirm.email.from=jetspeed@cruxlocal.com  or
confirmation.email.from=jetspeed@cruxlocal.com

2. TurbineResources.properties
confirm.email.from=nobody@cruxlocal.com  or
confirmation.email.from=nobody@cruxlocal.com

3. James.conf value  (I know the comments area, this one is outside the
commetns area)
<servername>cruxlocal.com</servername>

4. cruxlocal.com is my local valid domain name. Ping to cruxlocal.com is
fine and returns resutls. sending mail and receveing them through outlook is
ok.

What esle did I missed?

btw, the confirmation or confirm.email.from parameter, actually I can't
locate it in Turbine or Jetpspeed resource propertities file, I added them
in.

Regards
-Scott

----- Original Message -----
From: sbelt <sb...@velos.com>
To: <ja...@jakarta.apache.org>
Sent: Thursday, May 17, 2001 6:44 AM
Subject: Re: James not receiving confirmation email from Jetpseed when
adding users.


> I have set this up successfully in the past.
>
> - compare in JetspeedResources.properties (in the WEB-INF/conf dir) the
> value of
>
> confirm.email.from=jetspeed@mydomain.com
>
> - to the James.conf value
>
> <servernames>
>     <servername> mydomain.com</servername>
>     <servername> other valid domains to handle </servername>
> </servernames>
>
> - if domain is not included in the servernames of james.conf, all the
emails
> will be dumped into James' spam folder.
>
> Steve B.
>
> ----- Original Message -----
> From: "Charles Benett" <ch...@benett1.demon.co.uk>
> To: <ja...@jakarta.apache.org>
> Sent: Wednesday, May 16, 2001 1:02 AM
> Subject: Re: James not receiving confirmation email from Jetpseed when
> adding users.
>
>
> > As your Outlook clients can send email via James, your problem probably
> > lies with Jetspeed. So I'd ask them.
> > Charles
> >
> > scott wrote:
> > >
> > > Dear all
> > >
> > > My James is running. and I can use Outlook client to send out and
> receive
> > > mail among users that I added to the  James mailserver (in my case is
> > > localhost).
> > >
> > > My problem is that I tried to add users to Jetspeed, but after adding
> the
> > > user, Jetspeed moves to next page asking for my confirmation key which
> was
> > > supposed to sent out to an email address created within James.  But
the
> user
> > > didn;t receive any single mail.
> > >
> > > At Jetpseed, inside the TurbineResource.properties file, I locate the
> > > following variable and set it to my localhost. Can any body let me
know
> > > whether the setting is correct and is this the only setting I need to
> > > change.
> > >
> > > mail.server=localhost
> > >
> > > ---------------------------------------------------------------------
> > > 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: I want add user on application ,but error ,why?

Posted by Charles Benett <ch...@benett1.demon.co.uk>.
putingyu wrote:
> 
> hi :
>   I want add  user on application because I don't like use telnet. but error. why?
> 
> package james;
> 
> /**
>  * Title:
>  * Description:
>  * Copyright:    Copyright (c) 2001
>  * Company:
>  * @author
>  * @version 1.0
>  */
> import org.apache.avalon.*;
> import org.apache.avalon.blocks.*;
> import org.apache.james.*;
> import org.apache.james.transport.*;
> import org.apache.james.userrepository.*;
> import java.net.*;
> import java.io.*;
> import java.util.*;
> 
> public class addUser {
> private String   username,password,restr;
> private UsersRepository users;
> private org.apache.james.James  mailServer;
> 
>   public addUser() {
> username="pty";
> password="pty";
>   }
> public String Add() {
> mailServer=new org.apache.james.James();

That's why. Its meant to be run as a server application over avalon.

> if(mailServer.addUser(username,password)){
> return restr="OK!";
> }
> else{
> return restr="ERROR!";
> }
> 
> }
> 
>  public static void  main(String [] args) {
>     addUser adduser=new addUser();
>     System.out.println(adduser.Add());
>  }
> }
> 
> error:
> java.lang.NullPointerException
> 
>  at org.apache.james.James.addUser(James.java:464)
> 
>  at james.addUser.Add(addUser.java:44)
> 
>  at james.addUser.main(addUser.java:55)
> 
> Exception in thread "main"

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


I want add user on application ,but error ,why?

Posted by putingyu <ty...@sunfieldgroup.com>.
hi :
  I want add  user on application because I don't like use telnet. but error. why?

package james;

/**
 * Title:
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:
 * @author
 * @version 1.0
 */
import org.apache.avalon.*;
import org.apache.avalon.blocks.*;
import org.apache.james.*;
import org.apache.james.transport.*;
import org.apache.james.userrepository.*;
import java.net.*;
import java.io.*;
import java.util.*;

public class addUser {
private String   username,password,restr;
private UsersRepository users;
private org.apache.james.James  mailServer;

  public addUser() {
username="pty";
password="pty";
  }
public String Add() {
mailServer=new org.apache.james.James();
if(mailServer.addUser(username,password)){
return restr="OK!";
}
else{
return restr="ERROR!";
}

}

 public static void  main(String [] args) {
    addUser adduser=new addUser();
    System.out.println(adduser.Add());
 }
}

error:
java.lang.NullPointerException

 at org.apache.james.James.addUser(James.java:464)

 at james.addUser.Add(addUser.java:44)

 at james.addUser.main(addUser.java:55)

Exception in thread "main" 

Re: James not receiving confirmation email from Jetpseed when adding users.

Posted by sbelt <sb...@velos.com>.
I have set this up successfully in the past.

- compare in JetspeedResources.properties (in the WEB-INF/conf dir) the
value of

confirm.email.from=jetspeed@mydomain.com

- to the James.conf value

<servernames>
    <servername> mydomain.com</servername>
    <servername> other valid domains to handle </servername>
</servernames>

- if domain is not included in the servernames of james.conf, all the emails
will be dumped into James' spam folder.

Steve B.

----- Original Message -----
From: "Charles Benett" <ch...@benett1.demon.co.uk>
To: <ja...@jakarta.apache.org>
Sent: Wednesday, May 16, 2001 1:02 AM
Subject: Re: James not receiving confirmation email from Jetpseed when
adding users.


> As your Outlook clients can send email via James, your problem probably
> lies with Jetspeed. So I'd ask them.
> Charles
>
> scott wrote:
> >
> > Dear all
> >
> > My James is running. and I can use Outlook client to send out and
receive
> > mail among users that I added to the  James mailserver (in my case is
> > localhost).
> >
> > My problem is that I tried to add users to Jetspeed, but after adding
the
> > user, Jetspeed moves to next page asking for my confirmation key which
was
> > supposed to sent out to an email address created within James.  But the
user
> > didn;t receive any single mail.
> >
> > At Jetpseed, inside the TurbineResource.properties file, I locate the
> > following variable and set it to my localhost. Can any body let me know
> > whether the setting is correct and is this the only setting I need to
> > change.
> >
> > mail.server=localhost
> >
> > ---------------------------------------------------------------------
> > 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