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 Hut Carspecken <hu...@sbcglobal.net> on 2003/07/01 02:30:13 UTC

Running James in Linux

Hello Again,

This is question is to everyone running James on RedHat Linux.  Simple question...is there any guide or walk through to install James on Linux?

I am running James on Win 2k and have to port the application over to Linux.  I am having permission errors with the Phoenix.sh in Linux.  The error reads as such.


bash run.sh

Using PHOENIX_HOME:   /home/alphaadmin/james-2.2.0a7

Using PHOENIX_TMPDIR: /home/alphaadmin/james-2.2.0a7/temp

Using JAVA_HOME:      /usr

Running Phoenix: 

Warning: -jar not understood. Ignoring.

Exception in thread "main" java.lang.NoClassDefFoundError: .home.alphaadmin.james-2.2.0a7.bin.phoenix-loader.jar

   at 0x40268e17: _ZN4java4lang9ThrowableC1EPNS0_6StringE (/usr/lib/./libgcj.so.3)

   at 0x4025bc8e: _ZN4java4lang5ErrorC1EPNS0_6StringE (/usr/lib/./libgcj.so.3)

   at 0x4025d6b6: _ZN4java4lang12LinkageErrorC1EPNS0_6StringE (/usr/lib/./libgcj.so.3)

   at 0x4025eb36: _ZN4java4lang20NoClassDefFoundErrorC1EPNS0_6StringE (/usr/lib/./libgcj.so.3)

   at 0x402ad075: _ZN3gnu3gcj7runtime11FirstThread3runEv (/usr/lib/./libgcj.so.3)

   at 0x4024fc4c: _Z13_Jv_ThreadRunPN4java4lang6ThreadE (/usr/lib/./libgcj.so.3)

   at 0x4021c8ac: _Z11_Jv_RunMainPN4java4lang5ClassEPKciPS4_b (/usr/lib/./libgcj.so.3)

   at 0x08048910: __gcj_personality_v0 (java.ext.dirs=/home/alphaadmin/james-2.2.0a7/lib)

   at 0x420156a4: __libc_start_main (/lib/tls/libc.so.6)

   at 0x080486c1: _Jv_RegisterClasses (java.ext.dirs=/home/alphaadmin/james-2.2.0a7/lib)



Any thoughts?




Re: Running James in Linux

Posted by tobe <to...@swipnet.se>.
Sheldon Hearn wrote:

>On (2003/06/30 19:59), Jeremy Torres wrote:
>
>  
>
>>Keep in mind ports under 1024 need "root" access, and I'd change the *.sh
>>files in the $JAMES_HOME/bin to "chmod u+x *.sh".
>>    
>>
>
>This aspect of James' operation is what holds me back in recommending
>its use as a front-facing MTA.
>
>  
>
Surely you have the same problem with every other MTA on *nix.

James is open source so anyone who is paranoid can check it all through.

It is also Java, so less risk of weaknesses in the code.

I don't know of any MTA I would be willing to recommend more highly than 
James, and for a front-facing MTA my choice is definitely James on linux.

/tobe



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


RE: Running James in Linux

Posted by "Noel J. Bergman" <no...@devtech.com>.
> > Keep in mind ports under 1024 need "root" access, and I'd change the
*.sh
> > files in the $JAMES_HOME/bin to "chmod u+x *.sh".

> This aspect of James' operation is what holds me back in recommending
> its use as a front-facing MTA.

This comes up from time to time regarding Tomcat.  As Pier recently noted,
there are any number of workarounds, including:

  $ iptables -t nat -A PREROUTING -p tcp --dport smtp -j REDIRECT --to-ports
10025
  $ iptables -t nat -A PREROUTING -p tcp --dport pop3 -j REDIRECT --to-ports
10026
  $ iptables -t nat -A PREROUTING -p tcp --dport nntp -j REDIRECT --to-ports
10027

> Does either Phoenix or J2SE provide setuid functionality that allows a
> process to drop privilege once it has acquired required resources?

