Actually the only way seems to be is to run as "root". However, if I
change my port to lets say 1025 I should be able to run as the desired
user. Would that cause any problems? Can I still send and receive email
fine without any client changes?

Thx


On Sat, 18 Sep 2004 07:48:10 -0700, "Mag Gam" <[EMAIL PROTECTED]>
said:
> How do I search archives? 
> 
> Thx
> 
> On Sat, 18 Sep 2004 10:47:18 +0300, "Intelekia" <[EMAIL PROTECTED]>
> said:
> > Hi there,
> > 
> > Somebody (don't remember who) published a solution some time ago in the
> > mailing list. I haven't tested myself, hope it helps.
> > 
> > -------------------------------
> > 
> > Normally ports < 1024 can only be bound by processes running as root.
> > One solution for running services as non-root users and having them still
> > operate on privileged ports is to map the externally exposed port to one
> > that a non-root Java service, such as James, can start-up with.
> > 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.
> > 
> > -----Original Message-----
> > From: Mag Gam [mailto:[EMAIL PROTECTED] 
> > Sent: s�bado, 18 de septiembre de 2004 9:49
> > To: [EMAIL PROTECTED]
> > Subject: Running James as Other User
> > 
> > Is it possible to run James as another user instead of root? I know in
> > the documentation it says we can't run it since port 25 is below 1024. I
> > want to create a user called "mail" and have it run it.
> > 
> > Thanks!
> > 
> > ---------------------------------------------------------------------
> > 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]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to