On linux:
1) Setup port mapping via iptables.
bash-2.05b# iptables -t nat -A PREROUTING -p tcp --dport 25 -i eth0 -j REDIRECT --to-port 10025
where 25 is the external port and 10025 is an "ephemeral" high port you set James' SMTP to listen to. Watch that eth0 is correct for your box.
2) Persist this setup after reboots.
bash-2.05b# iptables-save > /etc/sysconfig/iptables
3) Repeat for 110, or 80 and 443 for Tomcat, etc.
-enrique
Brian J. Sayatovic wrote:
I vaguely remember about ports < 1024 only being able to be bound by processes running as root. SMPT is port 25 I believe, well below that root-only threshold. Could you run James' POP3 server on a higher port?
Regards, Brian.
Gautam Borah wrote:
Hi,
I am trying to start james in Linux as a normal user and it could not start. I am able to start from the root user. I get the floowing error while I start it,
Phoenix 4.0.1
James 2.2.0
Remote Manager Service started plain:4555
org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component named "pop3server" failed to pass through the Initialization stage. (Reason: java.net.BindException: Permission denied).
at org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:289)
at org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:159)
at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:480)
at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:428)
at org.apache.avalon.phoenix.components.application.DefaultApplication.r
I have also tried by setting the java policy file by modifying the phoenix.sh file as,
RUN_CMD="$JAVA_HOME/bin/java $JVM_OPTS \
$JVM_OPTS \
$DEBUG \
* -Djava.security.policy=/home/gautam/temm/james/james-2.2.0/bin/p-loader/META-INF/java.policy \*
$PHOENIX_JVM_OPTS \
-Dphoenix.home="$PHOENIX_HOME" \
-Djava.io.tmpdir="$PHOENIX_TMPDIR" \
-jar "$PHOENIX_HOME/bin/phoenix-loader.jar" $*"
After setting the policy file to grant all permissions, it still failed. I am using james-2.2.0.
Could you please help me solve this problem.
Thanks and regards, Gautam
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]