|
|
Send mail from outside a firewalll via Mail.app
Just to bring this hint up do date with xinetd (Panther), here are some instructions:
create a file called imap-sshforward (imap can be any service, substitute if you want) in /etc/xinetd.d/ with the following contents:
YOURSSHHOST and YOURMAILEXCHANGER may be the same machine but they don't have to be. In my case, I can ssh into a machine that is on a secured network to my mail exchanger. Also, notice that I used port 10143 instead of the usual 143. I don't know if you can use 143 since that is a privaleged port and this service is set to not run as root. In any case, Mail and any other mail program can easily be configured to use other ports so it doesn't matter. When you've set up this file, simply kill -HUP XINETD'sPID where XINETID'sPID can be found by doing ps xac | grep xinetd. Xinetd should pick up the new service and be all set. In order to set up other services such as SMTP and POP3 in this way, just create a new file as before and substitute the new service name wherever imap occurs. Then change the port numbers accordingly and you should be set.
can't get this to work... help anyone?
i made a file called pop3-tunnel in /etc/xinetd with the following content:
service pop3-tunnel
then i registerd the service in /etc/services:
pop3-tunnel 55110/udp # Post Office Protocol - Version 3
then i killed xinetd and started it in debug mode. then i tried to telnet to the popserver:
# telnet localhost 55110
if i start the ssh-tunnel handish with the following command, it works fine:
niko$ ssh -N -C -L 55110:POPSERVER:110 niko@SSHSERVER
with xinetd-method, how does the SSHSERVER know that it should use port 110 to connect to the POPSERVER? any help is highly appreciated.
can't get this to work... help anyone?
The server also has to have netcat installed. Then use: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.11 seconds |
|