On Fri, 16 Jul 1999, Adam Neat wrote:

+>Hello,
+>
+>due to an application issue and security problems, we are evaluating
+>running sendmail on another port than 25 - ie: run hte standard sendmail
+>on 25 and if possible, run another instance on port (for example) 20155.
+>
+>Does anyone know if 
+>
+>a) its posible to do this

YES.



+>B) if so, how
+>

By specifying parameters.
By default, we start sendmail with ......
 #/usr/lib/sendmail -q1h -bd

Now, for testing purpose (without touching the current process), try
this...

First create another copy of sendmail.cf for this testing purpose, called
test.cf. In the test.cf file, look for a option called
DaemonPortOptions=Port (should be remarked by default), change it to
DaemonPortOptions=Port=4321

Then start the sendmail with this .......

 #/usr/lib/sendmail -C test.cf -bd

Then, double check by running netstat -t to see all the LISTENING port,
and you should be able to see port 4321 is LISTENNING.

You can try do a telnet to the port 4321 by telnet localhost 4321, and you
should get the prompt that you sendmail is running on that port. Note
that, what ever yo do on it wouldn't affect the current that running on
port 25.

+>
+>c) is there some other application out there that will listen on anohter
+>port and simply accept data coming in on s(for examplE) port 20155 and
+>redirect it to port 25 locally. We've considered ipfwadm and the
+>redirection command, but still need something to do the local redirection.
+>

Why you need to do this on the same server in the first place?
There are lot of utility for you to relay the port whether to the same
machine or other remote machine. For example, I will prefer netcat. Do a
latavista search and you will get it.


Regards,

== Yen Jet ==

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Chan: "The bad news is, the Y2K bug will make all of our computers
       thinks it's the year 1900. The good news is, that gives us 
       an extra 100 years to fix the problem!"

Chan: Let's do =>  lynx http://3401483843/ 

============================8<=======================================

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to