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 Diego Castillo <di...@inexbee.com> on 2004/02/27 09:39:17 UTC

RE : RE : RE : problem installing james on suse 8.2

Hi Pierre,

Are the messages not stored at all? James only requires a valid
user/password and the database to be precreated (manually). With these
elements, James will be able to instantiate the datasource and will
create the required tables itself.

You can check manually whether James will be able to connect to MySQL
with the parameters that you have configured. For example, if your
config.xml file says:
<database-connections>
 <data-sources>
  <data-source name="maildb"
class="org.apache.james.util.mordred.JdbcDataSource">
   <driver>org.gjt.mm.mysql.Driver</driver>
   <dburl>jdbc:mysql://127.0.0.1/mail?autoReconnect=true</dburl>
   <user>james</user>
   <password>jamespwd</password>
   <max>20</max>
  </data-source>
 </data-sources>
</database-connections>

then you may want to connect manually with these same parameters by
doing:
mysql -ujames -pjamespwd -h127.0.0.1 -Dmail

If you manage to connect, check that James has succeeded to create the
tables:
mysql> show tables;
+----------------+
| Tables_in_mail |
+----------------+
| deadletter     |
| inbox          |
| spool          |
| users          |
+----------------+
4 rows in set (0.00 sec)

If you've got the tables but James is still unable to spool messages,
then you have a more exotic problem which I have never encountered. You
should increase the log level and send further information to the
mailing list (which I CC in case this information was of any help for
somebody else).

Hope this helps,


Diego

