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 "Sharma, Ashutosh" <As...@gs.com> on 2007/01/16 22:04:46 UTC

Can we use some other ports higher than 1024?

Installed and working with apache james 2.3 -no probs
Using almost default settings and it starts like this:
Using PHOENIX_HOME:   C:\james-2.3.0
Using PHOENIX_TMPDIR: C:\james-2.3.0\temp
Using JAVA_HOME:      I:\JDK\1.4.2

Phoenix 4.2

James Mail Server 2.3.0
Remote Manager Service started plain:4555
POP3 Service started plain:110
SMTP Service started plain:25
NNTP Service started plain:119
FetchMail Disabled

But it is for my windows m/c-where I have full rights.
But when I have to port this to Sun machine-I need to test it first. I
am not a root or superuser and thus cannot use any of the ports which is
lower than 1024. So how to work?
robin:dotcom:~/james-2.3.0/bin$ ./run.sh
Using PHOENIX_HOME:   /home/shaashu/james-2.3.0
Using PHOENIX_TMPDIR: /home/shaashu/james-2.3.0/temp
Using JAVA_HOME:      /opt/java-1.4.2_12
Running Phoenix: 

Phoenix 4.2

James Mail Server 2.3.0
Remote Manager Service started plain:4555
POP3 Service started plain:2525
SMTP Service started plain:2526
NNTP Service started plain:2527
FetchMail Disabled



With Best Regards:
Ashutosh Sharma

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


Re: Can we use some other ports higher than 1024?

Posted by Martin Brown <ma...@3bview.com>.
Hi Sharma,

> But when I have to port this to Sun machine-I need to test it first. I
> am not a root or superuser and thus cannot use any of the ports which is
> lower than 1024. So how to work?
...
> James Mail Server 2.3.0
> Remote Manager Service started plain:4555
> POP3 Service started plain:2525
> SMTP Service started plain:2526
> NNTP Service started plain:2527
> FetchMail Disabled

I recommend running on ports higher than 1024 - you don't want to run 
any application as root if you don't have to.

To get email from port 25 to your port I suggest either a firewall rule 
  or rinetd (http://www.boutell.com/rinetd/).

You will need root access for either the firewall change or to run 
rinetd, but that is inherent to UNIX.

The only disadvantage to using rinetd is that you loose the information 
about who is connecting to your server - everything appears to come from 
the machine on which rinetd is running on.

Cheers

Martin
Filtered by 3BClean from http://www.3bview.com

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


Re: Can we use some other ports higher than 1024?

Posted by Norman Maurer <nm...@byteaction.de>.
Martin Brown schrieb:
> Hi Sharma,
>
>   
>> But when I have to port this to Sun machine-I need to test it first. I
>> am not a root or superuser and thus cannot use any of the ports which is
>> lower than 1024. So how to work?
>>     
> ...
>   
>> James Mail Server 2.3.0
>> Remote Manager Service started plain:4555
>> POP3 Service started plain:2525
>> SMTP Service started plain:2526
>> NNTP Service started plain:2527
>> FetchMail Disabled
>>     
>
> I recommend running on ports higher than 1024 - you don't want to run 
> any application as root if you don't have to.
>
> To get email from port 25 to your port I suggest either a firewall rule 
>   or rinetd (http://www.boutell.com/rinetd/).
>
> You will need root access for either the firewall change or to run 
> rinetd, but that is inherent to UNIX.
>
> The only disadvantage to using rinetd is that you loose the information 
> about who is connecting to your server - everything appears to come from 
> the machine on which rinetd is running on.
>
> Cheers
>
> Martin
> Filtered by 3BClean from http://www.3bview.com

In trunk we added support for using commons daemon to start james. With 
this the privileges will get dropped after binding the ports.

bye
Norman




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