If you can't do it on every OS from Windows CE to MVS, don't expect it in
J2SE.  There are third party libraries such as
http://www.xenonsoft.demon.co.uk/products/javaunix/, which you could use
within James to add more UNIX specific behavior.  However, there are
complications that might not be obvious.  For example, the UIDTest.java
program demonstrates problems with setuid on linux depending upon which JVM
and threading library, because UIDs are per-thread with LinuxThreads.

	--- Noel


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


Re: Running James in Linux

Posted by Sheldon Hearn <sh...@starjuice.net>.
On (2003/06/30 19:59), Jeremy Torres wrote:

> Keep in mind ports under 1024 need "root" access, and I'd change the *.sh
> files in the $JAMES_HOME/bin to "chmod u+x *.sh".

This aspect of James' operation is what holds me back in recommending
its use as a front-facing MTA.

Does either Phoenix or J2SE provide setuid functionality that allows a
process to drop privilege once it has acquired required resources?

Ciao,
Sheldon.

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


RE: Running James in Linux

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I am running James on Win 2k and have to port the application over to
Linux.

You don't port it.  You just run it.

> Warning: -jar not understood. Ignoring.
> at 0x40268e17: _ZN4java4lang9ThrowableC1EPNS0_6StringE
(/usr/lib/./libgcj.so.3)

Try using Java, and not gcj.  If you want to use gcj you'll have to figure
it out on your own, or hope that someone else posts instructions for using
gcj.

James has been tested with IBM and Sun JVM.  I don't know if anyone has
tried JRockit, yet.

	--- Noel


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


RE: Running James in Linux

Posted by Jeremy Torres <jt...@comcast.net>.
I'm running James on Suse Linux; however, it should be the same.

Verify your JAVA_HOME.  /usr looks incorrect.

Also, start james using the run.sh, which will setup some environment
variables and then execute phoenix.sh.

Keep in mind ports under 1024 need "root" access, and I'd change the *.sh
files in the $JAMES_HOME/bin to "chmod u+x *.sh".

-----Original Message-----
From: Hut Carspecken [mailto:hutson.carspecken@sbcglobal.net] 
Sent: Monday, June 30, 2003 7:30 PM
To: James Users List
Subject: Running James in Linux

Hello Again,

This is question is to everyone running James on RedHat Linux.  Simple
question...is there any guide or walk through to install James on Linux?

I am running James on Win 2k and have to port the application over to Linux.
I am having permission errors with the Phoenix.sh in Linux.  The error reads
as such.


bash run.sh

Using PHOENIX_HOME:   /home/alphaadmin/james-2.2.0a7

Using PHOENIX_TMPDIR: /home/alphaadmin/james-2.2.0a7/temp

Using JAVA_HOME:      /usr

Running Phoenix: 

Warning: -jar not understood. Ignoring.

Exception in thread "main" java.lang.NoClassDefFoundError:
.home.alphaadmin.james-2.2.0a7.bin.phoenix-loader.jar

   at 0x40268e17: _ZN4java4lang9ThrowableC1EPNS0_6StringE
(/usr/lib/./libgcj.so.3)

   at 0x4025bc8e: _ZN4java4lang5ErrorC1EPNS0_6StringE
(/usr/lib/./libgcj.so.3)

   at 0x4025d6b6: _ZN4java4lang12LinkageErrorC1EPNS0_6StringE
(/usr/lib/./libgcj.so.3)

   at 0x4025eb36: _ZN4java4lang20NoClassDefFoundErrorC1EPNS0_6StringE
(/usr/lib/./libgcj.so.3)

   at 0x402ad075: _ZN3gnu3gcj7runtime11FirstThread3runEv
(/usr/lib/./libgcj.so.3)

   at 0x4024fc4c: _Z13_Jv_ThreadRunPN4java4lang6ThreadE
(/usr/lib/./libgcj.so.3)

   at 0x4021c8ac: _Z11_Jv_RunMainPN4java4lang5ClassEPKciPS4_b
(/usr/lib/./libgcj.so.3)

   at 0x08048910: __gcj_personality_v0
(java.ext.dirs=/home/alphaadmin/james-2.2.0a7/lib)

   at 0x420156a4: __libc_start_main (/lib/tls/libc.so.6)

   at 0x080486c1: _Jv_RegisterClasses
(java.ext.dirs=/home/alphaadmin/james-2.2.0a7/lib)



Any thoughts?






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