> -----Message d'origine-----
> De : pfm.smits@zonnet.nl [mailto:pfm.smits@zonnet.nl]
> Envoyé : jeudi 26 février 2004 23:01
> À : Diego Castillo
> Objet : Re: RE : RE : problem installing james on suse 8.2
> 
> Hi Diego,
> 
> Thanks,that was right on the nail.
> 
> Having resolved that I got James running and I got email in. But that
was
> with the file system as the repository. Having reconfigured it to db
> storage in mysql I see messages not being spooled. Do you have any
idea
> how
> to resolve this?
> 
> Regards,
> 
> pierre
> 
> 
> Citeren Diego Castillo <di...@inexbee.com>:
> 
> > Hi Pierre,
> >
> > You have Postfix running on your system and it is using the standard
> > SMTP port 25, preventing James from using it. You need to stop
Postfix
> > prior to starting James, which may require superuser rights. I don't
> > know the exact Linux command, but you can try:
> >    /etc/init.d/postfix stop
> >
> > As an alternative option, you can modify the port of the James'
> > smtpserver. The config file is
> > <JAMES_DIST_HOME>/apps/james/SAR-INF/config.xml. Find the tag
> > <smtpserver> and you will see <port>25</port> just below. Change it
to
> > say 2525 and retry. Hopefully, you will be able to connect via
"telnet
> > localhost 2525" and you will get something like:
> >
> > 220 yourdomain.com SMTP Server (JAMES SMTP Server 2.1.3) ready Thu,
26
> > Feb 2004 00:19:41 +0100 (CET)
> >
> > If this works but you want to receive email from the Internet, you
will
> > need to come back to stopping Postfix and running James on port 25.
You
> > will probably need to be root for both actions.
> >
> > Regards,
> >
> >
> > Diego
> >
> > > -----Message d'origine-----
> > > De : pfm.smits@zonnet.nl [mailto:pfm.smits@zonnet.nl]
> > > Envoyé : mercredi 25 février 2004 20:11
> > > À : Diego Castillo
> > > Objet : Fwd: RE : problem installing james on suse 8.2
> > >
> > > Diego,
> > >
> > > Thanks for your advice. It gave some insight (see below), but I
think
> > I'm
> > > not
> > > there yet.
> > >
> > > I did try your suggestion (telnet localhost 25) which came back
with
> > > following
> > > result:
> > > Trying ::1...
> > > telnet: connect to address ::1: Connection refused
> > > Trying 127.0.0.1...
> > > Connected to localhost.
> > > Escape character is '^]'.
> > > 220 zany.smiden.local ESMTP Postfix
> > >
> > >
> > > It seems that port 25 is available. However doing the same for
port
> > 4555
> > > (as
> > > in the config file of JAMES) results negative. I think I need to
open
> > that
> > > port as well. But how?
> > >
> > > I also tried the suggestion Mohamed provided ( lsof -1)  which
gave
> > > following
> > > result
> > > zany:~ # lsof -i
> > > COMMAND   PID    USER   FD   TYPE DEVICE SIZE NODE NAME
> > > portmap   970     bin    3u  IPv4   1330       UDP *:sunrpc
> > > portmap   970     bin    4u  IPv4   1398       TCP *:sunrpc
(LISTEN)
> > > mysqld   1143   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > mysqld   1144   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > mysqld   1145   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > mysqld   1146   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > mysqld   1147   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > mysqld   1148   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > mysqld   1149   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > mysqld   1150   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > mysqld   1151   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > mysqld   1152   mysql    3u  IPv4   1524       TCP *:mysql
(LISTEN)
> > > cupsd    1210    root    0u  IPv4   2241       TCP *:ipp (LISTEN)
> > > cupsd    1210    root    2u  IPv4   2242       UDP *:ipp
> > > sshd     1211    root    3u  IPv6   1988       TCP *:ssh (LISTEN)
> > > master   1541    root   11u  IPv4   2615       TCP localhost:smtp
> > (LISTEN)
> > > xinetd   1571    root    5u  IPv4   3150       TCP *:swat (LISTEN)
> > > xinetd   1571    root    8u  IPv4 755270       TCP *:cvspserver
> > (LISTEN)
> > > httpd    1980    root   16u  IPv4  15724       TCP *:http (LISTEN)
> > > httpd    1981  wwwrun   16u  IPv4  15724       TCP *:http (LISTEN)
> > > httpd    2036  wwwrun   16u  IPv4  15724       TCP *:http (LISTEN)
> > > X       19606    root    1u  IPv4 647180       TCP *:x11 (LISTEN)
> > > smbd    19836    root   10u  IPv4 649007       TCP *:netbios-ssn
> > (LISTEN)
> > > nmbd    19842    root    9u  IPv4 649040       UDP *:netbios-ns
> > > nmbd    19842    root   10u  IPv4 649041       UDP *:netbios-dgm
> > > nmbd    19842    root   11u  IPv4 649043       UDP
> > > zany.smiden.local:netbios-ns
> > > nmbd    19842    root   12u  IPv4 649044       UDP
> > > zany.smiden.local:netbios-dgm
> > >
> > > dhcpd   19885  nobody    6u  IPv4 649823       UDP *:bootps
> > > java    26274  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26274  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26274  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26276  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26276  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26276  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26277  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26277  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26277  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26278  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26278  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26278  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26279  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26279  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26279  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26280  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26280  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26280  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26281  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26281  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26281  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26282  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26282  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26282  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26283  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26283  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26283  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26287  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26287  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26287  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26288  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26288  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26288  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26289  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26289  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26289  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26290  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26290  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26290  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26291  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26291  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26291  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26292  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26292  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26292  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26293  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26293  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26293  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26294  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26294  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26294  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26295  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26295  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26295  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26296  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26296  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26296  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26297  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26297  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26297  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26298  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26298  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26298  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26299  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26299  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26299  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26300  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26300  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26300  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26301  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26301  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26301  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26302  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26302  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26302  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26303  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26303  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26303  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > java    26304  wwwrun    5u  IPv6 750965       TCP *:http-alt
(LISTEN)
> > > java    26304  wwwrun   11u  IPv6 750981       TCP *:8009 (LISTEN)
> > > java    26304  wwwrun   12u  IPv6 750983       TCP localhost:8005
> > (LISTEN)
> > > smtpd   29457 postfix    6u  IPv4   2615       TCP localhost:smtp
> > (LISTEN)
> > >
> > > As you can see postfix is running somehow. I think this will
conflict
> > with
> > > JAMES.
> > > But how do I disable this?
> > >
> > >
> > > Regards,
> > >
> > > Pierre
> > >
> > > ----- Doorgestuurd bericht van Diego Castillo
> > <di...@inexbee.com>
> > > -----
> > >     Datum: Wed, 25 Feb 2004 11:40:53 +0100
> > >       Van: Diego Castillo <di...@inexbee.com>
> > > Antwoorden aan:James Users List <se...@james.apache.org>
> > >  Onderwerp: RE : problem installing james on suse 8.2
> > >       Aan: 'James Users List' <se...@james.apache.org>
> > >
> > > Maybe you don't have rights to bind to port 25.
> > > Did you try "telnet localhost 25"?
> > >
> > > > -----Message d'origine-----
> > > > De : pfm.smits@zonnet.nl [mailto:pfm.smits@zonnet.nl]
> > > > Envoyé : mercredi 25 février 2004 09:17
> > > > À : James Users List
> > > > Objet : Re: problem installing james on suse 8.2
> > > >
> > > > Well,
> > > >
> > > > The problem was that phoenix.sh didn't have execution rights.
After
> > > having
> > > > corrected this, I was able to start JAMES. And I started to
> > configure.
> > > >
> > > > After having done so, I restarted JAMES. It didn't give any
> > problems.
> > > But
> > > > with trying to use the remote manager via telnet I ran in to a
new
> > > > problem.
> > > >
> > > > I tried to telnet to local host port 4555 (the default), but I
got
> > > > a 'connection refused'.
> > > >
> > > > How can I resolve this? Can you help?
> > > >
> > > >
> > > > Citeren Mohamed Bourimi <Mo...@FernUni-Hagen.de>:
> > > >
> > > > > pfm.smits@zonnet.nl wrote:
> > > > >
> > > > > >I have downloaded the binary James-2.1.3 and unpacked in
> > > > > /opt/james-2.1.3.
> > > > > >
> > > > > >When I execute run.sh from the bin directory I get following
> > error:
> > > > > >./run.sh line 37: /opt/james-2.1.3/bin/phoenix.sh: Permission
> > > denied
> > > > > >
> > > > > >When I execute phoenix.sh from the same directory I get:
> > > > > >bash: ./phoenix.sh: Permission denied
> > > > > >
> > > > > >I am logged in as root, so I should have all permissions.
> > > > > >
> > > > > >What am I doing wrong? What can/must I do to get JAMES
installed?
> > > > > >
> > > > > >
> > > > > >
> > > > > I had a problem on SuSE 8.2 starting james too. I m not sure
if
> > the
> > > > > error message was "Permisson denied", but the problem was that
> > port
> > > 25
> > > > > was busy (in the default installation of SuSE 8.2). Control
this
> > > > > entering the command "lsof -i".
> > > > >
> > > > >
> > > > >
> > > > >
> > >
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
server-user-unsubscribe@james.apache.org
> > > > > For additional commands, e-mail:
server-user-help@james.apache.org
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> >
_____________________________________________________________________
> > > > Zon Gratis ADSL. De voordelen van gratis internet met de
snelheid
> > van
> > > > ADSL. Zonder abonnementskosten en zonder vast contract. Je
betaalt
> > > > alleen voor de tijd online. Nu zonder aansluitkosten en met
gratis
> > > > modem. Bestel snel op zonnet.nl.
> > > >
> > > >
> > > >
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > > > For additional commands, e-mail:
server-user-help@james.apache.org
> > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > > For additional commands, e-mail: server-user-help@james.apache.org
> > >
> > > ----- Einde doorgestuurd bericht -----
> > >
> > >
> > >
> > >
> > > --
> > >
_____________________________________________________________________
> > > Zon Gratis ADSL. De voordelen van gratis internet met de snelheid
van
> > > ADSL. Zonder abonnementskosten en zonder vast contract. Je betaalt
> > > alleen voor de tijd online. Nu zonder aansluitkosten en met gratis
> > > modem. Bestel snel op zonnet.nl.
> >
> >
> 
> 
> 
> 
> --
> _____________________________________________________________________
> Zon Gratis ADSL. De voordelen van gratis internet met de snelheid van
> ADSL. Zonder abonnementskosten en zonder vast contract. Je betaalt
> alleen voor de tijd online. Nu zonder aansluitkosten en met gratis
> modem. Bestel snel op zonnet.nl.



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